/* Lost Circle landing page.
   "Night Patrol" palette and type from the app (src/constants). */

:root {
  --paper: #0C1210;
  --raised: #151C18;
  --raised-2: #1A211D;
  --ink: #EEF3EC;
  --slate: #B7C4BB;
  --fog: #8FA096;
  --line: rgba(236, 244, 238, 0.1);
  --line-2: rgba(236, 244, 238, 0.16);
  --lime: #C9F24E;
  --lime-ink: #131A06;
  --mint: #57E0BE;
  --coral: #FF6A5B;
  --amber: #FFC24B;
  --violet: #A18DFF;

  --f-display: 'Sora', system-ui, sans-serif;
  --f-body: 'Albert Sans', system-ui, sans-serif;
  --f-mono: 'Spline Sans Mono', ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --radius: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
::selection { background: var(--lime); color: var(--lime-ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--lime-ink); padding: 10px 14px; border-radius: 10px; font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }

.mono { font-family: var(--f-mono); }
.muted { color: var(--fog); }
.lime { color: var(--lime); }

/* film grain + cursor glow give the flat dark ground some depth */
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } }
.cursor-glow {
  position: fixed; z-index: 0; width: 520px; height: 520px; left: 0; top: 0; pointer-events: none;
  border-radius: 50%; background: radial-gradient(circle, rgba(201,242,78,.07), transparent 65%);
  transform: translate(var(--mx, -999px), var(--my, -999px)) translate(-50%, -50%);
  transition: opacity .4s;
}
main, .footer, .nav { position: relative; z-index: 2; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  --tx: 0px; --ty: 0px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 14px; border: 1px solid transparent;
  font: 700 15.5px/1 var(--f-display); text-decoration: none; white-space: nowrap;
  transform: translate(var(--tx), var(--ty));
  transition: transform .35s var(--ease), background .2s, box-shadow .3s, border-color .2s;
  cursor: pointer;
}
.btn-sm { padding: 11px 16px; font-size: 14px; border-radius: 12px; }
.btn-lime { background: var(--lime); color: var(--lime-ink); box-shadow: 0 0 0 0 rgba(201,242,78,.4), 0 10px 30px -10px rgba(201,242,78,.55); }
.btn-lime:hover { box-shadow: 0 0 0 6px rgba(201,242,78,.14), 0 14px 40px -10px rgba(201,242,78,.7); }
.btn-ghost { background: rgba(236,244,238,.04); color: var(--ink); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(201,242,78,.5); background: rgba(201,242,78,.06); }
.btn.is-disabled { opacity: .55; cursor: default; }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 14px var(--gutter) auto; z-index: 50;
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 10px 10px 10px 18px; border-radius: 18px;
  border: 1px solid transparent;
  transition: background .35s, border-color .35s, backdrop-filter .35s, transform .45s var(--ease);
}
.nav.is-scrolled { background: rgba(12,18,16,.72); border-color: var(--line); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.nav.is-hidden { transform: translateY(-120%); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 19px/1 var(--f-display); letter-spacing: -0.03em; }
.brand b { color: var(--lime); font-weight: 800; }
.brand img { transition: transform .8s var(--spring); }
.brand:hover img { transform: rotate(-25deg) scale(1.08); }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 9px 14px; border-radius: 10px; color: var(--slate); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: rgba(236,244,238,.06); }
.menu-btn { display: none; }

/* ── Shared section bits ─────────────────────────────── */
section { padding: clamp(80px, 12vw, 150px) var(--gutter); }
.section-head { max-width: var(--max); margin: 0 auto clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(34px, 5.2vw, 64px); line-height: 1.04; font-weight: 800; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font: 600 12px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--lime);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(201,242,78,.6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(201,242,78,0); } 100% { box-shadow: 0 0 0 0 rgba(201,242,78,0); } }

/* scroll-in reveal; site.js adds .is-in */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s), filter .9s var(--ease) var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }
.no-js .reveal { opacity: 1; transform: none; filter: none; }

