:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.78);
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --line: rgba(0, 0, 0, 0.09);
  --accent: #c8681b;
  --accent-soft: rgba(200, 104, 27, 0.12);
  --shadow: 0 18px 60px rgba(71, 39, 9, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% -5%, rgba(255, 189, 74, 0.18), transparent 34rem),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang TC", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.shell {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.nav-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(104, 53, 9, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--secondary);
  font-size: 13px;
}

.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }

.nav-links .nav-download {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--bg);
  background: var(--text);
  font-weight: 650;
}

.nav-links .nav-download:hover { color: var(--bg); opacity: .82; }

.language-select {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 7px 28px 7px 11px;
  color: var(--secondary);
  background-color: var(--surface);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 13px) 50%, calc(100% - 9px) 50%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  font: inherit;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 72px;
  min-height: 680px;
  padding: 76px 0 92px;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 76px);
  line-height: .98;
  letter-spacing: -.055em;
}

.lead {
  max-width: 600px;
  margin: 26px 0 0;
  color: var(--secondary);
  font-size: clamp(19px, 2.3vw, 24px);
  line-height: 1.45;
  letter-spacing: -.015em;
}

.hero-actions { margin-top: 30px; }

.app-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 21px;
  border-radius: 15px;
  color: var(--bg);
  background: var(--text);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, opacity .18s ease;
}

.app-store-button:hover { transform: translateY(-1px); opacity: .86; }
.app-store-button:active { transform: scale(.98); }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.badge {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--secondary);
  font-size: 14px;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-art::before {
  content: "";
  position: absolute;
  width: 115%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 158, 62, .26), transparent 67%);
  filter: blur(12px);
}

.app-icon {
  position: relative;
  width: min(390px, 82vw);
  aspect-ratio: 1;
  border-radius: 22.5%;
  box-shadow: 0 42px 80px rgba(102, 52, 10, .26), inset 0 0 0 1px rgba(255, 255, 255, .38);
}

.section { padding: 30px 0 104px; }

.section-title {
  margin: 0 0 32px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -.04em;
  text-align: center;
}

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

.card {
  min-height: 210px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .56);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin-bottom: 23px;
  border-radius: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 20px;
  font-weight: 700;
}

.card h2 {
  margin: 0 0 9px;
  font-size: 22px;
  letter-spacing: -.02em;
}

.card p {
  margin: 0;
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.55;
}

.document {
  max-width: 780px;
  margin: 0 auto;
  padding: 72px 0 110px;
}

.document h1 {
  margin-bottom: 14px;
  font-size: clamp(40px, 7vw, 64px);
}

.updated {
  margin: 0 0 48px;
  color: var(--secondary);
  font-size: 15px;
}

.document section {
  padding: 25px 0;
  border-top: 1px solid var(--line);
}

.document section:first-of-type { border-top: 0; }

.document h2 {
  margin: 0 0 12px;
  font-size: 23px;
  letter-spacing: -.02em;
}

.document p,
.document li {
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.7;
}

.document ul { padding-left: 1.25em; }

.contact-card {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.contact-card a { color: var(--accent); }

footer {
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--secondary);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.footer-links { display: flex; gap: 18px; }
.footer-links a { text-decoration: none; }

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1040px); }
  .nav-links > a { display: none; }
  .hero { grid-template-columns: 1fr; gap: 48px; min-height: 0; padding: 58px 0 76px; }
  .hero-copy { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .badges { justify-content: center; }
  .hero-art { grid-row: 1; }
  .app-icon { width: min(270px, 70vw); }
  .feature-grid { grid-template-columns: 1fr; }
  .section { padding-bottom: 72px; }
  .document { padding-top: 52px; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f10;
    --surface: rgba(34, 34, 36, .76);
    --text: #f5f5f7;
    --secondary: #a1a1a6;
    --line: rgba(255, 255, 255, .11);
    --accent: #ff9f42;
    --accent-soft: rgba(255, 159, 66, .13);
    --shadow: 0 18px 60px rgba(0, 0, 0, .24);
  }
}
