/* ==========================================================================
   NUCLEUS — Global Stylesheet
   Single source of truth for every element on the marketing site.
   Tokens derived from nucleus-admin frontend audit (globals.css / tailwind.config.ts)
   Palette discipline: green / grey / white only.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Surfaces (audit) */
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #1a1a1a;
  /* Lines (audit) */
  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.14);
  /* Ink (audit) */
  --text: #f0f0f0;
  --text2: #888888;
  --text3: #555555;
  /* Brand (audit) */
  --accent: #00e5a0;
  --accent-dim: rgba(0, 229, 160, 0.12);
  --accent-glow: rgba(0, 229, 160, 0.25);
  --accent-line: rgba(0, 229, 160, 0.4);

  /* Type */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, sans-serif;
  --font-mono: "SF Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* Scale */
  --max-w: 1140px;
  --max-w-text: 760px;
  --radius: 12px;
  --radius-sm: 8px;
  --nav-h: 56px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.8s;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, select, textarea { font: inherit; }
::selection { background: var(--accent); color: #0a0a0a; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Typography ---------- */
.display-xl {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.display-lg {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.display-md {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--text2);
  line-height: 1.55;
  max-width: 640px;
}
.accent { color: var(--accent); }
.muted { color: var(--text2); }
.dim { color: var(--text3); }

/* Mono voice — the broadcast data register */
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.eyebrow .tc { color: var(--accent); }
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent-line);
}

/* ---------- 4. Layout primitives ---------- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.wrap-text { max-width: var(--max-w-text); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.section-tight { padding: clamp(48px, 7vw, 80px) 0; }
.section + .section { border-top: 1px solid var(--border); }
.section.flush { border-top: none; }
.center { text-align: center; }
.center .lede, .center .eyebrow { margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ---------- 5. Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  width: 100%;
  display: flex; align-items: center; gap: 28px;
}
.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700; font-size: 15px; letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 9px;
}
.nav-logo .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.04em;
  color: var(--text2);
  padding: 7px 12px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); background: var(--accent-dim); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-tc {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--text3);
}
.nav-tc .fr { color: var(--accent); }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 20px; height: 1.5px; background: var(--text); transition: 0.25s var(--ease); }
@media (max-width: 980px) {
  .nav-links, .nav-tc { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile-open .nav-links {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(10,10,10,0.97);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
  }
  .nav-mobile-open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-mobile-open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-mobile-open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600; letter-spacing: 0.03em;
  padding: 12px 22px; border-radius: 999px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, opacity 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #0a0a0a; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 28px var(--accent-glow); }
.btn-ghost { border: 1px solid var(--border2); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-line); color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: 12px; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.link-accent {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--accent);
}
.link-accent:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 7. Panels, cards, badges ---------- */
.panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.panel-pad { padding: 28px; }
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.card:hover { border-color: var(--border2); }
.card h3 { font-size: 1.05rem; font-weight: 650; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { font-size: 0.92rem; color: var(--text2); }
.card .eyebrow { margin-bottom: 14px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.badge-live { background: var(--accent-dim); color: var(--accent); }
.badge-live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
.badge-soon { border: 1px solid var(--border2); color: var(--text2); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- 8. Stats ---------- */
.stat { text-align: left; }
.stat .value {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700; letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.stat .value .unit { color: var(--accent); font-size: 0.6em; }
.stat .label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text3);
  margin-top: 10px;
}

/* ---------- 9. Mock product UI (proof blocks) ---------- */
.mock {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  font-family: var(--font-mono);
}
.mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.mock-bar .dots { display: flex; gap: 6px; }
.mock-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border2); }
.mock-bar .title { font-size: 11px; letter-spacing: 0.1em; color: var(--text3); text-transform: uppercase; margin-left: 8px; }
.mock-bar .right { margin-left: auto; }
.mock-body { padding: 6px 0; }

.feed { list-style: none; font-size: 12.5px; }
.feed li {
  display: grid;
  grid-template-columns: 92px 86px 1fr auto;
  gap: 14px; align-items: center;
  padding: 9px 18px;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(6px);
}
.feed li.shown { opacity: 1; transform: none; transition: opacity 0.4s, transform 0.4s var(--ease); }
.feed li:last-child { border-bottom: none; }
.feed .tc { color: var(--text3); }
.feed .el { color: var(--text2); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.feed .sp { color: var(--text); }
.feed .ok { color: var(--accent); font-size: 11px; letter-spacing: 0.06em; }

.grid-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.grid-table th {
  text-align: left; font-weight: 500;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text3);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border2);
}
.grid-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}
.grid-table td:first-child { color: var(--text3); }
.grid-table .hl { color: var(--text); }
.grid-table .pill {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-dim); color: var(--accent);
  font-size: 10px; letter-spacing: 0.06em;
}
.grid-table .pill.flag { background: rgba(255,255,255,0.07); color: var(--text2); }

