:root {
  color-scheme: dark;
  --bg: #070a11;
  --bg-high: #0d1322;
  --surface: #131b2e;
  --surface-high: #1a243d;
  --surface-bright: #243254;
  --indigo: #818cf8;
  --indigo-strong: #6366f1;
  --indigo-dark: #312e81;
  --indigo-glow: rgba(99, 102, 241, 0.16);
  --mint: #34d399;
  --mint-dark: #064e3b;
  --mint-glow: rgba(52, 211, 153, 0.14);
  --rose: #f87171;
  --rose-dark: #7f1d1d;
  --amber: #fbbf24;
  --amber-dark: #78350f;
  --text: #f8fafc;
  --muted: #94a3b8;
  --faint: #64748b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.45);
  --shell: min(1160px, calc(100% - 48px));
  --font-sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Manrope", var(--font-sans);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 12% 15%, rgba(99, 102, 241, 0.09), transparent 32%),
    radial-gradient(circle at 88% 30%, rgba(52, 211, 153, 0.06), transparent 28%),
    radial-gradient(circle at 50% 80%, rgba(129, 140, 248, 0.05), transparent 35%),
    var(--bg);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 11px 18px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--indigo-strong);
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 3px solid var(--indigo); outline-offset: 4px; }

/* Header & Nav */
.site-header { position: fixed; inset: 18px 0 auto; z-index: 50; transition: 220ms ease; }
.site-header.scrolled { inset-block-start: 10px; }

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 14px 10px 18px;
  border: 1px solid transparent;
  border-radius: 28px;
  transition: 220ms ease;
}

.site-header.scrolled .nav {
  border-color: var(--line);
  background: rgba(13, 19, 34, 0.88);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 800 20px/1 var(--font-display);
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.brand img { width: 28px; height: 28px; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links > a {
  padding: 10px 14px;
  border-radius: 999px;
  transition: 160ms ease;
}

.nav-links > a:not(.nav-cta):hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--indigo-strong);
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease;
}

.nav-links .nav-cta:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  margin: 5px auto;
  border-radius: 2px;
  background: currentColor;
  transition: 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero Section */
.hero {
  position: relative;
  min-height: 840px;
  display: grid;
  align-items: center;
  padding: 160px 0 90px;
  isolation: isolate;
}

.hero-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.orb-one { width: 540px; height: 540px; top: -160px; right: -80px; background: var(--indigo-glow); }
.orb-two { width: 400px; height: 400px; bottom: -60px; left: -120px; background: var(--mint-glow); }

.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
}

.eyebrow, .kicker {
  color: var(--indigo);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--indigo-glow);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.15);
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 720px;
  margin-top: 24px;
  font-size: clamp(52px, 6.2vw, 88px);
}

h1 em {
  color: var(--indigo);
  font-style: normal;
}

.hero-copy > p {
  max-width: 580px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 18px 18px 24px 18px;
  font-weight: 800;
  font-size: 15px;
  transition: 170ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(0.98); }

.button.primary {
  color: #ffffff;
  background: var(--indigo-strong);
  box-shadow: 0 16px 36px rgba(99, 102, 241, 0.24);
}

.button.primary:hover {
  background: #4f46e5;
  box-shadow: 0 20px 44px rgba(99, 102, 241, 0.35);
}

.button.tonal {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.button.tonal:hover {
  border-color: var(--line-strong);
  background: var(--surface-high);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 700;
}

.trust-row i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--faint);
}

/* Hero Visual Stage */
.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.logo-stage {
  position: relative;
  width: min(380px, 80vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(129, 140, 248, 0.16);
  border-radius: 40% 40% 45% 32%;
  background: linear-gradient(145deg, rgba(26, 36, 61, 0.85), rgba(15, 23, 42, 0.95));
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  overflow: hidden;
}

.logo-stage::before, .logo-stage::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.logo-stage::before {
  width: 250px;
  height: 250px;
  top: -80px;
  right: -50px;
  background: var(--indigo-glow);
}

.logo-stage::after {
  width: 220px;
  height: 220px;
  bottom: -90px;
  left: -60px;
  background: var(--mint-glow);
}

.logo-halo {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.18);
  filter: blur(30px);
}

