/* ==========================================================================
   Subcurrent: "The Dive" theme
   --------------------------------------------------------------------------
   Concept: price is the calm surface; positioning is the current underneath.
   The page is a dive: it gets deeper (darker) as you scroll, a depth gauge
   runs along the side, and a live WebGL ocean moves in the background.

   Colours live in :root. One font (Sora). Cyan is the brand colour, taken
   from the logo. Green / red are only used inside charts.
   ========================================================================== */

:root {
  /* Water */
  --bg: #02060D;
  --bg-2: #040B16;
  --surface: rgba(8, 20, 36, 0.72);
  --surface-solid: #07121F;
  --surface-2: rgba(14, 32, 54, 0.75);
  --border: rgba(110, 190, 255, 0.12);
  --border-strong: rgba(110, 190, 255, 0.22);

  /* Text */
  --text: #E8F4FF;
  --text-muted: #9AB0C8;
  --text-faint: #7189A4;

  /* Brand cyan (from the logo) */
  --accent: #2EC5F6;
  --accent-hover: #7DDCFF;
  --accent-deep: #0B7FD9;
  --accent-soft: rgba(46, 197, 246, 0.10);
  --accent-line: rgba(46, 197, 246, 0.38);
  --accent-glow: rgba(46, 197, 246, 0.45);
  --accent-ink: #011522;
  --grad: linear-gradient(120deg, #7DDCFF 0%, #2EC5F6 40%, #0B7FD9 100%);

  /* Chart-only colours */
  --up: #3FD69B;
  --down: #F0605A;
  --cool: #6E8CFF;
  --regime-riskon: rgba(63, 214, 155, 0.11);
  --regime-neutral: rgba(154, 176, 200, 0.05);
  --regime-overheated: rgba(240, 96, 90, 0.13);
  --regime-washed: rgba(110, 140, 255, 0.15);

  /* Shape & rhythm */
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: 20px;
  --header-h: 68px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
  --font: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--bg); }
body {
  margin: 0;
  background: radial-gradient(ellipse 120% 70% at 50% -10%, #06223D 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body { position: relative; z-index: 0; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--accent-hover); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.03em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 7vw, 5.4rem); letter-spacing: -0.045em; line-height: 1.02; }
h2 { font-size: clamp(1.8rem, 4.2vw, 3.1rem); letter-spacing: -0.04em; }
h3 { font-size: 1.12rem; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.tabular { font-variant-numeric: tabular-nums; }
::selection { background: rgba(46, 197, 246, 0.35); color: #fff; }

:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Ocean background (WebGL canvas, made by fx.js) ---------- */
#ocean {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -2;
  pointer-events: none; opacity: 0; transition: opacity 1.2s ease;
}
#ocean.on { opacity: 1; }
#cursor-light {
  position: fixed; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px;
  border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(46, 197, 246, 0.10) 0%, rgba(46, 197, 246, 0.03) 35%, transparent 65%);
  will-change: transform; opacity: 0; transition: opacity 0.4s;
}
#cursor-light.on { opacity: 1; }

/* ---------- Depth gauge (desktop) ---------- */
.depth-gauge {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: none; flex-direction: column; align-items: flex-end; gap: 10px;
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint);
  pointer-events: none; user-select: none;
}
@media (min-width: 1420px) { .depth-gauge { display: flex; } }
.depth-gauge .dg-value { font-size: 0.95rem; letter-spacing: 0.04em; text-transform: none; color: var(--text); font-variant-numeric: tabular-nums; }
.depth-gauge .dg-value span { color: var(--accent); }
.depth-gauge .dg-zone { color: var(--accent-hover); min-height: 1em; transition: opacity 0.3s; }
.depth-gauge .dg-track {
  position: relative; width: 22px; height: 220px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent);
          mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent);
}
.depth-gauge .dg-ticks {
  position: absolute; right: 0; left: 0; top: 0; height: 2000px;
  background:
    repeating-linear-gradient(to bottom, rgba(154, 176, 200, 0.55) 0 1px, transparent 1px 50px) right / 22px 100% no-repeat,
    repeating-linear-gradient(to bottom, rgba(154, 176, 200, 0.25) 0 1px, transparent 1px 10px) right / 10px 100% no-repeat;
  will-change: transform;
}
.depth-gauge .dg-needle { position: absolute; right: 0; top: 50%; width: 22px; height: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }

/* ---------- Intro (first visit, home only) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: #01040A; transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.intro.done { opacity: 0; visibility: hidden; }
.intro-logo { position: relative; width: min(42vw, 220px); aspect-ratio: 1; }
.intro-logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-logo .half-top { -webkit-mask-image: linear-gradient(#000 41%, transparent 47%); mask-image: linear-gradient(#000 41%, transparent 47%); animation: intro-top 1.1s var(--ease) both; }
.intro-logo .half-bot { -webkit-mask-image: linear-gradient(transparent 48%, #000 53%); mask-image: linear-gradient(transparent 48%, #000 53%); animation: intro-bot 1.1s var(--ease) both; }
.intro-logo .flash {
  position: absolute; left: 50%; top: 47.6%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: #E6FBFF; box-shadow: 0 0 30px 10px rgba(125, 220, 255, 0.8); opacity: 0;
  animation: intro-flash 1.4s 0.95s ease-out both;
}
.intro-logo .ring {
  position: absolute; left: 50%; top: 47.6%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  border: 1px solid rgba(125, 220, 255, 0.7); opacity: 0; animation: intro-ring 1.6s 1.05s ease-out both;
}
.intro-logo .ring.r2 { animation-delay: 1.3s; }
@keyframes intro-top { from { transform: translateY(-45%); opacity: 0; filter: blur(8px); } to { transform: none; opacity: 1; filter: none; } }
@keyframes intro-bot { from { transform: translateY(45%); opacity: 0; filter: blur(8px); } to { transform: none; opacity: 1; filter: none; } }
@keyframes intro-flash { 0% { opacity: 0; transform: scale(0.2); } 25% { opacity: 1; transform: scale(1.6); } 100% { opacity: 0.9; transform: scale(1); } }
@keyframes intro-ring { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(28); } }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; }
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(4, 14, 28, 0.55) 15%, rgba(4, 14, 28, 0.55) 85%, transparent); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(46, 197, 246, 0.15), 0 0 14px var(--accent-glow);
}
.eyebrow .depth { color: var(--text-faint); letter-spacing: 0.14em; text-transform: none; }

.grad-text {
  background: var(--grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-flow 8s ease-in-out infinite alternate;
}
@keyframes grad-flow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--text-muted); line-height: 1.6; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.small { font-size: 0.875rem; }

.grid { display: grid; gap: 20px; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 0.95rem; line-height: 1; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; overflow: hidden; isolation: isolate;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.3s, transform 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad); color: var(--accent-ink);
  box-shadow: 0 0 0 1px rgba(125, 220, 255, 0.4) inset, 0 10px 40px -10px var(--accent-glow);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform 0.8s var(--ease);
}
.btn-primary:hover { color: var(--accent-ink); box-shadow: 0 0 0 1px rgba(125, 220, 255, 0.6) inset, 0 14px 50px -8px var(--accent-glow); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: rgba(8, 22, 40, 0.5); color: var(--text); border-color: var(--border-strong); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--accent-line); color: var(--text); background: var(--accent-soft); box-shadow: 0 0 30px -10px var(--accent-glow); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.86rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.65; cursor: progress; }
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Badges & labels ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.01em;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--text-muted); background: rgba(8, 22, 40, 0.6);
}
.badge-accent { color: var(--accent-hover); border-color: var(--accent-line); background: var(--accent-soft); }
.badge-solid { color: var(--accent-ink); background: var(--grad); border-color: transparent; font-weight: 600; }
.badge .live { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(46, 197, 246, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(46, 197, 246, 0); } }

.example-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em;
  color: var(--text-faint); text-transform: uppercase;
}
.example-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; }

.chip {
  display: inline-block; font-size: 0.72rem; padding: 4px 10px; border-radius: 999px;
  background: rgba(14, 32, 54, 0.8); color: var(--text-muted); border: 1px solid var(--border);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; height: var(--header-h);
  background: linear-gradient(180deg, rgba(2, 6, 13, 0.85), rgba(2, 6, 13, 0.55));
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
#site-header { min-height: var(--header-h); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.12rem; letter-spacing: -0.03em; }
.logo:hover { color: var(--text); }
.logo img { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 0 10px rgba(46, 197, 246, 0.45)); transition: transform 0.6s var(--ease); }
.logo:hover img { transform: rotate(-180deg); }

.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a {
  position: relative; display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--text-muted); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(46, 197, 246, 0.07); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
.header-cta { display: none; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 999px;
  background: rgba(8, 22, 40, 0.6); border: 1px solid var(--border-strong); color: var(--text); cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 59;
  background: rgba(2, 6, 13, 0.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 20px var(--gutter) 32px; display: none; overflow-y: auto;
}
.mobile-menu.open { display: block; animation: menu-in 0.35s var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-menu ul { list-style: none; margin: 0 0 24px; padding: 0; }
.mobile-menu a.mobile-link {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--border);
  color: var(--text); text-decoration: none; font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em;
}
.mobile-menu a.mobile-link[aria-current="page"] { color: var(--accent); }
@media (min-width: 980px) {
  .nav, .header-cta { display: flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: calc(100svh - var(--header-h)); display: flex; align-items: center;
  padding: clamp(40px, 7vw, 80px) 0 clamp(80px, 10vw, 120px);
}
.hero-inner { text-align: center; max-width: 980px; margin: 0 auto; position: relative; }
.hero-mark { position: relative; width: clamp(76px, 10vw, 112px); aspect-ratio: 1; margin: 0 auto 26px; }
.hero-mark img { width: 100%; height: 100%; filter: drop-shadow(0 0 30px rgba(46, 197, 246, 0.5)); animation: bob 6s ease-in-out infinite; }
.hero-mark .sonar-ring { position: absolute; left: 50%; top: 47.6%; width: 100%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(46, 197, 246, 0.45); transform: translate(-50%, -50%) scale(0.2); opacity: 0; animation: ping 3.6s ease-out infinite; }
.hero-mark .sonar-ring:nth-child(3) { animation-delay: 1.2s; }
.hero-mark .sonar-ring:nth-child(4) { animation-delay: 2.4s; }
@keyframes ping { 0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0.9; } 100% { transform: translate(-50%, -50%) scale(3.2); opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero h1 { margin: 22px 0 24px; }
.hero h1 .line { display: block; }
.hero h1 .dim { color: rgba(232, 244, 255, 0.55); }
.hero .lead { max-width: 660px; margin: 0 auto 36px; }
.hero-form { max-width: 600px; margin: 0 auto; text-align: left; }
.hero-actions { margin-top: 18px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 18px; color: var(--text-faint); font-size: 0.82rem; display: flex; gap: 8px 18px; justify-content: center; flex-wrap: wrap; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.64rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-faint); text-decoration: none;
}
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--accent), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: -1px; width: 3px; height: 12px; border-radius: 2px; background: #fff; box-shadow: 0 0 8px var(--accent); animation: drip 2.2s ease-in infinite; }
@keyframes drip { from { top: -12px; } to { top: 44px; } }
@media (max-height: 760px) { .scroll-cue { display: none; } }

/* Words that rise to the surface */
.js [data-surface] .w { display: inline-block; opacity: 0; transform: translateY(0.55em); filter: blur(10px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--i) * 70ms + var(--d, 0ms)); }
.js [data-surface].risen .w { opacity: 1; transform: none; filter: none; }