.cue-card { padding: 26px 24px; }
.cue-card .cue-label { font-size: 10px; letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase; }
.cue-card .cue-main { font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 700; color: var(--text); margin: 10px 0 4px; letter-spacing: -0.01em; }
.cue-card .cue-sub { font-size: 12px; color: var(--text2); }
.cue-meter { height: 4px; background: var(--bg3); border-radius: 999px; margin-top: 18px; overflow: hidden; }
.cue-meter i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width 1.4s var(--ease); }
.cue-card.armed .cue-meter i { width: 92%; }

.search-mock .search-input {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 16px; padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text);
}
.search-mock .search-input .caret { width: 7px; height: 15px; background: var(--accent); animation: pulse 1.1s steps(1) infinite; }
.result-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text2);
}
.result-row .chip {
  font-size: 10px; padding: 2px 8px; border-radius: 4px;
  background: var(--bg3); color: var(--accent);
  border: 1px solid var(--border);
}

/* ---------- 10. Hero ---------- */
.hero {
  min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--nav-h) + 48px);
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: auto;
  top: -20%; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 65%);
  opacity: 0.35;
  filter: blur(40px);
  pointer-events: none;
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translateX(-54%) translateY(0); }
  to   { transform: translateX(-46%) translateY(28px); }
}
.hero-sub {
  margin-top: 26px;
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center;
}
.hero .mock { max-width: 720px; margin: 56px auto 0; width: 100%; }

/* Page hero (interior pages) */
.page-hero { padding: calc(var(--nav-h) + clamp(70px, 10vw, 120px)) 0 clamp(50px, 7vw, 90px); }

/* ---------- 11. Ticker / credibility strip ---------- */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex; gap: 64px; width: max-content;
  animation: ticker 36s linear infinite;
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text3);
}
.ticker-track .sep { color: var(--accent); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 12. Feature rows ---------- */
.feature-row { padding: clamp(70px, 10vw, 130px) 0; }
.feature-row + .feature-row { border-top: 1px solid var(--border); }
.feature-row .copy h2 { margin-bottom: 16px; }
.feature-row .copy p { color: var(--text2); max-width: 480px; }
.feature-row .copy .link-accent { display: inline-block; margin-top: 22px; }
@media (max-width: 900px) {
  .feature-row .grid-2 { gap: 36px; }
  .feature-row .mock { order: 2; }

  .sponsor-trace-grid{
    grid-template-columns:1fr;
    min-height:0;
    gap:28px;
  }

  .sponsor-trace-copy{
    order:-1;
    max-width:none;
  }

  .sponsor-trace-grid .nucleus-viz-frame{
    padding:0;
  }

  .sponsor-trace-grid .nucleus-viz{
    width:min(100%, 620px);
    max-width:620px;
  }

  .ticker-sponsor {
    display: none;
  }
}

/* ---------- 13. Steps, FAQ, compare ---------- */
.steps { counter-reset: step; display: grid; gap: 14px; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px;
  padding: 22px 24px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 1.3rem; font-weight: 700; color: var(--accent);
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: 0.9rem; color: var(--text2); }

.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 4px;
  font-weight: 600; font-size: 1rem;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--text3); font-size: 1.2rem; font-weight: 400;
  transition: transform 0.25s var(--ease), color 0.2s;
}
.faq details[open] summary { color: var(--accent); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq .faq-body { padding: 0 4px 24px; color: var(--text2); font-size: 0.95rem; max-width: 680px; }

.compare-block { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.compare-col { background: var(--bg2); padding: 28px; }
.compare-col.theirs { background: var(--bg); }
.compare-col h3 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.compare-col.ours h3 { color: var(--accent); }
.compare-col.theirs h3 { color: var(--text3); }
.compare-col ul { list-style: none; display: grid; gap: 12px; font-size: 0.92rem; color: var(--text2); }
.compare-col.ours li::before { content: "→ "; color: var(--accent); font-family: var(--font-mono); }
.compare-col.theirs li::before { content: "· "; color: var(--text3); font-family: var(--font-mono); }
@media (max-width: 760px) { .compare-block { grid-template-columns: 1fr; } }

/* ---------- 14. Forms & calculator ---------- */
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text3);
}
.field input, .field select, .field textarea {
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text3); }
.form-grid { display: grid; gap: 18px; }
.form-note { font-family: var(--font-mono); font-size: 11px; color: var(--text3); }
.form-success {
  display: none;
  padding: 22px; border: 1px solid var(--accent-line); border-radius: var(--radius);
  background: var(--accent-dim); color: var(--text);
  font-size: 0.95rem;
}
form.submitted { display: none; }
form.submitted + .form-success { display: block; }