.tone-mint { --tone: var(--mint); } .tone-amber { --tone: var(--amber); } .tone-lime { --tone: var(--lime); }
.tone-coral { --tone: var(--coral); } .tone-violet { --tone: var(--violet); }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  padding-top: 120px; padding-bottom: 90px; overflow: hidden; isolation: isolate;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 50% 42%, rgba(201,242,78,.10), transparent 70%),
    radial-gradient(40% 40% at 85% 20%, rgba(161,141,255,.10), transparent 70%),
    radial-gradient(40% 40% at 10% 80%, rgba(87,224,190,.08), transparent 70%);
}
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 30%; z-index: -1; background: linear-gradient(transparent, var(--paper)); }
.constellation { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-inner { max-width: 980px; text-align: center; }
.hero-title { font-size: clamp(44px, 8.4vw, 112px); line-height: .98; font-weight: 800; letter-spacing: -0.045em; }
.hero-title .line { display: block; }
.rotator { position: relative; display: inline-grid; justify-items: start; vertical-align: bottom; color: var(--lime); overflow: hidden; height: 1.06em; transition: width .7s var(--ease); }
.rotator span { grid-area: 1 / 1; transform: translateY(105%); opacity: 0; transition: transform .7s var(--ease), opacity .7s var(--ease); white-space: nowrap; }
.rotator span.is-on { transform: none; opacity: 1; }
.rotator span.is-out { transform: translateY(-105%); opacity: 0; }
.glow-text { font-style: normal; background: linear-gradient(100deg, var(--lime) 10%, var(--mint) 45%, var(--violet) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: sheen 6s ease-in-out infinite; }
@keyframes sheen { 50% { background-position: 100% 0; } }
.hero-sub { max-width: 640px; margin: 28px auto 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--slate); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero-proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 34px 0 0; padding: 0; list-style: none; font: 500 13px/1 var(--f-mono); color: var(--fog); letter-spacing: .04em; }
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof li::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--lime); transform: rotate(45deg); }
.hero-proof b { color: var(--ink); font-weight: 600; }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid var(--line-2); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--lime); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ── Ticker ──────────────────────────────────────────── */
.ticker { padding: 22px 0; border-block: 1px solid var(--line); overflow: hidden; background: rgba(21,28,24,.5); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; width: max-content; gap: 46px; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { display: inline-flex; align-items: center; gap: 12px; font: 500 14px/1 var(--f-mono); color: var(--slate); white-space: nowrap; }
.ticker i { width: 8px; height: 8px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 12px var(--tone); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ── Story (sticky phone) ────────────────────────────── */
.story-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr minmax(300px, 400px); gap: clamp(30px, 6vw, 90px); }
.story-steps { padding-bottom: 20vh; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; max-width: 520px; opacity: .25; transition: opacity .6s var(--ease); }
.step.is-active { opacity: 1; }
.step-tag { display: inline-block; align-self: flex-start; margin-bottom: 20px; padding: 8px 12px; border-radius: 999px; font: 600 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, transparent); border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent); }
.step h3 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; font-weight: 700; }
.step p { margin-top: 18px; font-size: 18px; color: var(--slate); }
.step em { color: var(--ink); font-style: normal; font-weight: 600; }

.story-phone { position: sticky; top: calc(50vh - 330px); height: 660px; display: grid; place-items: center; }
.phone {
  position: relative; width: 320px; height: 650px; border-radius: 48px; padding: 14px;
  background: linear-gradient(160deg, #26302a, #0f1513 40%, #1c2420);
  box-shadow: inset 0 0 0 1.5px rgba(236,244,238,.14), inset 0 0 0 8px #070a09, 0 50px 100px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.6);
  transform: perspective(1400px) rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg));
  transition: transform .8s var(--ease);
  overflow: hidden;
}
.phone::after { content: ''; position: absolute; inset: 14px; border-radius: 36px; pointer-events: none; background: linear-gradient(120deg, rgba(255,255,255,.07), transparent 35%); }
.phone-notch { position: absolute; top: 24px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 5; }
.phone-status { position: absolute; top: 28px; left: 40px; right: 40px; z-index: 4; display: flex; justify-content: space-between; font: 600 13px/1 var(--f-body); }
.status-icons { display: flex; gap: 4px; align-items: flex-end; }
.status-icons i { width: 4px; background: var(--ink); border-radius: 1px; }
.status-icons i:nth-child(1) { height: 5px; } .status-icons i:nth-child(2) { height: 8px; } .status-icons i:nth-child(3) { height: 11px; }
.phone-shadow { position: absolute; bottom: -10px; width: 260px; height: 40px; border-radius: 50%; background: radial-gradient(rgba(201,242,78,.18), transparent 70%); filter: blur(10px); z-index: -1; }
.phone-tabs { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 64px; border-radius: 0 0 36px 36px; display: flex; justify-content: space-around; align-items: center; background: rgba(21,28,24,.95); border-top: 1px solid var(--line); }
.phone-tabs i { width: 22px; height: 22px; border-radius: 7px; background: rgba(236,244,238,.12); transition: background .4s; }
.phone-tabs i.on { background: var(--lime); }