/* ---------- Marquee (data stream) ---------- */
.stream { position: relative; overflow: hidden; padding: 22px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(3, 10, 20, 0.6);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.stream-track { display: flex; width: max-content; animation: stream 38s linear infinite; }
.stream-track span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-size: clamp(1rem, 2.2vw, 1.4rem); font-weight: 300; letter-spacing: -0.01em; color: var(--text-muted); white-space: nowrap; }
.stream-track span b { font-weight: 600; color: var(--text); }
.stream-track span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
@keyframes stream { to { transform: translateX(-50%); } }
.stream:hover .stream-track { animation-play-state: paused; }

/* ---------- Sonar (the lens chart) ---------- */
.sonar { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 1080px) { .sonar { grid-template-columns: 1fr 340px; } }
.sonar-chart {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-strong); background: rgba(2, 8, 16, 0.85); box-shadow: var(--shadow), 0 0 0 1px rgba(46, 197, 246, 0.05);
}
.sonar-bar, .mock-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 16px; border-bottom: 1px solid var(--border); font-size: 0.78rem; color: var(--text-muted);
  background: rgba(5, 14, 26, 0.9);
}
.sonar-bar .sym, .mock-bar .sym { color: var(--text); font-weight: 600; }
.sonar-bar .sep, .mock-bar .sep { width: 1px; height: 14px; background: var(--border-strong); }
.sonar-bar .ind, .mock-bar .ind { display: inline-flex; align-items: center; gap: 6px; }
.sonar-bar .ind i, .mock-bar .ind i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.sonar-bar .example-label, .mock-bar .example-label { margin-left: auto; }

.sonar-stage { position: relative; overflow: hidden; height: clamp(300px, 46vw, 500px); cursor: crosshair; touch-action: pan-y; outline: none; --x: 70%; --y: 50%; --r: 120px; }
.sonar-stage:focus-visible { box-shadow: inset 0 0 0 2px var(--accent-hover); }
.sonar-stage .layer { position: absolute; inset: 0; }
.sonar-stage .layer svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sonar-stage .deep {
  background: #020810;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 72%, transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 72%, transparent 100%);
}
.sonar-stage.revealed .deep { -webkit-mask-image: none; mask-image: none; }
.sonar-stage.revealed .lens { opacity: 0; }
.sonar-stage.revealed .surface-label { visibility: hidden; }
.sonar-stage .surface-label, .sonar-stage .deep-label {
  position: absolute; top: 14px; left: 16px; z-index: 5; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint);
}
.sonar-stage .deep-label { color: var(--accent); }
.lens {
  position: absolute; left: var(--x); top: var(--y); width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; z-index: 6; transition: opacity 0.4s;
  box-shadow: 0 0 0 1px rgba(125, 220, 255, 0.55), 0 0 40px -6px var(--accent-glow), inset 0 0 40px -10px var(--accent-glow);
}
.lens::before {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 82%, rgba(125, 220, 255, 0.85) 96%, transparent 100%);
  -webkit-mask: radial-gradient(circle, transparent calc(100% - 3px), #000 calc(100% - 2px));
          mask: radial-gradient(circle, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: spin 3.2s linear infinite;
}
.lens::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    linear-gradient(rgba(125, 220, 255, 0.35), rgba(125, 220, 255, 0.35)) center / 1px 22px no-repeat,
    linear-gradient(rgba(125, 220, 255, 0.35), rgba(125, 220, 255, 0.35)) center / 22px 1px no-repeat;
}
.lens .lens-tag {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, 10px); white-space: nowrap;
  font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-hover);
  background: rgba(2, 8, 16, 0.85); padding: 4px 9px; border-radius: 999px; border: 1px solid var(--accent-line);
}
@keyframes spin { to { transform: rotate(360deg); } }