.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.calc-in { background: var(--bg2); padding: 28px; display: grid; gap: 20px; align-content: start; }
.calc-out { background: var(--bg); padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.calc-out .value { font-family: var(--font-mono); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--accent); }
.calc-out .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); margin-top: 8px; max-width: 280px; line-height: 1.7; }
.range-row { display: grid; gap: 8px; }
.range-row .range-head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3); }
.range-row .range-head output { color: var(--text); }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  height: 3px; background: var(--bg3); border-radius: 999px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; border: none;
  background: var(--accent);
  cursor: grab;
}
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }

/* ---------- 15. Architecture diagram ---------- */
.arch { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
.arch-zone {
  border: 1px dashed var(--border2); border-radius: var(--radius);
  padding: 18px; display: grid; gap: 12px; align-content: start;
}
.arch-zone .zone-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text3); }
.arch-node {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text);
}
.arch-node small { display: block; color: var(--text3); font-size: 10px; margin-top: 3px; }
.arch-node.hot { border-color: var(--accent-line); }
.arch-link {
  align-self: center;
  display: grid; gap: 6px; justify-items: center;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text3);
}
.arch-link .pipe { width: 60px; height: 1px; background: var(--accent-line); position: relative; overflow: visible; }
.arch-link .pipe::after {
  content: ""; position: absolute; top: -2px; left: 0;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  animation: flow 2.2s linear infinite;
}
@keyframes flow { from { left: 0; opacity: 1; } to { left: 56px; opacity: 0.2; } }
@media (max-width: 760px) {
  .arch { grid-template-columns: 1fr; }
  .arch-link .pipe { width: 1px; height: 36px; }
  .arch-link .pipe::after { animation: flowv 2.2s linear infinite; }
  @keyframes flowv { from { top: 0; opacity: 1; } to { top: 32px; opacity: 0.2; } }
}

