:root {
  color-scheme: dark light;
  --purple: #8a6cff;
  --blue: #5b8cff;
  --teal: #42d6b7;
  --ink: #111318;
  --off-white: #f5f6f8;
  --bg: #090a0d;
  --bg-elevated: #0f1116;
  --surface: rgba(255,255,255,.055);
  --surface-strong: #12151c;
  --surface-soft: rgba(255,255,255,.035);
  --text: #f5f6f8;
  --muted: #a6a9b2;
  --faint: #6f737e;
  --line: rgba(255,255,255,.10);
  --line-soft: rgba(255,255,255,.065);
  --glass: rgba(18,20,27,.66);
  --shadow: 0 24px 70px rgba(0,0,0,.34);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max: 1180px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f6f8;
  --bg-elevated: #ffffff;
  --surface: rgba(17,19,24,.045);
  --surface-strong: #ffffff;
  --surface-soft: rgba(17,19,24,.028);
  --text: #111318;
  --muted: #60646e;
  --faint: #8a8e98;
  --line: rgba(17,19,24,.11);
  --line-soft: rgba(17,19,24,.065);
  --glass: rgba(247,248,250,.72);
  --shadow: 0 24px 70px rgba(29,32,42,.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }

::selection { background: rgba(138,108,255,.35); }

.site-shell { position: relative; isolation: isolate; min-height: 100vh; }
.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  z-index: -2;
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .13;
  pointer-events: none;
}
.site-shell::before { background: var(--purple); top: -20rem; left: -15rem; }
.site-shell::after { background: var(--teal); right: -24rem; top: 20rem; opacity: .08; }

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.48'/%3E%3C/svg%3E");
}

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

