:root {
  --navy: #2416c9;
  --navy-deep: #140b73;
  --ink: #14142b;
  --muted: #5c5c78;
  --line: #e6e6f2;
  --paper: #f6f6fb;
  --mint: #3ddea0;
  --white: #fff;
  --shadow: 0 18px 50px rgba(20, 11, 115, 0.14);
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
}
a { color: var(--navy); }
img { max-width: 100%; display: block; }
button, a, summary, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #8d84ff; outline-offset: 3px; }

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

.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-weight: 600;
  padding: 8px 12px; border-radius: 999px;
}
.nav-links a:hover { background: var(--paper); color: var(--navy); }
.nav-links a[aria-current="page"] { background: #efeefe; color: var(--navy); }
.menu-btn {
  display: none; border: 1px solid var(--line); background: white; border-radius: 12px;
  width: 44px; height: 44px; padding: 0; cursor: pointer;
}
.menu-btn span, .menu-btn span:before, .menu-btn span:after {
  display: block; height: 2px; width: 18px; background: var(--ink); position: relative; margin: 0 auto;
}
.menu-btn span:before, .menu-btn span:after { content: ""; position: absolute; left: 0; }
.menu-btn span:before { top: -6px; }
.menu-btn span:after { top: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--navy); color: white !important; text-decoration: none;
  border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 650;
  cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: white; color: var(--navy) !important; border: 1px solid #c9c6f5; }
.btn.ghost:hover { background: #efeefe; }

.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(61,222,160,.35), transparent 60%),
    linear-gradient(180deg, #efeefe 0%, #fff 72%);
  padding: 56px 0 24px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; }
.kicker {
  display: inline-block; background: #e7fbf3; color: #0d7a52;
  font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  border-radius: 999px; padding: 6px 10px; margin-bottom: 14px;
}
h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 14px; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 22px; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.store-badge { display: inline-flex; line-height: 0; border-radius: 7px; transition: transform .15s ease; }
.store-badge img { width: 120px; height: 40px; }
.store-badge:hover { transform: translateY(-1px); }
.fine { color: var(--muted); font-size: 14px; margin-top: 14px; }

.phone {
  width: min(300px, 78vw); margin: 0 auto;
  background: #0e0e18; border-radius: 36px; padding: 10px;
  box-shadow: var(--shadow);
}
.phone img { border-radius: 28px; width: 100%; }
.phone.swap img { animation: rise .35s ease; }
@keyframes rise { from { opacity: .35; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.section { padding: 72px 0; }
.section.alt { background: var(--paper); }
.section h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; margin: 0 0 8px; }
.section .intro { color: var(--muted); max-width: 640px; margin: 0 0 28px; }

.stage { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature {
  text-align: left; cursor: pointer; font: inherit; color: inherit;
  background: white; border: 1px solid var(--line); border-radius: 18px; padding: 16px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature.is-on { border-color: var(--navy); box-shadow: 0 0 0 3px #efeefe; }
.feature strong { display: block; margin-bottom: 4px; }
.feature span { color: var(--muted); font-size: 14.5px; }

.viewer-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--line); background: white; color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer;
}
.pill:hover { border-color: #b7b3ee; }
.pill.is-on { background: var(--navy); color: white; border-color: var(--navy); }
.arrows { display: flex; gap: 8px; }
.arrows button {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: white; font-size: 18px; cursor: pointer;
}
.arrows button:hover { background: var(--paper); }
.stage-preview .pills, .stage-preview .arrows { justify-content: center; }
.viewer { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.caption { font-size: 15px; color: var(--muted); margin: 12px 0 0; text-align: center; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 12px 0 12px 30px; position: relative; border-bottom: 1px solid var(--line); }
.checklist li:before {
  content: ""; position: absolute; left: 0; top: 18px; width: 14px; height: 8px;
  border-left: 2px solid #0d7a52; border-bottom: 2px solid #0d7a52; transform: rotate(-45deg);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  background: #efeefe; color: var(--navy-deep); border-radius: 999px;
  padding: 7px 12px; font-size: 14px; font-weight: 600;
}

.page-hero { padding: 42px 0 8px; }
.page-hero h1 { font-size: clamp(34px, 4vw, 48px); }
.prose { max-width: 760px; padding-bottom: 24px; }
.prose h2 { font-size: 22px; margin: 28px 0 8px; scroll-margin-top: 84px; }
.prose p { color: #2a2a3d; }
.search {
  width: min(100%, 760px); display: flex; align-items: center; gap: 10px;
  background: white; border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; margin: 8px 0 18px;
}
.search:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px #efeefe; }
.search input { border: 0; font: inherit; width: 100%; padding: 10px 0; outline: none; background: transparent; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; padding: 12px 28px 12px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: "+"; position: absolute; right: 0; top: 10px; color: var(--navy); font-size: 22px; }
.faq details[open] summary:after { content: "–"; }
.faq summary:hover { color: var(--navy); }
.faq p { margin: 0 0 14px; color: var(--muted); }
.empty { display: none; color: var(--muted); }

.jumps { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 8px; }
.jumps a {
  text-decoration: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: 14px; font-weight: 600; color: var(--ink); background: white;
}
.jumps a:hover { border-color: var(--navy); color: var(--navy); }

.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; align-items: center; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.footer nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer nav a:hover { color: var(--navy); }
.footer strong { color: var(--ink); }
.footer-badge { margin-top: 16px; }
.dialog {
  border: 0; padding: 0; background: transparent; max-width: none; width: min(420px, calc(100vw - 32px));
}
.dialog::backdrop { background: rgba(12, 10, 40, .72); }
.dialog .phone { width: 100%; }
.dialog form {
  display: flex; justify-content: space-between; align-items: center;
  color: white; background: #14142b; border-radius: 14px; padding: 8px 8px 8px 14px; margin-bottom: 10px;
}
.dialog button {
  background: transparent; color: white; border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px; padding: 6px 12px; cursor: pointer; font: inherit;
}

@media (max-width: 900px) {
  .hero-grid, .stage, .split, .viewer { grid-template-columns: 1fr; }
  .stage-preview { order: -1; }
  .menu-btn { display: grid; place-items: center; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    background: white; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { margin-top: 6px; }
  .feature-list { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
