/* ============================================================
   RouteViewNet landing: "The Signal Path"
   Dark theme only by design (the concept depends on the glow).
   ============================================================ */

:root {
  --bg-0: #0B1120;
  --bg-1: #0f172a;
  --bg-2: #1e293b;
  --ink-1: #e2e8f0;
  --ink-2: #94a3b8;
  --signal: #38bdf8;
  --good: #22c55e;
  --warn: #f59e0b;
  --crit: #ef4444;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: 80px;
  --section-gap: 160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background-color: var(--bg-0);
  /* barely-visible dot grid, 24px pitch */
  background-image: radial-gradient(rgba(226, 232, 240, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink-1);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  overflow-x: hidden;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

.section { padding: calc(var(--section-gap) / 2) 0; position: relative; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; }

h2.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 24px;
}

p { max-width: 65ch; }

.section-lede { color: var(--ink-2); margin-bottom: 48px; }

a { color: var(--signal); text-decoration: none; }

/* Link hover: underline draws left to right, never color-only */
.footer-links a, .nav-links a:not(.nav-cta) {
  color: var(--ink-2);
  position: relative;
}
.footer-links a::after, .nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.footer-links a:hover::after, .nav-links a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}
.footer-links a:hover, .nav-links a:not(.nav-cta):hover { color: var(--ink-1); }

/* ============ Preloader ============ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg-0);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader.is-done { display: none; }
/* failsafe: never trap the page if scripts do not load */
.preloader { animation: preloader-failsafe 0s 3.5s forwards; }
@keyframes preloader-failsafe { to { visibility: hidden; } }
.preloader-inner { font-size: 0.95rem; color: var(--ink-2); }
.preloader-text { color: var(--signal); }
.preloader-dots i { font-style: normal; color: var(--signal); }

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  font-size: 0.85rem;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.is-solid {
  background: rgba(11, 17, 32, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
}
.nav-brand {
  color: var(--ink-1);
  font-weight: 700;
  font-size: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-pulse {

  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-2); }
.nav-links a.is-active { color: var(--signal); }
.nav-cta {
  color: var(--bg-0) !important;
  background: var(--signal);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
}
.nav-cta:hover { filter: brightness(1.1); }

/* ============ Global signal line ============ */
.signal-track {
  position: absolute;
  top: 0; left: 0;
  width: var(--gutter);
  pointer-events: none;
  z-index: 1;
}
.signal-svg { width: 100%; height: 100%; display: block; }
.signal-path {
  stroke: var(--signal);
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.5));
  transition: stroke 0.4s ease;
}
.signal-path.is-crit { stroke: var(--crit); filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.5)); }
.signal-path.is-good { stroke: var(--good); filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.5)); }

@media (max-width: 900px) {
  .signal-track { opacity: 0.08; width: 24px; }
}

/* ============ Hero ============ */
.hero {
  min-height: 100vh;
  padding-top: 140px;
  position: relative;
}
.hero-glow {
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.09), transparent);
  opacity: 0.08;
  pointer-events: none;
}
.hero-line {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 150px;
  overflow: visible;
}
.hero-line-path {
  stroke: var(--signal);
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}
.hero-pulse-dot {
  fill: var(--signal);
  filter: drop-shadow(0 0 6px var(--signal));
  opacity: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
  position: relative;
  z-index: 2;
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 28px;
}
.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.word { display: inline-block; }

.hero-sub {
  color: var(--ink-2);
  margin-bottom: 36px;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 8px;
  transition: filter 0.2s ease;
  will-change: transform;
}
.btn-primary {
  background: var(--signal);
  color: var(--bg-0);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  color: var(--ink-1);
  border: 1px solid var(--bg-2);
}
.btn-ghost:hover { border-color: var(--signal); }

.trust-line { font-size: 0.8rem; color: var(--ink-2); }

