/* RealSpeedTest — realspeedtest.kariha.net
   Colours follow the app: navy background, cyan → blue → violet gauge, mint for "good". */
:root {
  --bg: #05080F;
  --bg2: #0A1020;
  --surface: rgba(255,255,255,.035);
  --surface-2: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --text: #F2F6FC;
  --muted: #9AA6BF;
  --dim: #66728C;
  --cyan: #00E5FF;
  --blue: #3D7BFF;
  --violet: #8E5CFF;
  --mint: #00FFA3;
  --amber: #FFB020;
  --pink: #FF4D8D;
  --grad: linear-gradient(100deg, var(--cyan), var(--blue) 50%, var(--violet));
  --radius: 24px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --display: "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* Film grain keeps big dark areas from banding. */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .035;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0; letter-spacing: -.03em; font-family: var(--display); }
::selection { background: rgba(0,229,255,.3); }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.dim { color: var(--dim); }
.muted-p { color: var(--muted); font-size: 18px; margin: 18px 0 0; }
.link { display: inline-flex; gap: 6px; color: var(--cyan); font-weight: 700; margin-top: 22px; transition: gap .2s; }
.link:hover { gap: 10px; }

/* ---------- Intro ---------- */
.intro { display: none; }
.intro-on .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 90;
  background: radial-gradient(circle at 50% 45%, #0C1630 0%, var(--bg) 60%);
  transition: opacity .7s var(--ease), visibility .7s;
}
.intro-on body { overflow: hidden; }
.intro-inner { position: relative; display: grid; place-items: center; justify-items: center; gap: 8px; transition: transform .8s var(--ease), filter .8s; }
.intro-gauge { width: min(460px, 84vw); }
.intro-inner::before { content: ""; position: absolute; width: min(620px, 110vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(0,229,255,.18), transparent 62%); z-index: -1; animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .7; } }
.intro-brand { display: flex; align-items: center; gap: 12px; font: 800 22px var(--display); letter-spacing: -.02em;
  opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s var(--ease); margin-top: -30px; }
.intro-brand img { border-radius: 11px; }
.intro.brand-in .intro-brand { opacity: 1; transform: none; }
.intro.out { opacity: 0; visibility: hidden; }
.intro.out .intro-inner { transform: scale(1.35); filter: blur(8px); }