.screen {
  position: absolute; inset: 14px; border-radius: 36px; padding: 74px 18px 84px;
  background: var(--paper); display: flex; flex-direction: column; gap: 14px;
  opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .55s var(--ease), transform .55s var(--ease); pointer-events: none;
}
.screen.is-active { opacity: 1; transform: none; }
.scr-head { display: flex; justify-content: space-between; align-items: baseline; }
.scr-head small { font: 600 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fog); }
.scr-head b { font: 700 15px/1 var(--f-display); }
.scr-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 18px; background: var(--raised); border: 1px solid var(--line); }
.scr-card b { font: 700 15px/1.25 var(--f-display); }
.scr-card small { font-size: 12.5px; color: var(--fog); }
.scr-card small.mono { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.tone-card-coral { background: rgba(255,106,91,.1); border-color: rgba(255,106,91,.28); }
.tone-card-lime { background: rgba(201,242,78,.08); border-color: rgba(201,242,78,.26); }
.tone-card-amber { background: rgba(255,194,75,.09); border-color: rgba(255,194,75,.26); }

/* SOS screen */
.sos-wrap { position: relative; flex: 1; display: grid; place-items: center; }
.sos-btn { position: relative; z-index: 2; width: 150px; height: 150px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at 35% 30%, #ff8a7d, var(--coral) 55%, #d84a3c); box-shadow: 0 20px 50px -10px rgba(255,106,91,.6), inset 0 -6px 16px rgba(0,0,0,.2); font: 800 38px/1 var(--f-display); color: #fff; letter-spacing: -0.02em; }
.sos-btn small { font: 600 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; opacity: .85; }
.sos-ring { position: absolute; width: 150px; height: 150px; border-radius: 50%; border: 2px solid var(--coral); animation: ring 2.4s var(--ease) infinite; }
.sos-ring.r2 { animation-delay: .8s; } .sos-ring.r3 { animation-delay: 1.6s; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
.avatars { display: flex; justify-content: center; }
.avatars span { width: 40px; height: 40px; margin-left: -8px; border-radius: 50%; display: grid; place-items: center; border: 3px solid var(--paper); background: var(--c); color: var(--lime-ink); font: 700 14px/1 var(--f-display); animation: pop .5s var(--spring) both; }
.screen.is-active .avatars span:nth-child(2) { animation-delay: .1s; } .screen.is-active .avatars span:nth-child(3) { animation-delay: .2s; } .screen.is-active .avatars span:nth-child(4) { animation-delay: .3s; }
@keyframes pop { from { transform: scale(0); } }

/* maps */
.mini-map { flex: 1; border-radius: 22px; overflow: hidden; background: #101714; border: 1px solid var(--line); }
.map-svg { width: 100%; height: 100%; }
.route { stroke-dasharray: 320; stroke-dashoffset: 320; }
.screen.is-active .route { animation: draw 2.6s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.walker { offset-path: path("M40 250 C 80 230, 70 180, 110 160 S 150 100, 200 70"); offset-distance: 0%; filter: drop-shadow(0 0 6px var(--lime)); }
.screen.is-active .walker { animation: walk 6s var(--ease) .3s infinite; }
@keyframes walk { 0% { offset-distance: 0%; } 70%, 100% { offset-distance: 100%; } }
.bar { height: 6px; border-radius: 3px; background: rgba(236,244,238,.08); overflow: hidden; margin: 6px 0 4px; }
.bar span { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--mint), var(--lime)); }
.screen.is-active .bar span { animation: fill 4.2s var(--ease) .3s forwards; }
@keyframes fill { to { width: 64%; } }
.pin { opacity: 0; }
.screen.is-active .pin { animation: drop .7s var(--spring) forwards; }
.screen.is-active .pin.p2 { animation-delay: .35s; } .screen.is-active .pin.p3 { animation-delay: .7s; }
@keyframes drop { from { opacity: 0; transform: var(--t) translateY(-40px); } to { opacity: 1; } }
.pin.p1 { --t: translate(95px,120px); } .pin.p2 { --t: translate(175px,190px); } .pin.p3 { --t: translate(120px,235px); }
.me-pulse { transform-origin: 130px 160px; animation: mepulse 2s infinite; }
@keyframes mepulse { from { transform: scale(1); opacity: 1; } to { transform: scale(4); opacity: 0; } }

/* match */
.match { flex: 1; display: flex; align-items: center; gap: 6px; }
.match-card { flex: 1; padding: 10px; border-radius: 18px; background: var(--raised); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.match-card small { font: 600 10px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fog); margin-top: 6px; }
.match-card b { font: 700 13px/1.25 var(--f-display); }
.thumb { aspect-ratio: 1; border-radius: 12px; }
.thumb.t1 { background: radial-gradient(circle at 30% 30%, #3a2a20, #1b1410 70%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); position: relative; }
.thumb.t2 { background: radial-gradient(circle at 60% 40%, #3d2c21, #19120d 70%); }
.thumb::after { content: ''; display: block; margin: 38% auto 0; width: 60%; height: 34%; border-radius: 6px; border: 2px dashed rgba(201,160,110,.5); }
.screen.is-active .match-card:first-child { animation: slideL .7s var(--ease) both; }
.screen.is-active .match-card:last-child { animation: slideR .7s var(--ease) .15s both; }
@keyframes slideL { from { transform: translateX(-30px); opacity: 0; } }
@keyframes slideR { from { transform: translateX(30px); opacity: 0; } }
.match-link { width: 30px; flex: none; }
.match-link path { animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -16; } }

/* fraud */
.scan { position: relative; overflow: hidden; border-radius: 16px; }
.scan-input { padding: 16px; border-radius: 16px; background: var(--raised); border: 1px solid var(--line-2); font-size: 17px; letter-spacing: .04em; }
.caret { display: inline-block; width: 2px; height: 18px; margin-left: 2px; vertical-align: -3px; background: var(--lime); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scan-beam { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(161,141,255,.35), transparent); transform: translateX(-100%); }
.screen.is-active .scan-beam { animation: beam 1.8s var(--ease) .2s infinite; }
@keyframes beam { to { transform: translateX(100%); } }
.verdict { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.verdict b { font: 800 24px/1.1 var(--f-display); color: var(--coral); }
.verdict small { color: var(--fog); font-size: 13px; }
.shield { width: 84px; height: 84px; margin-bottom: 6px; }
.screen.is-active .shield { animation: shake .6s ease 1s both; }
@keyframes shake { 20%, 60% { transform: rotate(-8deg); } 40%, 80% { transform: rotate(8deg); } }

/* ── Bento ───────────────────────────────────────────── */
.bento { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--raised), rgba(21,28,24,.6)); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px;
  transition: border-color .3s, transform .5s var(--ease);
}
.tile:hover { border-color: var(--line-2); transform: translateY(-4px); }
.tile h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.tile p { color: var(--slate); font-size: 15.5px; }
.tile-circle { grid-column: span 4; min-height: 400px; }
.tile-timer { grid-column: span 2; }
.tile-sos, .tile-map, .tile-chat { grid-column: span 2; }
.tile-soon { grid-column: span 6; min-height: 0; flex-direction: row; align-items: center; gap: 28px; justify-content: flex-start; }
.tile-soon .tile-art { order: 3; margin-left: auto; }
.tile-soon h3 { margin: 0; white-space: nowrap; }
/* cursor spotlight on each tile */
.spot::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(201,242,78,.09), transparent 60%); }
.spot:hover::before { opacity: 1; }
.tile-art { flex: 1; display: grid; place-items: center; margin-bottom: 22px; position: relative; }

.orbit-art { min-height: 220px; }
.orbit-art .core { width: 54px; height: 54px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 60px rgba(201,242,78,.5); }
.orbit { position: absolute; border-radius: 50%; border: 1px dashed var(--line-2); animation: spin linear infinite; }
.orbit.o1 { width: 140px; height: 140px; animation-duration: 14s; }
.orbit.o2 { width: 220px; height: 220px; animation-duration: 22s; animation-direction: reverse; }
.orbit.o3 { width: 300px; height: 300px; animation-duration: 30s; }
.orbit i { position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 18px var(--c); }
@keyframes spin { to { transform: rotate(360deg); } }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips span { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); font: 600 13px/1 var(--f-mono); color: var(--slate); animation: chip 6s infinite; }
.chips span:nth-child(1) { animation-delay: 0s; } .chips span:nth-child(2) { animation-delay: 2s; } .chips span:nth-child(3) { animation-delay: 4s; }
@keyframes chip { 0%, 30% { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); } 33%, 100% { background: transparent; color: var(--slate); border-color: var(--line-2); } }

.beat svg { width: 100%; }
.ecg { stroke-dasharray: 300; animation: ecg 2.2s linear infinite; filter: drop-shadow(0 0 6px rgba(255,106,91,.7)); }
@keyframes ecg { from { stroke-dashoffset: 300; } to { stroke-dashoffset: -300; } }

.radar { width: 150px; height: 150px; margin: 0 auto 22px; border-radius: 50%; border: 1px solid rgba(255,194,75,.3); background: repeating-radial-gradient(circle, transparent 0 24px, rgba(255,194,75,.12) 25px 26px); overflow: hidden; }
.sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255,194,75,.45), transparent 25%); animation: spin 3.2s linear infinite; }
.radar i { position: absolute; left: var(--x); top: var(--y); width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: blip 3.2s infinite; }
.radar i:nth-of-type(2) { animation-delay: 1s; } .radar i:nth-of-type(3) { animation-delay: 2s; }
@keyframes blip { 0%, 100% { opacity: .2; } 10% { opacity: 1; } }

