/* ═══════════════════════════════════════════════════════════
   RingVault — landing design system v2 ("hallmark" pass)
   Outfit (display) · DM Sans (body) · JetBrains Mono (meta)
   Motion: GSAP + SplitText + ScrollTrigger + Lenis
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #07070d;
  --bg-2: #0a0a13;
  --surface: #0f0f1c;
  --surface-2: #16162a;
  --surface-3: #1f1f3a;
  --primary: #ffb74d;
  --primary-d: #e09b35;
  --primary-light: #ffe0b2;
  --primary-rgb: 255, 183, 77;
  --accent: #42a5f5;
  --accent-rgb: 66, 165, 245;
  --on-primary: #140f1e;
  --text: #f2f2f7;
  --muted: #a0a0c0;
  --good: #66bb6a;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.14);
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; } /* Lenis owns smoothing */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* fine dot grid, fading out below the first viewport */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(1100px 780px at 50% -60px, #000 30%, transparent 78%);
  mask-image: radial-gradient(1100px 780px at 50% -60px, #000 30%, transparent 78%);
}
/* film grain — kills the flat-gradient look */
.grain {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

::selection { background: rgba(var(--primary-rgb), 0.3); color: #fff; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 2px; }
/* ── Minimal scrollbar — native bar reduced to a hairline ─ */
::-webkit-scrollbar { width: 2px; height: 2px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(var(--primary-rgb), 0.35); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--primary-rgb), 0.75); }
::-webkit-scrollbar-corner { background: transparent; }
/* when the JS rail is live, the native bar disappears entirely —
   the custom rail is the only scrollbar (touch keeps native overlays) */
html.rv-rail { scrollbar-width: none; }
html.rv-rail::-webkit-scrollbar { display: none; width: 0; height: 0; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

.mono { font-family: var(--font-mono); }

/* ── Text Reveal 02 hidden-state ────────────────────────── */
[data-reveal-02] { visibility: hidden; }

/* ── Skip link (keyboard a11y) ── */
.skip {
  position: fixed;
  top: -60px;
  left: 14px;
  z-index: 700;
  background: var(--primary);
  color: #14120b;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip:focus { top: 12px; }

/* ── Custom cursor — viewfinder reticle (JS adds .has-cursor) ─
   No dot, no blend blob. An optical instrument matching the
   mono/datasheet language: full-viewport crosshair hairlines,
   a diamond marker at the aim point, and a corner-bracket
   reticle that locks onto the bounds of the hovered target. */
body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor .scroll-rail { cursor: none; }

.cursor-x, .cursor-y {
  position: fixed;
  z-index: 599;
  pointer-events: none;
  background: rgba(var(--primary-rgb), 0.14);
}
.cursor-x { top: 0; bottom: 0; width: 1px; will-change: transform; }
.cursor-y { left: 0; right: 0; height: 1px; will-change: transform; }
.cursor-x, .cursor-y { transition: opacity 0.25s var(--ease-out); }
/* locked = hairlines dim, they don't vanish — context is kept */
body.has-cursor.is-locked .cursor-x,
body.has-cursor.is-locked .cursor-y { opacity: 0.35; }

.cursor-mark, .cursor-reticle {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 600;
  will-change: transform;
}
/* diamond marker — echoes the marquee separators */
.cursor-mark {
  width: 7px; height: 7px;
  background: var(--primary);
  transform: rotate(45deg);
  transition: scale 0.25s var(--ease-out);
}
body.has-cursor.is-locked .cursor-mark { scale: 1.45; }
/* corner-bracket reticle — locks onto the hovered target.
   Arm length adapts to the target via --arm (set by JS on lock);
   a faint tint box defines the captured area. */
.cursor-reticle {
  opacity: 0;
  /* exit slightly faster than entrance — same easing language */
  transition: opacity 0.16s var(--ease-out);
}
.cursor-reticle.is-active { transition-duration: 0.22s; }
.cursor-reticle b {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: rgba(var(--primary-rgb), 0.05);
  border: 1px solid rgba(var(--primary-rgb), 0.16);
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}
.cursor-reticle::before, .cursor-reticle::after,
.cursor-reticle i::before, .cursor-reticle i::after {
  content: '';
  position: absolute;
  width: var(--arm, 10px); height: var(--arm, 10px);
  border: 1.5px solid var(--primary);
  transition: width 0.28s var(--ease-out), height 0.28s var(--ease-out);
}
.cursor-reticle::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.cursor-reticle::after  { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.cursor-reticle i::before { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.cursor-reticle i::after  { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.cursor-reticle.is-active { opacity: 1; }
.cursor-reticle.is-active b { opacity: 1; }

/* ── Edge scroll rail — the custom scrollbar ──────────────
   2px track, 48px thumb; wakes on scroll, widens on hover,
   draggable. Sits under the cursor layers (z 590 < 599). */
.scroll-rail {
  position: fixed;
  top: var(--nav-h);
  bottom: 24px;
  right: 0;
  width: 12px;
  z-index: 590;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.scroll-rail.is-on,
.scroll-rail:hover,
.scroll-rail.is-dragging { opacity: 1; }
.scroll-rail:hover,
.scroll-rail.is-dragging { pointer-events: auto; }
.scroll-rail::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  right: 5px;
  width: 2px;
  background: rgba(255, 255, 255, 0.07);
}
.scroll-thumb {
  position: absolute;
  top: 0;
  right: 5px;
  width: 2px;
  height: 48px;
  background: rgba(var(--primary-rgb), 0.55);
  will-change: transform;
}
.scroll-rail:hover .scroll-thumb,
.scroll-rail.is-dragging .scroll-thumb {
  right: 4px;
  width: 4px;
  background: var(--primary);
}

/* ── Nav — hairline bar, mono indices, no pill ──────────── */
header.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: transform 0.45s var(--ease-out);
}
header.nav.nav-hidden { transform: translateY(-110%); }
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 32px;
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, padding 0.35s;
}
header.nav.scrolled .nav-inner {
  background: rgba(7, 7, 13, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--hairline);
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.logo svg { width: 22px; height: 22px; color: var(--primary); }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  transition: color 0.2s;
}
.nav-links a sup {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--primary);
  margin-right: 7px;
  letter-spacing: 0.08em;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(var(--primary-rgb), 0.45);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.25s, border-color 0.25s;
}
.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.3s var(--ease-out);
}
.nav-cta:hover { color: var(--on-primary); border-color: var(--primary); }
.nav-cta:hover::before { transform: scaleY(1); }
.nav-cta svg, .nav-cta > span { position: relative; }

/* ── Hero — editorial, left-aligned, spec column ────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 80px) 0 56px;
  overflow: clip;
}
.hero-in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.55fr 0.75fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  border: 1px solid var(--hairline);
  padding: 9px 16px;
  border-radius: var(--r-sm);
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.02);
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--good);
  animation: ping 2.2s var(--ease-out) infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(102, 187, 106, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(102, 187, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(102, 187, 106, 0); }
}
.hero-badge b { color: var(--text); font-weight: 500; }
.hero-badge .v { color: var(--primary); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9.2vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.94;
  margin-bottom: 36px;
}
.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--primary);
}
.hero h1 .outline .solid { color: var(--primary); -webkit-text-stroke: 0; }
.hero .sub {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.75;
  max-width: 46ch;
  margin-bottom: 44px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* spec column */
.spec {
  border-left: 1px solid var(--hairline);
  padding-left: 32px;
  font-family: var(--font-mono);
  align-self: end;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.78rem;
}
.spec-row:first-child { padding-top: 0; }
.spec-row dt { color: var(--muted); letter-spacing: 0.18em; font-size: 0.68rem; }
.spec-row dd { color: var(--text); font-weight: 500; text-align: right; }
.spec-row dd i { font-style: normal; color: var(--primary); }

/* scroll-hint removed — the hero ends clean */

/* ── Buttons — squared signature, no pills, no sweep ────── */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 17px 32px;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  /* no transform transition — gsap.quickTo owns transform (magnet) */
  transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn svg { flex-shrink: 0; transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translate(2px, 2px); }
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
}
.btn-primary:hover { background: var(--primary-light); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--hairline-strong);
  color: var(--text);
}
.btn-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.06);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.3s var(--ease-out);
}
.btn-ghost:hover::before { transform: scaleY(1); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); }
.btn-ghost > * { position: relative; }
.btn-tertiary {
  background: transparent;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  color: var(--accent);
  font-size: 0.9rem;
  padding: 15px 26px;
}
.btn-tertiary:hover { background: rgba(var(--accent-rgb), 0.08); border-color: rgba(var(--accent-rgb), 0.55); }