/* ---------- Gauge (built by app.js) ---------- */
.gauge { width: 100%; height: auto; overflow: visible; }
.gauge .track { stroke: rgba(255,255,255,.07); }
.gauge .arc { filter: drop-shadow(0 0 10px rgba(0,229,255,.55)); }
.gauge .tick { stroke: rgba(255,255,255,.28); }
.gauge .tick.major { stroke: rgba(255,255,255,.85); }
.gauge .lbl { fill: rgba(255,255,255,.72); font: 700 15px var(--display); }
.gauge .needle { filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
.gauge .readout { fill: #fff; font: 800 60px var(--display); letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.gauge .unit { fill: var(--cyan); font: 700 17px var(--display); letter-spacing: 5px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(5,8,15,.72); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 18px var(--display); letter-spacing: -.02em; }
.brand img { border-radius: 10px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 14px; padding: 7px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }
.lang { background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 8px 12px; font: 700 13px "Plus Jakarta Sans", sans-serif; cursor: pointer; transition: border-color .2s; }
.lang:hover { border-color: var(--cyan); }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), top .3s; }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; border-radius: 16px; font-weight: 700; transition: transform .2s var(--ease), box-shadow .25s, border-color .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; background: var(--grad); color: #06101F; border-radius: 12px; }
.btn-play { position: relative; padding: 13px 24px 13px 20px; background: #fff; color: #0B1222; box-shadow: 0 14px 44px -12px rgba(0,229,255,.6); overflow: hidden; }
.btn-play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(0,229,255,.25) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 4s ease-in-out infinite 2s; }
.btn-play:hover { box-shadow: 0 18px 50px -10px rgba(0,229,255,.75); }
.btn-play span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn-play small { font-size: 11px; font-weight: 600; opacity: .65; }
.btn-play b { font-size: 19px; font-family: var(--display); letter-spacing: -.01em; }
@keyframes sheen { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.btn-ghost { padding: 16px 22px; border: 1px solid var(--line-2); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: rgba(0,229,255,.5); }
.play-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); position: relative; }
.play-dot::after { content: ""; position: absolute; left: 8px; top: 6px; border-left: 8px solid #06101F; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100svh - 72px); display: flex; align-items: center; padding: 40px 0 110px; overflow: hidden; isolation: isolate; }
.streaks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.hero-grid-bg { position: absolute; inset: -2px; z-index: -2;
  background:
    radial-gradient(900px 600px at 78% 30%, rgba(61,123,255,.22), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(142,92,255,.16), transparent 60%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: rgba(0,229,255,.07); border: 1px solid rgba(0,229,255,.25); color: #A9F5FF; font-size: 13px; font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { font-size: clamp(42px, 6.2vw, 80px); font-weight: 800; margin: 26px 0 22px; letter-spacing: -.045em; line-height: 1.02; }
.shine { background: linear-gradient(100deg, var(--cyan), var(--blue) 35%, var(--violet) 55%, var(--cyan) 80%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: -200% 0; } }
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 560px; margin: 0 0 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.trust { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.02); width: fit-content; }
.trust li { padding: 14px 22px; border-left: 1px solid var(--line); }
.trust li:first-child { border-left: 0; }
.trust b { display: block; font: 800 20px var(--display); }
.trust span { color: var(--dim); font-size: 13px; font-weight: 600; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Demo card ---------- */
.demo { position: relative; }
.demo::before { content: ""; position: absolute; inset: 10% 5%; border-radius: 50%; background: radial-gradient(circle, rgba(0,229,255,.25), transparent 65%); filter: blur(40px); z-index: -1; }
.demo-card { position: relative; padding: 22px 22px 18px; border-radius: 32px; background: linear-gradient(180deg, rgba(20,30,56,.72), rgba(8,12,24,.82)); border: 1px solid var(--line-2); box-shadow: 0 50px 120px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); max-width: 520px; margin-left: auto; }
.demo-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.status { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 11px; letter-spacing: .16em; color: var(--muted); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.status.running i { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse .8s infinite; }
.demo-tag { font-size: 11px; font-weight: 700; color: var(--dim); letter-spacing: .06em; text-transform: uppercase; }
.demo-gauge { position: relative; margin: 4px auto 6px; max-width: 400px; }
.go { position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%); width: 104px; height: 104px; border-radius: 50%; cursor: pointer; border: 0;
  background: radial-gradient(circle at 50% 35%, #1A3352, #0A1426); color: #fff; font: 800 20px var(--display); letter-spacing: 3px;
  box-shadow: 0 0 0 3px rgba(0,229,255,.8), 0 0 40px rgba(0,229,255,.45), inset 0 1px 0 rgba(255,255,255,.15); transition: transform .2s var(--ease), opacity .3s, box-shadow .3s; }
.go::before, .go::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid rgba(0,229,255,.5); animation: sonar 2.4s linear infinite; }
.go::after { animation-delay: 1.2s; }
@keyframes sonar { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.go:hover { transform: translateX(-50%) scale(1.05); }
.go:active { transform: translateX(-50%) scale(.94); }
.go.hide { opacity: 0; pointer-events: none; transform: translateX(-50%) scale(.8); }
.go span { text-shadow: 0 0 18px var(--cyan); }
.go.again { width: auto; height: auto; bottom: -6px; padding: 10px 24px; border-radius: 999px; font-size: 14px; }
.go.again::before, .go.again::after { display: none; }
.phases { display: flex; justify-content: center; gap: 8px; margin: 0 0 10px; position: relative; }
.phases span { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--dim); transition: all .3s; }
.phases span.on { color: #fff; border-color: rgba(0,229,255,.7); background: rgba(0,229,255,.14); box-shadow: 0 0 20px -4px rgba(0,229,255,.6); }
.phases span.done { color: var(--muted); border-color: var(--line-2); }
.spark { width: 100%; height: 54px; display: block; margin-bottom: 10px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { padding: 12px 10px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); text-align: center; transition: border-color .3s, transform .3s var(--ease); }
.tile.on { transform: translateY(-3px); }
.tile small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--dim); }
.tile b { font: 800 24px var(--display); font-variant-numeric: tabular-nums; }
.tile em { font-style: normal; font-size: 11px; font-weight: 800; margin-left: 3px; }
.t-ping em { color: var(--amber); } .t-ping.on { border-color: rgba(255,176,32,.6); }
.t-down em { color: var(--mint); } .t-down.on { border-color: rgba(0,255,163,.6); }
.t-up em { color: var(--pink); } .t-up.on { border-color: rgba(255,77,141,.6); }
.demo-note { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--dim); }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: rgba(255,255,255,.015); overflow: hidden; padding: 20px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font: 700 clamp(20px, 2.4vw, 30px) var(--display); color: var(--muted); white-space: nowrap; letter-spacing: -.02em; }
.marquee-track i { width: 10px; height: 10px; border-radius: 50%; background: var(--grad); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.section h2 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 800; letter-spacing: -.04em; }

