/* ─────────────────────────────────────────────────────────────────
 * Sentra — site styles
 * Linear/Vercel/Tailscale vocabulary. Dark, dense, opinionated.
 * ──────────────────────────────────────────────────────────────── */

:root {
  --bg-0: #05080f;
  --bg-1: #070b15;
  --bg-2: #0a0f1c;
  --bg-3: #0d1424;
  --ink:   #f4f7fc;
  --ink-1: #cfdbef;
  --ink-2: #9aa8c4;
  --ink-3: #7a8bb0;
  --line:    rgba(122,139,176,0.16);
  --line-2:  rgba(122,139,176,0.24);
  --accent:   #76aee8;
  --accent-2: #9fc8ff;
  --accent-d: #4a8fd8;
  --good: #76e3a3;
  --bad:  #ff8b8b;
  --warn: #ffd166;

  --container: 1440px;
  --pad-x: 32px;
  --section-y: 120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg-0); color: var(--ink); font-family: 'Inter', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(118,174,232,0.32); color: var(--ink); }

/* Themed scrollbar — slim, dark, fades into the page chrome rather than the
 * bright OS default that clashes with the hero. */
html { scrollbar-width: thin; scrollbar-color: rgba(122,139,176,0.28) transparent; }
html::-webkit-scrollbar { width: 10px; height: 10px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb {
  background: rgba(122,139,176,0.22);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
html::-webkit-scrollbar-thumb:hover { background: rgba(122,139,176,0.42); background-clip: padding-box; }
html::-webkit-scrollbar-corner { background: transparent; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-feature-settings: "ss01"; }
.eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.section-title { margin: 16px 0 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; color: var(--ink); text-wrap: balance; max-width: 20ch; }
.section-lede { margin: 18px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 620px; }

/* ─── Header ───────────────────────── */
header.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  height: 80px;
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: rgba(5,8,15,0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms, background 200ms, height 200ms;
}
header.site.scrolled { border-bottom-color: var(--line); background: rgba(5,8,15,0.88); height: 70px; }
header.site .row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 0; }
.brand img { width: 52px; height: 52px; object-fit: contain; filter: brightness(0.7) saturate(1.15); }
.brand span { font-size: 17px; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
nav.primary { display: flex; gap: 4px; }
nav.primary a {
  font-size: 13.5px; color: rgba(205,218,242,0.78); font-weight: 500;
  padding: 8px 14px; border-radius: 7px;
  transition: color 150ms, background 150ms;
}
nav.primary a:hover { color: var(--ink); background: rgba(255,255,255,0.04); }

/* ─── Nav dropdown (Product → Products) ─────────────────────── */
.nav-dd { position: relative; display: inline-flex; }
.nav-dd-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13.5px; color: rgba(205,218,242,0.78); font-weight: 500;
  padding: 8px 14px; border-radius: 7px;
  transition: color 150ms, background 150ms;
  cursor: pointer;
}
.nav-dd-trigger .nav-dd-caret {
  width: 10px; height: 10px;
  margin-left: 2px;
  opacity: 0.6;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), opacity 150ms ease;
}
.nav-dd:hover .nav-dd-trigger,
.nav-dd:focus-within .nav-dd-trigger {
  color: var(--ink); background: rgba(255,255,255,0.04);
}
.nav-dd:hover .nav-dd-trigger .nav-dd-caret,
.nav-dd:focus-within .nav-dd-trigger .nav-dd-caret {
  transform: rotate(180deg);
  opacity: 0.9;
}

.nav-dd-panel {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 720px;
  display: flex; flex-direction: column;
  background: rgba(9,13,24,0.98);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02) inset;
  backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
  opacity: 0; pointer-events: none;
  transition: opacity 160ms ease, transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 90;
}
/* invisible bridge between trigger and panel so hover doesn't drop when the
 * mouse crosses the gap. Lives on .nav-dd (not the panel) because the panel
 * uses overflow:hidden, which would clip a pseudo-element placed above it. */
.nav-dd::after {
  content: ""; position: absolute; left: -20px; right: -20px; top: 100%; height: 16px;
}
.nav-dd:hover .nav-dd-panel,
.nav-dd:focus-within .nav-dd-panel {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 14px;
}

.nav-dd-item {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 15px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 140ms ease;
}
.nav-dd-item:hover { background: rgba(255,255,255,0.04); }

.nav-dd-item-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  color: var(--accent);
  background: rgba(118,174,232,0.10);
  border: 1px solid rgba(118,174,232,0.18);
  transition: background 140ms ease, border-color 140ms ease;
}
.nav-dd-item-ico svg { width: 17px; height: 17px; }
.nav-dd-item:hover .nav-dd-item-ico {
  background: rgba(118,174,232,0.16);
  border-color: rgba(118,174,232,0.30);
}

.nav-dd-item-head {
  display: flex; align-items: center; gap: 8px;
}
.nav-dd-item-title {
  font-size: 13.5px; font-weight: 600; line-height: 1.3;
  letter-spacing: -0.01em; color: var(--ink);
}
.nav-dd-item-desc {
  font-size: 12px; line-height: 1.5; font-weight: 450;
  letter-spacing: -0.003em; color: var(--ink-3);
}

.nav-dd-item.is-soon { cursor: not-allowed; }
.nav-dd-item.is-soon .nav-dd-item-ico { color: var(--ink-3); background: rgba(255,255,255,0.03); border-color: var(--line-2); }
.nav-dd-item.is-soon .nav-dd-item-title { color: var(--ink-2); }
.nav-dd-item.is-soon .nav-dd-item-desc { color: rgba(154,168,196,0.6); }

.nav-dd-soon {
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-3);
  padding: 2px 6px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  white-space: nowrap;
}

.nav-dd-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid var(--line-2);
  background: rgba(255,255,255,0.015);
  text-decoration: none;
  transition: background 140ms ease;
}
.nav-dd-foot:hover { background: rgba(255,255,255,0.03); }
.nav-dd-foot-text { font-size: 12.5px; color: var(--ink-3); letter-spacing: -0.004em; }
.nav-dd-foot-text strong { color: var(--ink-1); font-weight: 600; margin-right: 5px; }
.nav-dd-foot-link {
  font-size: 12.5px; font-weight: 600; color: var(--accent);
  white-space: nowrap; letter-spacing: -0.004em;
  transition: color 140ms ease;
}
.nav-dd-foot:hover .nav-dd-foot-link { color: var(--ink); }

.actions { display: flex; align-items: center; gap: 18px; }
.signin { font-size: 13.5px; color: rgba(235,241,248,0.82); font-weight: 500; transition: color 150ms; }
.signin:hover { color: var(--ink); }

/* ─── Buttons ──────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 7px; font-size: 13.5px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: transform 100ms, box-shadow 150ms, background 150ms, border-color 150ms; }
.btn-primary { background: #f2f5fb; color: #0a1326; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(118,174,232,0.22); }
.btn-secondary { background: transparent; color: var(--ink-1); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--accent); color: var(--ink); }
.btn-cta { padding: 13px 22px; border-radius: 8px; font-size: 14px; background: #f2f5fb; color: #0a1326; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,0.25); transition: transform 100ms, box-shadow 150ms; }
.btn-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,0.3); }

/* ─── Pills ────────────────────────── */
.pill { padding: 5px 11px; border-radius: 5px; border: 1px solid rgba(122,139,176,0.2); background: rgba(14,20,34,0.45); font-size: 11px; color: #a8b6d3; font-weight: 600; font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.02em; }

/* ─── Hero ─────────────────────────── */
section.hero { position: relative; min-height: 100vh; padding: 0; overflow: hidden; background: linear-gradient(180deg, #05080f 0%, #070b15 100%); display: flex; flex-direction: column; }
/* width:100% is load-bearing: as a flex item with `margin:0 auto`, the
 * container's cross-axis auto margins disable `align-items:stretch`, so
 * without an explicit width it sizes to max-content (capped at max-width
 * 1440px) and overflows every viewport narrower than that — shoving the
 * hero text off-screen. width:100% pins it to the section width instead. */
section.hero > .container { flex: 1; display: flex; flex-direction: column; position: relative; z-index: 1; width: 100%; }
.hero-bg { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 26px 26px; opacity: 0.28; pointer-events: none; }
.hero-bg::after { content: ""; position: absolute; inset: 0; }
/* Vertical fade that melts the globe's top & bottom edges into the page bg, so
 * the sphere emerges from the dark instead of reading as a hard floating disc.
 * Sits above the globe (z-index 1) but below the text (z-index 3). */
/* Just a faint atmospheric glow at the horizon line where the globe dissolves
 * — fully transparent everywhere else, so the dotted background shows through
 * (the globe now fades itself via its own mask, no solid overlay needed). */
.hero-stack::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
}
/* Understated, editorial announcement — no pill, no colored "New" capsule.
 * Just a live accent dot, the text, and an arrow that nudges on hover.
 * A soft, borderless blur halo keeps it legible over the globe without
 * reading as a UI chip. */
.whats-new { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 0; border: 0; background: none; backdrop-filter: none; color: var(--ink-2); font-size: 13px; transition: color 150ms; }
.whats-new::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% + 80px); height: 320%;
  background: radial-gradient(ellipse at center,
    rgba(5,8,15,0.82) 0%, rgba(5,8,15,0.55) 42%, rgba(5,8,15,0.18) 66%, transparent 80%);
  filter: blur(7px);
  z-index: -1; pointer-events: none;
}
.whats-new:hover { color: var(--ink-1); }
.whats-new .wn-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(118,174,232,0.9); flex-shrink: 0; }
.whats-new .wn-text { color: var(--ink); font-weight: 450; text-shadow: 0 1px 10px rgba(5,8,15,0.8); }
.whats-new .arrow { color: var(--ink-3); transition: transform 200ms ease, color 150ms; }
.whats-new:hover .arrow { transform: translateX(3px); color: var(--accent-2); }

/* Centered vertical stack with globe as background layer */
.hero-stack { position: relative; flex: 1; display: flex; flex-direction: column; min-height: calc(100vh - 72px); }
.hero-top {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; max-width: 920px; margin: 0 auto;
  padding: clamp(24px, 5vh, 60px) 16px 0;
  /* Viewport-relative offset so the text tracks the globe (whose center is a
   * fraction of viewport height) instead of drifting when the browser height
   * changes — e.g. toggling the bookmark bar. ~20vh ≈ the old fixed 180px. */
  transform: translateY(clamp(130px, 20vh, 220px));
}
/* Soft radial scrim behind the headline — fades the globe out where text sits.
 * Centered on the text block (not its top edge) and oversized + heavily blurred
 * so it has no visible boundary; the globe melts into the dark behind the copy
 * instead of colliding with it. */