.sonar-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-faint); background: rgba(5, 14, 26, 0.9); }
.sonar-controls .hint { display: inline-flex; align-items: center; gap: 8px; }
.toggle {
  display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px 0; color: var(--text-muted); font: inherit; font-size: 0.8rem; cursor: pointer;
}
.toggle .sw { width: 36px; height: 20px; border-radius: 999px; background: rgba(14, 32, 54, 0.9); border: 1px solid var(--border-strong); position: relative; transition: background 0.25s; }
.toggle .sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--text-muted); transition: transform 0.3s var(--ease), background 0.25s; }
.toggle[aria-pressed="true"] { color: var(--text); }
.toggle[aria-pressed="true"] .sw { background: rgba(46, 197, 246, 0.25); border-color: var(--accent-line); }
.toggle[aria-pressed="true"] .sw::after { transform: translateX(16px); background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.contact {
  position: absolute; transform: translate(-50%, -50%); z-index: 4; pointer-events: none;
}
.contact .pin { width: 12px; height: 12px; border-radius: 50%; background: #02101C; border: 2px solid var(--accent-hover); box-shadow: 0 0 14px var(--accent); }
.contact .pin::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; border: 1px solid var(--accent-hover); animation: contact-ping 2.4s ease-out infinite; }
@keyframes contact-ping { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(4); opacity: 0; } }
.contact .tag {
  position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: 0.68rem; font-weight: 600; padding: 4px 9px; border-radius: 999px;
  background: rgba(2, 10, 20, 0.92); border: 1px solid var(--accent-line); color: var(--text);
}
.contact.above .tag { bottom: 18px; }
.contact.below .tag { top: 18px; }
.contact.right .tag { left: auto; right: -8px; transform: none; }
.contact.hit .pin { background: var(--accent-hover); }
.contact.hit .tag { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

/* Readout (instrument panel next to the sonar) */
.readout {
  position: relative; border-radius: var(--radius); padding: 22px; overflow: hidden;
  border: 1px solid var(--border-strong); background: linear-gradient(180deg, rgba(10, 30, 52, 0.85), rgba(3, 10, 20, 0.92));
  display: flex; flex-direction: column; gap: 16px;
}
.readout::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(125, 220, 255, 0.025) 0 1px, transparent 1px 4px);
}
.ro-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-faint); }
.ro-head .ro-status { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.ro-head .ro-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: live 1.6s infinite; }
.ro-name { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; margin: 0; line-height: 1.1; transition: opacity 0.25s; }
.ro-meaning { color: var(--text-muted); font-size: 0.9rem; margin: -6px 0 0; min-height: 2.9em; }
.ro-rows { display: grid; gap: 14px; }
.ro-row .ro-label { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; }
.ro-row .ro-label b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.ro-track { position: relative; height: 8px; border-radius: 999px; background: rgba(110, 190, 255, 0.08); overflow: visible; }
.ro-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--grad); box-shadow: 0 0 14px -2px var(--accent-glow); width: 0; transition: width 0.8s var(--ease); }
.ro-base { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 2px; background: var(--text); opacity: 0.7; transition: left 0.8s var(--ease); }
.ro-legend { display: flex; gap: 16px; font-size: 0.7rem; color: var(--text-faint); }
.ro-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ro-legend i { width: 14px; height: 6px; border-radius: 3px; background: var(--grad); }
.ro-legend i.b { width: 2px; height: 12px; background: var(--text); opacity: 0.7; }
.ro-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ro-stats div { padding: 10px; border-radius: 10px; background: rgba(110, 190, 255, 0.05); border: 1px solid var(--border); }
.ro-stats b { display: block; font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ro-stats span { display: block; font-size: 0.66rem; line-height: 1.35; margin-top: 2px; color: var(--text-faint); letter-spacing: 0.02em; }
.readout .example-label { margin-top: auto; }
.ro-note { margin: -4px 0 0; font-size: 0.7rem; line-height: 1.45; color: var(--text-faint); }

/* ---------- How it works (current line) ---------- */
.flow { position: relative; display: grid; gap: 20px; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 90px; } }
.flow-path { display: none; position: absolute; left: 0; right: 0; top: 0; height: 120px; pointer-events: none; }
@media (min-width: 900px) { .flow-path { display: block; } }
.flow-path path { fill: none; stroke-linecap: round; }
.flow-path .base { stroke: rgba(110, 190, 255, 0.12); stroke-width: 2; }
.flow-path .lit { stroke: url(#flowgrad); stroke-width: 2.5; filter: drop-shadow(0 0 6px rgba(46, 197, 246, 0.8)); stroke-dasharray: 1; stroke-dashoffset: var(--flow, 1); }
.flow-step { position: relative; }
.flow-step .node {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 20px;
  font-weight: 600; font-size: 1rem; color: var(--text-muted);
  background: rgba(4, 14, 28, 0.95); border: 1px solid var(--border-strong);
  transition: color 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.flow-step.lit .node { color: var(--accent-ink); background: var(--grad); border-color: transparent; box-shadow: 0 0 0 6px rgba(46, 197, 246, 0.12), 0 0 34px var(--accent-glow); }
.flow-step h3 { font-size: 1.3rem; }
.flow-step p { color: var(--text-muted); }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

/* Spotlight + tilt (fx.js sets --mx / --my) */
.glow-card { transform-style: preserve-3d; transition: transform 0.5s var(--ease), border-color 0.3s; will-change: transform; }
.glow-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(46, 197, 246, 0.16), transparent 45%);
}
.glow-card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s; padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(125, 220, 255, 0.9), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.glow-card:hover::before, .glow-card:hover::after { opacity: 1; }

.icon-box {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-hover); border: 1px solid var(--accent-line);
  box-shadow: 0 0 24px -8px var(--accent-glow);
}
.icon-box svg { width: 20px; height: 20px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: 16px;
  font-size: 0.85rem; font-weight: 600; color: var(--accent-hover);
  border: 1px solid var(--accent-line); background: var(--accent-soft);
}

