/* ─── BrieflySec Marketing Site — Global Styles ─── */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Background hierarchy (dark) */
  --bg:                   #060a12;
  --bg-2:                 #070b14;
  --surface:              #0a0f1c;
  --surface-low:          #0e1525;
  --surface-1:            #131c2f;
  --surface-2:            #1a2332;
  --surface-3:            #1e2a3d;
  --surface-4:            #243352;
  --surface-5:            #2f3f5c;

  /* Foreground */
  --fg:                   #eef2ff;
  --fg-dim:               #c8d1e0;
  --fg-muted:             #94a3b8;
  --fg-faint:             #64748b;
  --fg-fainter:           #475569;

  /* Brand */
  --primary:              #81cfff;
  --primary-dim:          #b3e5fc;
  --action:               #0284c7;
  --action-bright:        #38bdf8;

  /* Risk severity */
  --risk-red:             #ef4444;
  --risk-orange:          #f97316;
  --risk-green:           #22c55e;
  --risk-blue:            #3b82f6;

  /* Outlines */
  --line:                 rgba(75, 85, 104, 0.5);
  --line-soft:            rgba(75, 85, 104, 0.25);
  --line-faint:           rgba(75, 85, 104, 0.12);

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

  /* Containers */
  --max-w: 1280px;
  --pad-x: clamp(20px, 4vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: var(--bg); color: var(--fg); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--surface-4); }

/* ─── Type utilities ─── */
.tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.tag-primary { color: var(--primary); }
.tag-mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-faint);
}
.mono { font-family: var(--font-mono); }
.display { font-family: var(--font-display); }

/* ─── Background atmosphere ─── */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(129, 207, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 207, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.6 0 0 0 0 0.8 0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.bg-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: drift 24s ease-in-out infinite;
}
.bg-glow.g1 { top: -300px; left: -200px; background: radial-gradient(circle, var(--action) 0%, transparent 60%); }
.bg-glow.g2 { top: 30vh; right: -300px; background: radial-gradient(circle, var(--primary) 0%, transparent 55%); opacity: 0.2; animation-delay: -8s; }
.bg-glow.g3 { top: 120vh; left: -200px; background: radial-gradient(circle, var(--risk-red) 0%, transparent 60%); opacity: 0.12; animation-delay: -16s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  33%      { transform: translate(80px, 60px); }
  66%      { transform: translate(-60px, 100px); }
}

/* ─── Layout container ─── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  position: relative;
  z-index: 1;
}

/* ─── Nav ─── */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(6, 10, 18, 0.7);
  border-bottom: 1px solid var(--line-faint);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
}
.nav-logo img { height: 30px; width: auto; }
.nav-logo .sec-int {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(129, 207, 255, 0.5);
  padding: 3px 7px;
  border: 1px solid rgba(129, 207, 255, 0.18);
  border-radius: 3px;
  background: rgba(129, 207, 255, 0.04);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 13px;
  color: var(--fg-muted);
  transition: color 200ms;
  font-weight: 500;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 11px 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: filter 150ms, transform 80ms, background 200ms, border-color 200ms;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--action) 100%);
  color: #031018;
  box-shadow: 0 0 22px rgba(129, 207, 255, 0.28), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 0 32px rgba(129, 207, 255, 0.5), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-soft);
  color: var(--fg-dim);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--line); color: var(--fg); }
.btn-sm { padding: 8px 14px; font-size: 10px; }
.btn-lg { padding: 14px 22px; font-size: 12px; }

