:root {
  --bg: #fbf8f4;
  --bg-alt: #f3eee8;
  --surface: #ffffff;
  --text: #1c1830;
  --muted: #5d5872;
  --line: #e6e0d8;
  --accent: #f07b3f;
  --accent-deep: #d95f22;
  --indigo: #2b2466;
  --indigo-2: #4a3a8f;
  --tag-blue: #dcecff;
  --shadow: 0 1px 2px rgba(28, 24, 48, .06), 0 12px 32px rgba(28, 24, 48, .08);
  --radius: 18px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #110f1f;
    --bg-alt: #171429;
    --surface: #1e1a33;
    --text: #f2eff9;
    --muted: #a9a3c0;
    --line: #2d2849;
    --accent: #ff9458;
    --accent-deep: #ff9458;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-deep); text-underline-offset: 3px; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, kbd {
  font: .88em/1.4 ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .1em .4em;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.05rem; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 550; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 650; font-size: 1rem; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--text); color: var(--bg); box-shadow: var(--shadow); }
.btn-ghost { color: var(--text); border: 1px solid var(--line); background: var(--surface); }
.badge {
  display: inline-block; font-size: .78rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-deep); background: color-mix(in srgb, var(--accent) 14%, transparent);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}

/* Hero */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 .glow {
  background: linear-gradient(100deg, var(--accent) 0%, #f5a35b 45%, var(--indigo-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin-bottom: 28px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.platforms { margin-top: 26px; font-size: .92rem; color: var(--muted); }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art::before {
  content: ""; position: absolute; inset: 8% -10% 0; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%),
              radial-gradient(closest-side at 70% 70%, color-mix(in srgb, var(--indigo-2) 45%, transparent), transparent 70%);
  filter: blur(20px);
}

/* Phone frame */
.phone {
  width: 100%; max-width: 300px; aspect-ratio: 1206 / 2622;
  border-radius: 46px; padding: 9px;
  background: #0d0c14;
  box-shadow: 0 0 0 1.5px #3a3848 inset, 0 30px 60px rgba(20, 15, 50, .28), 0 8px 18px rgba(20, 15, 50, .18);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }
.phone.small { max-width: 250px; border-radius: 40px; padding: 8px; }
.phone.small img { border-radius: 33px; }
.hero-art .phone + .phone { position: absolute; transform: translate(62%, 10%) rotate(4deg) scale(.86); z-index: -1; opacity: .95; }

/* Sections */
section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 44em; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-deep); margin-bottom: 16px;
}
.card .ico svg { width: 24px; height: 24px; }
.card p { color: var(--muted); margin: 0; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.flip .feature-art { order: -1; }
.feature-art { display: flex; justify-content: center; }
.feature ul { padding: 0; margin: 18px 0 0; list-style: none; }
.feature li { padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--muted); }
.feature li strong { color: var(--text); font-weight: 650; }
.feature li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
}
.eyebrow { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 10px; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-4 .card h3 { font-size: 1.08rem; }

.privacy-band {
  background: linear-gradient(135deg, var(--indigo) 0%, #3b2d80 55%, #5a3a8a 100%);
  color: #f5f2ff; border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.privacy-band p { color: #d6d0f0; }
.privacy-band ul { margin: 0; padding: 0; list-style: none; }
.privacy-band li { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.privacy-band li:last-child { border-bottom: 0; }
.privacy-band a { color: #ffc49e; }

.cta-final { text-align: center; }
.cta-final img { width: 104px; height: 104px; margin: 0 auto 24px; border-radius: 24px; box-shadow: var(--shadow); }
.cta-final p { color: var(--muted); font-size: 1.1rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 20px; }

/* Guide */
.guide { display: grid; grid-template-columns: 230px 1fr; gap: 56px; padding: 48px 0 96px; }
.toc { position: sticky; top: 84px; align-self: start; font-size: .93rem; }
.toc strong { display: block; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 5px 0 5px 12px; color: var(--muted); text-decoration: none; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--text); border-left-color: var(--accent); }
.doc { max-width: 720px; min-width: 0; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.doc h2 { font-size: 1.8rem; margin-top: 2.4em; padding-top: 12px; scroll-margin-top: 80px; }
.doc h3 { margin-top: 1.8em; }
.doc ol, .doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: .45em; }
.doc .lede { font-size: 1.15rem; color: var(--muted); }
.doc figure { margin: 28px 0; display: flex; justify-content: center; }
.tip {
  background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 14px; padding: 16px 20px; margin: 22px 0;
}
.tip strong { color: var(--accent-deep); }
table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 650; background: var(--bg-alt); }
.table-scroll { overflow-x: auto; }

@media (max-width: 900px) {
  .hero .wrap, .feature, .privacy-band { grid-template-columns: 1fr; }
  .feature.flip .feature-art { order: 0; }
  .pillars { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 44px; }
  .hero-art { margin-top: 12px; }
  .hero-art .phone + .phone { display: none; }
  .privacy-band { padding: 36px 26px; }
  .guide { grid-template-columns: 1fr; gap: 16px; }
  .toc { position: static; }
  .feature { gap: 36px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav { gap: 14px; }
  .nav a.hide-sm { display: none; }
  .grid-4 { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .phone { max-width: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