/* numbers */
.numbers { padding: 90px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.02); overflow: hidden; }
.stat { padding: 36px 30px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 800 clamp(40px, 4.4vw, 60px) var(--display); letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat b small { font-size: .45em; }
.stat > span { color: var(--muted); font-weight: 600; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bcard { position: relative; padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, transform .3s var(--ease); }
.bcard:hover { border-color: var(--line-2); transform: translateY(-4px); }
.spot::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0,229,255,.12), transparent 45%); }
.spot:hover::before { opacity: 1; }
.bcard h3 { font-size: 21px; margin: 20px 0 10px; }
.bcard p { color: var(--muted); margin: 0; font-size: 15.5px; }
.bcard.big { grid-row: span 2; display: flex; flex-direction: column; padding-bottom: 0; background: linear-gradient(180deg, rgba(0,229,255,.07), rgba(255,255,255,.02) 60%); }
.bshot { margin: 30px auto 0; width: 72%; max-width: 300px; border-radius: 34px 34px 0 0; padding: 9px 9px 0; background: linear-gradient(160deg, #2A3656, #0D1426 40%); box-shadow: 0 -20px 60px -20px rgba(0,229,255,.35); flex: 1; overflow: hidden; }
.bshot img { border-radius: 26px 26px 0 0; width: 100%; }
.bcard.wide { grid-column: span 2; display: flex; align-items: center; gap: 22px; }
.bcard.wide h3 { margin-top: 0; }
.bcard.wide .wide-copy { flex: 1; }
.bcard.wide .link { margin: 0; white-space: nowrap; }
.ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.ic svg { width: 26px; height: 26px; fill: currentColor; }
.c1 { background: rgba(0,229,255,.12); color: var(--cyan); }
.c2 { background: rgba(61,123,255,.14); color: #7DA6FF; }
.c3 { background: rgba(0,255,163,.12); color: var(--mint); }
.c4 { background: rgba(142,92,255,.16); color: #B89BFF; }
.c5 { background: rgba(255,77,141,.13); color: #FF7AAA; }
.c6 { background: rgba(255,176,32,.13); color: #FFC24D; }

/* showcase */
.showcase { background: linear-gradient(180deg, transparent, rgba(61,123,255,.06) 30%, rgba(142,92,255,.05) 70%, transparent); }
.show-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.tabs { display: grid; gap: 10px; margin-top: 36px; }
.tabs button { position: relative; display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; text-align: left; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; font: inherit; overflow: hidden; transition: background .25s, border-color .25s; }
.tabs button > b { font: 800 14px var(--display); color: var(--dim); }
.tabs button > span > span { display: block; font-weight: 800; font-size: 17px; }
.tabs button small { display: block; color: var(--dim); font-size: 14px; }
.tabs button:hover { background: var(--surface); }
.tabs button[aria-selected="true"] { background: var(--surface-2); border-color: var(--line-2); }
.tabs button[aria-selected="true"] > b { color: var(--cyan); }
.tabs button > i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--grad); }
.tabs button[aria-selected="true"] > i { animation: tabprog var(--dur, 4.5s) linear forwards; }
.tabs.paused button > i { animation-play-state: paused; }
@keyframes tabprog { to { width: 100%; } }
.show-phone { position: relative; display: flex; justify-content: center; }
.phone-glow { position: absolute; width: 80%; aspect-ratio: 1; top: 10%; border-radius: 50%; background: conic-gradient(from 0deg, var(--cyan), var(--blue), var(--violet), var(--cyan)); filter: blur(90px); opacity: .35; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.phone { position: relative; width: min(330px, 78vw); aspect-ratio: 1344 / 2992; border-radius: 48px; padding: 11px;
  background: linear-gradient(160deg, #2E3B5C, #0D1426 40%, #1B2544); box-shadow: 0 60px 120px -40px rgba(0,0,0,.95), inset 0 0 0 1px rgba(255,255,255,.14); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: var(--bg2); transition: opacity .35s, transform .5s var(--ease); }
.phone img.swap { opacity: 0; transform: scale(.97); }

/* speed card */
.sharecard { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.tilt-wrap { position: relative; perspective: 1200px; display: flex; justify-content: center; }
.tilt { position: relative; width: min(440px, 88vw); border-radius: 30px; transform-style: preserve-3d; transform: rotateY(-10deg) rotateX(6deg) rotateZ(2deg); transition: transform .5s var(--ease); box-shadow: 0 60px 120px -40px rgba(0,229,255,.45), 0 0 0 1px var(--line-2); overflow: hidden; }
.tilt img { width: 100%; }
.tilt-shine { position: absolute; inset: 0; background: radial-gradient(500px circle at var(--sx, 30%) var(--sy, 20%), rgba(255,255,255,.18), transparent 40%); mix-blend-mode: overlay; pointer-events: none; }
.bubble { position: absolute; padding: 12px 18px; border-radius: 20px; background: #fff; color: #0B1222; font-weight: 800; font-size: 15px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.6); animation: bob 5s ease-in-out infinite; }
.bubble.b1 { left: -4%; top: 10%; border-bottom-left-radius: 6px; }
.bubble.b2 { right: -4%; bottom: -2%; background: var(--mint); border-bottom-right-radius: 6px; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.checks { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.checks.two { grid-template-columns: 1fr 1fr; }
.checks li { padding: 15px 18px 15px 52px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-weight: 700; position: relative; }
.checks li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2306101F' d='m9.5 16.2-4-4 1.4-1.4 2.6 2.6 7-7 1.4 1.4z'/%3E%3C/svg%3E") center/16px no-repeat; box-shadow: 0 0 16px -2px rgba(0,255,163,.6); }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 8%; right: 8%; top: 29px; height: 2px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: 8%; top: 29px; height: 2px; width: calc(84% * var(--p, 0)); background: var(--grad); box-shadow: 0 0 14px rgba(0,229,255,.7); transition: width .2s linear; }
.timeline li { position: relative; z-index: 1; padding: 0 12px; text-align: center; }
.timeline .n { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); font: 800 22px var(--display); color: var(--muted); transition: all .4s var(--ease); }
.timeline li.lit .n { border-color: var(--cyan); color: #fff; box-shadow: 0 0 0 6px rgba(0,229,255,.12), 0 0 30px rgba(0,229,255,.5); }
.timeline h3 { font-size: 24px; margin: 22px 0 10px; }
.timeline p { color: var(--muted); margin: 0 auto; max-width: 320px; }

/* privacy */
.privacy { display: grid; grid-template-columns: 280px 1fr; gap: 60px; align-items: center; padding: 60px; border-radius: 36px;
  background: radial-gradient(600px circle at 0 0, rgba(0,255,163,.12), transparent 60%), radial-gradient(500px circle at 100% 100%, rgba(0,229,255,.08), transparent 60%), var(--surface); border: 1px solid var(--line); }
.shield { display: grid; place-items: center; }
.shield svg { width: 100%; max-width: 220px; filter: drop-shadow(0 0 30px rgba(0,255,163,.35)); }
.shield .tick { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease) .3s; }
.privacy.in .shield .tick { stroke-dashoffset: 0; }

/* faq */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq-head { position: sticky; top: 110px; }
details { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; margin-bottom: 12px; padding: 0 24px; transition: border-color .25s, background .25s; }
details[open] { border-color: var(--line-2); background: var(--surface-2); }
summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--cyan); font-size: 20px; line-height: 1; transition: transform .3s var(--ease), background .3s; }
details[open] summary::after { transform: rotate(45deg); background: rgba(0,229,255,.12); }
details p { margin: 0 0 20px; color: var(--muted); }

/* final */
.final { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 40px; padding: 60px; border-radius: 40px; overflow: hidden;
  background: radial-gradient(700px circle at 20% 50%, rgba(0,229,255,.2), transparent 60%), radial-gradient(600px circle at 100% 0, rgba(142,92,255,.2), transparent 60%), #0A1122; border: 1px solid var(--line-2); }
.final-gauge { max-width: 380px; margin: -20px auto -60px; }
.final h2 { font-size: clamp(38px, 5vw, 64px); }
.final p { color: var(--muted); font-size: 19px; margin: 16px 0 32px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 70px 0 30px; color: var(--muted); margin-top: 40px; }
.foot-top { display: grid; grid-template-columns: 1.3fr .8fr .9fr 1.3fr; gap: 40px; align-items: start; }
.foot-brand p { margin: 16px 0 0; max-width: 280px; }
.foot-col { display: grid; gap: 10px; }
.foot-col h4 { color: var(--text); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; font-family: "Plus Jakarta Sans", sans-serif; margin-bottom: 6px; }
.foot-col a { transition: color .2s; }
.foot-col a:hover { color: var(--text); }
.kariha-card { display: grid; gap: 12px; padding: 24px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(247,168,35,.08), rgba(255,255,255,.02)); transition: border-color .25s, transform .25s var(--ease); }
.kariha-card:hover { border-color: rgba(247,168,35,.55); transform: translateY(-3px); }
.kariha-card > span { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.kariha-card img { height: 40px; width: auto; }
.kariha-card small { color: #F7A823; font-weight: 700; font-size: 13px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); }

/* legal page (privacy.html) and its compact footer */
.legal { padding: 64px 0 80px; }
.legal h1 { font-size: clamp(34px, 4.4vw, 50px); font-weight: 800; letter-spacing: -.04em; }
.legal .updated { color: var(--dim); margin: 12px 0 36px; }
.legal h2 { font-size: 22px; margin: 40px 0 10px; letter-spacing: -.02em; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
.legal ul { padding-left: 20px; }
.legal a { color: var(--cyan); }
.foot-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-inner > nav { display: flex; gap: 20px; margin-left: auto; font-weight: 600; }
.foot-inner > nav a:hover { color: var(--text); }
.foot-inner small { flex-basis: 100%; color: var(--dim); }
.kariha { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s; }
.kariha:hover { border-color: rgba(247,168,35,.5); }
.kariha span { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.kariha img { height: 30px; width: auto; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.intro-on .hero .reveal { transition-delay: calc(var(--d, 0s) + .2s); }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero-inner, .show-grid, .sharecard, .faq-grid, .final { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 30px; }
  .demo-card { margin: 0 auto; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bcard.big { grid-row: auto; grid-column: span 2; }
  .bshot { width: 46%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .faq-head { position: static; }
  .final { text-align: center; padding: 40px 28px 50px; }
  .final-gauge { margin: -30px auto -60px; max-width: 320px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .privacy { grid-template-columns: 1fr; padding: 40px 28px; text-align: left; }
  .shield svg { max-width: 140px; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav-links { position: fixed; top: 72px; left: 12px; right: 12px; flex-direction: column; gap: 4px; padding: 12px; border-radius: 22px; background: rgba(10,16,32,.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line-2);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 14px 16px; font-size: 16px; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 640px) {
  .wrap { width: min(1200px, 100% - 32px); }
  .section { padding: 84px 0; }
  .nav .btn-sm { display: none; }
  .trust { width: 100%; }
  .trust li { flex: 1 1 50%; padding: 12px 16px; }
  .trust li:nth-child(3) { border-left: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .demo-card { padding: 16px 14px 14px; border-radius: 26px; }
  .go { width: 84px; height: 84px; font-size: 16px; }
  .tile b { font-size: 19px; }
  .demo-tag { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bcard.big, .bcard.wide { grid-column: auto; }
  .bcard.wide { flex-direction: column; align-items: flex-start; }
  .bshot { width: 70%; }
  .stat { padding: 26px 20px; }
  .checks.two { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 40px; }
  .timeline::before, .timeline::after { display: none; }
  .bubble { font-size: 13px; padding: 10px 14px; }
  .bubble.b1 { left: 0; top: -7%; }
  .bubble.b2 { right: 0; bottom: -7%; }
  .foot-top { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