/* ─── Section utilities ─── */
.section {
  position: relative;
  z-index: 1;
  /* Extra breathing room between sections — the larger gap gives the
     scroll-rise animation room to play before the next section commits. */
  padding: clamp(100px, 14vw, 168px) 0;
}
.section-tight { padding: clamp(56px, 8vw, 88px) 0; }
.section-tag-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 5px 8px;
  border-radius: 3px;
  background: rgba(129, 207, 255, 0.05);
  border: 1px solid rgba(129, 207, 255, 0.15);
  margin-bottom: 20px;
}
.section-tag-row .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: pulse-dot 2s ease-in-out infinite;
}
.section-tag-row .label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--primary); }
  50%      { opacity: 0.4; box-shadow: 0 0 4px var(--primary); }
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 760px;
  text-wrap: balance;
}
.section-heading .accent {
  background: linear-gradient(135deg, var(--primary), var(--action-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 620px;
  text-wrap: pretty;
}

/* ─── Reveal animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-d="1"] { transition-delay: 80ms; }
.reveal[data-d="2"] { transition-delay: 160ms; }
.reveal[data-d="3"] { transition-delay: 240ms; }
.reveal[data-d="4"] { transition-delay: 320ms; }
.reveal[data-d="5"] { transition-delay: 400ms; }

/* ─── Scroll-rise: Claude-style "lift as you scroll" ──────────────────
   Content inside every .section enters from below with a slight rise
   + fade as the section scrolls into view. Modern engines drive this
   with `animation-timeline: view()` — no JS, no jank, perfectly synced
   to scroll. Safari/Firefox fall through to the IntersectionObserver
   path below (data-revealed attr toggled in inline script).
   The stagger via :nth-child gives the section header → content cascade. */
@keyframes scroll-rise {
  from { opacity: 0; transform: translateY(48px); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .section > .container > *,
    .signal-bar > .container > * {
      animation: scroll-rise linear both;
      animation-timeline: view();
      /* Trigger ~10% into entering the viewport, finish by 45% in.
         Short range = the lift feels punchy without dragging. */
      animation-range: entry 10% cover 35%;
    }
    /* Subtle stagger: each subsequent child starts a touch later in
       its own view timeline, producing the cascading rise. */
    .section > .container > *:nth-child(2) { animation-range: entry 14% cover 38%; }
    .section > .container > *:nth-child(3) { animation-range: entry 18% cover 42%; }
    .section > .container > *:nth-child(n+4) { animation-range: entry 22% cover 46%; }
  }

  /* Fallback: opacity/transform driven by an IntersectionObserver that
     sets data-revealed="1" once the section enters viewport. */
  @supports not (animation-timeline: view()) {
    .section > .container > *,
    .signal-bar > .container > * {
      opacity: 0;
      transform: translateY(48px);
      transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
                  transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
    }
    .section[data-revealed="1"] > .container > *,
    .signal-bar[data-revealed="1"] > .container > * {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
    .section[data-revealed="1"] > .container > *:nth-child(2) { transition-delay: 80ms; }
    .section[data-revealed="1"] > .container > *:nth-child(3) { transition-delay: 160ms; }
    .section[data-revealed="1"] > .container > *:nth-child(n+4) { transition-delay: 240ms; }
  }
}

/* ─── Hero ─── */
.hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(60px, 8vw, 100px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 8px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: rgba(129, 207, 255, 0.06);
  border: 1px solid rgba(129, 207, 255, 0.15);
}
.hero-eyebrow .badge {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
  background: var(--primary);
  color: #031018;
}
.hero-eyebrow .txt {
  font-size: 12px;
  color: var(--fg-muted);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--action-bright) 60%, var(--action) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 540px;
  text-wrap: pretty;
}
.hero-ctas {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-trust {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  color: var(--fg-faint);
}
.hero-trust .stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.hero-trust .stat strong {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--fg);
  font-weight: 700;
}
.hero-trust .sep {
  width: 1px; height: 18px;
  background: var(--line-soft);
}

/* ─── Hero pipeline viz ─── */
.pipeline {
  position: relative;
  width: 100%;
  aspect-ratio: 1.15 / 1;
  max-height: 620px;
  background: linear-gradient(180deg, rgba(13, 19, 32, 0.6) 0%, rgba(7, 11, 20, 0.9) 100%);
  border: 1px solid var(--line-faint);
  border-radius: 6px;
  overflow: hidden;
  padding: 18px;
  box-shadow:
    0 0 0 1px rgba(129, 207, 255, 0.04) inset,
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(129, 207, 255, 0.08);
}
.pipeline::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(129, 207, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 207, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 40%, transparent 80%);
  pointer-events: none;
}
.pipeline-chrome {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 12px;
  border-bottom: 1px dashed var(--line-faint);
}
.pipeline-chrome .left {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.pipeline-chrome .dots {
  display: flex; gap: 4px;
}
.pipeline-chrome .dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--surface-4);
}
.pipeline-chrome .dots span:first-child { background: var(--risk-red); opacity: 0.7; }
.pipeline-chrome .dots span:nth-child(2) { background: var(--risk-orange); opacity: 0.7; }
.pipeline-chrome .dots span:nth-child(3) { background: var(--risk-green); opacity: 0.7; }
.pipeline-chrome .right {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-faint);
}