.nav-wrap {
  position: sticky;
  top: 14px;
  z-index: 30;
  padding-top: 14px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.logo-link { display: inline-flex; align-items: center; min-width: 108px; }
.wordmark { width: 102px; height: auto; object-fit: contain; }
.wordmark-dark { display: none; }
html[data-theme="light"] .wordmark-light { display: none; }
html[data-theme="light"] .wordmark-dark { display: block; }

.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.icon-button:hover { background: var(--surface-soft); transform: translateY(-1px); }
.icon-button svg { width: 18px; height: 18px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
  gap: 64px;
  align-items: center;
  padding: 108px 0 92px;
  min-height: 760px;
}
.hero-copy { max-width: 690px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
  letter-spacing: .01em;
  margin-bottom: 22px;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 4px rgba(138,108,255,.12); }
.hero h1 {
  margin: 0;
  font-size: clamp(52px, 7.8vw, 96px);
  line-height: .94;
  letter-spacing: -.065em;
  font-weight: 720;
  max-width: 760px;
}
.hero h1 .soft { color: var(--muted); }
.hero-sub {
  margin: 28px 0 0;
  max-width: 610px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  letter-spacing: -.015em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 650;
  transition: transform .2s ease, filter .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  color: white;
  border-color: rgba(255,255,255,.14);
  background: linear-gradient(135deg, #795cff, #667bf8 52%, #5489f0);
  box-shadow: 0 12px 34px rgba(91,108,255,.23), inset 0 1px 0 rgba(255,255,255,.23);
}
.button.primary:hover { filter: brightness(1.06); }
.button.secondary { background: var(--surface); }
.button svg { width: 17px; height: 17px; }

.mini-note { margin-top: 19px; color: var(--faint); font-size: 13px; }

.hero-demo { position: relative; min-height: 610px; display: grid; place-items: center; }
.demo-halo {
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,140,255,.14), rgba(138,108,255,.06) 48%, transparent 72%);
  filter: blur(14px);
}
.demo-phone {
  position: relative;
  width: min(100%, 430px);
  padding: 14px;
  border-radius: 48px;
  border: 1px solid rgba(255,255,255,.12);
  background: #07080b;
  box-shadow: 0 38px 110px rgba(0,0,0,.46), inset 0 0 0 1px rgba(255,255,255,.04);
}
html[data-theme="light"] .demo-phone { background: #e9ebef; border-color: rgba(17,19,24,.10); box-shadow: 0 38px 110px rgba(27,30,39,.18); }
.demo-screen {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border-radius: 36px;
  padding: 30px 22px 24px;
  background:
    radial-gradient(circle at 80% 4%, rgba(138,108,255,.12), transparent 28%),
    linear-gradient(180deg, #11141b, #0a0c10 68%);
}
html[data-theme="light"] .demo-screen {
  background: radial-gradient(circle at 80% 4%, rgba(138,108,255,.09), transparent 28%), #f7f8fa;
}
.demo-top { display: flex; align-items: center; justify-content: space-between; }
.demo-brand { width: 82px; }
.demo-brand img { width: 100%; }
.demo-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-radius: 999px;
}
.demo-context { display: flex; gap: 6px; margin-top: 26px; overflow: hidden; }
.demo-chip {
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 630;
}
.demo-stack { position: relative; height: 330px; margin-top: 22px; }
.demo-card {
  position: absolute;
  inset: 0;
  border-radius: 29px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
  overflow: hidden;
  transform-origin: 50% 100%;
  transition: transform .42s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
}
.demo-card.back-2 { transform: translateY(12px) scale(.965); opacity: .48; }
.demo-card.back-1 { transform: translateY(6px) scale(.982); opacity: .72; }
.demo-card.front { z-index: 3; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.demo-card.front::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 84% 0%, color-mix(in srgb, var(--card-accent, var(--blue)) 16%, transparent), transparent 36%);
}
.demo-card.front::after {
  content: "";
  position: absolute;
  left: 24px; right: 24px; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--card-accent, var(--blue)) 48%, transparent), transparent);
  opacity: .75;
}
.demo-card-top, .demo-card-bottom { position: relative; z-index: 2; }
.demo-card-category { color: var(--muted); font-size: 11px; font-weight: 690; letter-spacing: .05em; }
.demo-card-title { margin: 0 0 8px; font-size: 31px; line-height: 1.02; letter-spacing: -.045em; font-weight: 730; }
.demo-card-hook { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.demo-meta { display: flex; gap: 16px; color: var(--muted); font-size: 11px; font-weight: 610; }
.demo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.demo-action {
  min-height: 48px;
  border-radius: 17px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(150%);
  cursor: pointer;
  font-size: 13px;
  font-weight: 680;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.demo-action:hover { transform: translateY(-1px); }
.demo-action.no:hover { border-color: rgba(235,108,130,.35); background: rgba(235,108,130,.10); }
.demo-action.yes:hover { border-color: rgba(66,214,183,.34); background: rgba(66,214,183,.10); }
.demo-hint { text-align: center; color: var(--faint); font-size: 10px; margin-top: 12px; }

.section { padding: 110px 0; border-top: 1px solid var(--line-soft); }
.section-heading { max-width: 740px; margin-bottom: 48px; }
.section-kicker { color: var(--purple); font-size: 13px; font-weight: 700; margin-bottom: 13px; }
.section h2 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -.052em;
  margin: 0;
  font-weight: 710;
}
.section-intro { color: var(--muted); font-size: 18px; line-height: 1.6; margin-top: 19px; max-width: 660px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card {
  min-height: 305px;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: var(--surface-soft);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: "";
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  right: -80px; top: -80px;
  background: var(--accent, var(--purple));
  filter: blur(70px);
  opacity: .08;
}
.feature-icon { width: 74px; height: 74px; object-fit: contain; margin-bottom: 46px; }
.feature-card h3 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.feature-card p { color: var(--muted); line-height: 1.55; margin: 10px 0 0; font-size: 15px; }

.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.stat-panel {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 34px;
}
.stat-big { font-size: clamp(70px, 10vw, 118px); line-height: .9; letter-spacing: -.07em; font-weight: 740; }
.stat-label { color: var(--muted); margin-top: 18px; font-size: 16px; }
.stat-list { margin-top: 30px; display: grid; gap: 11px; }
.stat-row { display: flex; justify-content: space-between; gap: 20px; padding-top: 11px; border-top: 1px solid var(--line-soft); font-size: 13px; }
.stat-row span:last-child { color: var(--muted); }

.privacy-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}
.privacy-icon { width: 76px; height: 76px; object-fit: contain; }
.privacy-panel h3 { font-size: 27px; margin: 0; letter-spacing: -.035em; }
.privacy-panel p { color: var(--muted); line-height: 1.6; margin: 10px 0 0; }
.privacy-list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; color: var(--muted); font-size: 14px; }
.privacy-list li { display: flex; gap: 10px; align-items: center; }
.check { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; flex: 0 0 auto; background: rgba(66,214,183,.10); color: var(--teal); }