.hero-top::before {
  content: "";
  position: absolute;
  left: 50%; top: 48%; transform: translate(-50%, -50%);
  width: min(1180px, 122%); height: 700px;
  background: radial-gradient(ellipse 56% 50% at center,
    rgba(5,8,15,0.96) 0%,
    rgba(5,8,15,0.86) 32%,
    rgba(5,8,15,0.58) 56%,
    rgba(5,8,15,0.22) 78%,
    transparent 100%);
  pointer-events: none;
  z-index: -1;
  filter: blur(16px);
}
h1.hero-title {
  margin: 20px auto 0;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
  max-width: 28ch;
}
.hero-word-rotator {
  display: inline;
  color: inherit;
}
/* inline-block so the translateY transform actually applies — transforms
 * are ignored on pure inline elements. Each time the JS swaps the inner
 * node the heroWordIn keyframe replays on mount.
 * Solid accent color (no background-clip:text) so the animating transform
 * can't desync the gradient mask from the glyph position. */
.hero-word-item {
  display: inline-block;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.038em;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 260ms ease, transform 260ms ease;
  animation: heroWordIn 380ms cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-word-item.is-leaving {
  animation: none;
  opacity: 0;
  transform: translateY(-0.22em);
}
@keyframes heroWordIn {
  from { transform: translateY(0.22em); opacity: 0; }
  to   { transform: translateY(0);      opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-word-item { animation: none; transition: none; }
  .hero-word-item.is-leaving { opacity: 1; transform: none; }
}
p.hero-lede {
  margin: 22px auto 0;
  color: #e7eefa;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
  font-weight: 450;
  /* Wide on desktop so the sentence lands across two balanced lines
   * instead of breaking after a few words. Tightened on narrower
   * screens via the media query below. */
  max-width: 960px;
  text-wrap: balance;
  /* Shadow gives the copy a legible edge against the globe's dots. */
  text-shadow: 0 1px 2px rgba(5,8,15,0.85), 0 2px 16px rgba(5,8,15,0.7);
}
@media (max-width: 880px) {
  p.hero-lede { max-width: 620px; }
}
/* Phones: the hero-top is a flex item with `margin:0 auto`, so its auto
 * cross-axis margins disable stretch and it sizes to max-content — i.e. as
 * wide as the longest rotating headline word, which is `white-space:nowrap`.
 * "high-transactional web apps" is ~440px, so on a 375px screen the whole
 * text block blew ~100px past the right edge. Pin the block to the column
 * width and let the rotating word wrap instead of overflowing. */
@media (max-width: 600px) {
  .hero-top {
    width: 100%; max-width: 100%;
    /* Lift the text up so the (now taller) headline clears the globe and the
     * dome below it has room to read as a sphere rather than a cropped band. */
    transform: translateY(clamp(48px, 9vh, 96px));
  }
  h1.hero-title { max-width: 100%; }
  p.hero-lede { max-width: 100%; }
  .hero-word-item { white-space: normal; }
}
p.hero-lede strong { color: #ffffff; font-weight: 650; }
.hero-actions { display: flex; gap: 16px; align-items: center; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.cta-secondary { font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.cta-secondary code { font-family: 'JetBrains Mono', ui-monospace, monospace; padding: 5px 9px; border-radius: 5px; border: 1px solid var(--line-2); background: rgba(14,20,34,0.5); color: var(--ink-1); font-size: 12.5px; transition: border-color 150ms, color 150ms; cursor: pointer; }
.cta-secondary code:hover { border-color: var(--accent); color: var(--ink); }

.hero-bottom { position: relative; z-index: 3; width: 100%; margin-top: auto; padding-top: clamp(40px, 34vh, 460px); padding-bottom: 24px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 18px; background: linear-gradient(180deg, rgba(5,8,15,0) 0%, rgba(5,8,15,0.65) 60%, rgba(5,8,15,0.85) 100%); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.stat { padding: 0 22px; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: none; }
.stat:last-child { padding-right: 0; }
.stat .n { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.stat .l { margin-top: 7px; font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.compliance { margin-top: 26px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; }
.compliance .lab { font-size: 11px; color: var(--ink-3); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; margin-right: 4px; }

/* ─── Live decision stream ─────────── */
.stream { position: relative; background: linear-gradient(180deg, #080b13, #070a11); border: 1px solid rgba(122,139,176,0.18); border-radius: 12px; overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.04); display: grid; grid-template-rows: auto 1fr auto; min-height: 520px; }
.stream-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.stream-head .dots { display: inline-flex; gap: 4px; }
.stream-head .dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(122,139,176,0.32); }
.stream-head .title { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; font-weight: 600; color: var(--ink-1); letter-spacing: -0.01em; margin-left: 8px; }
.stream-head .live { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.04em; }
.stream-rows { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.5px; color: var(--ink-2); padding: 6px 0; overflow: hidden; }
.row-grid { display: grid; grid-template-columns: 108px 110px minmax(0, 1fr) 200px 38px; gap: 14px; padding: 7px 16px; border-left: 2px solid transparent; transition: opacity 600ms ease; }
.row-grid.is-new { background: linear-gradient(90deg, rgba(118,174,232,0.06), transparent 50%); border-left-color: var(--accent); }
.row-grid .t { color: var(--ink-3); }
.row-grid .ua { color: var(--ink-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-grid .v { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.row-grid .v .reason { color: var(--ink-3); font-weight: 500; margin-left: 6px; }
.row-grid .v .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.row-grid.allow .v { color: var(--good); } .row-grid.allow .v .dot { background: var(--good); }
.row-grid.block .v { color: var(--bad); }  .row-grid.block .v .dot { background: var(--bad); }
.row-grid.chl   .v { color: var(--warn); } .row-grid.chl   .v .dot { background: var(--warn); }
.row-grid .ms { color: var(--ink-3); text-align: right; }
.stream-foot { padding: 10px 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10.5px; color: var(--ink-3); }

/* ─── Globe attack visualization ───────────────────────────────── */
.globe-vis {
  position: absolute;
  top: -28px; bottom: -26px; left: -9%; right: -9%;
  width: auto;
  max-width: none;
  margin: 0;
  pointer-events: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
  z-index: 1;
  /* Dissolve the globe's lower half directly on its own layer (a "horizon"),
   * so the dotted background behind it stays visible instead of being hidden
   * by a solid overlay. The top hemisphere stays fully rendered. */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 90%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 90%, transparent 100%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.globe-vis::after { display: none; }
.globe-vis canvas { position: absolute; display: block; z-index: 1; pointer-events: none; }
.globe-vis > * { pointer-events: auto; }
.globe-vis canvas { pointer-events: none; }

/* Position presets — pulled in toward the globe so the cards sit just
 * outside its silhouette instead of hugging the section's outer edges.
 * .globe-vis spans -9% → 109% of the container, so callouts at ~16% in
 * line up just outside the globe's circumference at desktop widths. */
.globe-callout.mid-left  { top: 58%;    left: 11%;  max-width: 200px; }
.globe-callout.mid-right { top: 58%;    right: 11%; max-width: 200px; }
.globe-callout.bot-left  { bottom: 14%; left: 12%;  max-width: 200px; }
.globe-callout.bot-right { bottom: 14%; right: 12%; max-width: 200px; }
.globe-callout.top-left,
.globe-callout.bot-mid   { display: none; }

/* Corner crosshair + label, like a sensor read-out */
.globe-chrome { display: none; }
.globe-label {
  display: none;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  z-index: 2;
}
.globe-label::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 8px rgba(159,200,255,0.7);
  animation: globePulse 1.6s ease-in-out infinite;
}
@keyframes globePulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}
.globe-coords { display: none; }

/* Stats strip across the bottom — clean floating bar, no frame */
.globe-stats {
  position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(140px, auto);
  gap: 24px;
  padding: 12px 22px;
  background: rgba(7,11,21,0.7);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px; color: var(--ink-3);
  z-index: 3;
}
.globe-stats .gs { display: flex; flex-direction: column; gap: 3px; }
.globe-stats .gs .v { color: var(--ink-1); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.globe-stats .gs .l { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.globe-stats .gs.block .v::before { content: "● "; color: #9fc8ff; }
.globe-stats .gs.allow .v::before { content: "● "; color: #5e7fb0; }

/* Callout cards (corner-bracketed boxes) ────────── */
.globe-callouts { position: absolute; inset: 0; pointer-events: none; z-index: 5; display: none; }
.globe-callout { position: absolute; transition: opacity 220ms ease; }
.callout-card {
  position: relative;
  padding: 11px 13px;
  max-width: 200px;
  background: rgba(8,12,22,0.85);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(159,200,255,0.22);
  font-family: 'Inter', sans-serif;
  color: var(--ink-1);
  pointer-events: auto;
}
.callout-card::before, .callout-card::after,
.callout-card > .br-tl, .callout-card > .br-tr,
.callout-card > .br-bl, .callout-card > .br-br {
  content: ""; position: absolute; width: 10px; height: 10px;
  border-color: var(--accent-2); border-style: solid; border-width: 0;
}
.callout-card > .br-tl { top: -1px; left: -1px;     border-top-width: 1.5px; border-left-width: 1.5px; }
.callout-card > .br-tr { top: -1px; right: -1px;    border-top-width: 1.5px; border-right-width: 1.5px; }
.callout-card > .br-bl { bottom: -1px; left: -1px;  border-bottom-width: 1.5px; border-left-width: 1.5px; }
.callout-card > .br-br { bottom: -1px; right: -1px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.callout-card .metric {
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.005em;
  display: flex; align-items: center; gap: 8px;
}
/* Subtle colored dot prefix, all metric labels stay neutral ink color */
.callout-card .metric::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 8px rgba(159,200,255,0.55);
  flex-shrink: 0;
}
.callout-card .metric.bad::before  { background: #9fc8ff; box-shadow: 0 0 10px rgba(159,200,255,0.7); }
.callout-card .metric.warn::before { background: #cfdbef; box-shadow: 0 0 8px rgba(207,219,239,0.6); }
.callout-card .metric.good::before { background: #5e7fb0; box-shadow: 0 0 6px rgba(94,127,176,0.5); }
.callout-card .metric.bad,
.callout-card .metric.warn,
.callout-card .metric.good { color: var(--ink); }
.callout-card .metric .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10.5px; color: var(--ink-3); font-weight: 500; letter-spacing: 0.04em; }
.callout-card .body {
  margin-top: 6px; font-size: 12px; color: var(--ink-2); line-height: 1.5;
}
.callout-card .body strong { color: var(--ink); font-weight: 600; }
.callout-card .body code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; color: var(--ink-1);
  background: rgba(255,255,255,0.03);
  padding: 1px 5px; border-radius: 3px;
}

/* Pin marker that follows globe coords */
.callout-pin {
  position: absolute;
  width: 16px; height: 16px;
  margin-left: -8px; margin-top: -8px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-2);
  background: rgba(118,174,232,0.18);
  box-shadow: 0 0 18px rgba(118,174,232,0.45);
}
.callout-pin::before {
  content: ""; position: absolute; inset: 4px;
  border-radius: 50%; background: var(--accent-2);
}
.callout-pin.bad   { border-color: #ff9b9b; box-shadow: 0 0 18px rgba(255,122,122,0.55); }
.callout-pin.bad::before  { background: #ff9b9b; }
.callout-pin.warn  { border-color: #ffd166; box-shadow: 0 0 18px rgba(255,209,102,0.5); }
.callout-pin.warn::before { background: #ffd166; }

/* Connector line — height 1px, css-rotated from pin to card edge */
.callout-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, rgba(159,200,255,0.55), rgba(159,200,255,0.0));
  transform-origin: 0 0;
  pointer-events: none;
}
/* Bracket corners — single accent color throughout */
.callout-card > .br-tl,
.callout-card > .br-tr,
.callout-card > .br-bl,
.callout-card > .br-br { border-color: rgba(159,200,255,0.45); }
.globe-callout.has-bad .callout-card > .br-tl,
.globe-callout.has-bad .callout-card > .br-tr,
.globe-callout.has-bad .callout-card > .br-bl,
.globe-callout.has-bad .callout-card > .br-br { border-color: rgba(159,200,255,0.65); }

/* Responsive */
@media (max-width: 1080px) {
  .globe-callout.top-left  { top: 42%; left: 2%; }
  .globe-callout.mid-right { top: 54%; right: 2%; }
  .globe-callout.bot-mid   { bottom: 6%; left: 2%; }
  .callout-card { max-width: 190px; padding: 10px 12px; }
}

/* ─── Logos strip ──────────────────── */
/* Feature row sits in normal flow at the bottom of the hero stack
 * (flex column + margin-top:auto pushes it down past the globe). */
.hero-feature-list {
  list-style: none; margin: auto auto 0; padding: 0 0 56px;
  position: relative; z-index: 3;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  width: min(960px, 92%);
}
.hero-feature {
  text-align: center; padding: 0 6px; pointer-events: auto;
  display: flex; flex-direction: column; align-items: center;
}
.hf-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  margin-bottom: 12px;
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(159,200,255,0.06) 0%, rgba(118,174,232,0.02) 100%),
    rgba(10, 15, 28, 0.6);
  border: 1px solid rgba(122,139,176,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 0 0 1px rgba(118,174,232,0.04),
    0 6px 18px -8px rgba(118,174,232,0.18);
  color: var(--accent-2);
}
.hf-icon svg { width: 18px; height: 18px; opacity: 0.92; }
.hf-title {
  font-size: 15px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.hf-body {
  font-size: 13px; line-height: 1.5;
  color: var(--ink-2);
  text-wrap: balance;
}
@media (max-width: 720px) {
  .hero-feature-list {
    grid-template-columns: 1fr;
    gap: 14px;
    width: 92%;
    padding: 0 0 32px;
  }
  .hf-icon { width: 32px; height: 32px; margin-bottom: 10px; }
  .hf-icon svg { width: 16px; height: 16px; }
  .hf-body { font-size: 12.5px; }
}

section.logos { padding: 48px 0 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
/* Hero-native trusted-by strip — sits low in the hero over the globe.
 * Centered label-above-marquee stack, with a soft hairline divider so the
 * wordmarks read cleanly against the globe canvas without a hard border
 * slicing across it. Auto top margin gives it breathing room from the globe;
 * the bottom margin keeps it clear of the next section below. */
/* Hero-native trusted-by strip — quiet, premium, low-contrast.
 * Eyebrow label + a generous-gutter marquee below it, with a hairline that
 * fades into the globe canvas instead of cutting across it. */
.hero-logos {
  margin-top: auto;
  margin-bottom: clamp(16px, 2vh, 32px);
  margin-left: auto;
  margin-right: auto;
  align-self: center;
  padding: 40px 0 36px;
  overflow: hidden;
  position: relative; z-index: 3;
  width: min(960px, 92%);
  text-align: center;
}
.hero-logos::before {
  content: "";
  position: absolute;
  left: 50%; top: 0; transform: translateX(-50%);
  width: 180px; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(122,139,176,0.26) 50%, transparent 100%);
  pointer-events: none;
}
.hero-logos .logos-row {
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  grid-template-columns: none;
}
.hero-logos .logos-row .lab {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  opacity: 0.7;
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1;
}
.hero-logos .logos-marquee {
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 14%, black 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 14%, black 86%, transparent 100%);
}
.hero-logos .logos-track { gap: 76px; align-items: baseline; }
.hero-logos .wordmark {
  font-size: 16px;
  color: var(--ink-3);
  opacity: 0.78;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
  transition: opacity 200ms ease, color 200ms ease;
}
.hero-logos .wordmark:hover { opacity: 0.95; color: var(--ink-1); }
.logos-row { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.logos-row .lab { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; white-space: nowrap; }
.logos-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%); }
.logos-track { display: flex; gap: 56px; width: max-content; align-items: center; animation: logos-scroll 42s linear infinite; will-change: transform; }
.logos-track:hover { animation-play-state: paused; }
@keyframes logos-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .logos-track { animation: none; } }
.wordmark { font-size: 19px; font-weight: 700; letter-spacing: -0.025em; color: #6e7c98; opacity: 0.7; transition: opacity 200ms, color 200ms; white-space: nowrap; flex-shrink: 0; }
.wordmark:hover { opacity: 1; color: var(--ink-1); }


/* ─── Dashboard preview ──────────────
 * Inner dashboard uses its own scoped palette to match the actual product
 * (see website/dashboard/AppShared.jsx). Renders at natural 1440px width,
 * scaled to fit the page container by JS in site/site.js. */
section.preview { padding: var(--section-y) 0; background: var(--bg-1); border-top: 1px solid var(--line); }
.preview-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; }
@media (max-width: 760px) {
  .preview-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
  .preview-head .hero-actions { margin-top: 0; }
}

/* Embedded full-fidelity dashboard preview.
 * Renders the dashboard markup inline at FIXED desktop resolution
 * (1440×900) and shrinks the whole stage via CSS transform to fit
 * whatever width the marketing column has. Below 900px viewport the
 * dashboard's own responsive CSS (dashboard-responsive.css) bails out
 * of the transform and flows the markup naturally. */
.dashboard-frame {
  position: relative;
  width: 100%;
  height: var(--frame-h, auto);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  background: #05080f;
  box-shadow:
    0 40px 90px rgba(2,6,16,0.55),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.dashboard-frame .dash-nav .nav-item:not(.active) {
  pointer-events: none;
  cursor: default;
}
.dashboard-frame .dashboard-stage {
  position: absolute; top: 0; left: 0;
  width: 1440px; height: auto;
  transform-origin: top left;
  transform: scale(var(--frame-scale, 1));
  will-change: transform;
}
.dashboard-frame .dashboard.standalone {
  width: 1440px;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
/* Landing-page preview: let the dashboard size to its real content
 * so the frame shows the whole thing without an internal scrollbar.
 * site.js measures the rendered stage height and feeds it back to
 * --frame-h so the outer box matches exactly. */
.dashboard-frame .dashboard.standalone .dash-app { height: auto; min-height: 900px; align-items: stretch; }
.dashboard-frame .dashboard.standalone .dash-sidebar { height: auto; align-self: stretch; position: static; }
.dashboard-frame .dashboard.standalone .dash-section { height: auto; min-height: 900px; overflow: visible; }
.dashboard-frame .dashboard.standalone .dash-main {
  overflow: visible;
  padding-bottom: 32px;
}
@media (max-width: 900px) {
  /* dashboard-responsive.css unwinds the .dashboard-stage transform —
   * let the frame grow with the inlined mobile dashboard. */
  .dashboard-frame { height: auto !important; overflow: visible; }
}
.dashboard {
  /* Scoped palette — aligned with landing-page brand tokens
   * (--accent #76aee8, --good #76e3a3, --bad #ff8b8b, --warn #ffd166)
   * so the dashboard feels continuous with the marketing site. */
  --d-bg:           #05080f;
  --d-bg-elev:      #070b15;
  --d-panel-bg:     linear-gradient(180deg, rgba(13,20,36,0.78), rgba(7,11,21,0.74));
  --d-panel-glow:   0 14px 36px rgba(2,6,16,0.32), inset 0 1px 0 rgba(255,255,255,0.04);
  --d-line:         rgba(122,139,176,0.16);
  --d-line-2:       rgba(122,139,176,0.24);
  --d-line-active:  rgba(118,174,232,0.34);
  --d-ink:          #f4f7fc;
  --d-muted:        #9aa8c4;
  --d-dim:          #7a8bb0;
  --d-accent:       #76aee8;
  --d-accent-2:     #9fc8ff;
  --d-accent-soft:  rgba(118,174,232,0.12);
  --d-success:      #76e3a3;
  --d-success-soft: rgba(118,227,163,0.12);
  --d-danger:       #ff8b8b;
  --d-danger-soft:  rgba(255,139,139,0.12);
  --d-warning:      #ffd166;
  --d-warning-soft: rgba(255,209,102,0.12);
  --d-orange:       #ff9f6b;
  --d-lavender:     #a98bff;
  --d-neutral:      rgba(154,168,196,0.62);

  background: var(--d-bg);
  background-image:
    radial-gradient(900px 500px at 50% -10%, rgba(118,174,232,0.10), transparent 60%),
    radial-gradient(circle at 96% 4%, rgba(159,200,255,0.08), transparent 40%),
    linear-gradient(180deg, #05080f 0%, #070b15 100%);
  border: 1px solid var(--d-line);
  border-radius: 12px;
  overflow: hidden;
  color: var(--d-ink);
  box-shadow: 0 60px 140px rgba(0,0,0,0.55);
}

/* Subtle dot grid on the main scroll area — same texture the landing
 * page hero uses, so the chrome feels continuous. */
.dashboard .dash-main { position: relative; }
.dashboard .dash-main::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 100%);
  z-index: 0;
}
.dashboard .dash-main > * { position: relative; z-index: 1; }

.dash-app { display: grid; grid-template-columns: 220px 1fr; min-height: 880px; }

/* ── Sidebar ────────────────────────────────────────────────── */
.dash-sidebar {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(10,15,28,0.85) 0%, rgba(5,8,15,0.94) 100%);
  border-right: 1px solid var(--d-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.dash-brand-area {
  height: 66px;
  border-bottom: 1px solid var(--d-line);
  display: flex; align-items: center; justify-content: center;
}
.dash-brand-area img {
  width: 44px; height: 44px;
  margin: 0 -8px 0 -10px;
  object-fit: contain;
  filter: brightness(0.62) saturate(1.55);
}
.dash-brand-area span {
  font-size: 1.25rem; font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--d-ink);
  margin-left: 4px;
  line-height: 1;
}

.dash-nav {
  flex: 1;
  padding: 18px 14px 0;
  display: flex; flex-direction: column; gap: 24px;
  overflow-y: auto;
}
.nav-group { display: flex; flex-direction: column; gap: 4px; }
.nav-label {
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--d-dim);
  margin: 0 0 6px 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(235,241,248,0.68);
  font-family: inherit; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; text-align: left;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.nav-item:hover { background: rgba(255,255,255,0.035); color: var(--d-ink); }
.nav-item.active {
  background: var(--d-accent-soft);
  border-color: var(--d-line-active);
  color: var(--d-ink);
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 6px 18px rgba(118,174,232,0.10);
}
.nav-item.active svg { stroke: var(--d-accent-2); }
.nav-item svg {
  width: 18px; height: 18px; flex-shrink: 0;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.dash-user-card {
  margin: 14px;
  padding: 10px;
  border: 1px solid var(--d-line);
  border-radius: 12px;
  background: rgba(13,20,36,0.6);
  display: flex; align-items: center; gap: 10px;
  transition: border-color 200ms ease, background 200ms ease;
  cursor: pointer;
}
.dash-user-card:hover { border-color: var(--d-line-2); background: rgba(13,20,36,0.85); }
.dash-user-card .ava {
  width: 32px; height: 32px; border-radius: 999px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #76aee8, #4a8fd8);
  color: #07101f; font-size: 0.74rem; font-weight: 800;
}
.dash-user-card .meta { flex: 1; min-width: 0; }
.dash-user-card .meta .n { font-size: 0.76rem; font-weight: 750; color: var(--d-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-user-card .meta .r { font-size: 0.68rem; color: var(--d-muted); }
.dash-user-card .chev {
  display: inline-block; width: 7px; height: 7px;
  border-right: 1.5px solid rgba(83,105,138,0.62);
  border-bottom: 1.5px solid rgba(83,105,138,0.62);
  transform: rotate(45deg) translateY(-2px);
}

/* ── Right column ───────────────────────────────────────────── */
.dash-section { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }

/* Top bar */
.dash-topbar {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(260px, 1fr) minmax(360px, auto);
  align-items: center;
  gap: 18px;
  height: 66px;
  padding: 0 24px;
  border-bottom: 1px solid var(--d-line);
  background: rgba(5,8,15,0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  position: sticky; top: 0; z-index: 30;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--d-line);
  background: rgba(13,20,36,0.6);
  font-size: 0.78rem; font-weight: 600;
  color: var(--d-ink);
  width: fit-content;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
}
.status-pill:hover { border-color: var(--d-line-2); background: rgba(13,20,36,0.85); }
.status-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--d-success);
  box-shadow: 0 0 8px rgba(118,227,163,0.6);
  animation: livePulse 2.4s ease-in-out infinite;
}
.status-pill .view-status {
  font-size: 0.72rem; font-weight: 700;
  color: var(--d-accent);
  border-left: 1px solid var(--d-line);
  padding-left: 10px;
}
.dash-search {
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--d-line);
  background: rgba(13,20,36,0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  min-width: 0;
  transition: border-color 200ms ease, background 200ms ease;
}
.dash-search:hover, .dash-search:focus-within { border-color: var(--d-line-active); background: rgba(13,20,36,0.85); }
.dash-search svg {
  width: 16px; height: 16px; flex-shrink: 0;
  stroke: rgba(196,210,235,0.68); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.dash-search input {
  flex: 1; min-width: 0;
  background: transparent; border: none; outline: none;
  font-family: inherit;
  font-size: 0.78rem; font-weight: 500;
  color: var(--d-ink);
}
.dash-search input::placeholder { color: rgba(196,210,235,0.5); }
.dash-search .kbd {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.62rem;
  color: rgba(196,210,235,0.62);
  padding: 2px 7px;
  border: 1px solid var(--d-line);
  background: rgba(255,255,255,0.02);
  border-radius: 4px;
}
.topbar-right { display: flex; justify-content: flex-end; align-items: center; gap: 12px; min-width: 0; }
.ms-pill {
  display: inline-flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--d-line);
  background: rgba(13,20,36,0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 200ms ease;
}
.ms-pill:hover { border-color: var(--d-line-2); }
.ms-pill .ms-l { font-size: 0.74rem; font-weight: 600; color: var(--d-muted); white-space: nowrap; }
.ms-pill .ms-v { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.78rem; font-weight: 800; color: var(--d-ink); white-space: nowrap; }
.ms-pill .ms-v.ok { color: var(--d-success); }
.bell {
  position: relative;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 8px;
  border: 1px solid var(--d-line);
  background: rgba(13,20,36,0.6);
  color: var(--d-muted);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}
.bell:hover { color: var(--d-ink); border-color: var(--d-line-active); }
.bell svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.bell .badge {
  position: absolute; top: -6px; right: -6px;
  height: 20px; min-width: 20px; padding: 0 5px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: var(--d-danger);
  color: #2a0707;
  font-size: 0.62rem; font-weight: 800; line-height: 1;
  box-shadow: 0 0 0 2px var(--d-bg), 0 0 12px rgba(255,139,139,0.45);
}

/* ── Main scroll area ───────────────────────────────────────── */
.dash-main {
  flex: 1 1 0; min-width: 0; min-height: 0;
  padding: 22px 22px 24px;
  display: grid; grid-auto-rows: min-content;
  gap: 14px;
  overflow-y: auto;
}
.dash-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 18px; flex-wrap: wrap;
  margin-bottom: 2px;
}
.dash-head-text { flex: 1 1 620px; min-width: 0; }
.dash-head h3 {
  margin: 0;
  font-size: 1.65rem; font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--d-ink);
}
.dash-head p {
  margin: 4px 0 0;
  color: var(--d-muted);
  font-size: 0.8rem;
  line-height: 1.45;
  max-width: 680px;
}
.time-tabs {
  display: inline-flex;
  border: 1px solid var(--d-line);
  background: rgba(13,20,36,0.42);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.time-tabs button {
  height: 28px; min-width: 48px; padding: 0 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--d-muted);
  font-family: inherit;
  font-size: 0.74rem; font-weight: 700;
  cursor: pointer;
}
.time-tabs button:hover { color: var(--d-ink); }
.time-tabs button.active { background: var(--d-accent-soft); color: var(--d-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }

/* ── Cards (shared) ─────────────────────────────────────────── */
.dash-card {
  background: var(--d-panel-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--d-line);
  border-radius: 12px;
  box-shadow: var(--d-panel-glow);
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 8px;
}
.card-title {
  font-size: 0.92rem; font-weight: 800;
  color: var(--d-ink);
  letter-spacing: -0.005em;
}
.legend { display: inline-flex; gap: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; color: var(--d-muted); font-weight: 600; }
.legend .sw { width: 8px; height: 8px; border-radius: 3px; }

/* ── KPI cards ──────────────────────────────────────────────── */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.kpi {
  display: grid; grid-template-columns: 1fr auto;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--d-panel-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--d-line);
  border-radius: 12px;
  box-shadow: var(--d-panel-glow);
  min-height: 96px;
}
.kpi-body { min-width: 0; display: grid; gap: 6px; }
.kpi-lab {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--d-muted);
}
.kpi-lab svg {
  width: 18px; height: 18px; flex-shrink: 0;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.9;
}
.kpi-row { display: flex; align-items: baseline; gap: 10px; }
.kpi .n {
  font-family: 'Inter', sans-serif;
  font-size: 1.55rem; font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--d-ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kpi .delta {
  font-size: 0.72rem; font-weight: 800;
  color: var(--d-success);
}
.kpi .delta.dn, .kpi .delta.bad-d { color: var(--d-danger); }
.kpi .sub {
  font-size: 0.66rem;
  color: var(--d-muted);
}
.kpi .spark {
  width: 70px; height: 28px;
  overflow: visible;
}

/* ── Rows ──────────────────────────────────────────────────── */
.dash-row { display: grid; gap: 12px; min-width: 0; }
.dash-row.mid {
  grid-template-columns:
    minmax(380px, 1.32fr)
    minmax(300px, 1fr)
    minmax(270px, 0.92fr);
}
.dash-row.bot {
  grid-template-columns:
    minmax(490px, 1.4fr)
    minmax(320px, 0.92fr);
}

/* ── Volume chart card ──────────────────────────────────────── */
.volume { padding: 16px 18px; }
.volume .card-head { padding: 0 0 12px; }
.volume .chart-wrap {
  position: relative;
  height: 220px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
}
/* DOM order is <svg> then <div class="y-axis">, so pin them by column */
.volume .y-axis {
  grid-column: 1; grid-row: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 2px 0;
  text-align: right;
}
.volume svg {
  grid-column: 2; grid-row: 1;
  width: 100%; height: 100%; display: block;
  min-width: 0;
}
.volume .y-axis span { color: var(--d-dim); font-size: 0.68rem; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.volume .x-axis {
  display: grid;
  grid-template-columns: 32px 10px 1fr;
  margin-top: 8px;
  font-size: 0.66rem; color: var(--d-dim); font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.volume .x-axis .x-ticks {
  grid-column: 3;
  display: flex; justify-content: space-between;
}

/* ── Threat breakdown card ──────────────────────────────────── */
.threats { padding: 0; }
.threats .card-head { padding: 16px 18px 4px; }
.threats-body {
  flex: 1; padding: 10px 18px 18px;
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.5fr);
  gap: 18px;
  align-items: center;
}
.donut {
  position: relative; width: 122px; height: 122px;
  margin: 4px auto;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.42));
}
.donut .donut-ring {
  width: 100%; height: 100%; border-radius: 50%;
  background: conic-gradient(
    var(--d-danger)    0      29%,
    var(--d-orange)    29%    50%,
    var(--d-warning)   50%    65%,
    var(--d-lavender)  65%    77%,
    var(--d-accent)    77%    85%,
    var(--d-neutral)   85%    100%
  );
  box-shadow: 0 18px 42px rgba(2,6,16,0.28);
}
.donut .donut-center {
  position: absolute; inset: 27px;
  border-radius: 50%;
  background: linear-gradient(180deg, #0a0f1c, #070b15);
  border: 1px solid var(--d-line);
  display: grid; place-items: center;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.donut .donut-center .n {
  font-size: 1.05rem; font-weight: 850;
  color: var(--d-ink);
  line-height: 1;
}
.donut .donut-center .l {
  margin-top: 4px;
  font-size: 0.56rem;
  color: var(--d-muted);
  line-height: 1.15;
}
.threat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; min-width: 0; }
.threat-list li { display: grid; gap: 5px; }
.threat-list .row {
  display: grid; grid-template-columns: minmax(0,1fr) auto auto;
  gap: 10px; align-items: baseline;
}
.threat-list .nm {
  display: flex; align-items: center; gap: 8px;
  min-width: 0;
  color: var(--d-muted);
  font-size: 0.7rem; font-weight: 750;
}
.threat-list .nm > span:not(.dt) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.threat-list .dt { width: 7px; height: 7px; border-radius: 999px; flex-shrink: 0; }
.threat-list .v {
  color: var(--d-ink);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem; font-weight: 850;
}
.threat-list .pc {
  color: var(--d-dim);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.66rem; font-weight: 750;
  min-width: 42px; text-align: right;
}
.threat-list .bar {
  height: 5px;
  background: rgba(83,105,138,0.18);
  overflow: hidden;
  border-radius: 0;
}
.threat-list .bar span {
  display: block; height: 100%;
  opacity: 0.78;
}

/* ── Plan usage card ────────────────────────────────────────── */
.plan { padding: 0; }
.plan .card-head { padding: 16px 18px 4px; }
.plan-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--d-line);
  color: var(--d-muted);
  font-size: 0.66rem; font-weight: 600;
}
.usage { padding: 6px 18px 18px; }
.u { padding: 12px 0; border-bottom: 1px solid var(--d-line); }
.u:last-child { border-bottom: none; }
.u-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; }
.u-ico {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--d-accent-soft);
  color: var(--d-accent-2);
  border: 1px solid var(--d-line);
}
.u-ico svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.u-name { font-size: 0.78rem; font-weight: 800; color: var(--d-ink); }
.u-sub { margin-top: 2px; font-size: 0.66rem; color: var(--d-muted); }
.u-r { text-align: right; }
.u-n { font-size: 1rem; font-weight: 800; color: var(--d-ink); font-variant-numeric: tabular-nums; }
.u-tot { color: var(--d-muted); font-size: 0.72rem; font-weight: 700; margin-left: 3px; }
.u .bar {
  margin-top: 10px;
  height: 6px;
  border-radius: 999px;
  background: rgba(83,105,138,0.18);
  overflow: hidden;
}
.u .bar span {
  display: block; height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--d-accent), rgba(47,125,211,0.68));
}
.u-foot {
  margin-top: 6px;
  font-size: 0.66rem;
  color: var(--d-accent);
}

/* ── Live sessions card ─────────────────────────────────────── */
.sessions { padding: 0; overflow: hidden; }
.sessions-head { padding: 14px 18px; border-bottom: 1px solid var(--d-line); }
.card-title-row { display: inline-flex; align-items: center; gap: 10px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--d-success-soft);
  color: var(--d-success);
  border: 1px solid rgba(22,163,107,0.24);
  font-size: 0.66rem; font-weight: 800;
}
.live-pill .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 8px var(--d-success);
  animation: dashPulse 1.6s ease-in-out infinite;
}
@keyframes dashPulse { 0%,100%{ opacity: 1; } 50%{ opacity: 0.4; } }
.head-actions { display: inline-flex; gap: 7px; }
.head-actions .ic {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 6px;
  border: 1px solid var(--d-line-2);
  background: rgba(255,255,255,0.025);
  color: var(--d-muted);
  cursor: pointer;
}
.head-actions .ic svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.head-actions .ic:hover { color: var(--d-ink); border-color: var(--d-line-active); }

.sess-table { width: 100%; border-collapse: collapse; }
.sess-table thead th {
  text-align: left;
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--d-dim);
  padding: 12px 18px;
  border-bottom: 1px solid var(--d-line);
}
.sess-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--d-line);
  color: var(--d-muted);
  font-size: 0.74rem;
  vertical-align: middle;
}
.sess-table tbody tr:last-child td { border-bottom: none; }
.sess-table tbody tr:hover td { background: rgba(255,255,255,0.025); cursor: pointer; }
.sess-table td.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.7rem; font-weight: 750; color: var(--d-ink); }
.sess-table td:nth-child(2), .sess-table td:nth-child(3) { color: var(--d-muted); font-size: 0.7rem; }
.sess-table td.dim { color: var(--d-dim); }

.risk {
  display: inline-block; min-width: 31px;
  text-align: center;
  padding: 3px 7px;
  border-radius: 7px;
  font-size: 0.7rem; font-weight: 850;
  font-variant-numeric: tabular-nums;
}
.risk.lo { color: var(--d-success); background: var(--d-success-soft); }
.risk.md { color: var(--d-warning); background: var(--d-warning-soft); }
.risk.hi { color: var(--d-danger);  background: var(--d-danger-soft); }

.act {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 0.68rem; font-weight: 850;
  text-transform: capitalize;
  border: 1px solid transparent;
}
.act.good { color: var(--d-success); background: var(--d-success-soft); border-color: rgba(22,163,107,0.28); }
.act.bad  { color: var(--d-danger);  background: var(--d-danger-soft);  border-color: rgba(220,63,79,0.28); }
.act.warn { color: var(--d-warning); background: var(--d-warning-soft); border-color: rgba(217,144,25,0.28); }

.pager {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--d-line);
  color: var(--d-muted);
  font-size: 0.72rem;
}
.pager .pg { display: inline-flex; align-items: center; gap: 8px; }
.pager .pg button {
  min-width: 28px; height: 28px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--d-muted);
  font-family: inherit;
  font-size: 0.72rem; font-weight: 750;
  cursor: pointer;
}
.pager .pg button:hover { color: var(--d-ink); background: rgba(255,255,255,0.035); }
.pager .pg button.active {
  border-color: var(--d-line-active);
  background: var(--d-accent-soft);
  color: var(--d-ink);
}
.pager .pg .ell { color: var(--d-dim); padding: 0 4px; }

/* ── Endpoint card ──────────────────────────────────────────── */
.endpoints { padding: 16px 18px; }
.endpoints .card-head { padding: 0 0 14px; }
.ep-card-head { display: grid; grid-template-columns: minmax(0,1fr) 82px 96px; gap: 10px; align-items: baseline; }
.ep-head { display: contents; }
.ep-head span {
  font-size: 0.62rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--d-dim);
  text-align: right;
}
.ep-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ep-list li { display: grid; gap: 8px; }
.ep-row {
  display: grid; grid-template-columns: minmax(0,1fr) 82px 96px;
  gap: 10px; align-items: baseline;
}
.ep-name {
  color: var(--d-ink);
  font-size: 0.74rem; font-weight: 800;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.ep-v {
  color: var(--d-ink);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.74rem; font-weight: 800;
  text-align: right;
}
.ep-pc {
  color: var(--d-muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.74rem; font-weight: 800;
  text-align: right;
}
.ep-bar { height: 6px; border-radius: 999px; background: rgba(83,105,138,0.18); overflow: hidden; }
.ep-bar span { display: block; height: 100%; border-radius: 999px; }

/* ────────────────────────────────────────────────────────────────────
 * Overview screen — redesigned editorial console layout
 * Big metric hero · stacked bar chart · live verdict ticker · ranked rails
 * No card tiles, no donut. Lean on type + horizontal rules + mono numbers.
 * ──────────────────────────────────────────────────────────────────── */

.ov-header { padding: 6px 0 10px; }
.ov-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--d-dim);
  margin-bottom: 10px;
}
.ov-eyebrow .live-marker {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--d-success);
  box-shadow: 0 0 8px var(--d-success);
  animation: livePulse 2s ease-in-out infinite;
}