/* download modes: hidden until the Download button opens them */
.dl-modes { display: none; max-width: 620px; margin-bottom: 32px; }
.dl-modes.is-open { display: block; }
/* the how-it-works instance is always visible */
.dl-modes.how-modes { max-width: 640px; margin-bottom: 0; }
button.btn { border: 0; cursor: pointer; }
.dl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.dl-tab {
  background: transparent;
  border: 1px solid var(--bg-2);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.dl-tab:hover { border-color: var(--signal); color: var(--ink-1); }
.dl-tab.is-on {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--signal);
  color: var(--signal);
}
.dl-cmd {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-2);
  border: 1px solid #283548;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.78rem;
}
.dl-prompt { color: var(--good); line-height: 1.7; }
.dl-cmd-text {
  flex: 1;
  min-width: 0; /* let the flex item shrink below its longest token */
  color: var(--ink-1);
  /* long commands wrap instead of scrolling */
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.dl-cmd .copy-btn { flex-shrink: 0; }

/* Score dial */
.hero-dial { position: relative; width: 180px; height: 180px; }
.dial-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial-track { fill: none; stroke: var(--bg-2); stroke-width: 6; }
.dial-fill {
  fill: none;
  stroke: var(--good);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.5));
}
.dial-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.dial-score { font-size: 3rem; font-weight: 700; color: var(--good); line-height: 1; }
.dial-label { font-size: 0.7rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.15em; }