/* ── Section scaffolding — left-aligned, mono indices ───── */
section.block { padding: 130px 0; position: relative; }
.section-head { margin-bottom: 72px; max-width: 820px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--primary);
  margin-bottom: 22px;
}
.eyebrow::after { content: ''; flex: 0 0 44px; height: 1px; background: rgba(var(--primary-rgb), 0.4); }
.eyebrow .ix { color: var(--muted); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 20px;
}
.section-sub {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
  max-width: 54ch;
}

/* ── Marquee strip ──────────────────────────────────────── */
.marquee {
  overflow: clip;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.012);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marq 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  color: var(--muted);
}
.marquee-group span { padding: 0 34px; }
.marquee-group i {
  display: inline-block;
  width: 7px; height: 7px;
  margin: 0 4px;
  background: var(--primary);
  border-radius: 1px;
  transform: rotate(45deg);
}
@keyframes marq { to { transform: translateX(-50%); } }

/* ── Phone mockup (Android) + halo ──────────────────────── */
.phone-stage {
  position: relative;
  padding: 120px 0 140px;
  display: flex;
  justify-content: center;
  perspective: 1400px;
  overflow: clip;
}
.halo {
  position: absolute;
  top: 50%; left: 50%;
  width: min(760px, 92vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(var(--primary-rgb), 0.13);
  pointer-events: none;
}
.halo::before {
  content: '';
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.06), transparent 70%);
}
.halo::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 80%, rgba(var(--primary-rgb), 0.55) 93%, transparent 100%);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: spin 16s linear infinite;
}
.halo-2 {
  position: absolute;
  top: 50%; left: 50%;
  width: min(960px, 120vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.phone-wrap { position: relative; will-change: transform; }
.phone {
  position: relative;
  width: 272px;
  aspect-ratio: 9 / 19.3;
  border-radius: 38px;
  background: linear-gradient(160deg, #262631, #101018 60%);
  padding: 3px;
  box-shadow:
    0 40px 90px -24px rgba(0, 0, 0, 0.85),
    0 12px 36px -8px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}
.phone::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 38px;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.02) 40%, rgba(255, 255, 255, 0.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 5;
}
.screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 35px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(var(--primary-rgb), 0.08), transparent 60%),
    linear-gradient(180deg, #0e0e1b 0%, #090912 100%);
  overflow: hidden;
  border: 7px solid #050508;
}
.punch {
  position: absolute;
  top: 11px; left: 50%;
  transform: translateX(-50%);
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #000;
  box-shadow: 0 0 0 2px #14141c, inset 0 0 2px 1px rgba(70, 90, 160, 0.8);
  z-index: 40;
}
.side-btn { position: absolute; width: 3px; border-radius: 3px; background: linear-gradient(90deg, #3a3a46, #23232d); z-index: -1; }
.side-btn.power { right: -3px; top: 130px; height: 62px; }
.side-btn.vol-up { left: -3px; top: 108px; height: 44px; }
.side-btn.vol-dn { left: -3px; top: 160px; height: 44px; }

.p-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px 0;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  z-index: 30;
}
.p-status .icons { display: flex; align-items: center; gap: 5px; }
.p-status svg { width: 12px; height: 12px; fill: rgba(255, 255, 255, 0.92); }

.p-app { position: absolute; inset: 34px 0 0; padding: 8px 10px 0; display: flex; flex-direction: column; }
.p-search {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 9px;
}
.p-search svg { width: 10px; height: 10px; stroke: var(--muted); }
.p-tabs { display: flex; gap: 5px; margin-bottom: 9px; }
.p-tabs span {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 9px;
  border-radius: 6px;
}
.p-tabs span.on { background: var(--primary); color: var(--on-primary); font-weight: 700; }
.p-cards { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.p-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 9px;
}
.p-card.playing { background: rgba(var(--primary-rgb), 0.09); border-color: rgba(var(--primary-rgb), 0.3); }
.p-play {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}
.p-play svg { width: 12px; height: 12px; }
.p-card.playing .p-play { background: var(--primary); color: var(--on-primary); }
.p-info { flex: 1; min-width: 0; }
.p-name { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-meta { font-size: 9.5px; color: var(--muted); margin-top: 1px; }
.p-eq { display: flex; gap: 2px; align-items: flex-end; height: 13px; }
.p-eq i { width: 2.5px; border-radius: 1px; background: var(--primary); display: block; }
.p-eq i:nth-child(1) { height: 55%; }
.p-eq i:nth-child(2) { height: 100%; }
.p-eq i:nth-child(3) { height: 40%; }
.p-card.playing .p-eq i { animation: eq 1.3s ease-in-out infinite; transform-origin: bottom; }
.p-card.playing .p-eq i:nth-child(2) { animation-delay: 0.22s; }
.p-card.playing .p-eq i:nth-child(3) { animation-delay: 0.44s; }
@keyframes eq {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}
.p-prog { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.09); margin-top: 5px; overflow: hidden; }
.p-prog i { display: block; height: 100%; width: 62%; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.p-gesture { width: 72px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.28); margin: 7px auto 8px; }
.phone-glow {
  position: absolute;
  inset: auto 0 -40px;
  height: 180px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(var(--primary-rgb), 0.13), transparent 75%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}

/* ── Features — mono-indexed ledger ─────────────────────── */
.f-list { border-bottom: 1px solid var(--hairline); }
.f-row {
  display: grid;
  grid-template-columns: 150px 1.05fr 0.95fr 300px;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: 46px 0;
  border-top: 1px solid var(--hairline);
  position: relative;
  transition: background 0.35s;
}
.f-row:hover { background: rgba(255, 255, 255, 0.018); }
.f-ix { font-family: var(--font-mono); align-self: start; padding-top: 6px; }
.f-ix .n {
  display: block;
  font-size: 0.8rem;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.f-ix .t {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--muted);
}
.f-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.7vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 14px;
  transition: color 0.3s;
}
.f-row:hover .f-text h3 { color: var(--primary-light); }
.f-text p { color: var(--muted); font-size: 0.98rem; line-height: 1.7; max-width: 42ch; }

.f-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.006) 70%);
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.f-media::before {
  content: '';
  position: absolute;
  width: 60%; height: 60%;
  top: -20%; right: -15%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.m-layer { will-change: transform; transition: transform 0.5s var(--ease-out); }
.f-row:hover .m-layer { transform: translateY(-5px) scale(1.02); }

.m-search { width: 78%; display: flex; flex-direction: column; gap: 11px; }
.m-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  font-size: 0.88rem;
  color: var(--text);
  box-shadow: 0 10px 34px -12px rgba(var(--primary-rgb), 0.35);
}
.m-field svg { width: 15px; height: 15px; stroke: var(--primary); flex-shrink: 0; }
.m-caret { width: 1.5px; height: 1.05em; background: var(--primary); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.m-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.m-chips span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  padding: 5px 11px;
  border-radius: var(--r-sm);
}
.m-chips span.hl { color: var(--primary); border-color: rgba(var(--primary-rgb), 0.4); background: rgba(var(--primary-rgb), 0.08); }

