:root {
  --bg: #0A0A0A;
  --bg-alt: #0F1318;
  --card: #12171E;
  --fg: #F2F2F2;
  --muted: #8A8F98;
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --line: #1F2329;
  --ok: #22C55E;
  --err: #F87171;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.28em; text-decoration: none; font-size: 18px; }
.wordmark img { border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--fg); }

/* buttons + form */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 0 20px; height: 48px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-small { height: 36px; padding: 0 14px; font-size: 13px; }
.waitlist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; max-width: 480px; }
.waitlist input[type="email"] { flex: 1 1 220px; min-width: 0; height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font-size: 16px; }
.waitlist input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.waitlist .hp { position: absolute; left: -9999px; }
.form-msg { flex-basis: 100%; min-height: 1.4em; font-size: 14px; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }
.fine { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* hero */
.hero { overflow: hidden; padding: 72px 0 56px; background: radial-gradient(ellipse at 70% 20%, #111827 0%, var(--bg) 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.3em; color: var(--accent); margin-bottom: 14px; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 18px; margin-bottom: 6px; }
.lead { margin-top: 18px; font-size: clamp(16px, 2.2vw, 19px); color: #C9CDD3; max-width: 560px; }
/* phone frames around real app screenshots */
.phone { position: relative; margin: 0; border-radius: 38px; padding: 8px; background: linear-gradient(160deg, #2A313C, #0E1217); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px #2A313C inset; }
.phone img { display: block; width: 100%; height: auto; border-radius: 30px; }
.hero-phones { position: relative; min-height: 560px; }
.hero-rings { position: absolute; inset: 50% auto auto 50%; width: 520px; max-width: 130%; transform: translate(-50%, -50%); }
.hero-phones .phone { position: absolute; width: 250px; }
.phone-front { left: 8%; top: 20px; z-index: 2; }
.phone-back { right: 4%; top: 70px; width: 230px !important; transform: rotate(6deg); opacity: 0.9; }
.phone-solo { width: 100%; max-width: 300px; margin: 0 auto; }
.ring { fill: none; stroke: var(--accent); stroke-opacity: 0.25; stroke-width: 1.5; transform-origin: 200px 200px; animation: pulse 4s ease-out infinite; }
.r2 { animation-delay: 1.3s; }
.r3 { animation-delay: 2.6s; }
.sensors circle { fill: var(--accent); }
@keyframes pulse { 0% { opacity: 0.2; transform: scale(0.92); } 50% { opacity: 1; } 100% { opacity: 0.2; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .ring, .dash, .ping { animation: none; } html { scroll-behavior: auto; } }

/* stats band */
.stats { border-top: 1px solid var(--line); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.stats-grid div { display: flex; flex-direction: column; }
.stats-grid strong { font-size: clamp(28px, 4vw, 40px); color: var(--fg); line-height: 1.1; }
.stats-grid span { font-size: 14px; color: var(--muted); }

/* sections */
.section { padding: 80px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.card p, .steps p, .story p { color: var(--muted); font-size: 15px; }
.icon { width: 28px; height: 28px; margin-bottom: 14px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.story { max-width: 720px; }
.story p { margin-top: 16px; font-size: 17px; }
.story em { font-style: italic; }
.section-cta { background: radial-gradient(ellipse at 50% 0%, #111827 0%, var(--bg) 70%); }
.cta { text-align: center; }
.cta .lead { margin-left: auto; margin-right: auto; }
.cta .waitlist { margin-left: auto; margin-right: auto; }

/* split sections: text beside a phone */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.split-rev { grid-template-columns: 0.9fr 1.1fr; }
.stages { list-style: none; margin-top: 28px; display: grid; gap: 10px; }
.stages button { display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--muted); font: inherit; font-size: 15px; cursor: pointer; }
.stages button b { display: block; color: var(--fg); font-size: 16px; }
.stages button:hover { border-color: #2F3A48; }
.stages button[aria-selected="true"] { border-color: var(--accent); background: #111A28; }
.stage-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; }
.s0 { background: var(--accent); } .s1 { background: #22C55E; } .s2 { background: #84CC16; } .s4 { background: #F97316; }
.profiles { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.profiles li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.profiles li b { display: block; color: var(--fg); font-size: 16px; }
.profiles .icon { flex: none; margin: 2px 0 0; }

/* app gallery */
.gallery { --edge: max(16px, calc((100% - 1120px) / 2 + 16px)); display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--edge); padding: 36px var(--edge) 12px; scrollbar-width: thin; }
.gallery figure { flex: none; width: 230px; scroll-snap-align: start; }
.gallery figcaption { margin-top: 16px; font-size: 14px; color: var(--muted); }
.gallery figcaption b { display: block; color: var(--fg); font-size: 16px; }

/* how-it-works diagram */
.flow { margin: 40px 0 8px; }
.flow svg { width: 100%; height: auto; display: block; }
.flow-label { fill: var(--muted); font-size: 15px; font-family: inherit; }
.dash { animation: dash 1.2s linear infinite; }
.ping { animation: ping 2s ease-out infinite; }
@keyframes dash { to { stroke-dashoffset: -12; } }
@keyframes ping { 0% { opacity: 1; r: 6; } 100% { opacity: 0; r: 22; } }

/* the name */
.section-name { position: relative; overflow: hidden; }
.section-name .story { max-width: 720px; }
.big-word { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: clamp(90px, 20vw, 260px); line-height: 1; font-weight: 800; letter-spacing: 0.12em; color: #fff; opacity: 0.05; pointer-events: none; user-select: none; white-space: nowrap; }
.section-name .story { position: relative; }
.cta-icon { border-radius: 18px; margin-bottom: 20px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; gap: 20px; }
.footer a { text-decoration: none; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; }
.footer-brand img { border-radius: 5px; }
.footer a:hover { color: var(--fg); }

/* privacy page */
.doc { max-width: 720px; padding: 64px 16px 80px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); }
.doc h2 { font-size: 20px; margin-top: 36px; margin-bottom: 8px; }
.doc p, .doc li { color: #C9CDD3; font-size: 16px; }
.doc ul { padding-left: 20px; margin-top: 8px; }
.doc li { margin-bottom: 6px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-top: 8px; }

@media (max-width: 860px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-phones { min-height: 460px; }
  .hero-phones .phone { width: 200px; }
  .phone-front { left: calc(50% - 170px); top: 10px; }
  .phone-back { right: calc(50% - 170px); top: 50px; width: 180px !important; }
  .grid, .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split-rev { grid-template-columns: 1fr; gap: 36px; }
  .split-rev .phone-solo { order: 2; }
  .phone-solo { max-width: 260px; }
  .gallery figure { width: 200px; }
  .flow-label { font-size: 34px; }
  .nav-links a:not(.btn) { display: none; }
  .section { padding: 56px 0; }
}

/* FAQ (FC-37) */
.faq { max-width: 760px; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: 17px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.faq a { color: var(--accent); }

/* 404 (FC-37) */
.notfound { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 64px 16px; }
.notfound p { color: var(--muted); margin: 12px 0 24px; }