.pipeline-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.7fr 1.05fr;
  gap: 14px;
  height: calc(100% - 32px);
  padding-top: 14px;
}

/* SOURCE column */
.pipe-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.pipe-col-label {
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
  padding-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pipe-col-label .count {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--primary);
  background: rgba(129, 207, 255, 0.08);
  padding: 1px 5px;
  border-radius: 2px;
  border: 1px solid rgba(129, 207, 255, 0.15);
}
.source-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.source-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 7px;
  border-radius: 3px;
  background: rgba(20, 28, 44, 0.6);
  border: 1px solid var(--line-faint);
  font-size: 10px;
  position: relative;
  overflow: hidden;
  transition: background 250ms, border-color 250ms;
}
.source-row.active {
  background: rgba(129, 207, 255, 0.08);
  border-color: rgba(129, 207, 255, 0.3);
}
.source-row.active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(129, 207, 255, 0.15), transparent);
  animation: source-scan 1.2s ease-in-out;
}
@keyframes source-scan {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}
.source-row .fav {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: var(--surface-4);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 900;
  color: var(--fg);
}
.source-row .name {
  flex: 1;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.source-row .pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--surface-5);
  flex-shrink: 0;
  transition: background 250ms, box-shadow 250ms;
}
.source-row.active .pulse {
  background: var(--risk-green);
  box-shadow: 0 0 8px var(--risk-green);
}

/* RANKER center */
.ranker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ranker-core {
  position: relative;
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ranker-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(129, 207, 255, 0.15);
}
.ranker-ring.r2 { inset: 14px; border-color: rgba(129, 207, 255, 0.22); animation: spin 16s linear infinite; }
.ranker-ring.r3 { inset: 28px; border-color: rgba(129, 207, 255, 0.3); animation: spin 12s linear infinite reverse; }
.ranker-ring.r2::before, .ranker-ring.r3::before {
  content: "";
  position: absolute;
  top: -3px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}
@keyframes spin { to { transform: rotate(360deg); } }

.ranker-inner {
  position: relative;
  z-index: 2;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.4) 0%, rgba(6, 10, 18, 0.95) 70%);
  border: 1px solid rgba(129, 207, 255, 0.4);
  box-shadow: 0 0 40px rgba(2, 132, 199, 0.5), inset 0 0 30px rgba(129, 207, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
}
.ranker-inner .label {
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}
.ranker-inner .num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.04em;
  line-height: 1;
}
.ranker-inner .sub {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--fg-faint);
}

/* SVG connecting lines */
.pipe-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* STORIES column */
.story-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.story-card-mini {
  position: relative;
  background: rgba(20, 28, 44, 0.75);
  border: 1px solid var(--line-faint);
  border-left: 3px solid var(--surface-5);
  border-radius: 0 3px 3px 0;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1), opacity 400ms;
  flex: 1;
}
.story-card-mini.red    { border-left-color: var(--risk-red);    box-shadow: 0 0 14px rgba(239, 68, 68, 0.15); }
.story-card-mini.orange { border-left-color: var(--risk-orange); box-shadow: 0 0 14px rgba(249, 115, 22, 0.12); }
.story-card-mini.green  { border-left-color: var(--risk-green);  box-shadow: 0 0 14px rgba(34, 197, 94, 0.1); }
.story-card-mini.blue   { border-left-color: var(--risk-blue);   box-shadow: 0 0 12px rgba(59, 130, 246, 0.08); }