.m-sources { width: 80%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-src {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.m-src b { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; }
.m-src small { font-family: var(--font-mono); font-size: 0.6rem; color: var(--muted); letter-spacing: 0.1em; }

.m-theme { width: 78%; display: flex; flex-direction: column; gap: 12px; }
.m-wall {
  height: 100px;
  border-radius: var(--r-sm);
  background:
    radial-gradient(80% 100% at 15% 15%, #f06292 0%, transparent 55%),
    radial-gradient(90% 100% at 85% 20%, #42a5f5 0%, transparent 60%),
    radial-gradient(90% 120% at 50% 100%, #ffb74d 0%, transparent 65%),
    #1a1a30;
  border: 1px solid var(--hairline);
}
.m-dots { display: flex; justify-content: space-between; align-items: center; }
.m-dots i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.15); }
.m-dots i:nth-child(1) { background: #ffb74d; }
.m-dots i:nth-child(2) { background: #42a5f5; }
.m-dots i:nth-child(3) { background: #f06292; }
.m-dots i:nth-child(4) { background: #66bb6a; }
.m-dots small { font-family: var(--font-mono); font-size: 0.6rem; color: var(--muted); letter-spacing: 0.2em; }

.m-week { width: 80%; display: flex; flex-direction: column; gap: 14px; }
.m-bars { display: flex; align-items: flex-end; gap: 8px; height: 84px; }
.m-bars i { flex: 1; border-radius: 3px 3px 1px 1px; background: rgba(255, 255, 255, 0.1); }
.m-bars i.hot { background: linear-gradient(180deg, var(--primary), var(--primary-d)); box-shadow: 0 6px 20px -4px rgba(var(--primary-rgb), 0.5); }
.m-bars i:nth-child(1) { height: 34%; }
.m-bars i:nth-child(2) { height: 48%; }
.m-bars i:nth-child(3) { height: 40%; }
.m-bars i:nth-child(4) { height: 62%; }
.m-bars i:nth-child(5) { height: 52%; }
.m-bars i:nth-child(6) { height: 44%; }
.m-bars i:nth-child(7) { height: 100%; }
.m-week small { font-size: 0.76rem; color: var(--muted); text-align: center; display: block; }
.m-week small b { color: var(--primary); font-weight: 700; }

.m-shield { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.m-shield svg { width: 72px; height: 72px; stroke: var(--primary); filter: drop-shadow(0 8px 30px rgba(var(--primary-rgb), 0.35)); }
.m-ring {
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  animation: radar 2.6s var(--ease-out) infinite;
}
.m-ring:nth-child(2) { animation-delay: 0.8s; }
.m-ring:nth-child(3) { animation-delay: 1.6s; }
@keyframes radar {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(2.6); opacity: 0; }
}

.m-size { width: 78%; display: flex; flex-direction: column; gap: 12px; }
.m-size .big { font-family: var(--font-display); font-size: 2.2rem; font-weight: 900; letter-spacing: -0.03em; }
.m-size .big small { font-size: 0.95rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.m-bar { height: 8px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.m-bar i {
  display: block;
  width: 2.5%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--good));
  box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.6);
}
.m-size small { font-size: 0.72rem; color: var(--muted); }
.m-size small b { color: var(--good); }

/* ── Stats — hairline ledger of huge numerals ───────────── */
.stats-row {
  margin-top: 120px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stat { text-align: left; padding: 44px 28px; position: relative; }
.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 1px;
  background: var(--hairline);
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.6vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat .num i { font-style: normal; color: var(--primary); }
.stat .label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--muted);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-top: 14px;
}

/* ── How it works — cards + drawn connectors ────────────── */
.how { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.006));
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 40px 30px;
  position: relative;
  overflow: visible;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.step:hover { transform: translateY(-6px); border-color: rgba(var(--primary-rgb), 0.25); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.step .num {
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.07);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  margin-bottom: 22px;
}
.step h4 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.94rem; line-height: 1.7; }
.join {
  position: absolute;
  top: 66px;
  right: -25px;
  width: 25px;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.55), rgba(var(--primary-rgb), 0.12));
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 2;
}

/* ── Install ────────────────────────────────────────────── */
.install-steps { display: flex; justify-content: center; max-width: 860px; margin: 0 auto; }
.install-step { flex: 1; text-align: left; padding: 0 28px; position: relative; }
.install-step + .install-step::before {
  content: '';
  position: absolute;
  top: 22px; left: -1px;
  width: 26px; height: 1px;
  background: rgba(var(--primary-rgb), 0.3);
}
.install-step .step-num {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.06);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
}
.install-step h4 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.install-step p { color: var(--muted); font-size: 0.88rem; line-height: 1.65; max-width: 250px; }
/* ── Install CTA — the vault button (monolithic centerpiece) ── */
.install-cta {
  position: relative;
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
/* breathing halo behind the button */
.install-cta::before {
  content: '';
  position: absolute;
  top: 37%; left: 50%;
  width: 480px; height: 150px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(var(--primary-rgb), 0.16), transparent 72%);
  animation: vault-breathe 3.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes vault-breathe {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.14); }
}
/* beam wrapper — an orbiting light runs around the border */
.btn-vault {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 2px;
  border-radius: 14px;
  text-decoration: none;
  background: conic-gradient(from var(--beam, 0deg),
    transparent 0deg, transparent 295deg,
    rgba(255, 255, 255, 0.95) 325deg,
    var(--primary-light) 342deg,
    transparent 360deg);
  animation: vault-beam 4.5s linear infinite;
}
@property --beam {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes vault-beam { to { --beam: 360deg; } }
/* the face — big amber slab with beveled, machined depth */
.bv-face {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 25px 62px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 46%, var(--primary-d) 100%);
  color: var(--on-primary);
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    0 6px 20px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(var(--primary-rgb), 0.5),
    0 0 44px rgba(var(--primary-rgb), 0.22);
  transition: box-shadow 0.25s var(--ease-out), filter 0.25s var(--ease-out), transform 0.2s var(--ease-out);
}
.bv-face svg { flex-shrink: 0; transition: transform 0.35s var(--ease-out); }
.btn-vault:hover .bv-face {
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(var(--primary-rgb), 0.8),
    0 0 66px rgba(var(--primary-rgb), 0.42);
}
.btn-vault:hover .bv-face svg { transform: translateY(3px); }
.btn-vault:active .bv-face { transform: scale(0.97); }
/* sheen sweep on hover — clipped inside the face */
.bv-face::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -80%;
  width: 55%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s var(--ease-out);
}
.btn-vault:hover .bv-face::after { left: 130%; }
/* mono metadata line flanked by hairlines */
.install-note {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.install-note::before, .install-note::after {
  content: '';
  width: 44px; height: 1px;
  background: var(--hairline-strong);
}
@media (max-width: 560px) {
  .bv-face { padding: 20px 38px; font-size: 1.1rem; }
  .install-cta::before { width: 320px; height: 120px; }
}

/* ── What's new — stroke icons, no emoji ────────────────── */
.new-features {
  padding: 64px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(60% 90% at 90% 0%, rgba(var(--accent-rgb), 0.045), transparent 60%),
    radial-gradient(50% 80% at 5% 100%, rgba(var(--primary-rgb), 0.045), transparent 60%),
    var(--surface);
  border: 1px solid var(--hairline);
}
.new-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 44px; margin-top: 48px; }
.new-feature { display: flex; gap: 16px; align-items: flex-start; }
.new-feature .icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(var(--primary-rgb), 0.06);
  border: 1px solid rgba(var(--primary-rgb), 0.18);
}
.new-feature .icon svg { width: 20px; height: 20px; stroke: var(--primary); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.new-feature h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 5px; }
.new-feature p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.block.new { padding-bottom: 150px; }