.ov-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--d-ink);
  line-height: 1.15;
}
.ov-sub {
  margin: 6px 0 0;
  color: var(--d-muted);
  font-size: 0.84rem;
  line-height: 1.5;
  max-width: 680px;
}

/* Four-up verdict strip */
.ov-strip {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--d-line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(13,20,36,0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ov-strip-item {
  padding: 18px 22px;
  display: grid; gap: 6px;
  position: relative;
  border-right: 1px solid var(--d-line);
  transition: background 200ms ease;
}
.ov-strip-item:last-child { border-right: none; }
.ov-strip-item:hover { background: rgba(255,255,255,0.018); }
.ov-strip-item::after {
  content: ""; position: absolute;
  left: 22px; right: 22px; bottom: 0; height: 2px;
  border-radius: 2px 2px 0 0;
}
.ov-strip-item.allow::after     { background: var(--d-success); box-shadow: 0 0 12px var(--d-success); }
.ov-strip-item.block::after     { background: var(--d-danger);  box-shadow: 0 0 12px var(--d-danger); }
.ov-strip-item.challenge::after { background: var(--d-warning); box-shadow: 0 0 12px var(--d-warning); }
.ov-strip-item.monitor::after   { background: var(--d-accent);  box-shadow: 0 0 12px var(--d-accent); }
.ov-strip-label {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--d-muted);
}
.ov-strip-pct {
  font-size: 2.1rem; font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--d-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-top: 2px;
}
.ov-strip-n {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem; color: var(--d-dim);
  margin-top: 2px;
}

/* Section heads — simple rule with title + tools */
.ov-section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--d-line);
  margin-bottom: 12px;
}
.ov-section-head h2 {
  margin: 0;
  font-size: 0.78rem; font-weight: 800;
  color: var(--d-ink);
  letter-spacing: 0.14em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
}
.ov-section-title { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 240px; }
.ov-section-sub {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--d-dim);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
}
.ov-section-head h2 .live-marker {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--d-success);
  box-shadow: 0 0 8px var(--d-success);
  animation: livePulse 1.6s ease-in-out infinite;
}
.ov-section-tools {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: flex-end;
}
.ov-rail-meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem; font-weight: 600;
  color: var(--d-dim);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.ov-pause {
  background: transparent; border: 1px solid var(--d-line);
  color: var(--d-muted);
  padding: 5px 12px; border-radius: 6px;
  font-family: inherit; font-size: 0.72rem; font-weight: 700;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}