/* ---------- 16. Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
  font-size: 13px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text3); margin-bottom: 16px;
}
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { color: var(--text2); transition: color 0.2s; }
.footer a:hover { color: var(--accent); }
.footer-brand p { color: var(--text3); max-width: 280px; margin-top: 12px; font-size: 12.5px; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; color: var(--text3);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- 17. CTA band ---------- */
.cta-band {
  text-align: center;
  padding: clamp(80px, 12vw, 140px) 24px;
  position: relative; overflow: hidden;
  border-top: 1px solid var(--border);
}
.cta-band .hero-glow { top: auto; bottom: -50%; opacity: 0.28; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band .lede { margin: 0 auto 32px; }

/* ---------- 18. Scroll reveal & motion ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-scale { opacity: 0; transform: translateY(48px) scale(0.97); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-scale.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-scale, .feed li { opacity: 1 !important; transform: none !important; }
}

/* ---------- 19. Utility ---------- */
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.mb-1 { margin-bottom: 12px; } .mb-2 { margin-bottom: 24px; } .mb-3 { margin-bottom: 40px; }
.maxw-sm { max-width: 560px; }
.hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.kbd {
  font-family: var(--font-mono); font-size: 11px;
  border: 1px solid var(--border2); border-radius: 5px;
  padding: 1px 6px; color: var(--text2);
}

/* ---------- 20. Nucleus viz — animated brand lattice (hero signature) ---------- */
.nucleus-viz {
  width: min(540px, 88vw);
  margin: 56px auto 0;
  display: block;
  overflow: visible;
}
.nucleus-viz-frame {
  overflow: visible;
}

/* Sponsor Intel traceability two-column section */
.sponsor-trace-grid{
  display:grid;
  grid-template-columns:minmax(360px, 0.95fr) minmax(420px, 1.05fr);
  gap:clamp(48px, 7vw, 96px);
  align-items:center;
  min-height:520px;
}

.sponsor-trace-grid .nucleus-viz-frame{
  width:100%;
  min-width:0;
  margin:0;
  padding:0;
  overflow:visible;
  display:flex;
  align-items:center;
  justify-content:center;
}

.sponsor-trace-grid .nucleus-viz{
  width:min(100%, 560px);
  max-width:560px;
  margin:0;
  overflow:visible;
}

.sponsor-trace-copy{
  max-width:620px;
  justify-self:start;
}

.sponsor-trace-copy .display-md{
  max-width:620px;
}

.sponsor-trace-copy .lede{
  max-width:560px;
}
.nucleus-viz .lattice {
  stroke: var(--accent);
  stroke-opacity: 0.32;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.nucleus-viz .lattice.spoke { stroke-opacity: 0.5; }
.nucleus-viz .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawline 1.5s var(--ease) forwards;
}
@keyframes drawline { to { stroke-dashoffset: 0; } }
.nucleus-viz .node {
  fill: var(--bg);
  stroke: var(--accent);
  stroke-width: 4;
  opacity: 0;
  animation: nodein 0.7s var(--ease) forwards;
}
@keyframes nodein { to { opacity: 1; } }
.nucleus-viz .core-ring {
  fill: var(--bg);
  stroke: var(--accent);
  stroke-width: 6;
}
.nucleus-viz .core-halo {
  fill: none;
  stroke: var(--accent);
  stroke-width: 14;
  opacity: 0.12;
  animation: halo 3.6s ease-in-out infinite;
}
@keyframes halo { 0%,100% { opacity: 0.08; } 50% { opacity: 0.3; } }
.nucleus-viz .core-n {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 56px;
  fill: var(--accent);
  text-anchor: middle;
}
.nucleus-viz .viz-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  fill: var(--text3);
  text-transform: uppercase;
  opacity: 0;
  animation: nodein 0.7s var(--ease) forwards;
}
.nucleus-viz .viz-label.io { fill: var(--text2); }
.nucleus-viz .pulse {
  fill: var(--accent);
  opacity: 0;
  animation: pulseTravel 3.2s ease-in-out infinite;
}
@keyframes pulseTravel {
  0%   { opacity: 0; transform: translate(0, 0); }
  12%  { opacity: 0.95; }
  80%  { opacity: 0.95; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)); }
}
.nav-logo .logo-img { width: 22px; height: 22px; filter: drop-shadow(0 0 8px var(--accent-glow)); }
.footer .logo-img { width: 20px; height: 20px; }

/* ---------- 21. Live Ingest Feed Mock ---------- */
.live-feed-mock {
  display: flex;
  flex-direction: column;
}
.live-feed-mock .mock-bar {
  justify-content: flex-start;
}
.live-feed-mock .feed-live-indicator {
  margin-left: auto;
}
.live-feed-mock .feed-live-indicator .badge {
  padding: 3px 8px;
  font-size: 9px;
}

.feed-metrics {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.feed-metric {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.feed-metric .val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.feed-metric .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
}

.feed-rows {
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.feed-row {
  display: grid;
  grid-template-columns: 150px 1fr 80px;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.feed-row:last-child {
  border-bottom: none;
}
.feed-row.active {
  background: rgba(255, 255, 255, 0.02);
}
.feed-row.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.feed-raw {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-output {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.feed-output-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 18px;
  transition: opacity 0.3s;
}
.feed-output-text.processing {
  color: var(--text2);
  font-style: italic;
}

.feed-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}
.feed-phase {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  width: 65px;
}
.feed-progress-bar {
  flex: 1;
  height: 2px;
  background: var(--bg3);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.feed-progress-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.4s linear;
}

.feed-status {
  justify-self: end;
}
.feed-status .pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg3);
  color: var(--text3);
  border: 1px solid var(--border);
  transition: all 0.3s;
  white-space: nowrap;
}
.feed-status.ready .pill {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: transparent;
}
.feed-status.review .pill {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text2);
  border-color: transparent;
}

/* Scanline effect */
.feed-scan {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -20%;
  width: 20%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  transform: skewX(-20deg);
  opacity: 0;
}
.feed-row.active .feed-scan {
  animation: scan 2s linear infinite;
  opacity: 1;
}
@keyframes scan {
  0% { left: -20%; }
  100% { left: 120%; }
}

@media (max-width: 600px) {
  .feed-metrics {
    flex-wrap: wrap;
    gap: 8px;
  }
  .feed-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 10px;
  }
  .feed-raw {
    grid-column: 1 / -1;
  }
  .feed-output {
    grid-column: 1;
  }
  .feed-status {
    grid-column: 2;
    align-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feed-row.active .feed-scan { animation: none !important; opacity: 0 !important; }
  .feed-progress-bar i { transition: none !important; }
}