.bubbles { display: flex; flex-direction: column; gap: 10px; place-items: stretch; width: 100%; }
.bubbles span { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.35; }
.b-in { background: var(--raised-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; animation: bub 6s var(--ease) infinite; }
.b-out { margin-left: auto; background: var(--lime); color: var(--lime-ink); border-bottom-right-radius: 4px; font-weight: 600; animation: bub 6s var(--ease) 1s infinite; }
@keyframes bub { 0% { opacity: 0; transform: translateY(10px) scale(.95); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.soon { display: flex; gap: 10px; margin: 0; }
.soon span { padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--line-2); font: 600 13px/1 var(--f-mono); color: var(--fog); }

/* ── How ─────────────────────────────────────────────── */
.how { position: relative; }
.how-steps { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-steps li { padding: 30px; border-radius: var(--radius); background: rgba(21,28,24,.7); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.how-n { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 26px; border-radius: 14px; font: 600 15px/1 var(--f-mono); color: var(--lime-ink); background: var(--lime); }
.how-steps li:nth-child(2) .how-n { background: var(--mint); } .how-steps li:nth-child(3) .how-n { background: var(--violet); }
.how-steps h3 { font-size: 21px; margin-bottom: 8px; }
.how-steps p { color: var(--slate); font-size: 15.5px; }
.how-line { position: absolute; left: 0; right: 0; bottom: 34%; width: 100%; height: 60px; opacity: .35; }
.how-line path { stroke-dasharray: 1100; stroke-dashoffset: 1100; transition: stroke-dashoffset 2.4s var(--ease); }
.how.is-in .how-line path { stroke-dashoffset: 0; }

/* ── Privacy ─────────────────────────────────────────── */
.privacy-card { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: 32px; background: radial-gradient(80% 120% at 100% 0%, rgba(201,242,78,.10), transparent 60%), var(--raised); border: 1px solid var(--line); overflow: hidden; }
.privacy-copy h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; font-weight: 800; }
.checks { list-style: none; margin: 30px 0; padding: 0; display: grid; gap: 16px; }
.checks li { position: relative; padding-left: 36px; color: var(--slate); }
.checks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 7px; background: rgba(201,242,78,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23C9F24E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.checks b { color: var(--ink); }
.link-arrow { display: inline-flex; gap: 8px; color: var(--lime); font-weight: 600; text-decoration: none; }
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }
.privacy-art { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.lock { width: 34%; filter: drop-shadow(0 0 30px rgba(201,242,78,.5)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.lock-ring { position: absolute; inset: 0; display: grid; place-items: center; }
.lock-ring span { position: absolute; border-radius: 50%; border: 1px solid rgba(201,242,78,.25); animation: spin 20s linear infinite; }
.lock-ring span:nth-child(1) { width: 55%; height: 55%; border-style: dashed; }
.lock-ring span:nth-child(2) { width: 78%; height: 78%; border-color: rgba(87,224,190,.2); animation-duration: 30s; animation-direction: reverse; border-top-color: var(--mint); }
.lock-ring span:nth-child(3) { width: 100%; height: 100%; border-color: rgba(161,141,255,.16); animation-duration: 40s; border-right-color: var(--violet); }

/* ── Facts ───────────────────────────────────────────── */
.facts { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 0; }
.fact { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(21,28,24,.8), transparent); }
.fact b { display: block; font: 800 clamp(40px, 5vw, 60px)/1 var(--f-display); letter-spacing: -0.04em; color: var(--lime); margin-bottom: 12px; }
.fact b small { font-size: .42em; margin-left: 2px; color: var(--slate); letter-spacing: 0; }
.fact > span { color: var(--slate); font-size: 15px; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq .section-head { max-width: 860px; }
.faq details { border-radius: 18px; border: 1px solid var(--line); background: rgba(21,28,24,.6); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: rgba(201,242,78,.35); background: var(--raised); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; font: 600 18px/1.3 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 28px; height: 28px; border-radius: 9px; background: rgba(236,244,238,.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23C9F24E' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .4s var(--spring); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 24px 22px; color: var(--slate); animation: faq .5s var(--ease); }
@keyframes faq { from { opacity: 0; transform: translateY(-6px); } }

/* ── CTA ─────────────────────────────────────────────── */
.cta-card { position: relative; overflow: hidden; isolation: isolate; max-width: var(--max); margin: 0 auto; padding: clamp(60px, 9vw, 120px) var(--gutter); text-align: center; border-radius: 36px; background: radial-gradient(60% 80% at 50% 0%, rgba(201,242,78,.16), transparent 70%), var(--raised); border: 1px solid rgba(201,242,78,.2); }
.cta-card h2 { font-size: clamp(36px, 6vw, 76px); line-height: 1; font-weight: 800; letter-spacing: -0.045em; }
.cta-card p { max-width: 520px; margin: 20px auto 0; color: var(--slate); font-size: 18px; }
.cta-logo { margin: 0 auto 28px; animation: float 5s ease-in-out infinite; filter: drop-shadow(0 10px 40px rgba(201,242,78,.35)); }
.cta-rings { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; }
.cta-rings span { position: absolute; width: 200px; height: 200px; border-radius: 50%; border: 1px solid rgba(201,242,78,.25); animation: ripple 6s linear infinite; }
.cta-rings span:nth-child(2) { animation-delay: 1.5s; } .cta-rings span:nth-child(3) { animation-delay: 3s; } .cta-rings span:nth-child(4) { animation-delay: 4.5s; }
@keyframes ripple { from { transform: scale(.5); opacity: 1; } to { transform: scale(6); opacity: 0; } }

/* ── Footer ──────────────────────────────────────────── */
.footer { max-width: var(--max); margin: 0 auto; padding: 60px var(--gutter) 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; border-top: 1px solid var(--line); }
.footer-top p { margin-top: 12px; color: var(--fog); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.footer-links a { color: var(--slate); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--lime); }
.footer-fine { grid-column: 1 / -1; font-size: 13px; color: var(--fog); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 980px) {
  .story-grid { grid-template-columns: 1fr; }
  /* phone pinned on top; the copy cards slide up and disappear behind it */
  .story-phone { order: -1; position: sticky; top: 64px; height: 400px; z-index: 5; place-items: start center; }
  .story-phone::before { content: ''; position: absolute; z-index: -1; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: -64px; bottom: -40px; background: linear-gradient(var(--paper) 82%, transparent); }
  .phone { transform: scale(.6); transform-origin: top center; }
  .phone-shadow { display: none; }
  .story-steps { position: relative; z-index: 4; padding-bottom: 10vh; }
  .step { min-height: 0; justify-content: flex-start; padding: 24px; border-radius: 22px; background: var(--raised); border: 1px solid var(--line); margin-bottom: 42vh; opacity: .45; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-circle { grid-column: span 2; }
  .tile-timer, .tile-sos, .tile-map, .tile-chat { grid-column: span 1; }
  .tile-soon { grid-column: span 2; flex-direction: column; align-items: flex-start; }
  .tile-soon .tile-art { order: 0; margin: 0 0 10px; }
  .privacy-card { grid-template-columns: 1fr; }
  .privacy-art { max-width: 300px; margin: 0 auto; order: -1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { padding-left: 14px; gap: 10px; }
  .nav .btn-sm { margin-left: auto; }
  .menu-btn { display: grid; gap: 5px; place-content: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(236,244,238,.04); cursor: pointer; }
  .menu-btn span { width: 18px; height: 2px; border-radius: 1px; background: var(--ink); transition: transform .3s var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; }
  .nav-links { flex-direction: column; padding: 10px; border-radius: 18px; background: rgba(12,18,16,.96); border: 1px solid var(--line); backdrop-filter: blur(16px); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px; font-size: 17px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .bento, .how-steps { grid-template-columns: 1fr; }
  .tile-circle, .tile-timer, .tile-sos, .tile-map, .tile-chat, .tile-soon { grid-column: auto; }
  .orbit.o3 { width: 260px; height: 260px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fact { padding: 20px; }
  .footer { grid-template-columns: 1fr; }
  .how-line { display: none; }
}

/* Motion is decoration here: drop all of it for people who ask. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .route { stroke-dashoffset: 0; }
  .pin { opacity: 1; }
  .bar span { width: 64%; }
  .grain, .cursor-glow { display: none; }
}

/* ── Document pages (privacy, terms, 404) ────────────── */
.doc { max-width: 760px; margin: 0 auto; padding: 150px var(--gutter) 90px; }
.doc h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.04; font-weight: 800; letter-spacing: -0.04em; }
.doc .updated { margin-top: 14px; font: 500 13px/1 var(--f-mono); color: var(--fog); letter-spacing: .06em; }
.doc .draft { margin: 30px 0 10px; padding: 14px 16px; border-radius: 14px; background: rgba(255,194,75,.09); border: 1px solid rgba(255,194,75,.3); color: #FFD98F; font-size: 15px; }
.doc h2 { margin: 48px 0 12px; font-size: 24px; font-weight: 700; }
.doc p, .doc li { color: var(--slate); }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 20px; display: grid; gap: 8px; }
.doc a { color: var(--lime); }
.doc strong { color: var(--ink); }
.nav-solo { margin-left: auto; }
.lost { min-height: 100svh; display: grid; place-content: center; text-align: center; padding: 120px var(--gutter); }
.lost .big { font: 800 clamp(110px, 22vw, 240px)/0.9 var(--f-display); letter-spacing: -0.06em; background: linear-gradient(100deg, var(--lime), var(--mint), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lost h1 { margin-top: 10px; font-size: clamp(26px, 4vw, 38px); }
.lost p { margin: 14px auto 30px; max-width: 440px; color: var(--slate); }
.lost .btn { justify-self: center; }
.lost-lens { width: 120px; margin: 0 auto 10px; animation: search 4s ease-in-out infinite; }
@keyframes search { 25% { transform: translate(-18px, -6px) rotate(-8deg); } 50% { transform: translate(14px, 4px) rotate(6deg); } 75% { transform: translate(-6px, 8px); } }

/* very small phones: keep logo, button and menu on one line */
@media (max-width: 400px) {
  .nav { gap: 8px; padding: 8px 8px 8px 12px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand img { width: 24px; height: 24px; }
  .btn-sm { padding: 10px 12px; font-size: 13px; }
}