.ov-pause:hover { color: var(--d-ink); border-color: var(--d-line-2); }
.ov-pause.paused { color: var(--d-warning); border-color: rgba(255,209,102,0.32); }

/* Chart section */
.ov-chart-section {
  padding: 12px 14px;
  border: 1px solid var(--d-line);
  border-radius: 10px;
  background: var(--d-panel-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--d-panel-glow);
  display: flex; flex-direction: column;
  min-width: 0;
}

/* Half/half row: traffic overview + decision breakdown, 50/50.
 * Spans the full dashboard width; inner sizing is slightly tightened
 * (pie/chart/headings) so the cards feel more compact without losing space. */
.ov-half {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}
.ov-half > .ov-chart-section { margin-top: 0; }
.ov-half .ov-chart { min-height: 170px; }
.ov-half .ov-pie { width: 168px; height: 168px; }
.ov-half .ov-pie .pie-hole { width: 114px; height: 114px; }
.ov-half .ov-pie .pie-num { font-size: 1.32rem; }
.ov-half .ov-section-head h2 { font-size: 0.95rem; }
.ov-half .ov-section-sub { font-size: 0.7rem; }
/* Anchor the traffic time-range tabs to the far right of the header,
 * regardless of how the legend wraps next to it. */
.ov-half .ov-chart-section #traffic-ranges { margin-left: auto; order: 99; }