/* Setup cards */
.setup-card { display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.setup-card .num { position: absolute; right: 22px; top: 18px; font-size: 0.72rem; letter-spacing: 0.16em; color: var(--text-faint); }
.setup-card h3 { display: flex; align-items: center; gap: 10px; margin: 0; padding-right: 30px; font-size: 1.25rem; }
.setup-card .meaning { color: var(--text-muted); margin: 0; font-size: 0.95rem; }
.setup-card .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mini { position: relative; margin: 4px -6px 0; }
.mini svg { width: 100%; height: 100px; overflow: visible; }
.mini .price { fill: none; stroke: var(--accent-hover); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(46, 197, 246, 0.6)); transition: stroke-dashoffset 1.8s var(--ease) 0.2s; }
.mini .area { opacity: 0; transition: opacity 1.2s ease 0.8s; }
.mini .fbar { transform-origin: center 84px; transform: scaleY(0); transition: transform 0.6s var(--ease); transition-delay: calc(0.6s + var(--i) * 40ms); }
.mini .zero { stroke: rgba(154, 176, 200, 0.25); stroke-dasharray: 2 3; }
.mini .mini-label { display: block; margin: 8px 0 0 6px; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.in .mini .price, .mini.in .price { stroke-dashoffset: 0; }
.in .mini .area, .mini.in .area { opacity: 1; }
.in .mini .fbar, .mini.in .fbar { transform: scaleY(1); }
.odds-snippet {
  margin-top: auto; padding: 14px; border-radius: 12px;
  background: rgba(2, 8, 16, 0.6); border: 1px dashed var(--border-strong); font-size: 0.86rem;
}
.odds-snippet .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.odds-snippet .big { font-size: 1.7rem; font-weight: 600; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.odds-snippet .vs { color: var(--text-muted); font-size: 0.82rem; }
.odds-snippet .meta { color: var(--text-faint); font-size: 0.76rem; margin-top: 2px; }
.odds-snippet .example-label { margin-bottom: 8px; }

/* ---------- Water layers (why) ---------- */
.layers { position: relative; display: grid; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-strong); }
.layer-row {
  position: relative; display: grid; gap: 6px 28px; padding: clamp(22px, 3.5vw, 36px) clamp(20px, 4vw, 44px);
  border-top: 1px solid var(--border);
}
.layer-row:first-child { border-top: 0; background: linear-gradient(180deg, rgba(40, 120, 190, 0.20), rgba(20, 70, 120, 0.12)); }
.layer-row:nth-child(2) { background: linear-gradient(180deg, rgba(12, 46, 84, 0.35), rgba(6, 26, 50, 0.4)); }
.layer-row:nth-child(3) { background: linear-gradient(180deg, rgba(3, 14, 28, 0.85), rgba(1, 6, 13, 0.95)); }
@media (min-width: 820px) { .layer-row { grid-template-columns: 160px 1fr auto; align-items: center; } }
.layer-row .lz { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-faint); }
.layer-row .lz b { display: block; color: var(--text-muted); font-weight: 500; letter-spacing: 0.14em; margin-top: 4px; }
.layer-row h3 { margin: 0 0 4px; font-size: 1.25rem; }
.layer-row p { margin: 0; color: var(--text-muted); }
.layer-row .verdict { font-size: 0.8rem; color: var(--text-faint); white-space: nowrap; }
.layer-row.us { box-shadow: inset 0 0 0 1px var(--accent-line); }
.layer-row.us h3 { color: var(--accent-hover); }
.layer-row.us .verdict { color: var(--accent); }
.layer-row.us::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); box-shadow: 0 0 18px var(--accent);
}
.surface-ripple { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(125, 220, 255, 0.7), transparent); animation: ripple 5s ease-in-out infinite; }
@keyframes ripple { 0%, 100% { opacity: 0.3; transform: scaleX(0.6); } 50% { opacity: 1; transform: scaleX(1); } }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 940px) { .pricing-grid { grid-template-columns: 1fr 1.08fr 1fr; } }
.price-card { display: flex; flex-direction: column; gap: 18px; }
.price-card.featured { background: linear-gradient(180deg, rgba(14, 50, 84, 0.9), rgba(4, 14, 28, 0.95)); border-color: transparent; box-shadow: var(--shadow), 0 0 80px -30px var(--accent-glow); }
.price-card .tier { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.price-card .tier h3 { margin: 0; font-size: 1.05rem; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price .amount { font-size: 3rem; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.price .per { color: var(--text-muted); }
.price-note { color: var(--text-muted); font-size: 0.9rem; margin: -8px 0 0; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.price-card li { display: flex; gap: 10px; font-size: 0.93rem; color: var(--text); }
.price-card li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent); }
.price-card li.off { color: var(--text-faint); }
.price-card li.off svg { color: var(--text-faint); }
.price-card .cta { margin-top: auto; display: grid; gap: 10px; }
.price-card .fine { font-size: 0.78rem; color: var(--text-faint); text-align: center; margin: 0; }

/* Rotating glow border */
.aura { position: relative; isolation: isolate; }
.aura::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; z-index: -1; pointer-events: none;
  background: conic-gradient(from var(--angle, 0deg), rgba(46, 197, 246, 0.05), rgba(125, 220, 255, 0.95), rgba(11, 127, 217, 0.4), rgba(46, 197, 246, 0.05) 40%, rgba(46, 197, 246, 0.05));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: aura 6s linear infinite;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes aura { to { --angle: 360deg; } }

.founding-banner {
  position: relative; display: grid; gap: 28px; align-items: center;
  padding: clamp(26px, 4.5vw, 52px); border-radius: calc(var(--radius) + 6px);
  background: radial-gradient(ellipse 80% 120% at 0% 0%, rgba(46, 197, 246, 0.18), transparent 60%), linear-gradient(180deg, rgba(10, 34, 60, 0.9), rgba(3, 10, 20, 0.95));
  box-shadow: var(--shadow), 0 0 120px -50px var(--accent-glow);
}
@media (min-width: 940px) { .founding-banner { grid-template-columns: 1.1fr 1fr; } }
.founding-banner h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.founding-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.founding-banner > * { min-width: 0; }
@media (max-width: 480px) {
  .founding-facts { grid-template-columns: 1fr; }
  .founding-facts div { display: flex; align-items: baseline; gap: 10px; }
}
.founding-facts div { padding: 14px; border-radius: 14px; background: rgba(2, 8, 16, 0.6); border: 1px solid var(--border); }
.founding-facts strong { display: block; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; }
.founding-facts span { font-size: 0.76rem; color: var(--text-muted); }

/* ---------- Forms (waitlist) ---------- */
.waitlist-form { display: grid; gap: 12px; }
.field-row { display: grid; gap: 10px; }
.field label { display: block; font-size: 0.8rem; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }
.field label .opt { color: var(--text-faint); font-weight: 400; }
.input {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: 12px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: rgba(2, 8, 16, 0.75); border: 1px solid var(--border-strong);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input::placeholder { color: var(--text-faint); }
.input:hover { border-color: rgba(125, 220, 255, 0.35); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(46, 197, 246, 0.14), 0 0 30px -10px var(--accent-glow); background: rgba(2, 10, 20, 0.95); }
.input[aria-invalid="true"] { border-color: var(--down); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; color: var(--text-muted); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; cursor: pointer; }
.form-fine { font-size: 0.76rem; color: var(--text-faint); margin: 0; }
.form-fine a { color: var(--text-muted); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.9rem; border-radius: 12px; padding: 13px 15px; display: none; }
.form-status.show { display: block; animation: menu-in 0.4s var(--ease); }
.form-status.success { background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--text); box-shadow: 0 0 40px -16px var(--accent-glow); }
.form-status.info { background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); }
.form-status.error { background: rgba(240, 96, 90, 0.1); border: 1px solid rgba(240, 96, 90, 0.4); color: #FFDAD7; }
.waitlist-form.done .form-body { display: none; }
.waitlist-card {
  padding: clamp(20px, 3vw, 28px); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10, 30, 52, 0.78), rgba(3, 10, 20, 0.88));
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

/* ---------- Final CTA ---------- */
.final-cta { padding: clamp(90px, 12vw, 160px) 0; position: relative; overflow: hidden; isolation: isolate; }
.final-cta::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 1100px; height: 1100px; transform: translate(-50%, -50%); z-index: -1;
  background: radial-gradient(circle, rgba(46, 197, 246, 0.12), transparent 60%);
}
.final-cta-inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 940px) { .final-cta-inner { grid-template-columns: 1fr 1fr; gap: 64px; } }
.final-mark { position: relative; width: 120px; aspect-ratio: 1; margin-bottom: 26px; }
.final-mark img { width: 100%; height: 100%; filter: drop-shadow(0 0 34px rgba(46, 197, 246, 0.55)); animation: bob 6s ease-in-out infinite; }
.final-mark .sonar-ring { position: absolute; left: 50%; top: 47.6%; width: 100%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(46, 197, 246, 0.45); transform: translate(-50%, -50%) scale(0.2); opacity: 0; animation: ping 3.6s ease-out infinite; }
.final-mark .sonar-ring:nth-child(3) { animation-delay: 1.8s; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: border-color 0.3s, background 0.3s; }
.faq details[open] { border-color: var(--accent-line); background: rgba(10, 30, 52, 0.8); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border-strong); color: var(--accent); font-size: 1.1rem; font-weight: 400; transition: transform 0.3s var(--ease), background 0.3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent-soft); }
.faq .answer { padding: 0 22px 20px; color: var(--text-muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(60px, 10vw, 120px) 0 clamp(28px, 4vw, 48px); position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); max-width: 860px; }
.page-hero .lead { max-width: 700px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-strong); border-radius: var(--radius); background: rgba(3, 10, 20, 0.85); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 780px; }
table.data th, table.data td { padding: 15px 16px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data th { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); background: rgba(8, 22, 40, 0.8); }
table.data td.empty-state { white-space: normal; text-align: center; padding: 64px 20px; border-bottom: 0; }
.empty-state .icon-box { margin: 0 auto 16px; }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--text-muted); max-width: 460px; margin: 0 auto; }
.skeleton-row td span { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(110, 190, 255, 0.06), rgba(110, 190, 255, 0.16), rgba(110, 190, 255, 0.06)); background-size: 200% 100%; animation: shimmer 2.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.filters select {
  min-height: 42px; padding: 0 36px 0 14px; border-radius: 999px; font: inherit; font-size: 0.84rem;
  color: var(--text-muted); background: rgba(3, 10, 20, 0.85); border: 1px solid var(--border-strong);
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-faint) 50%), linear-gradient(135deg, var(--text-faint) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.filters select:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Compare (legacy) ---------- */
.compare { display: grid; gap: 16px; }
@media (min-width: 900px) { .compare { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Indicator sections ---------- */
.indicator { display: grid; gap: 36px; align-items: center; padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--border); }
.indicator:first-of-type { border-top: 0; }
@media (min-width: 1000px) {
  .indicator { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
  .indicator.flip > :first-child { order: 2; }
}
.indicator .badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.indicator ul.ticks { list-style: none; padding: 0; display: grid; gap: 11px; }
.indicator ul.ticks li { display: flex; gap: 10px; color: var(--text-muted); }
.indicator ul.ticks li svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--accent); }
.indicator ul.ticks li strong { color: var(--text); font-weight: 600; }
.later-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .later-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Mock charts (indicators page) ---------- */
.mock { border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; background: rgba(2, 8, 16, 0.88); box-shadow: var(--shadow); position: relative; }
.mock-stage { position: relative; height: clamp(250px, 40vw, 430px); }
.mock-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mock-sub { position: relative; height: clamp(90px, 13vw, 130px); border-top: 1px solid var(--border); }
.mock-sub svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mock-sub .sub-label { position: absolute; left: 12px; top: 8px; font-size: 0.7rem; color: var(--text-faint); z-index: 2; }
.mock-sm .mock-stage { height: clamp(200px, 28vw, 280px); }
.marker { position: absolute; transform: translate(-50%, -50%); z-index: 3; pointer-events: none; }
.marker .pin { width: 11px; height: 11px; border-radius: 50%; background: #02101C; border: 2px solid var(--accent-hover); box-shadow: 0 0 12px var(--accent); }
.marker .tag {
  position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: 0.68rem; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: rgba(2, 10, 20, 0.92); border: 1px solid var(--accent-line); color: var(--text);
}
.marker.above .tag { bottom: 16px; }
.marker.below .tag { top: 16px; }
.marker.right .tag { left: auto; right: -6px; transform: none; }
.marker.active .pin { background: var(--accent-hover); }
.level-tag {
  position: absolute; right: 8px; z-index: 3; white-space: nowrap; pointer-events: none;
  font-size: 0.68rem; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: rgba(2, 10, 20, 0.92); border: 1px solid var(--accent-line); color: var(--text);
}
.odds-panel {
  position: absolute; left: 14px; top: 14px; z-index: 4; width: 252px;
  background: rgba(3, 12, 24, 0.94); border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 12px; font-size: 0.74rem; backdrop-filter: blur(6px);
}
.odds-panel.below { position: static; width: auto; margin: 0; border-radius: 0; border: 0; border-top: 1px solid var(--border); backdrop-filter: none; }
.odds-panel .op-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: var(--text-muted); }
.odds-panel .op-head strong { color: var(--text); font-weight: 600; }
.odds-panel table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.odds-panel th { text-align: right; font-weight: 500; color: var(--text-faint); padding: 3px 0; font-size: 0.66rem; }
.odds-panel th:first-child, .odds-panel td:first-child { text-align: left; }
.odds-panel td { text-align: right; padding: 4px 0; border-top: 1px solid var(--border); color: var(--text-muted); }
.odds-panel td.v { color: var(--text); font-weight: 600; }
.odds-panel .op-foot { margin-top: 8px; color: var(--text-faint); line-height: 1.5; font-size: 0.68rem; }
.odds-panel .op-foot b { color: var(--text-muted); font-weight: 600; }
.odds-panel .example-label { margin-top: 8px; font-size: 0.6rem; }
.regime-key { display: flex; gap: 8px 14px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 0.7rem; color: var(--text-muted); background: rgba(5, 14, 26, 0.9); }
.regime-key span { display: inline-flex; align-items: center; gap: 5px; }
.regime-key i { width: 10px; height: 8px; border-radius: 2px; display: inline-block; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 0.82rem; color: var(--text-muted); }

@media (max-width: 640px) {
  .odds-panel { position: static; width: auto; margin: 0; border-radius: 0; border: 0; border-top: 1px solid var(--border); backdrop-filter: none; }
  .marker .tag, .contact .tag, .level-tag { font-size: 0.6rem; padding: 2px 7px; }
  .mock-bar .example-label, .sonar-bar .example-label { margin-left: 0; width: 100%; }
  .sonar-stage .surface-label, .sonar-stage .deep-label, .lens .lens-tag { display: none; }
}

/* ---------- Access steps ---------- */
.access-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; position: relative; }
.access-steps > li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.access-steps > li::before {
  counter-increment: s; content: counter(s);
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; color: var(--accent-ink); background: var(--grad); box-shadow: 0 0 24px -6px var(--accent-glow);
}
.access-steps h3 { margin: 8px 0 6px; }
.access-steps p { color: var(--text-muted); margin-bottom: 0.6em; }
.access-steps p:last-child { margin-bottom: 0; }
.kbd { font-size: 0.8rem; padding: 2px 8px; border-radius: 6px; background: rgba(14, 32, 54, 0.9); border: 1px solid var(--border-strong); color: var(--text); white-space: nowrap; }
.callout { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--accent-line); background: var(--accent-soft); }
.callout p:last-child { margin-bottom: 0; }
.callout-neutral { border-color: var(--border-strong); background: var(--surface); }