.cta {
  text-align: center;
  padding: 112px 24px;
  border-radius: 40px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, rgba(138,108,255,.13), transparent 42%),
    var(--surface-soft);
}
.cta-icon { width: 116px; margin: 0 auto 26px; filter: drop-shadow(0 18px 35px rgba(0,0,0,.16)); }
.cta h2 { font-size: clamp(44px, 6vw, 74px); margin: 0; letter-spacing: -.058em; line-height: .95; }
.cta p { color: var(--muted); max-width: 560px; margin: 20px auto 28px; line-height: 1.6; font-size: 17px; }

.footer { padding: 38px 0 52px; }
.footer-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.footer-brand { max-width: 310px; }
.footer-wordmark { width: 94px; }
.footer-brand p { color: var(--faint); font-size: 13px; line-height: 1.55; margin: 13px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; margin-top: 32px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 12px; }

/* legal/support pages */
.page-header { padding: 92px 0 50px; max-width: 850px; }
.page-header .back-link { display: inline-flex; gap: 7px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.page-header h1 { margin: 0; font-size: clamp(48px, 7vw, 80px); line-height: .96; letter-spacing: -.06em; }
.page-header p { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 680px; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 50px; padding-bottom: 110px; }
.legal-nav { position: sticky; top: 106px; align-self: start; display: grid; gap: 8px; }
.legal-nav a { color: var(--muted); font-size: 13px; padding: 8px 0; }
.legal-nav a:hover { color: var(--text); }
.legal { min-width: 0; }
.legal section { padding: 30px 0; border-top: 1px solid var(--line-soft); }
.legal section:first-child { border-top: none; padding-top: 0; }
.legal h2 { margin: 0 0 13px; font-size: 23px; letter-spacing: -.025em; }
.legal h3 { margin: 26px 0 8px; font-size: 16px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; line-height: 1.75; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.effective { color: var(--faint); font-size: 13px; margin-top: 14px; }

.support-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; padding-bottom: 44px; }
.support-card { padding: 26px; border: 1px solid var(--line-soft); background: var(--surface-soft); border-radius: var(--radius-lg); }
.support-card h3 { margin: 0; font-size: 20px; }
.support-card p { color: var(--muted); line-height: 1.6; margin: 10px 0 0; }
.support-card .button { margin-top: 18px; }
.faq { max-width: 800px; padding-bottom: 110px; }
details { border-top: 1px solid var(--line-soft); padding: 18px 0; }
details:last-child { border-bottom: 1px solid var(--line-soft); }
summary { cursor: pointer; list-style: none; font-size: 17px; font-weight: 630; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display:none; }
summary::after { content:"+"; color: var(--muted); font-size: 21px; font-weight: 400; }
details[open] summary::after { content:"−"; }
details p { color: var(--muted); line-height: 1.65; font-size: 14px; max-width: 680px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 76px; }
  .hero-copy { max-width: 760px; }
  .hero-demo { min-height: auto; }
  .demo-phone { width: min(100%, 440px); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 240px; }
  .feature-icon { margin-bottom: 26px; }
  .split { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { display:none; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 26px), var(--max)); }
  .nav-wrap { top: 8px; padding-top: 8px; }
  .nav { min-height: 58px; padding: 8px 9px 8px 14px; border-radius: 19px; }
  .wordmark { width: 88px; }
  .hero { padding: 68px 0 66px; min-height: 0; }
  .hero h1 { font-size: clamp(50px, 17vw, 73px); }
  .hero-sub { font-size: 17px; }
  .button { width: 100%; }
  .demo-phone { padding: 10px; border-radius: 38px; }
  .demo-screen { min-height: 560px; border-radius: 30px; padding: 25px 17px 20px; }
  .demo-stack { height: 322px; }
  .demo-card.front { padding: 21px; }
  .demo-card-title { font-size: 29px; }
  .section { padding: 82px 0; }
  .section-heading { margin-bottom: 32px; }
  .feature-card, .stat-panel, .privacy-panel { padding: 22px; }
  .privacy-panel { grid-template-columns: 1fr; }
  .privacy-icon { width: 66px; }
  .cta { padding: 76px 20px; border-radius: 30px; }
  .footer-row, .footer-bottom { flex-direction: column; }
  .support-grid { grid-template-columns: 1fr; }
  .page-header { padding-top: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