/* Decision breakdown card */
.ov-decisions-section {
  padding: 12px 14px;
  border: 1px solid var(--d-line);
  border-radius: 10px;
  background: var(--d-panel-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--d-panel-glow);
  display: flex; flex-direction: column;
  position: relative;
}
.region-tabs {
  display: inline-flex;
  border: 1px solid var(--d-line);
  background: rgba(13,20,36,0.42);
  border-radius: 8px;
  padding: 3px; gap: 2px;
}
.region-tabs button {
  height: 26px; padding: 0 11px;
  border: none; border-radius: 6px;
  background: transparent;
  color: var(--d-muted);
  font-family: inherit; font-size: 0.7rem; font-weight: 700;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}
.region-tabs button:hover { color: var(--d-ink); }
.region-tabs button.active { background: var(--d-accent-soft); color: var(--d-ink); }

/* Pie above legend so the 200px donut isn't crammed beside the legend
 * inside the half-width decisions card. */
.ov-decisions-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 8px 4px 4px;
}

/* Donut chart with SVG arc draw-in animation */
.ov-pie {
  position: relative;
  width: 200px; height: 200px;
  margin: 0 auto;
}
.ov-pie svg {
  width: 100%; height: 100%; display: block;
  overflow: visible;
}
.ov-pie .pie-arc {
  transform-origin: 100px 100px;
  animation: pieArcIn 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--delay, 0ms);
}
@keyframes pieArcIn {
  from { stroke-dasharray: 0 100; }
  to   { stroke-dasharray: var(--len) calc(100 - var(--len)); }
}
.ov-pie .pie-hole {
  position: absolute;
  top: 50%; left: 50%;
  width: 136px; height: 136px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #0a0f1c, #070b15);
  border: 1px solid var(--d-line);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  animation: pieHoleIn 700ms cubic-bezier(0.16, 1, 0.3, 1) 300ms both;
}
@keyframes pieHoleIn {
  from { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
  to   { transform: translate(-50%, -50%) scale(1);    opacity: 1; }
}
.ov-pie .pie-num {
  font-size: 1.55rem; font-weight: 800;
  color: var(--d-ink);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.ov-pie .pie-lab {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6rem; font-weight: 700;
  color: var(--d-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Pie legend list */
.ov-pie-legend {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 4px;
}
.ov-pie-legend li {
  display: grid;
  grid-template-columns: 10px minmax(0,1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--d-line);
  transition: background 160ms ease;
}
.ov-pie-legend li:last-child { border-bottom: none; }
.ov-pie-legend li:hover { background: rgba(255,255,255,0.018); }
.ov-pie-legend .sw {
  width: 10px; height: 10px; border-radius: 3px;
}
.ov-pie-legend .nm {
  font-size: 0.84rem; font-weight: 700; color: var(--d-ink);
}
.ov-pie-legend .v {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem; font-weight: 700; color: var(--d-ink);
}
.ov-pie-legend .pct {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.74rem; color: var(--d-muted);
  min-width: 48px; text-align: right;
}
.ov-legend {
  display: inline-flex; align-items: center; flex-wrap: wrap;
  gap: 6px 12px;
  white-space: nowrap;
}
.ov-legend span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; color: var(--d-muted); font-weight: 600;
  white-space: nowrap;
}
.ov-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

.ov-chart {
  flex: 1 1 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  min-height: 200px;
}
.ov-chart-y {
  display: flex; flex-direction: column; justify-content: space-between;
  text-align: right;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem; color: var(--d-dim);
}

/* Smooth stacked area chart */
.ov-area {
  position: relative;
  width: 100%; height: 100%;
}
.ov-area svg {
  width: 100%; height: 100%;
  display: block;
  overflow: visible;
}
.ov-area .grid-line {
  stroke: var(--d-line);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  opacity: 0.5;
  shape-rendering: crispEdges;
}
.ov-area .area-fill {
  opacity: 0;
  animation: areaFadeIn 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.ov-area .area-fill.l1 { animation-delay: 0ms; }
.ov-area .area-fill.l2 { animation-delay: 100ms; }
.ov-area .area-fill.l3 { animation-delay: 200ms; }
@keyframes areaFadeIn { to { opacity: 1; } }
.ov-area .area-stroke {
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: drawLine 1400ms cubic-bezier(0.16, 1, 0.3, 1) both;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.4));
}
.ov-area .area-stroke.l1 { animation-delay: 100ms; }
.ov-area .area-stroke.l2 { animation-delay: 240ms; }
.ov-area .area-stroke.l3 { animation-delay: 380ms; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.ov-area .live-dot {
  fill: var(--d-success);
  filter: drop-shadow(0 0 8px var(--d-success));
}
.ov-area .live-ring {
  fill: none;
  stroke: var(--d-success);
  stroke-opacity: 0.6;
  stroke-width: 1.2;
  transform-origin: var(--cx) var(--cy);
  transform-box: fill-box;
  animation: liveExpand 2.2s ease-out infinite;
}
.ov-area .live-ring.l2 { animation-delay: 1.1s; }
@keyframes liveExpand {
  0%   { r: 4;  opacity: 0.9; stroke-width: 1.4; }
  100% { r: 22; opacity: 0;   stroke-width: 0.3; }
}
.ov-area .crosshair {
  stroke: rgba(255,255,255,0.12);
  stroke-width: 1; stroke-dasharray: 2 3;
  pointer-events: none;
}

.ov-chart-x {
  display: flex; gap: 14px;
  margin-top: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem; color: var(--d-dim);
}
.ov-chart-x::before { content: ""; flex: 0 0 36px; }
.ov-chart-x span { flex: 1; text-align: left; }
.ov-chart-x span:last-child { text-align: right; }

/* Split: live ticker (hero) + right rails */
.ov-split {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr);
  gap: 18px;
}

/* Each block in the split is a bordered card */
.ov-live, .ov-rail {
  border: 1px solid var(--d-line);
  border-radius: 12px;
  background: var(--d-panel-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--d-panel-glow);
}
.ov-rail { padding: 18px 20px; }
.ov-live { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.ov-live > .ov-live-head {
  padding: 14px 18px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--d-line);
}
.ov-live > .ov-live-head h2 {
  font-size: 1rem; font-weight: 700;
  text-transform: none; letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 10px;
}

/* Live ticker */
.ov-live-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  max-height: 480px;
  overflow: hidden;
  position: relative;
}
.ov-live-list::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--d-bg));
  pointer-events: none;
}
.ov-live-list li {
  display: grid;
  grid-template-columns: 100px 110px 1fr 120px 56px;
  gap: 16px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--d-line);
  align-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.74rem;
  animation: tickerIn 460ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes tickerIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ov-live-list .t { color: var(--d-dim); }