/* Browser frame + dashboard mock */
.browser-frame {
  background: var(--bg-1);
  border: 1px solid var(--bg-2);
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.08);
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.hero-shot { transform-style: preserve-3d; }
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #141416;
  border-bottom: 1px solid #242428;
}
.bdot { width: 10px; height: 10px; border-radius: 50%; background: #2e2e33; }
.browser-url {
  margin-left: 12px;
  font-size: 0.75rem;
  color: var(--ink-2);
  background: #0a0a0c;
  padding: 3px 14px;
  border-radius: 5px;
}
/* Hero dashboard mock: mirrors the real Overview page (neutral
   near-black surfaces, thin borders, badge pills, "?" hints) */
.dash {
  background: #0a0a0c;
  padding: 24px;
  display: grid;
  gap: 12px;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.dash-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fafafa;
  margin-bottom: 4px;
}
.dash-grid-top {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 12px;
}
.dash-health { grid-row: 1 / 3; }
.dash-grid-mid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.dcard {
  background: #111113;
  border: 1px solid #242428;
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.dcard-cap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #a1a1aa;
  white-space: nowrap;
}
.q {
  font-style: normal;
  flex-shrink: 0;
  width: 15px; height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3f3f46;
  border-radius: 50%;
  font-size: 0.55rem;
  color: #71717a;
}
.dcard-num {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fafafa;
  line-height: 1.2;
}
.dcard-sub { font-size: 0.7rem; color: #71717a; }
.dash-health-num {
  font-size: 2.9rem;
  font-weight: 700;
  color: var(--good);
  line-height: 1.05;
}
.dbadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.08);
  color: var(--good);
  white-space: nowrap;
}
.dash-spark { width: 100%; height: 34px; margin-top: auto; }
.dash-spark path { fill: none; stroke: var(--good); stroke-width: 1.5; opacity: 0.9; }
.dcard-check { justify-content: space-between; }
.dcard-check-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dcard-ms { font-size: 0.95rem; font-weight: 600; color: #fafafa; }

@media (max-width: 760px) {
  .dash-grid-top { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .dash-health { grid-column: 1 / -1; grid-row: auto; }
  .dash-grid-mid { grid-template-columns: 1fr; }
}

.light {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.light.good { background: var(--good); box-shadow: 0 0 10px rgba(34, 197, 94, 0.7); }
.light.warn { background: var(--warn); box-shadow: 0 0 10px rgba(245, 158, 11, 0.7); }
.light.crit { background: var(--crit); box-shadow: 0 0 10px rgba(239, 68, 68, 0.7); }

.scroll-cue {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  color: var(--ink-2);
  font-size: 0.85rem;
}

/* ============ Problem section ============ */
.problem { min-height: 100vh; display: flex; align-items: center; }
.problem-stage { text-align: center; }
.problem-words {
  height: 3rem;
  position: relative;
  margin: 24px 0 40px;
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--ink-1);
}
.pw {
  position: absolute;
  left: 0; right: 0;
  opacity: 0;
}
.pw.is-on { opacity: 1; }
.problem-copy { margin: 0 auto; color: var(--ink-2); }

/* ============ Feature grid ============ */
.grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.card {
  background: var(--bg-1);
  border: 1px solid var(--bg-2);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.25s ease;
  will-change: transform;
}
.card:hover { border-color: rgba(56, 189, 248, 0.4); }
.card-icon {
  width: 28px; height: 28px;
  margin-bottom: 18px;
}
.card-icon path, .card-icon circle, .card-icon rect {
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: var(--ink-2); }

/* Deck mode: JS pins the section and deals one card at a time.
   Without JS (or with reduced motion) the grid above stays. */
.features.deck-mode {
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* top padding keeps the title clear of the fixed nav while pinned */
  padding: 90px 0 24px;
}
/* the container is a flex item here; without an explicit width it
   shrink-wraps (the deck's cards are absolute and contribute none) */
.features.deck-mode .container { width: 100%; }
.features.deck-mode .section-title { text-align: center; margin-bottom: 0; }
.cards.is-deck {
  display: block;
  position: relative;
  height: clamp(460px, 62vh, 680px);
  max-width: 1100px;
  margin: 28px auto 0;
}
.is-deck .card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 4.5vw, 64px);
  overflow: auto;
  background: var(--bg-1); /* opaque: each card fully covers the last */
  will-change: transform;
}
.is-deck .card h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 16px; }
.is-deck .card p { font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.is-deck .card-icon { width: 40px; height: 40px; margin-bottom: 26px; flex-shrink: 0; }

/* cards with an in-card product mock: copy left, mock right */
.is-deck .card.has-visual {
  flex-direction: row;
  align-items: center;
  gap: clamp(36px, 4vw, 56px);
}
.card-copy { flex: 1; min-width: 0; }
.card-visual { flex: 1.15; min-width: 0; }
/* grid fallback (no JS / reduced motion) stays text-only */
.cards:not(.is-deck) .card-visual { display: none; }

/* product mocks: same neutral language as the hero dashboard */
.mock {
  background: #0a0a0c;
  border: 1px solid #242428;
  border-radius: 10px;
  padding: clamp(12px, 1.4vw, 18px);
  font-size: clamp(0.72rem, 0.95vw, 0.85rem);
  color: #a1a1aa;
  font-variant-numeric: tabular-nums;
}
.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-top: 1px solid #1c1c20;
  white-space: nowrap;
}
.mock-row:first-child, .mock-tiles + .mock-row { border-top: 0; }
.mock-head {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #71717a;
}
.mock-grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mock-row strong { color: #fafafa; font-weight: 600; }
.mock-main { display: flex; flex-direction: column; line-height: 1.5; }
.mock-main strong, .mock-main em {
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-main em { font-style: normal; font-size: 0.65rem; color: #71717a; }
.mock .mono { font-size: 0.7rem; }
.good-num { color: var(--good); }

.dbadge.warn {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
  color: var(--warn);
}
.dbadge.crit {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
  color: var(--crit);
}

.mock-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.mock-tiles-1 { grid-template-columns: 1fr; }
.mock-tile {
  background: #111113;
  border: 1px solid #242428;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mock-tile small { font-size: 0.62rem; color: #71717a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-tile b { font-size: 1.05rem; color: #fafafa; }

/* mini native window (the desktop app card) */
.mock-window { padding: 0; overflow: hidden; }
.mw-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8px 12px;
  background: #141416;
  border-bottom: 1px solid #242428;
  font-size: 0.68rem;
  font-weight: 600;
  color: #d4d4d8;
}
.mw-controls {
  position: absolute;
  right: 12px;
  font-size: 0.6rem;
  color: #71717a;
  font-weight: 400;
}
.mw-body { display: flex; min-height: 150px; }
.mw-side {
  width: 96px;
  flex-shrink: 0;
  border-right: 1px solid #1c1c20;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.62rem;
}
.mw-side span { padding: 4px 12px; color: #71717a; }
.mw-side span.on {
  background: #1c1c22;
  color: #fafafa;
  border-radius: 0 6px 6px 0;
  margin-right: 8px;
}
.mw-live { margin-top: auto; color: var(--good) !important; }
.mw-main {
  flex: 1;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-content: start;
}

@media (max-width: 700px) {
  .is-deck .card.has-visual { flex-direction: column; align-items: stretch; gap: 18px; }
  /* compact mocks so cards fit without inner scrolling */
  .m-hide, .is-deck .mock-head { display: none; }
  .mock { font-size: 0.68rem; padding: 10px; }
  .mock-tiles { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .mock-tiles-1 { grid-template-columns: 1fr; }
  .mock-tile { padding: 8px; }
  .mock-tile b { font-size: 0.9rem; }
  .mw-body { min-height: 110px; }
  .is-deck .card-icon { width: 32px; height: 32px; margin-bottom: 16px; }
  .features.deck-mode { padding: 72px 0 16px; }
}

.deck-progress { display: none; }
.features.deck-mode .deck-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
  font-size: 0.8rem;
  color: var(--ink-2);
}
.deck-bar {
  width: 180px;
  height: 2px;
  background: var(--bg-2);
  border-radius: 2px;
  overflow: hidden;
}
.deck-bar-fill {
  height: 100%;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
}

.stats-band { padding: 56px 0 24px; position: relative; }
.stats-band .stats { margin-top: 0; }

@media (max-width: 700px) {
  .cards.is-deck { height: min(620px, 74vh); }
  .is-deck .card { justify-content: flex-start; padding: 28px; }
  .is-deck .card p { font-size: 0.95rem; }
}

.stats {
  display: flex;
  justify-content: center;
  gap: clamp(32px, 8vw, 110px);
  margin-top: 80px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--signal);
}
.stat-cap { font-size: 0.8rem; color: var(--ink-2); }

/* ============ Three lights ============ */
.lights {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.lights-stage {
  width: 100%;
  text-align: center;
  position: relative;
}
.lights-stage .section-title { margin-bottom: 34px; }
.lights-board {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(11, 17, 32, 0.94));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}
.lights-board::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 86%);
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}
.lights-board-top {
  position: relative;
  z-index: 2;
  min-height: 48px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-2);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
  background: rgba(11, 17, 32, 0.54);
}
.trace-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--signal);
}
.trace-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.8);
}
.lights-diagram {
  position: relative;
  max-width: 900px;
  margin: 18px auto 0;
  padding: 12px 0 20px;
}
.lights-svg {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.96;
}
.l-trunk-in, .l-trunk-out, .l-branch, .l-merge {
  stroke: var(--signal);
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.4));
}
.l-pulse {
  fill: var(--signal);
  filter: drop-shadow(0 0 5px var(--signal));
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .l-pulse { display: none; }
}
.l-nodes {
  position: absolute;
  top: 50%; left: 0; right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-around;
  padding: 0 4%;
}
.l-node {
  position: relative;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.62), rgba(15, 23, 42, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  padding: 18px 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 152px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(226, 232, 240, 0.05);
}
.l-index {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 0.62rem;
  color: rgba(148, 163, 184, 0.62);
}
.l-node strong {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1rem;
}
.l-node-meta {
  font-size: 0.72rem;
  color: var(--ink-2);
}
.l-ms {
  margin-top: 5px;
  padding: 3px 10px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.06);
  font-size: 0.78rem;
  color: var(--ink-1);
}
.lights-caption {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 16px 22px 20px;
  font-size: 1rem;
  color: var(--ink-1);
  min-height: 1.8em;
  border-top: 1px solid rgba(56, 189, 248, 0.12);
  background: rgba(7, 11, 20, 0.34);
}
.type-caret {
  display: inline-block;
  width: 0.6em; height: 1.1em;
  background: var(--signal);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.troubleshoot-card {
  position: absolute;
  right: 26px; top: 128px;
  width: 360px;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(7, 11, 20, 0.98));
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-left: 3px solid var(--good);
  border-radius: 10px;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  z-index: 3;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38), 0 0 36px rgba(34, 197, 94, 0.08);
}
.troubleshoot-card header {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--good);
  margin-bottom: 12px;
}
.ts-cause {
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.55;
}
.ts-actions {
  list-style: none;
  font-size: 0.8rem;
  color: var(--ink-2);
  display: grid;
  gap: 9px;
}
.ts-actions li {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.ts-box {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
  margin-top: 0.45em;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.ts-actions li.is-done .ts-box {
  background: var(--good);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

@media (max-width: 1100px) {
  .troubleshoot-card {
    position: static;
    width: auto;
    margin: 0 18px 18px;
    transform: none !important;
  }
}

@media (max-width: 900px) {
  .lights-board-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .lights-diagram {
    max-width: 100%;
    margin-top: 8px;
    padding: 22px 0 0;
  }
  .l-nodes {
    position: relative;
    top: auto; left: auto; right: auto;
    transform: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 18px 20px;
  }
  .lights-svg {
    position: absolute;
    inset: 0;
    opacity: 0.18;
  }
  .l-node {
    align-items: flex-start;
    padding: 16px 18px 16px 52px;
    min-width: 0;
  }
  .l-index { top: 18px; left: 18px; }
  .l-node .light {
    position: absolute;
    top: 44px;
    left: 21px;
  }
  .lights-caption {
    width: auto;
    margin: 0;
    padding: 15px 18px;
    text-align: left;
  }
}

/* ============ Data usage: Traffic page rendition ============ */
.app-frame {
  max-width: 980px;
  background: #0a0a0c;
  border: 1px solid var(--bg-2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.08);
  font-variant-numeric: tabular-nums;
}
.app-frame .mw-bar { font-size: 0.75rem; padding: 10px 14px; }
.app-body { padding: 22px; display: grid; gap: 16px; }
.app-head { display: flex; justify-content: space-between; align-items: center; }
.app-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fafafa;
}
.range-pills { display: flex; gap: 4px; font-size: 0.68rem; color: #71717a; }
.range-pills i { font-style: normal; padding: 3px 10px; border-radius: 6px; }
.range-pills i.on { background: #1c1c22; color: #fafafa; border: 1px solid #2e2e33; }

.panel {
  background: #111113;
  border: 1px solid #242428;
  border-radius: 10px;
  padding: 16px 18px;
}
.panel-cap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #a1a1aa;
  margin-bottom: 10px;
}
.bw-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: #a1a1aa;
  margin-bottom: 8px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.dl { background: #3b82f6; }
.dot.ul { background: var(--good); margin-left: 12px; }
.bw-chart { width: 100%; height: 150px; display: block; }
.bw-chart .gl path { stroke: #1c1c20; stroke-width: 1; }
.bw-dl { fill: none; stroke: #3b82f6; stroke-width: 1.5; }
.bw-ul { fill: rgba(34, 197, 94, 0.22); stroke: var(--good); stroke-width: 1; }
.bw-x {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: #71717a;
  margin-top: 6px;
}

.ut-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.7fr;
  gap: 12px;
  align-items: center;
  padding: 10px 6px;
  border-top: 1px solid #1c1c20;
  font-size: 0.8rem;
  color: #d4d4d8;
}
.ut-head {
  border-top: 0;
  padding-bottom: 4px;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #71717a;
}
.ut-row strong { color: #fafafa; font-weight: 600; }
.ut-total { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ut-total .mono { min-width: 62px; }
.ut-bar-track {
  flex: 1;
  height: 8px;
  background: #1c1c20;
  border-radius: 4px;
  overflow: hidden;
  display: block;
}
.chart-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.5), var(--signal));
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
}
.ut-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.ut-note { font-size: 0.68rem; color: #71717a; }
.chart-pill {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--signal);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
}
.chart-pill:hover { background: rgba(56, 189, 248, 0.08); }

@media (max-width: 700px) {
  .ut-row { grid-template-columns: 0.9fr 0.9fr 1.6fr; gap: 8px; font-size: 0.72rem; }
  .ut-total .mono { min-width: 50px; }
  .app-body { padding: 14px; }
  .bw-chart { height: 100px; }
  .ut-note { display: none; }
}

/* ============ How it works ============ */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin: 48px 0 64px;
}
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  font-size: 1.4rem;
  font-weight: 700;
  width: 52px; height: 52px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-2);
  border-radius: 50%;
  color: var(--ink-2);
  transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.step-num.is-lit {
  color: var(--bg-0);
  background: var(--signal);
  border-color: var(--signal);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.5);
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.95rem; color: var(--ink-2); }

.code-block {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-2);
  border: 1px solid #283548;
  border-radius: 10px;
  padding: 20px 24px;
  max-width: 640px;
  font-size: 0.95rem;
}
.code-prompt { color: var(--good); }
#install-cmd { flex: 1; color: var(--ink-1); min-height: 1.7em; }
.copy-btn {
  background: var(--bg-1);
  color: var(--ink-2);
  border: 1px solid #283548;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.copy-btn:hover { color: var(--signal); border-color: var(--signal); }
.copy-btn.is-copied { color: var(--good); border-color: var(--good); }

/* ============ Privacy ============ */
.privacy {
  background: #070b14;
  padding: var(--section-gap) 0;
}
.privacy-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
.privacy-headline {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 36px;
}
.privacy-headline .ltr { display: inline-block; }
.privacy-list { list-style: none; display: grid; gap: 18px; color: var(--ink-2); font-size: 1rem; }
.privacy-list li { display: flex; gap: 12px; align-items: flex-start; }
.pcheck {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #334155;
  margin-top: 0.55em;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.privacy-list li.is-checked .pcheck {
  background: var(--good);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.privacy-loop { text-align: center; }
.privacy-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(7, 11, 20, 0.98)),
    radial-gradient(circle at 38% 38%, rgba(56, 189, 248, 0.1), transparent 44%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}
.privacy-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
}
.privacy-panel-top,
.privacy-panel-foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  color: var(--ink-2);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.privacy-panel-top {
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}
.privacy-panel-foot {
  border-top: 1px solid rgba(56, 189, 248, 0.1);
}
.privacy-map {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  display: block;
  margin: 0 auto;
}
.pl-flow {
  stroke: var(--signal);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.72;
  filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.36));
}
.pl-outbound {
  stroke: rgba(239, 68, 68, 0.62);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 7 7;
}
.vault-body {
  fill: rgba(15, 23, 42, 0.94);
  stroke: rgba(56, 189, 248, 0.28);
  stroke-width: 1.6;
}
.vault-door {
  fill: rgba(7, 11, 20, 0.82);
  stroke: rgba(148, 163, 184, 0.24);
  stroke-width: 1.2;
}
.vault-dial {
  fill: rgba(56, 189, 248, 0.08);
  stroke: rgba(56, 189, 248, 0.42);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
}
.vault-dial-core {
  fill: var(--signal);
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.7));
}
.vault-spoke,
.vault-lockbar {
  fill: none;
  stroke: rgba(226, 232, 240, 0.46);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.vault-drawer rect {
  fill: rgba(15, 23, 42, 0.92);
  stroke: rgba(148, 163, 184, 0.2);
  stroke-width: 1;
}
.vault-drawer text,
.vault-cloud text {
  fill: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.vault-db rect,
.vault-settings rect {
  stroke: rgba(34, 197, 94, 0.34);
}
.vault-drawer {
  transform-box: fill-box;
  transform-origin: center;
}
.vault-cloud path {
  fill: rgba(239, 68, 68, 0.06);
  stroke: rgba(239, 68, 68, 0.38);
  stroke-width: 1.4;
}
.pl-stop circle {
  fill: rgba(239, 68, 68, 0.12);
  stroke: var(--crit);
  stroke-width: 1.6;
}
.pl-stop path {
  stroke: var(--crit);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.pl-dot {
  fill: var(--signal);
  filter: drop-shadow(0 0 5px var(--signal));
}
.pl-block-dot {
  fill: var(--crit);
  filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.8));
}
@media (prefers-reduced-motion: reduce) {
  .pl-dot, .pl-block-dot { display: none; }
}
.pl-cap { display: block; margin-top: 14px; font-size: 0.75rem; color: var(--ink-2); }

@media (max-width: 900px) {
  .privacy-grid { grid-template-columns: 1fr; }
  .privacy-panel-top,
  .privacy-panel-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ============ Honest + FAQ ============ */
.honest-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}
.honest-col h3 {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--signal);
  margin-bottom: 14px;
}
.honest-col p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 700px) { .honest-cols { grid-template-columns: 1fr; } }

