:root {
  color-scheme: light;
  --ink: #142628;
  --muted: #677779;
  --teal: #0d5559;
  --teal-dark: #093d41;
  --teal-soft: #dcecea;
  --teal-pale: #eef6f4;
  --paper: #fffdfa;
  --warm: #f4eee5;
  --wood: #9b592c;
  --line: rgba(13, 85, 89, 0.13);
  --shadow: 0 22px 60px rgba(19, 61, 63, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 86% 4%, rgba(137, 191, 187, 0.24), transparent 25rem),
    linear-gradient(180deg, #f8faf7 0%, #f1f6f3 55%, #faf8f2 100%);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
summary {
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: block;
}

.site {
  overflow: hidden;
}

.nav {
  width: min(1120px, calc(100% - 40px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(95, 55, 29, 0.14);
}

.brand span {
  font-size: 19px;
  font-weight: 780;
  letter-spacing: 0.02em;
}

.nav-action {
  min-height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 720;
  transition: 180ms ease;
}

.nav-action:hover {
  border-color: rgba(13, 85, 89, 0.32);
  background: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.hero {
  min-height: 510px;
  margin-top: 18px;
  padding: 62px 66px;
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 64px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 38px;
  background:
    linear-gradient(125deg, rgba(255, 253, 249, 0.96), rgba(242, 248, 245, 0.92)),
    var(--paper);
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.hero::before {
  width: 360px;
  height: 150px;
  right: -80px;
  bottom: -80px;
  border: 34px solid rgba(116, 173, 176, 0.11);
  transform: rotate(-12deg);
}

.hero::after {
  width: 230px;
  height: 90px;
  left: -110px;
  top: 50px;
  border: 26px solid rgba(155, 89, 44, 0.055);
}

.hero-copy,
.product-card {
  position: relative;
  z-index: 1;
}

.overline,
.section-title p {
  margin: 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.overline {
  display: flex;
  align-items: center;
  gap: 9px;
}

.overline span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2d9a79;
  box-shadow: 0 0 0 5px rgba(45, 154, 121, 0.12);
}

.hero h1 {
  max-width: 650px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 4.35vw, 62px);
  line-height: 1.13;
  letter-spacing: -0.055em;
}

.hero-description {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 15px;
  border: 1px solid rgba(13, 85, 89, 0.12);
  background: rgba(13, 85, 89, 0.055);
  color: var(--teal);
  font-weight: 750;
  transition: 180ms ease;
}

.card-action:hover {
  border-color: rgba(13, 85, 89, 0.28);
  background: rgba(13, 85, 89, 0.09);
}

.hero-version {
  margin: 28px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.hero-version span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2d9a79;
}

.product-card {
  min-height: 330px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(13, 85, 89, 0.12);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.61);
  box-shadow: 0 20px 45px rgba(25, 70, 72, 0.1);
  backdrop-filter: blur(18px);
}

.product-card-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.product-card-top img {
  width: 88px;
  height: 88px;
  border-radius: 25px;
  box-shadow: 0 18px 36px rgba(86, 54, 32, 0.18);
}

.product-card-top div {
  display: grid;
  gap: 7px;
}

.product-card-top strong {
  font-size: 24px;
}

.product-card-top span {
  color: var(--muted);
  font-size: 13px;
}

.product-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.product-features > div {
  min-width: 0;
  padding: 13px 8px 12px;
  display: grid;
  place-items: center;
  gap: 7px;
  border-radius: 16px;
  background: var(--teal-pale);
  color: var(--teal);
  font-size: 11px;
  font-weight: 720;
  text-align: center;
}

.feature-icon {
  width: 26px;
  height: 26px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.connection-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2d9a79;
}

.downloads {
  margin-top: 74px;
}

.section-title {
  margin-bottom: 25px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-title h2 {
  margin: 7px 0 0;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-title > span {
  color: var(--muted);
  font-size: 13px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.download-card {
  min-height: 245px;
  padding: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: rgba(255, 253, 250, 0.84);
  box-shadow: 0 14px 38px rgba(23, 62, 63, 0.07);
}

.download-card.recommended {
  border-color: rgba(13, 85, 89, 0.32);
  background:
    linear-gradient(180deg, rgba(220, 236, 234, 0.45), rgba(255, 253, 250, 0.94)),
    var(--paper);
}

.device-badge {
  padding: 6px 9px;
  position: absolute;
  top: 18px;
  right: 18px;
  border-radius: 999px;
  background: #edf3f0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

body[data-device="android"] .android-card .device-badge,
body[data-device="ios"] .ios-card .device-badge,
body[data-device="desktop"] .web-card .device-badge {
  background: var(--teal);
  color: white;
}

.platform-heading {
  padding-right: 44px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.platform-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--teal-soft);
  color: var(--teal);
}

.platform-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.apple-icon {
  background: var(--warm);
  color: #71401f;
}

.apple-icon svg {
  fill: currentColor;
  stroke: none;
}

.web-icon {
  background: #e4eef2;
  color: #315d75;
}

.platform-heading > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.platform-heading strong {
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-heading div span {
  color: var(--muted);
  font-size: 11px;
}

.download-meta {
  margin: 22px 0;
  color: var(--muted);
  font-size: 12px;
}

.card-action {
  min-height: 47px;
  margin-top: auto;
  padding: 0 9px 0 14px;
  gap: 12px;
  font-size: 13px;
}

.card-action > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--teal);
  color: white;
  font-size: 14px;
}

.web-action {
  color: #315d75;
  background: rgba(49, 93, 117, 0.06);
}

.web-action > span {
  background: #315d75;
}

.ios-notice {
  margin: 13px 4px 0;
  color: #7b7167;
  font-size: 11px;
}

.assurance {
  margin-top: 48px;
  padding: 25px 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.45);
}

.assurance-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
}

.assurance-item > span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

.assurance-item div {
  min-width: 0;
}

.assurance-item strong {
  font-size: 14px;
}

.assurance-item p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.release-details {
  margin: 16px 0 84px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.42);
}

.release-details summary {
  min-height: 72px;
  padding: 0 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
}

.release-details summary::-webkit-details-marker {
  display: none;
}

.release-details summary > span:first-child {
  display: grid;
  gap: 4px;
}

.release-details summary strong {
  font-size: 14px;
}

.release-details summary small {
  color: var(--muted);
  font-size: 11px;
}

.summary-arrow {
  color: var(--teal);
  font-size: 20px;
  transition: transform 180ms ease;
}

.release-details[open] .summary-arrow {
  transform: rotate(180deg);
}

.release-content {
  padding: 4px 23px 24px;
  display: grid;
  gap: 10px;
}

.release-content > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 11px;
}

.release-content > div span {
  color: var(--muted);
}

.release-content code {
  padding: 11px 13px;
  overflow-wrap: anywhere;
  border-radius: 11px;
  background: rgba(13, 85, 89, 0.06);
  color: var(--teal);
  font-size: 10px;
  line-height: 1.55;
}

footer {
  padding: 24px 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.footer-brand div {
  display: grid;
  gap: 3px;
}

.footer-brand strong {
  color: var(--ink);
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero {
    padding: 50px 42px;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .product-card {
    min-height: 270px;
  }

  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .web-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .nav,
  main,
  footer {
    width: calc(100% - 28px);
  }

  .nav {
    height: 68px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand span {
    font-size: 17px;
  }

  .nav-action {
    min-height: 37px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero {
    min-height: 0;
    margin-top: 8px;
    padding: 34px 22px 24px;
    gap: 28px;
    border-radius: 28px;
  }

  .hero h1 {
    margin: 18px 0 14px;
    font-size: 37px;
    line-height: 1.15;
  }

  .hero-description {
    font-size: 14px;
    line-height: 1.75;
  }

  .hero-version {
    margin-top: 21px;
  }

  .product-card {
    min-height: 230px;
    padding: 19px;
    border-radius: 23px;
  }

  .product-card-top {
    gap: 13px;
  }

  .product-card-top img {
    width: 64px;
    height: 64px;
    border-radius: 19px;
  }

  .product-card-top strong {
    font-size: 20px;
  }

  .product-features > div {
    padding: 10px 4px;
    font-size: 10px;
  }

  .feature-icon {
    width: 22px;
    height: 22px;
  }

  .downloads {
    margin-top: 54px;
  }

  .section-title {
    margin-bottom: 19px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .section-title h2 {
    font-size: 31px;
  }

  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .download-card {
    min-height: 184px;
    padding: 15px;
    border-radius: 20px;
  }

  .device-badge {
    top: 13px;
    right: 13px;
    padding: 5px 7px;
    font-size: 9px;
  }

  .platform-heading {
    padding-right: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .platform-icon {
    width: 43px;
    height: 43px;
    border-radius: 13px;
  }

  .platform-icon svg {
    width: 23px;
    height: 23px;
  }

  .platform-heading strong {
    max-width: 118px;
    font-size: 14px;
  }

  .platform-heading div span {
    display: none;
  }

  .download-meta {
    display: none;
  }

  .card-action {
    min-height: 43px;
    padding: 0 12px;
    font-size: 12px;
  }

  .web-card {
    min-height: 126px;
  }

  .web-card .platform-heading {
    align-items: center;
    flex-direction: row;
  }

  .web-card .card-action {
    margin-top: 13px;
  }

  .ios-notice {
    line-height: 1.6;
  }

  .assurance {
    margin-top: 34px;
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 18px;
    border-radius: 21px;
  }

  .release-details {
    margin-bottom: 60px;
  }

  .release-details summary {
    min-height: 68px;
    padding: 0 18px;
  }

  .release-content {
    padding: 3px 18px 20px;
  }

  .release-content > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  footer {
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 355px) {
  .nav-action {
    font-size: 0;
  }

  .nav-action span {
    font-size: 14px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .download-card {
    padding: 13px;
  }

  .platform-heading strong {
    max-width: 106px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