.ov-live-list .v {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.66rem;
}
.ov-live-list .v::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
.ov-live-list .v.allow     { color: var(--d-success); }
.ov-live-list .v.block     { color: var(--d-danger); }
.ov-live-list .v.challenge { color: var(--d-warning); }
.ov-live-list .v.monitor   { color: var(--d-accent); }
.ov-live-list .ip { color: var(--d-ink); }
.ov-live-list .ep { color: var(--d-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-live-list .ms { color: var(--d-dim); text-align: right; }

/* Rails */
.ov-rails { display: flex; flex-direction: column; gap: 18px; }
.ov-rail { display: flex; flex-direction: column; }

/* Ranked list */
.ov-ranked { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.ov-ranked li {
  display: grid; grid-template-columns: 22px minmax(0,1fr) auto 60px; gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--d-line);
  align-items: center;
}
.ov-ranked li:last-child { border-bottom: none; }
.ov-ranked li::before {
  counter-increment: rank;
  content: counter(rank, decimal-leading-zero);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem; font-weight: 700;
  color: var(--d-dim);
}
.ov-ranked .nm { font-size: 0.82rem; font-weight: 600; color: var(--d-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-ranked .v {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem; font-weight: 700; color: var(--d-ink);
}
.ov-ranked .sk { width: 60px; height: 18px; }

/* Live Verdicts table — row stagger + new-row scan highlight */
.ov-live .sess-table tbody tr {
  animation: verdictRowIn 540ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ov-live .sess-table tbody tr:nth-child(1) { animation-delay: 80ms; }
.ov-live .sess-table tbody tr:nth-child(2) { animation-delay: 160ms; }
.ov-live .sess-table tbody tr:nth-child(3) { animation-delay: 240ms; }
.ov-live .sess-table tbody tr:nth-child(4) { animation-delay: 320ms; }
.ov-live .sess-table tbody tr:nth-child(5) { animation-delay: 400ms; }
@keyframes verdictRowIn {
  from { opacity: 0; transform: translateY(-6px); background: rgba(118,174,232,0.10); }
  to   { opacity: 1; transform: translateY(0);    background: transparent; }
}
/* Pulse the topmost row's left border to suggest a fresh arrival */
.ov-live .sess-table tbody tr:first-child td:first-child {
  position: relative;
}
.ov-live .sess-table tbody tr:first-child td:first-child::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px; width: 2px;
  background: var(--d-success);
  border-radius: 2px;
  animation: liveTickerPulse 2.4s ease-in-out infinite;
  box-shadow: 0 0 8px var(--d-success);
}
@keyframes liveTickerPulse {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

/* Traffic by Endpoint — base layout */
.ov-eps { list-style: none; margin: 0; padding: 0; }
.ov-eps li {
  padding: 11px 0;
  border-bottom: 1px solid var(--d-line);
}
.ov-eps li:last-child { border-bottom: none; }
.ov-eps .row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.ov-eps .nm {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.82rem; font-weight: 700;
  color: var(--d-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ov-eps .v {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.74rem; font-weight: 700;
  color: var(--d-ink);
  white-space: nowrap;
}
.ov-eps .v em {
  color: var(--d-muted);
  font-style: normal;
  font-weight: 500;
}
.ov-eps .bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(122,139,176,0.14);
  overflow: hidden;
}
.ov-eps .bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--d-accent), var(--d-accent-2));
  box-shadow: 0 0 12px rgba(118,174,232,0.34);
}

/* Hot Endpoints — bar grow + count-up cascade */
.ov-eps li {
  animation: epRowIn 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ov-eps li:nth-child(1) { animation-delay: 120ms; }
.ov-eps li:nth-child(2) { animation-delay: 200ms; }
.ov-eps li:nth-child(3) { animation-delay: 280ms; }
.ov-eps li:nth-child(4) { animation-delay: 360ms; }
.ov-eps li:nth-child(5) { animation-delay: 440ms; }
@keyframes epRowIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.ov-eps .bar span {
  transform-origin: left;
  animation: epBarGrow 1000ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ov-eps li:nth-child(1) .bar span { animation-delay: 240ms; }
.ov-eps li:nth-child(2) .bar span { animation-delay: 320ms; }
.ov-eps li:nth-child(3) .bar span { animation-delay: 400ms; }
.ov-eps li:nth-child(4) .bar span { animation-delay: 480ms; }
.ov-eps li:nth-child(5) .bar span { animation-delay: 560ms; }
@keyframes epBarGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Geo */
.ov-geo { list-style: none; margin: 0; padding: 0; }
.ov-geo li {
  display: grid; grid-template-columns: 1fr auto;
  gap: 12px; padding: 9px 0;
  border-bottom: 1px solid var(--d-line);
  align-items: center;
}
.ov-geo li:last-child { border-bottom: none; }
.ov-geo .nm { display: inline-flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--d-ink); }
.ov-geo .dot { width: 6px; height: 6px; border-radius: 50%; }
.ov-geo .v { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.78rem; font-weight: 700; color: var(--d-ink); }

/* Overview-only main padding tightening */
.dashboard #screen-overview .ov-header { padding-top: 12px; }



/* ─── How it works ─────────────────── */
section.how { padding: var(--section-y) 0; background: var(--bg-0); border-top: 1px solid var(--line); }
.how-steps { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step { padding: 28px 28px 32px; border-left: 1px solid var(--line); position: relative; }
.step:first-child { border-left: none; }
.step .n { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; color: var(--accent); letter-spacing: 0.08em; }
.step h3 { margin: 12px 0 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.step p { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.step pre { margin: 18px 0 0; padding: 14px 16px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink-1); font-size: 12px; font-family: 'JetBrains Mono', ui-monospace, monospace; line-height: 1.6; overflow-x: auto; }
.tok-c { color: var(--ink-3); } .tok-k { color: var(--accent-2); } .tok-s { color: var(--good); } .tok-r { color: var(--bad); } .tok-w { color: var(--warn); }

/* ─── Threat coverage ──────────────── */
section.threats { padding: var(--section-y) 0; background: var(--bg-1); border-top: 1px solid var(--line); }
.threat-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.threat { padding: 24px 28px 26px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); display: grid; grid-template-columns: 36px 1fr; gap: 16px; align-items: start; transition: background 150ms; }
.threat:hover { background: rgba(255,255,255,0.015); }
.threat:nth-child(3n) { border-right: none; }
.threat:nth-child(n+4) { border-bottom: none; }
@media (max-width: 980px) { .threat:nth-child(n+4) { border-bottom: 1px solid var(--line); } .threat:last-child { border-bottom: none; } }
.threat .glyph { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(118,174,232,0.05); display: grid; place-items: center; }
.threat .glyph svg { width: 18px; height: 18px; stroke: var(--accent-2); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.threat h4 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.threat p { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.threat .ref { margin-top: 10px; display: inline-flex; gap: 6px; font-size: 11px; color: var(--ink-3); font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ─── Developer experience ─────────── */
section.devx { padding: var(--section-y) 0; background: var(--bg-0); border-top: 1px solid var(--line); }
.devx-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.devx-list { margin: 32px 0 0; display: grid; gap: 16px; padding: 0; list-style: none; }
.devx-list li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-1); }
.devx-list li:first-child { border-top: none; padding-top: 0; }
.devx-list li svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.devx-list li .desc { display: block; margin-top: 3px; color: var(--ink-3); font-size: 12.5px; line-height: 1.55; }
.code-panel { background: linear-gradient(180deg, #080b13, #060a11); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.04); }
.code-tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 8px; }
.code-tabs button { background: transparent; border: none; color: var(--ink-3); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; padding: 12px 14px; cursor: pointer; border-bottom: 2px solid transparent; transition: color 150ms, border-color 150ms; }
.code-tabs button:hover { color: var(--ink-1); }
.code-tabs button.active { color: var(--ink); border-bottom-color: var(--accent); }
.code-body { padding: 22px 24px; min-height: 360px; }
.code-body pre { margin: 0; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12.5px; line-height: 1.7; color: var(--ink-1); white-space: pre-wrap; }
.code-body [hidden] { display: none; }

/* ─── At-scale metrics ─────────────── */
section.scale { padding: 96px 0; background: linear-gradient(180deg, #060a12, #050810); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.scale::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 24px 24px; mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%); opacity: 0.5; pointer-events: none; }
.scale-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.scale-stat { padding: 16px 28px; border-left: 1px solid var(--line); text-align: left; }
.scale-stat:first-child { border-left: none; padding-left: 0; }
.scale-stat .n { font-size: clamp(40px, 5.4vw, 64px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.scale-stat .l { margin-top: 12px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.scale-stat .d { margin-top: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.5; max-width: 200px; }

/* ─── Quote ────────────────────────── */
section.quote { padding: var(--section-y) 0; background: var(--bg-0); border-top: 1px solid var(--line); }
.quote-card { max-width: 880px; margin: 0 auto; text-align: center; }
.quote-card .marks { font-family: 'Inter', serif; font-size: 56px; color: var(--accent); line-height: 0.5; opacity: 0.5; }
.quote-card blockquote { margin: 18px 0 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; letter-spacing: -0.02em; font-weight: 500; color: var(--ink); text-wrap: balance; }
.quote-card blockquote em { font-style: normal; color: var(--accent-2); }
.quote-card .who { margin-top: 32px; display: inline-flex; align-items: center; gap: 14px; }
.quote-card .who .ava { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #2a3554, #182234); border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--ink-1); }
.quote-card .who .meta { text-align: left; font-size: 13px; }
.quote-card .who .meta .n { color: var(--ink); font-weight: 600; }
.quote-card .who .meta .r { color: var(--ink-3); margin-top: 2px; }

/* ─── FAQ ──────────────────────────── */
section.faq { padding: var(--section-y) 0; background: var(--bg-1); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { padding: 22px 0; cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr 22px; align-items: center; gap: 16px; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); transition: color 150ms; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-2); }
.faq-item summary .icon { width: 18px; height: 18px; position: relative; }
.faq-item summary .icon::before, .faq-item summary .icon::after { content: ""; position: absolute; background: var(--ink-2); transition: transform 200ms; }
.faq-item summary .icon::before { left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; }
.faq-item summary .icon::after { top: 0; bottom: 0; left: 50%; width: 1.5px; margin-left: -0.75px; }
.faq-item[open] summary .icon::after { transform: scaleY(0); }
.faq-item .body { padding: 0 32px 22px 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.65; max-width: 64ch; }
.faq-item .body p + p { margin-top: 12px; }
.faq-item .body code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12.5px; padding: 1px 6px; border-radius: 4px; background: rgba(255,255,255,0.04); color: var(--ink-1); }

/* ─── Final CTA ────────────────────── */
section.cta-final { padding: 96px 0; background: radial-gradient(900px 500px at 50% 0%, rgba(118,174,232,0.12), transparent 65%), linear-gradient(180deg, #070b15, #05080f); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.cta-final-card { text-align: center; max-width: 720px; margin: 0 auto; }
.cta-final-card h2 { margin: 16px 0 0; font-size: clamp(32px, 4vw, 52px); line-height: 1; letter-spacing: -0.04em; font-weight: 700; text-wrap: balance; }
.cta-final-card p { margin: 18px 0 32px; font-size: 16px; color: var(--ink-2); line-height: 1.6; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-final-actions { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ─── Footer ───────────────────────── */
footer.site { padding: 64px 0 32px; background: #05080f; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand .brand img { width: 44px; height: 44px; }
.footer-brand .brand span { font-size: 18px; }
.footer-brand p { color: var(--ink-3); font-size: 13px; line-height: 1.55; max-width: 26ch; margin: 0; }
.footer-status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 11.5px; color: var(--ink-2); font-family: 'JetBrains Mono', ui-monospace, monospace; }
.footer-compliance .footer-status { margin-top: 0; }
.footer-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }
.footer-compliance { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.compliance-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; color: var(--ink-2); font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.02em; background: rgba(255,255,255,0.015); }
.compliance-badge svg { color: var(--accent-2); flex-shrink: 0; }
.footer-col h5 { margin: 0 0 14px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.footer-col a { display: block; padding: 5px 0; font-size: 13.5px; color: var(--ink-1); transition: color 150ms; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; gap: 16px; }
.footer-bottom .legal { display: flex; gap: 22px; }
.footer-bottom .legal a:hover { color: var(--ink-1); }

/* ─── Responsive ───────────────────── */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 1100px) {
  .devx-grid, .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .threat-grid { grid-template-columns: repeat(2, 1fr); }
  .threat:nth-child(3n) { border-right: 1px solid var(--line); }
  .threat:nth-child(2n) { border-right: none; }
  .scale-grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .scale-stat:nth-child(3) { border-left: none; padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  /* .dashboard always renders at natural 1600px and is scaled by JS,
   * so its internal layout must NOT collapse based on viewport width. */
}
@media (max-width: 720px) {
  :root { --section-y: 80px; --pad-x: 20px; }
  nav.primary { display: none; }
  .signin { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stat { border-left: none; padding-left: 0; padding-right: 0; }
  .how-steps, .threat-grid, .scale-grid { grid-template-columns: 1fr; }
  .step { border-left: none; border-top: 1px solid var(--line); }
  .step:first-child { border-top: none; }
  .threat { border-right: none !important; }
  .scale-stat { border-left: none; padding-left: 0; }
  .row-grid { grid-template-columns: 84px minmax(0, 1fr) 38px; }
  .row-grid .ip, .row-grid .ua { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════════════════════════
 * Why now — threat-landscape section
 * ════════════════════════════════════════════════════════════════ */
section.whynow { padding: var(--section-y) 0; position: relative; overflow: hidden; border-top: 1px solid var(--line); }
section.whynow::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 18% -10%, rgba(118,174,232,0.06), transparent 60%),
    radial-gradient(700px 380px at 88% 110%, rgba(255,139,139,0.04), transparent 60%);
  pointer-events: none;
}
.whynow-head { max-width: 760px; }
.whynow-head .section-title { max-width: 18ch; }
.whynow-head .section-lede { max-width: 64ch; }
.whynow-grid {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  position: relative; z-index: 1;
}
.wn-card {
  background: linear-gradient(180deg, rgba(13,20,36,0.7) 0%, rgba(8,12,22,0.7) 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px 24px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
  transition: border-color 200ms ease, transform 200ms ease;
}
.wn-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.wn-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 56px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.wn-stat {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  font-feature-settings: "ss01";
  display: inline-flex; align-items: baseline; gap: 4px;
}
.wn-unit, .wn-prefix { font-size: 0.55em; color: var(--ink-2); font-weight: 600; }
.wn-arrow { color: var(--accent); font-size: 0.55em; transform: translateY(-0.1em); }
.wn-arrow.up { color: var(--accent-2); }
.wn-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.wn-card > p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.wn-tag {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-3);
  letter-spacing: -0.005em;
}
.whynow-foot {
  margin-top: 36px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13,20,36,0.5);
  position: relative; z-index: 1;
}
.wn-foot-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  color: var(--ink-3);
}
.wn-foot-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--bad);
  box-shadow: 0 0 12px var(--bad);
  animation: wn-pulse 2.2s ease-in-out infinite;
}
@keyframes wn-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.wn-foot-line { font-size: 13.5px; color: var(--ink-1); line-height: 1.4; }
.wn-foot-line code { font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--accent-2); font-size: 12.5px; padding: 1px 6px; background: rgba(118,174,232,0.08); border-radius: 4px; }
@media (max-width: 900px) {
  .whynow-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════
 * Platform overview — 3 pillars
 * ════════════════════════════════════════════════════════════════ */
section.platform { padding: var(--section-y) 0; position: relative; border-top: 1px solid var(--line); }
.platform-head { max-width: 760px; }
.platform-head .section-title { max-width: 22ch; }
.pillars {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.pillar {
  position: relative;
  padding: 24px 22px 22px;
  display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, rgba(13,20,36,0.7) 0%, rgba(8,12,22,0.7) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.pillar:hover { border-color: var(--line-2); transform: translateY(-3px); }
.pillar-live { box-shadow: 0 0 0 1px rgba(118,174,232,0.12) inset; }
.pillar-live::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.pillar-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  color: var(--ink-3);
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; }
.status-dot.live { background: var(--good); box-shadow: 0 0 10px var(--good); animation: wn-pulse 2.2s ease-in-out infinite; }
.status-dot.soon { background: var(--ink-3); opacity: 0.6; }
.pillar-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(118,174,232,0.10) 0%, rgba(118,174,232,0.02) 100%);
  border: 1px solid rgba(118,174,232,0.22);
  color: var(--accent-2);
}
.pillar-soon .pillar-icon { background: rgba(13,20,36,0.6); border-color: var(--line-2); color: var(--ink-2); }
.pillar-icon svg { width: 22px; height: 22px; }
.pillar h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.pillar-desc { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.pillar-feats { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pillar-feats li { font-size: 13px; color: var(--ink-1); display: inline-flex; align-items: center; gap: 9px; }
.pf-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.pf-dot.good { background: var(--good); box-shadow: 0 0 6px var(--good); }
.pf-dot.soft { background: var(--ink-3); opacity: 0.55; }
.pillar-cta {
  margin-top: auto; padding-top: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600;
  color: var(--accent-2);
  border-top: 1px solid var(--line);
  transition: color 150ms ease, gap 200ms ease;
}
.pillar-cta:hover { color: var(--ink); gap: 10px; }
.pillar-cta.soon { color: var(--ink-2); }
.pillar-cta.soon:hover { color: var(--ink); }
.pillar-cta .arrow { font-size: 15px; }
@media (max-width: 980px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════
 * Code Virtualizer
 * ════════════════════════════════════════════════════════════════ */
section.virtualizer { padding: var(--section-y) 0; position: relative; border-top: 1px solid var(--line); overflow: hidden; }
section.virtualizer::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(800px 420px at 78% 18%, rgba(159,200,255,0.06), transparent 60%);
  pointer-events: none;
}
.virt-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px; align-items: start;
  position: relative; z-index: 1;
}
.virt-left .section-title { max-width: 22ch; }
.virt-left .section-lede { max-width: 56ch; }
.virt-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.virt-list li { display: flex; gap: 12px; align-items: flex-start; }
.virt-list strong { display: block; color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.vl-desc { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.vl-mark {
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(118,174,232,0.14) 0%, rgba(118,174,232,0.04) 100%);
  border: 1px solid rgba(118,174,232,0.25);
  color: var(--accent-2);
}
.vl-mark svg { width: 13px; height: 13px; }
.virt-cta { margin-top: 32px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.virt-cta .btn-secondary { display: inline-flex; align-items: center; gap: 6px; }
.virt-cta .btn-secondary .arrow { font-size: 15px; }
.virt-meta { font-size: 12.5px; color: var(--ink-3); }

.virt-code {
  background: linear-gradient(180deg, #080b13, #06090f);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.04);
  display: flex; flex-direction: column;
}
.virt-code-head {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
}
.virt-code-head .dots { display: inline-flex; gap: 4px; }
.virt-code-head .dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(122,139,176,0.32); }
.virt-tabs { display: inline-flex; gap: 2px; margin-left: 4px; }
.virt-tabs button {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; font-weight: 500;
  color: var(--ink-3);
  background: transparent;
  border: none; border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  transition: color 150ms, background 150ms;
}
.virt-tabs button:hover { color: var(--ink-1); background: rgba(255,255,255,0.03); }
.virt-tabs button.active { color: var(--accent-2); background: rgba(118,174,232,0.10); }
.virt-status {
  margin-left: auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; color: var(--ink-3);
}
.virt-pre {
  margin: 0; padding: 22px 22px 24px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px; line-height: 1.65;
  color: var(--ink-1);
  white-space: pre;
  overflow-x: auto;
  background: transparent;
}
.virt-foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: rgba(5,8,15,0.5);
}
.vf-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.vf-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.vf-pill .dot.good { background: var(--good); box-shadow: 0 0 6px var(--good); }
.vf-pill .dot.soft { background: var(--ink-3); opacity: 0.55; }
@media (max-width: 980px) {
  .virt-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ════════════════════════════════════════════════════════════════
 * Fraud Intelligence teaser + waitlist
 * ════════════════════════════════════════════════════════════════ */
section.fraud { padding: var(--section-y) 0; border-top: 1px solid var(--line); }
.fraud-card {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(700px 360px at 82% 10%, rgba(255,209,102,0.06), transparent 60%),
    linear-gradient(180deg, rgba(13,20,36,0.85) 0%, rgba(8,12,22,0.85) 100%);
  overflow: hidden;
  padding: 48px 48px 44px;
}
.fraud-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,209,102,0.6), transparent);
}
.fraud-card-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px; align-items: start;
}
.fraud-title { margin: 14px 0 0; font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; max-width: 24ch; }
.fraud-lede { margin: 16px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); max-width: 54ch; }
.fraud-bullets { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fraud-bullets li { font-size: 13.5px; color: var(--ink-1); display: inline-flex; align-items: center; gap: 10px; }
.fb-mark { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 6px var(--warn); flex-shrink: 0; }

.fraud-form-wrap {
  background: linear-gradient(180deg, rgba(5,8,15,0.6) 0%, rgba(5,8,15,0.85) 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 20px;
}
.fraud-label {
  display: block;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700;
  margin-bottom: 12px;
}
.fraud-input-row { display: flex; gap: 8px; }
.fraud-input-row input {
  flex: 1;
  font-family: inherit; font-size: 14px;
  background: rgba(5,8,15,0.7);
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 150ms ease, background 150ms ease;
}
.fraud-input-row input::placeholder { color: var(--ink-3); }
.fraud-input-row input:focus { border-color: var(--accent); background: rgba(5,8,15,0.9); }
.fraud-form .btn-primary { white-space: nowrap; }
.fraud-form .fraud-meta { margin-top: 12px; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.fraud-thanks {
  display: none; align-items: center; gap: 10px;
  margin-top: 14px; padding: 10px 12px;
  background: rgba(118,227,163,0.08);
  border: 1px solid rgba(118,227,163,0.32);
  border-radius: 9px;
  color: var(--good);
  font-size: 13px; font-weight: 600;
}
.fraud-thanks .ft-check { font-size: 14px; }
.fraud-form.is-sent .fraud-thanks { display: inline-flex; }
.fraud-form.is-sent .fraud-input-row,
.fraud-form.is-sent .fraud-meta { opacity: 0.55; pointer-events: none; }

@media (max-width: 900px) {
  .fraud-card { padding: 32px 28px; }
  .fraud-card-grid { grid-template-columns: 1fr; gap: 32px; }
}
