:root {
  color-scheme: light;
  --bg: #fff8f3;
  --surface: #ffffff;
  --surface-soft: #fff1e7;
  --text: #24202f;
  --muted: #6d6678;
  --primary: #ff6f3d;
  --primary-dark: #dc4e24;
  --accent: #7c3aed;
  --accent-soft: #f0e7ff;
  --border: rgba(36, 32, 47, 0.12);
  --shadow: 0 24px 80px rgba(51, 34, 71, 0.16);
  --radius-lg: 32px;
  --radius-md: 20px;
  --max: 1120px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary-dark); }

.section-pad {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 248, 243, 0.68);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 45px rgba(36, 32, 47, 0.08);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.navbar.solid {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--border);
  box-shadow: 0 18px 48px rgba(36, 32, 47, 0.12);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; letter-spacing: 0.02em; }
.nav-menu { display: flex; align-items: center; gap: 24px; color: var(--muted); font-weight: 650; font-size: 0.95rem; }
.nav-toggle { display: none; border: 0; border-radius: 999px; background: var(--text); color: #fff; padding: 9px 14px; font-weight: 700; }

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 48px;
  padding-top: 128px;
}
.hero::before {
  content: "";
  position: fixed;
  inset: -20% -20% auto auto;
  width: 620px;
  height: 620px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 111, 61, 0.26), rgba(124, 58, 237, 0.12) 52%, transparent 70%);
  filter: blur(2px);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.035em; }
h1 { max-width: 720px; font-size: clamp(2.8rem, 7vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.lead { max-width: 660px; margin-top: 26px; color: var(--muted); font-size: clamp(1.08rem, 2.5vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.store-button, .pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--text);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(36, 32, 47, 0.22);
}
.store-button small { display: block; color: rgba(255,255,255,0.68); font-size: 0.72rem; line-height: 1; text-transform: uppercase; letter-spacing: 0.08em; }
.store-button.android { background: linear-gradient(135deg, var(--text), #4b2a79); }
.store-button.disabled, .pill-button.disabled { cursor: not-allowed; background: #bfb7ca; color: rgba(255,255,255,0.86); box-shadow: none; }
.store-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: rgba(255,255,255,0.13); font-weight: 900; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 0.92rem; }
.hero-device { justify-self: center; width: min(430px, 100%); filter: drop-shadow(0 34px 54px rgba(36, 32, 47, 0.22)); }

.section-title { max-width: 700px; margin: 0 auto 42px; text-align: center; }
.section-title p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }
.section-title.light { color: #fff; }
.section-title.light .eyebrow, .section-title.light p { color: rgba(255,255,255,0.78); }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feature-card, .quote-card, .download-card, .faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.74);
  box-shadow: 0 18px 54px rgba(36, 32, 47, 0.08);
}
.feature-card { padding: 28px; }
.feature-card p { margin-top: 12px; color: var(--muted); }
.feature-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px; border-radius: 18px; background: var(--surface-soft); font-size: 1.5rem; }

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}
.story-copy {
  padding: 44px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 111, 61, 0.14), rgba(124, 58, 237, 0.12));
}
.story-copy p:not(.eyebrow) { margin-top: 18px; max-width: 640px; color: var(--muted); font-size: 1.1rem; }
.quote-card { display: flex; flex-direction: column; justify-content: center; padding: 40px; background: var(--text); color: #fff; }
.quote-card p { font-size: 1.35rem; font-weight: 800; line-height: 1.45; }
.quote-card span { margin-top: 20px; color: rgba(255,255,255,0.66); }

.download {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100% - var(--max)) / 2));
  padding-right: max(20px, calc((100% - var(--max)) / 2));
  background: radial-gradient(circle at 20% 0%, rgba(255,255,255,0.18), transparent 28%), linear-gradient(135deg, #211a34, #58308f 48%, #ff6f3d);
}
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 820px; margin: 0 auto; }
.download-card { padding: 30px; text-align: center; background: rgba(255,255,255,0.94); }
.download-card img { width: 180px; height: 180px; margin: 0 auto 20px; border-radius: 18px; background: #fff; }
.download-card p { margin: 12px 0 20px; color: var(--muted); }
.pill-button { min-height: 48px; padding: 10px 18px; border-radius: 999px; background: var(--primary); box-shadow: none; }
.download-card.muted { opacity: 0.84; }

.faq-list { display: grid; gap: 14px; max-width: 850px; margin: 0 auto; }
.faq-list details { padding: 22px 24px; }
.faq-list summary { cursor: pointer; font-weight: 900; font-size: 1.06rem; }
.faq-list p { margin-top: 12px; color: var(--muted); }
.faq-list a { color: var(--primary-dark); font-weight: 800; overflow-wrap: anywhere; }

.footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  color: var(--muted);
}
.footer strong { color: var(--text); font-size: 1.15rem; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; font-weight: 800; }
.copyright { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--border); font-size: 0.92rem; }

.legal-page { background: #fff; }
.legal { max-width: 860px; padding-top: 140px; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.legal h2 { margin-top: 38px; font-size: 1.45rem; }
.legal h3 { margin-top: 24px; font-size: 1.08rem; }
.legal p { margin-top: 14px; color: var(--muted); }
.legal ul, .legal ol { margin: 14px 0 0; padding-left: 1.35rem; color: var(--muted); }
.legal li { margin-top: 8px; }
.legal a { color: var(--primary-dark); font-weight: 800; overflow-wrap: anywhere; }
.policy-meta { margin-top: 18px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-soft); }
.policy-meta p { margin-top: 6px; }
.legal .updated { color: var(--primary-dark); font-weight: 800; }
.always-visible { display: flex !important; }

@media (max-width: 900px) {
  .hero, .story { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-device { max-width: 360px; }
}

@media (max-width: 680px) {
  .section-pad { width: min(100% - 28px, var(--max)); padding: 72px 0; }
  .navbar { width: calc(100% - 20px); margin-top: 10px; border-radius: 24px; align-items: flex-start; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 14px; border-radius: 14px; }
  .nav-menu a:hover { background: var(--surface-soft); }
  .hero { padding-top: 118px; }
  .hero-actions, .download-grid, .footer { grid-template-columns: 1fr; }
  .hero-actions { justify-content: center; }
  .store-button { width: min(100%, 280px); }
  .feature-grid, .download-grid { grid-template-columns: 1fr; }
  .story-copy, .quote-card { padding: 28px; }
  .footer nav { justify-content: flex-start; }
}