/* ---------- Legal / prose ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose h3 { font-size: 1.05rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-muted); }
.prose strong { color: var(--text); }
.review-flag {
  display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em;
  padding: 4px 10px; border-radius: 999px; color: #FFE7A8; background: rgba(255, 196, 0, 0.1); border: 1px solid rgba(255, 196, 0, 0.4);
}
.placeholder { color: #FFE7A8; background: rgba(255, 196, 0, 0.08); padding: 0 4px; border-radius: 4px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--border); padding: 64px 0 40px; background: rgba(1, 4, 9, 0.92); font-size: 0.9rem; }
.footer-top { display: grid; gap: 36px; }
@media (min-width: 860px) { .footer-top { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-top h4 { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; margin-bottom: 16px; }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-top a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-top a:hover { color: var(--accent-hover); }
.footer-brand p { color: var(--text-muted); max-width: 320px; margin-top: 16px; }
.footer-wordmark {
  margin-top: 56px; font-size: clamp(3.5rem, 15vw, 13rem); font-weight: 600; letter-spacing: -0.06em; line-height: 0.85; text-align: center;
  background: linear-gradient(180deg, rgba(125, 220, 255, 0.22), rgba(46, 197, 246, 0.02) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none;
}
.disclaimer { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 0.8rem; line-height: 1.6; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 18px; color: var(--text-faint); font-size: 0.8rem; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js [data-surface] .w { opacity: 1; transform: none; filter: none; }
  .mini .price { stroke-dashoffset: 0; } .mini .area { opacity: 1; } .mini .fbar { transform: none; }
  .intro { display: none; }
}