.story-card-mini.enter {
  animation: enter-story 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes enter-story {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.story-card-mini .head {
  display: flex; align-items: center; gap: 6px;
}
.score-pill {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 1px 5px;
  border-radius: 2px;
  border: 1px solid;
}
.score-pill.red    { color: var(--risk-red);    background: rgba(239, 68, 68, 0.1);  border-color: rgba(239, 68, 68, 0.4); }
.score-pill.orange { color: var(--risk-orange); background: rgba(249, 115, 22, 0.1); border-color: rgba(249, 115, 22, 0.4); }
.score-pill.green  { color: var(--risk-green);  background: rgba(34, 197, 94, 0.1);  border-color: rgba(34, 197, 94, 0.4); }
.score-pill.blue   { color: var(--risk-blue);   background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.4); }
.story-card-mini .src {
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.story-card-mini .time {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--fg-faint);
  white-space: nowrap;
}
.story-card-mini .title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-card-mini .tags {
  display: flex; gap: 3px; flex-wrap: nowrap; overflow: hidden;
}
.story-card-mini .tag-mini {
  font-family: var(--font-display);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1px 4px;
  border-radius: 2px;
  background: rgba(62, 74, 92, 0.35);
  border: 1px solid var(--line-faint);
  color: var(--fg-muted);
  white-space: nowrap;
}

/* ─── Signal bar ─── */
.signal-bar {
  border-top: 1px solid var(--line-faint);
  border-bottom: 1px solid var(--line-faint);
  background: linear-gradient(180deg, rgba(13, 19, 32, 0.4), rgba(7, 11, 20, 0.2));
  padding: 32px 0;
}
.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 760px) {
  .signal-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
.signal-stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--fg);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.signal-stat .num .unit {
  font-size: 0.55em;
  color: var(--primary);
  font-weight: 600;
  margin-left: 4px;
}
.signal-stat .label {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* ─── How it works ─── */
.howit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
  position: relative;
}
@media (max-width: 880px) { .howit-grid { grid-template-columns: 1fr; } }

.step-card {
  position: relative;
  border: 1px solid var(--line-faint);
  background: linear-gradient(180deg, rgba(19, 28, 47, 0.5), rgba(10, 15, 28, 0.5));
  border-radius: 5px;
  padding: 28px 24px 24px;
  overflow: hidden;
  transition: border-color 250ms, transform 300ms;
}
.step-card:hover {
  border-color: rgba(129, 207, 255, 0.25);
  transform: translateY(-2px);
}
.step-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(129, 207, 255, 0.5), transparent);
  opacity: 0;
  transition: opacity 300ms;
}
.step-card:hover::before { opacity: 1; }
.step-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-faint);
  margin-bottom: 14px;
}
.step-num .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 3px;
  background: rgba(129, 207, 255, 0.08);
  border: 1px solid rgba(129, 207, 255, 0.2);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
}
.step-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 10px;
}
.step-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
}
.step-visual {
  margin-top: 22px;
  height: 130px;
  border-radius: 4px;
  background: rgba(7, 11, 20, 0.5);
  border: 1px solid var(--line-faint);
  padding: 12px;
  position: relative;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  color: var(--fg-muted);
}

/* ─── Feature grid ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 56px;
}
@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  position: relative;
  border: 1px solid var(--line-faint);
  background: rgba(19, 28, 47, 0.3);
  border-radius: 4px;
  padding: 24px 22px 22px;
  transition: border-color 250ms, background 250ms, transform 300ms;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
}
.feature-card:hover {
  border-color: rgba(129, 207, 255, 0.25);
  background: rgba(19, 28, 47, 0.55);
  transform: translateY(-2px);
}
.feature-card .badge {
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.feature-card .icon {
  width: 36px; height: 36px;
  border-radius: 4px;
  border: 1px solid rgba(129, 207, 255, 0.2);
  background: rgba(129, 207, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.feature-card .title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--fg);
  line-height: 1.2;
}
.feature-card .desc {
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.55;
}
.feature-card .footer {
  margin-top: auto;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.feature-card .chip {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 2px;
  background: rgba(62, 74, 92, 0.3);
  border: 1px solid var(--line-faint);
  color: var(--fg-muted);
}
.feature-card.span-2 { grid-column: span 2; }
@media (max-width: 1000px) { .feature-card.span-2 { grid-column: span 1; } }

/* ─── Product screenshot mock ─── */
.product-frame {
  margin-top: 56px;
  position: relative;
  border: 1px solid var(--line-faint);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
  box-shadow:
    0 0 0 1px rgba(129, 207, 255, 0.04) inset,
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(129, 207, 255, 0.06);
}
.product-frame .titlebar {
  display: flex; align-items: center; gap: 8px;
  height: 36px;
  padding: 0 14px;
  background: var(--surface-low);
  border-bottom: 1px solid var(--line-faint);
}
.product-frame .titlebar .traffic { display: flex; gap: 6px; }
.product-frame .titlebar .traffic span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface-4);
}
.product-frame .titlebar .traffic span:first-child { background: rgba(239, 68, 68, 0.55); }
.product-frame .titlebar .traffic span:nth-child(2) { background: rgba(249, 115, 22, 0.55); }
.product-frame .titlebar .traffic span:nth-child(3) { background: rgba(34, 197, 94, 0.55); }
.product-frame .titlebar .url {
  margin-left: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
  padding: 3px 10px;
  background: var(--surface);
  border-radius: 3px;
  border: 1px solid var(--line-faint);
}
.product-app {
  display: grid;
  grid-template-columns: 224px 1fr;
  min-height: 560px;
}
@media (max-width: 760px) { .product-app { grid-template-columns: 64px 1fr; } }
.product-side {
  border-right: 1px solid var(--line-faint);
  padding: 18px 12px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product-side .logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-faint);
}
.product-side .logo-block img { height: 32px; width: auto; }
.product-side .logo-block .tag-mini {
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(129, 207, 255, 0.6);
}
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  cursor: default;
  transition: background 150ms;
}
.side-item.active {
  background: rgba(2, 132, 199, 0.18);
  color: var(--action-bright);
  border-right: 2px solid var(--action);
  border-radius: 3px 0 0 3px;
}
.side-item svg { width: 17px; height: 17px; stroke-width: 2; }
@media (max-width: 760px) { .side-item span { display: none; } .product-side { padding: 12px 6px; } }