/* ── Footer — giant outlined wordmark ───────────────────── */
footer {
  border-top: 1px solid var(--hairline);
  padding: 80px 0 40px;
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
  overflow: clip;
}
.foot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.foot-links a:hover { color: var(--primary); }
.foot-links a svg { width: 11px; height: 11px; transition: transform 0.25s var(--ease-out); }
.foot-links a:hover svg { transform: translate(2px, -2px); }
.foot-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.4rem, 14.2vw, 13.5rem);
  line-height: 0.85;
  letter-spacing: -0.045em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 242, 247, 0.3);
  user-select: none;
  white-space: nowrap;
  transition: color 0.6s, -webkit-text-stroke-color 0.6s;
  margin: 16px 0 48px;
}
.foot-mark:hover { color: var(--primary); -webkit-text-stroke-color: transparent; }
.foot-sub {
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Theme switcher ─────────────────────────────────────── */
.theme-switcher {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 150;
  display: flex;
  gap: 9px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: rgba(10, 10, 20, 0.75);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.theme-dot {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s var(--ease-out), border-color 0.2s;
}
.theme-dot:hover { transform: scale(1.2) rotate(45deg); }
.theme-dot.active { border-color: rgba(255, 255, 255, 0.6); }
.theme-dot[data-theme="amber"] { background: #ffb74d; }
.theme-dot[data-theme="blue"]  { background: #42a5f5; }
.theme-dot[data-theme="green"] { background: #66bb6a; }
.theme-dot[data-theme="rose"]  { background: #f06292; }

/* ── Reveal utility ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; align-items: start; }
  .spec { border-left: none; padding-left: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; max-width: 640px; }
  .spec-row:first-child { padding-top: 13px; }
  .f-row { grid-template-columns: 1fr; gap: 22px; padding: 40px 0; }
  .f-ix { display: flex; align-items: baseline; gap: 14px; padding-top: 0; }
  .f-ix .n { margin-bottom: 0; }
  .f-media { max-width: 560px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .steps { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .join { display: none; }
  .new-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-mark { white-space: normal; }
}
@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-inner { padding: 14px 20px; }
  section.block { padding: 92px 0; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 64px); }
  .hero h1 { margin-bottom: 28px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .spec { grid-template-columns: 1fr; }
  .install-steps { flex-direction: column; gap: 36px; }
  .install-step + .install-step::before { display: none; }
  .new-features { padding: 32px 24px; }
  .new-grid { grid-template-columns: 1fr; gap: 26px; margin-top: 32px; }
  .stats-row { margin-top: 84px; }
  .stat { padding: 30px 14px; }
  .phone { width: 238px; }
  .marquee-group { font-size: 0.68rem; }
}
@media (max-width: 420px) {
  .stat .num { font-size: 2rem; }
  .phone { width: 216px; }
}

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal-02] { visibility: visible !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .join { transform: scaleX(1) !important; }
  .m-caret, .m-ring, .halo::after, .hero-badge .dot { animation: none !important; }
  .marquee-track { animation: none !important; }
  html { scroll-behavior: auto !important; }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: auto !important; }
  .cursor-x, .cursor-y, .cursor-mark, .cursor-reticle { display: none !important; }
}