.faq-list { max-width: 760px; margin-top: 40px; display: grid; gap: 12px; }
.faq-item {
  background: var(--bg-1);
  border: 1px solid var(--bg-2);
  border-radius: 10px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.chevron { color: var(--ink-2); transition: transform 0.35s ease; }
.faq-item[open] .chevron, .faq-item.is-open .chevron { transform: rotate(180deg); }
.faq-body { overflow: hidden; }
.faq-body p { padding: 0 24px 20px; color: var(--ink-2); font-size: 0.95rem; }

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--bg-2);
  padding: 72px 0;
  margin-top: calc(var(--section-gap) / 2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.footer-tagline-wrap { display: flex; gap: 20px; align-items: flex-start; }
.footer-socket { position: relative; flex-shrink: 0; width: 36px; height: 36px; display: block; }
.footer-socket svg { width: 100%; height: 100%; }
.footer-socket svg rect, .footer-socket svg path { stroke: var(--good); stroke-width: 1.6; }
.socket-ring {
  position: absolute;
  inset: -4px;
  border: 2px solid var(--good);
  border-radius: 50%;
  opacity: 0;
}
.footer-tagline { color: var(--ink-1); font-size: 1.05rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 0.8rem; justify-content: flex-end; }
.footer-links .link-disabled {
  color: #475569;
  opacity: 0.55;
  cursor: default;
  user-select: none;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

/* ============ Mobile rhythm ============ */
@media (max-width: 700px) {
  :root { --section-gap: 96px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-dial { display: none; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ============ Reduced motion: static fallbacks ============ */
@media (prefers-reduced-motion: reduce) {
  .preloader { display: none; }
  .type-caret, .scroll-cue { display: none; }
  .chart-bar { transform: none; }
  .dial-fill { stroke-dashoffset: 13.1; } /* 96/100 of circumference */
  .troubleshoot-card { opacity: 1; visibility: visible; position: static; width: auto; margin-top: 32px; }
  .pw { position: static; opacity: 1; display: block; }
  .problem-words { height: auto; }
}