.product-main { background: var(--bg-2); display: flex; flex-direction: column; min-width: 0; }
.product-filterbar {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-faint);
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.fchip {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
  background: var(--surface-3);
  color: var(--fg-muted);
  border: 1px solid var(--line-faint);
}
.fchip.active {
  background: var(--action);
  color: white;
  border-color: var(--action);
}
.fchip.brand {
  background: rgba(129, 207, 255, 0.1);
  color: var(--primary);
  border-color: rgba(129, 207, 255, 0.3);
}
.product-feed {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 760px) { .product-feed { grid-template-columns: 1fr; } }

.feed-card {
  position: relative;
  background: rgba(19, 28, 47, 0.4);
  border: 1px solid var(--line-faint);
  border-left-width: 3px;
  border-radius: 0 4px 4px 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feed-card.red    { border-left-color: var(--risk-red);    box-shadow: 0 0 14px rgba(239, 68, 68, 0.12); }
.feed-card.orange { border-left-color: var(--risk-orange); box-shadow: 0 0 14px rgba(249, 115, 22, 0.1); }
.feed-card.green  { border-left-color: var(--risk-green);  box-shadow: 0 0 14px rgba(34, 197, 94, 0.08); }
.feed-card.blue   { border-left-color: var(--risk-blue);   box-shadow: 0 0 12px rgba(59, 130, 246, 0.06); }

.feed-card .meta {
  display: flex; align-items: center; gap: 8px;
}
.feed-card .meta .src {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}
.feed-card .meta .time {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--fg-faint);
}
.feed-card .ttl {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.feed-card .summary {
  font-size: 12.5px;
  color: var(--fg-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-card .tags { display: flex; gap: 4px; flex-wrap: wrap; }
.feed-card .ttag {
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 2px;
  background: rgba(62, 74, 92, 0.35);
  border: 1px solid var(--line-faint);
  color: var(--fg-muted);
}
.feed-card .actions {
  display: flex; gap: 4px;
}
.feed-card .actions button {
  width: 28px; height: 28px;
  border-radius: 3px;
  background: var(--surface-3);
  border: 1px solid var(--line-faint);
  color: var(--fg-muted);
  display: flex; align-items: center; justify-content: center;
}
.feed-card .actions button svg { width: 13px; height: 13px; }

/* ─── Sources grid ─── */
.sources-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}
@media (max-width: 1000px) { .sources-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 600px)  { .sources-grid { grid-template-columns: repeat(3, 1fr); } }
.source-tile {
  position: relative;
  aspect-ratio: 1.2 / 1;
  border: 1px solid var(--line-faint);
  background: rgba(13, 19, 32, 0.4);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  transition: border-color 250ms, background 250ms, transform 200ms;
  cursor: pointer;
}
.source-tile:hover {
  border-color: rgba(129, 207, 255, 0.3);
  background: rgba(20, 28, 44, 0.7);
  transform: translateY(-2px);
}
.source-tile .favicon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 2px 6px rgba(0, 0, 0, 0.3);
  filter: grayscale(1) contrast(1.05);
  opacity: 0.7;
  transition: filter 250ms ease, opacity 250ms ease;
}
.source-tile:hover .favicon-wrap {
  filter: grayscale(0) contrast(1);
  opacity: 1;
}
.source-tile .favicon-wrap img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}
.source-tile .name {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
  text-align: center;
  line-height: 1.1;
  transition: color 250ms ease;
}
.source-tile:hover .name { color: var(--fg-dim); }
.source-tile .favicon-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  color: #0f172a;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}
.source-tile .glyph {
  width: 28px; height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  color: var(--fg);
}
.source-tile.more {
  background: rgba(129, 207, 255, 0.04);
  border-style: dashed;
  border-color: rgba(129, 207, 255, 0.2);
  color: var(--primary);
  cursor: default;
}
.source-tile.more .name { color: var(--primary); }
.source-tile.more .favicon-wrap { background: transparent; box-shadow: none; filter: none; opacity: 1; }