.logo-stage img {
  position: relative;
  z-index: 1;
  width: 68%;
  height: 68%;
  object-fit: contain;
  transform: rotate(-2deg);
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.35));
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 20px 20px 26px 20px;
  background: rgba(19, 27, 46, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.float-card span:last-child { display: grid; }
.float-card small { color: var(--faint); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.float-card strong { font-size: 14px; font-weight: 700; }

.float-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: var(--indigo-strong);
  font-weight: 900;
}

.card-balance { top: 40px; left: -10px; }
.card-saved { right: -12px; bottom: 48px; }
.card-saved .float-icon { background: var(--mint); color: var(--bg); }

.format-chip {
  position: absolute;
  right: 12px;
  top: 92px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--surface-bright);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  transform: rotate(6deg);
}

.format-chip.offline {
  top: auto;
  right: auto;
  bottom: 96px;
  left: 6px;
  color: var(--mint);
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.25);
  transform: rotate(-6deg);
}

/* 3-Step Flow Strip */
.flow-strip { padding: 0 0 40px; }

.flow-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  border: 1px solid var(--line);
  border-radius: 24px 24px 36px 24px;
  background: rgba(19, 27, 46, 0.72);
}

.flow-grid > div:not(.flow-arrow) { display: flex; align-items: center; gap: 14px; }
.flow-grid b {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--indigo);
  background: rgba(129, 140, 248, 0.1);
  font-size: 12px;
}

.flow-grid span { font-weight: 700; font-size: 15px; }
.flow-arrow { color: var(--faint); font-weight: 700; }

/* Sections Common */
.section { padding: 110px 0; }

.section-heading {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 50px;
}

.section-heading h2, .privacy-copy h2, .faq-intro h2 {
  margin-top: 12px;
  font-size: clamp(38px, 4.8vw, 62px);
}

.section-heading > p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

/* Bento Grid Features */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 26px 26px 36px 26px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}

.feature-card.col-8 { grid-column: span 8; }
.feature-card.col-4 { grid-column: span 4; }
.feature-card.col-6 { grid-column: span 6; }
.feature-card.col-12 { grid-column: span 12; }

.card-icon-wrap {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--indigo-glow);
  color: var(--indigo);
  margin-bottom: 24px;
}

.card-copy span {
  color: var(--indigo);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-copy h3 {
  margin: 8px 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.card-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.card-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.card-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-high);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* Privacy Section */
.privacy-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px;
  border: 1px solid var(--line);
  border-radius: 32px 32px 48px 32px;
  background: var(--surface);
}

.privacy-points {
  display: grid;
  gap: 20px;
}

.privacy-points article {
  display: flex;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-high);
}

.privacy-points span {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--indigo);
}

.privacy-points h3 { font-size: 17px; margin-bottom: 6px; }
.privacy-points p { margin: 0; color: var(--muted); font-size: 14px; }

/* FAQ Accordion */
.faq-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-list article {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
}

.faq-list button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}

.faq-list button::after {
  content: "+";
  font-size: 20px;
  color: var(--indigo);
  font-weight: 800;
  transition: transform 0.2s ease;
}

.faq-list button[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Download CTA Card */
.download-card {
  padding: 70px 40px;
  border: 1px solid var(--line-strong);
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(26, 36, 61, 0.9), rgba(15, 23, 42, 0.98));
  text-align: center;
  box-shadow: var(--shadow);
}

.download-card h2 { font-size: clamp(36px, 4.5vw, 56px); margin-bottom: 16px; }
.download-card p { max-width: 540px; margin: 0 auto 32px; color: var(--muted); font-size: 17px; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 50px 0;
  text-align: center;
  color: var(--faint);
  font-size: 14px;
}

footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero-layout, .privacy-panel, .faq-layout { grid-template-columns: 1fr; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .feature-card.col-8, .feature-card.col-4, .feature-card.col-6 { grid-column: span 12; }
  .flow-grid { grid-template-columns: 1fr; gap: 14px; }
  .flow-arrow { display: none; }
  .privacy-panel { padding: 32px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 20px;
    border-radius: 24px;
    background: rgba(13, 19, 34, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
