:root {
  color-scheme: light dark;
  --bg: #fafafa;
  --fg: #0b0b0f;
  --muted: #5f6370;
  --surface: #ffffff;
  --border: rgb(15 15 30 / 0.09);
  --accent: #6c5ce7;
  --accent-2: #19b6e8;
  --green: #22c55e;
  --orange: #f59e0b;
  --magenta: #d946ef;
  --shadow: 0 1px 2px rgb(15 15 30 / 0.04), 0 12px 40px rgb(15 15 30 / 0.08);
  --grad: linear-gradient(120deg, var(--accent), var(--accent-2));
  --radius: 28px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07070b;
    --fg: #f4f4f8;
    --muted: #9a9cab;
    --surface: #101018;
    --border: rgb(255 255 255 / 0.09);
    --accent: #8b7dff;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 20px 60px rgb(0 0 0 / 0.5);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
nav.top {
  position: sticky; top: 12px; z-index: 10;
  max-width: 720px; margin: 12px auto 0; padding: 10px 14px 10px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow);
}
nav.top .brand { display: flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; }
nav.top .brand img { width: 26px; height: 26px; border-radius: 7px; }
nav.top .links { display: flex; gap: 6px; }
nav.top .links a { text-decoration: none; color: var(--muted); font-size: 0.95rem; padding: 6px 12px; border-radius: 999px; transition: .2s; }
nav.top .links a:hover { color: var(--fg); background: var(--border); }
/* The nav on the inner pages keeps the plain markup */
nav:not(.top) { display: flex; gap: 20px; justify-content: center; padding: 20px; }
nav:not(.top) a { color: var(--muted); text-decoration: none; }
nav:not(.top) a:hover { color: var(--fg); }

/* Hero */
.hero { position: relative; text-align: center; padding: 96px 0 0; isolation: isolate; overflow-x: clip; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: .55;
}
.hero::before { width: 520px; height: 520px; left: 8%; top: -140px; background: #b8b0ff; }
.hero::after { width: 480px; height: 480px; right: 6%; top: 40px; background: #9be8ff; }
@media (prefers-color-scheme: dark) { .hero::before, .hero::after { opacity: .28; } }
.pill {
  display: inline-block; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--muted); font-size: .85rem; box-shadow: var(--shadow);
}
h1.display {
  font-size: clamp(2.6rem, 8vw, 5.5rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 750;
  margin: 24px auto 0; max-width: 12em;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 36em; margin: 24px auto 0; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px; text-decoration: none; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface); transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.primary { background: var(--fg); color: var(--bg); border-color: transparent; }

.stage { position: relative; margin-top: 72px; display: flex; justify-content: center; align-items: flex-start; gap: 28px; }
.stage .device { width: min(30vw, 280px); }
.stage .device:nth-child(2) { width: min(34vw, 320px); }
.stage .device:nth-child(1), .stage .device:nth-child(3) { transform: translateY(48px); }
.stage { mask-image: linear-gradient(#000 70%, transparent); -webkit-mask-image: linear-gradient(#000 70%, transparent); max-height: 600px; overflow: hidden; }

/* Device frames */
figure { margin: 0; }
.device img, .frame img { display: block; width: 100%; height: auto; }
.device { padding: 7px; border-radius: 15% / 7%; background: #17171c; box-shadow: 0 0 0 1.5px #3a3a44, var(--shadow); }
.device img { border-radius: 13% / 6%; }
.frame { padding: 6px; border-radius: 22px; background: #17171c; box-shadow: 0 0 0 1.5px #3a3a44, var(--shadow); }
.frame img { border-radius: 16px; }

/* Sections */
section { padding: 120px 0 0; }
.eyebrow { color: var(--accent); font-weight: 650; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.08; letter-spacing: -0.03em; margin: 12px 0 0; max-width: 16em; }
.sub { color: var(--muted); max-width: 38em; margin: 18px 0 0; font-size: 1.1rem; }

/* Bento */
.bento { display: grid; gap: 16px; margin-top: 56px; grid-template-columns: repeat(6, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.card h3 { margin: 18px 0 6px; font-size: 1.25rem; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--muted); }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; }
.dot { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }
.dot svg { width: 22px; height: 22px; }
.ring { --v: 0; width: 120px; height: 120px; position: absolute; right: 24px; top: 24px; }
.ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring .track { stroke: var(--border); }
.ring .bar {
  stroke: var(--c); stroke-dasharray: 264; stroke-dashoffset: calc(264 - 264 * var(--v));
  transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1.4s cubic-bezier(.2,.8,.2,1);
}
.ring text { font: 700 22px/1 system-ui, sans-serif; fill: var(--fg); text-anchor: middle; dominant-baseline: central; }
.js .reveal:not(.in) .ring .bar { stroke-dashoffset: 264; }
.wide-copy { display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; }

/* Showcase */
.rail {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 56px 24px 36px;
  margin: 0 -24px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail figure { flex: 0 0 min(72vw, 240px); scroll-snap-align: center; text-align: center; }
.rail.wide figure { flex-basis: min(88vw, 640px); }
figcaption { color: var(--muted); font-size: .9rem; margin-top: 14px; }
@media (min-width: 1000px) { .rail:not(.wide) { justify-content: safe center; } }

/* Privacy band */
.band { background: #0b0b12; color: #f4f4f8; border-radius: 40px; padding: 64px clamp(24px, 6vw, 72px); margin-top: 120px; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; width: 480px; height: 480px; right: -120px; top: -160px; background: var(--grad); filter: blur(110px); opacity: .45; border-radius: 50%; }
.band > * { position: relative; z-index: 1; }
.band .eyebrow { color: #a99dff; }
.band .sub { color: #b4b6c4; }
.checks { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.checks li { padding: 20px 22px; border-radius: 20px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); }
.band a { color: #d9d4ff; }

.facts { margin: 40px 0 0; padding: 0; list-style: none; display: grid; gap: 0; }
.facts li { padding: 18px 0; border-top: 1px solid var(--border); color: var(--muted); }
.facts li:last-child { border-bottom: 1px solid var(--border); }

footer { text-align: center; padding: 96px 20px 64px; color: var(--muted); font-size: .95rem; }
footer a { text-decoration: none; margin: 0 10px; }
footer a:hover { color: var(--fg); }

/* Scroll reveal; only hidden when scripting is available and motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
  .js .reveal.in { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
  .bento { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4 { grid-column: auto; }
  nav.top .links a:not(:last-child) { display: none; }
  .stage { gap: 14px; }
  section { padding-top: 88px; }
}

/* Inner pages (privacy, support) */
.doc { max-width: 720px; margin: 0 auto; padding: 24px; }
.doc h1 { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -0.03em; margin: 24px 0 8px; }
.doc h2 { font-size: 1.35rem; letter-spacing: -0.01em; margin: 40px 0 8px; max-width: none; }
.doc h2.q { font-size: 1.05rem; margin-top: 24px; }
.doc p, .doc li { color: var(--muted); }
.doc a { color: var(--accent); }
.doc .updated { color: var(--muted); }