/* ─── Pricing ─── */
.price-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 720px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  position: relative;
  border: 1px solid var(--line-faint);
  background: rgba(19, 28, 47, 0.4);
  border-radius: 6px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.price-card.featured {
  border-color: rgba(129, 207, 255, 0.35);
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.08), rgba(19, 28, 47, 0.4));
  box-shadow: 0 0 40px rgba(129, 207, 255, 0.08);
}
.price-card .ribbon {
  position: absolute;
  top: -1px; right: 16px;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 9px;
  background: var(--primary);
  color: #031018;
  border-radius: 0 0 3px 3px;
}
.price-card .name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.price-card .price {
  font-family: var(--font-display);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-card .price .amt {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--fg);
  line-height: 1;
}
.price-card .price .per {
  font-size: 13px;
  color: var(--fg-faint);
}
.price-card .blurb {
  font-size: 14px;
  color: var(--fg-muted);
}
.price-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 6px;
}
.price-card li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--fg-dim);
  line-height: 1.45;
}
.price-card li svg {
  width: 14px; height: 14px;
  margin-top: 3px;
  flex-shrink: 0;
  color: var(--primary);
}
.price-card .btn { margin-top: 8px; width: 100%; }

/* ─── FAQ ─── */
.faq-list {
  margin-top: 48px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.faq-item {
  border-top: 1px solid var(--line-faint);
}
.faq-item:last-child { border-bottom: 1px solid var(--line-faint); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--fg);
  cursor: pointer;
  transition: color 200ms;
}
.faq-q:hover { color: var(--primary); }
.faq-q .chev {
  transition: transform 250ms ease;
  color: var(--fg-faint);
  flex-shrink: 0;
}
.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--primary); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms ease, padding 250ms ease;
  font-size: 14.5px;
  color: var(--fg-muted);
  line-height: 1.65;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 4px 22px;
}

/* ─── Footer CTA ─── */
.footer-cta {
  border-top: 1px solid var(--line-faint);
  position: relative;
  padding: clamp(64px, 9vw, 110px) 0 32px;
  overflow: hidden;
}
.footer-cta::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -40%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.18) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.footer-cta-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-cta-inner h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 760px;
}
.footer-cta-inner h2 .accent {
  background: linear-gradient(135deg, var(--primary), var(--action-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-cta-inner p {
  margin-top: 18px;
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 520px;
}
.footer-cta-inner .btns {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-base {
  margin-top: 72px;
  padding: 28px 0 24px;
  border-top: 1px solid var(--line-faint);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--fg-faint);
}
.footer-base .left {
  display: flex; align-items: center; gap: 14px;
}
.footer-base .left img { height: 22px; }
.footer-base .links { display: flex; gap: 22px; }
.footer-base .links a:hover { color: var(--fg); }

/* ─── Misc utilities ─── */
.divider {
  height: 1px;
  background: var(--line-faint);
  margin: 0 auto;
  max-width: 100%;
}
