/* ─────────────────────────────────────────────────
   NUADU LP v4 — "The Assessment OS"
   State-of-the-art: dark, OS-metaphor, bento, motion
   ───────────────────────────────────────────────── */

@font-face { font-family: "Nexa"; src: url("../fonts/Nexa-Book.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Nexa"; src: url("../fonts/Nexa-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nexa"; src: url("../fonts/Nexa-XBold.otf") format("opentype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nexa"; src: url("../fonts/Nexa-Heavy.otf") format("opentype"); font-weight: 850; font-display: swap; }
@font-face { font-family: "Nexa"; src: url("../fonts/Nexa-Black.otf") format("opentype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Proxima Soft"; src: url("../fonts/ProximaSoft-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Proxima Soft"; src: url("../fonts/ProximaSoft-Semibold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Proxima Soft"; src: url("../fonts/ProximaSoft-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  /* Surfaces */
  --bg:        #06090F;
  --bg-card:   #0C1320;
  --bg-elev:   #111A2B;
  --bg-deep:   #04060B;
  --line:      rgba(255,255,255,0.07);
  --line-2:    rgba(255,255,255,0.12);
  --line-bright: rgba(255,255,255,0.22);

  /* Ink */
  --ink:        #E9EEF7;
  --ink-dim:    #9BA7BC;
  --ink-mute:   #5B6478;
  --ink-faint:  #353C4C;

  /* Brand */
  --pink:        #EF2A9F;
  --pink-lit:    #FF5FB8;
  --blue:        #59ABEA;
  --blue-deep:   #2F5A9E;
  --yellow:      #F7B500;
  --green:       #34D399;
  --violet:      #8B5CF6;
  --teal:        #16A89B;
  --orange:      #FF7A1A;

  /* Pillar tone — overridden by .tone-* */
  --accent:      var(--pink);
}

.tone-create  { --accent: #EF2A9F; }
.tone-assign  { --accent: #FF7A1A; }
.tone-conduct { --accent: #F7B500; }
.tone-grade   { --accent: #34D399; }
.tone-report  { --accent: #59ABEA; }
.tone-certify { --accent: #8B5CF6; }

:root {

  /* Glow tints */
  --glow-pink: 0 0 60px rgba(239,42,159,0.25);
  --glow-blue: 0 0 60px rgba(89,171,234,0.25);

  /* Grid + dot */
  --grid: rgba(255,255,255,0.035);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Proxima Soft", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(239,42,159,0.4); color: #fff; }

/* Dot grid background — applied on hero + pipeline */
.v4-dotgrid {
  background-image: radial-gradient(circle, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ── Layout ─────────────────────────────────────── */
.v4-wrap { max-width: 1400px; margin: 0 auto; padding: 0 32px; }

/* ── Type primitives ────────────────────────────── */
.v4-display {
  font-family: "Nexa", sans-serif;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-wrap: balance;
  color: var(--ink);
}
.v4-h2 {
  font-family: "Nexa", sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 5.5vw, 84px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-wrap: balance;
  color: var(--ink);
}
.v4-mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-feature-settings: "ss01", "cv01";
}
.v4-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.v4-eyebrow::before {
  content: ""; width: 14px; height: 1px;
  background: var(--pink);
}
.v4-eyebrow.pink { color: var(--pink); }
.v4-eyebrow.blue { color: var(--blue); }
.v4-eyebrow.yellow { color: var(--yellow); }
.v4-eyebrow.green { color: var(--green); }

.v4-kbd {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom-width: 2px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; font-weight: 600;
  color: var(--ink);
}

.v4-grad {
  background: linear-gradient(110deg, #FF5FB8 0%, #EF2A9F 25%, #59ABEA 70%, #F7B500 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.v4-grad-soft {
  background: linear-gradient(110deg, var(--ink) 0%, var(--ink) 40%, color-mix(in oklab, var(--ink) 70%, #59ABEA) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ── Buttons ────────────────────────────────────── */
.v4-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  font-family: "Nexa", sans-serif;
  font-weight: 800; font-size: 13.5px;
  letter-spacing: 0.01em;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.v4-btn--primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 8px 30px rgba(239,42,159,0.35);
}
.v4-btn--primary:hover { background: var(--pink-lit); transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset, 0 12px 40px rgba(239,42,159,0.45); }
.v4-btn--ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  color: var(--ink);
}
.v4-btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--line-bright); }
.v4-btn .arrow { transition: transform 0.2s; }
.v4-btn:hover .arrow { transform: translateX(3px); }

/* ────────────────────────────────────────────────
   TOPBAR — OS-style menu bar
   ──────────────────────────────────────────────── */
.v4-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6,9,15,0.7);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.v4-topbar__inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex; align-items: center; gap: 20px;
}
.v4-topbar__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "Nexa", sans-serif;
  font-weight: 900; font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.v4-topbar__brand img { height: 28px; filter: brightness(0) invert(1); }
.v4-topbar__divider { width: 1px; height: 22px; background: var(--line-2); }
.v4-topbar__status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; color: var(--ink-dim);
  font-weight: 500;
}
.v4-topbar__status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52,211,153,0.6);
  animation: v4-pulse 2.4s ease-in-out infinite;
}
.v4-topbar__nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.v4-topbar__nav a {
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-dim);
  transition: background 0.15s, color 0.15s;
}
.v4-topbar__nav a:hover { background: rgba(255,255,255,0.06); color: var(--ink); }
.v4-topbar__cmdk {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  font-size: 12px; color: var(--ink-dim);
}
.v4-topbar__cmdk:hover { background: rgba(255,255,255,0.08); color: var(--ink); }
.v4-topbar__cta {
  margin-left: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700; font-size: 12.5px;
  transition: background 0.2s;
}
.v4-topbar__cta:hover { background: var(--pink); color: #fff; }

@keyframes v4-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ────────────────────────────────────────────────
   HERO
   ──────────────────────────────────────────────── */
.v4-hero {
  position: relative;
  padding: 132px 0 80px;
  overflow: hidden;
}
.v4-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.v4-hero::after {
  content: "";
  position: absolute;
  width: 800px; height: 800px;
  left: 50%; top: -200px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(239,42,159,0.12), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.v4-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.v4-hero__tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  margin-bottom: 28px;
  font-size: 12.5px;
  color: var(--ink-dim);
}
.v4-hero__tag .badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(239,42,159,0.18);
  color: var(--pink-lit);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.04em;
}
.v4-hero__tag .arr { color: var(--ink-mute); margin-left: 4px; }

.v4-hero__headline {
  font-size: clamp(56px, 8.5vw, 132px);
  margin-bottom: 24px;
}
.v4-hero__headline .row { display: block; }
.v4-hero__headline .grad {
  background: linear-gradient(110deg, #FF5FB8 0%, #EF2A9F 35%, #59ABEA 80%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.v4-hero__sub {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 540px;
  margin-bottom: 36px;
}
.v4-hero__sub strong { color: var(--ink); font-weight: 600; }
.v4-hero__ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.v4-hero__meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: var(--ink-mute);
}
.v4-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.v4-hero__meta .tick { color: var(--green); }

/* Live terminal card */
.v4-term {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(180deg, #0E1726 0%, #0A111E 100%);
  border: 1px solid var(--line-2);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02) inset,
    0 30px 80px rgba(0,0,0,0.6),
    0 0 80px rgba(89,171,234,0.08);
  overflow: hidden;
  min-height: 520px;
  display: flex; flex-direction: column;
}
.v4-term__chrome {
  display: flex; align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  gap: 14px;
}
.v4-term__lights {
  display: flex; gap: 6px;
}
.v4-term__lights span {
  width: 11px; height: 11px; border-radius: 50%;
  background: #3a4150;
}
.v4-term__lights span:nth-child(1) { background: #ff5f57; }
.v4-term__lights span:nth-child(2) { background: #febc2e; }
.v4-term__lights span:nth-child(3) { background: #28c840; }
.v4-term__title {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px; color: var(--ink-dim);
  display: flex; align-items: center; gap: 8px;
}
.v4-term__title .live {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: v4-pulse 2s ease-in-out infinite;
}
.v4-term__tabs {
  margin-left: auto;
  display: flex; gap: 4px;
}
.v4-term__tab {
  padding: 4px 10px;
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--ink-mute);
  background: transparent;
  border: 1px solid transparent;
}
.v4-term__tab.active {
  background: rgba(89,171,234,0.1);
  border-color: rgba(89,171,234,0.25);
  color: var(--blue);
}
.v4-term__body {
  flex: 1;
  padding: 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  line-height: 1.65;
  display: flex; flex-direction: column;
  gap: 4px;
  position: relative;
}
.v4-term__line { display: flex; align-items: baseline; gap: 8px; }
.v4-term__prompt { color: var(--pink); font-weight: 700; flex-shrink: 0; }
.v4-term__cmd { color: var(--ink); }
.v4-term__hint { color: var(--ink-mute); font-style: italic; font-size: 11.5px; }
.v4-term__ok { color: var(--green); }
.v4-term__warn { color: var(--yellow); }
.v4-term__info { color: var(--blue); }
.v4-term__dim { color: var(--ink-mute); }
.v4-term__caret {
  display: inline-block;
  width: 7px; height: 14px;
  background: var(--pink);
  vertical-align: middle;
  margin-left: 1px;
  animation: v4-caret 1s steps(1) infinite;
}
@keyframes v4-caret {
  50% { opacity: 0; }
}
.v4-term__qbox {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(89,171,234,0.06);
  border: 1px solid rgba(89,171,234,0.18);
  font-family: "Proxima Soft", sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
}
.v4-term__qbox-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.v4-term__qbox-label .badge {
  padding: 2px 7px; border-radius: 4px;
  background: rgba(239,42,159,0.2);
  color: var(--pink-lit);
  font-size: 9.5px;
}
.v4-term__qbox ol {
  margin: 8px 0 0 0;
  padding-left: 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.v4-term__qbox li {
  color: var(--ink-dim);
  font-size: 12.5px;
}
.v4-term__qbox li.correct { color: var(--green); font-weight: 600; }
.v4-term__qbox-foot {
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-mute);
  font-style: italic;
}
.v4-term__chip-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 12px;
}
.v4-term__chip {
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--ink-dim);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.v4-term__chip:hover {
  background: rgba(239,42,159,0.1);
  color: var(--pink-lit);
  border-color: rgba(239,42,159,0.3);
}
.v4-term__chip.active {
  background: rgba(239,42,159,0.15);
  color: var(--pink-lit);
  border-color: rgba(239,42,159,0.4);
}
.v4-term__input {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  margin-top: 12px;
  transition: border-color 0.15s;
}
.v4-term__input:focus-within { border-color: rgba(89,171,234,0.45); }
.v4-term__input input {
  flex: 1; background: transparent; border: 0; outline: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  color: var(--ink);
}
.v4-term__input input::placeholder { color: var(--ink-mute); }
.v4-term__go {
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--pink);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.v4-term__go:hover:not(:disabled) { background: var(--pink-lit); }
.v4-term__go:disabled { background: rgba(255,255,255,0.06); color: var(--ink-mute); cursor: not-allowed; }

/* ────────────────────────────────────────────────
   TRUST STRIP
   ──────────────────────────────────────────────── */
.v4-trust {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015));
}
.v4-trust__inner {
  max-width: 1400px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 200px 1fr;
  gap: 40px; align-items: center;
}
.v4-trust__label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.14em;
  line-height: 1.4;
}
.v4-trust__metrics {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.v4-trust__metric { display: flex; flex-direction: column; gap: 4px; }
.v4-trust__v {
  font-family: "Nexa", sans-serif;
  font-weight: 900; font-size: 32px;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.v4-trust__v.pink { color: var(--pink-lit); }
.v4-trust__v.blue { color: var(--blue); }
.v4-trust__v.yellow { color: var(--yellow); }
.v4-trust__v.green { color: var(--green); }
.v4-trust__l {
  font-size: 12px;
  color: var(--ink-dim);
}

/* ────────────────────────────────────────────────
   SECTION HEAD
   ──────────────────────────────────────────────── */
.v4-section { padding: 140px 0; position: relative; }
.v4-section__head {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 56px;
  align-items: end;
}
.v4-section__head h2 { margin-top: 16px; }
.v4-section__head .lead {
  font-size: 16px; line-height: 1.65;
  color: var(--ink-dim);
  max-width: 520px;
}

/* ────────────────────────────────────────────────
   PILLAR BENTO
   ──────────────────────────────────────────────── */
.v4-pillars { background: var(--bg); }
.v4-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 280px;
  gap: 14px;
}
.v4-bento__cell {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 30px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.v4-bento__cell::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--accent, transparent), transparent 50%);
  opacity: 0.08;
  pointer-events: none;
  transition: opacity 0.25s;
}
.v4-bento__cell:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 18px 60px rgba(0,0,0,0.4), 0 0 0 1px var(--accent) inset;
}
.v4-bento__cell:hover::before { opacity: 0.22; }

/* Sizes */
.v4-bento__cell.lg { grid-column: span 4; grid-row: span 1; }
.v4-bento__cell.md { grid-column: span 3; grid-row: span 1; }
.v4-bento__cell.sm { grid-column: span 2; grid-row: span 1; }

.v4-bento__num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.v4-bento__title {
  font-family: "Nexa", sans-serif;
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: var(--ink);
  margin: 0 0 8px;
  max-width: 14ch;
}
.v4-bento__title .accent { color: var(--accent); display: inline-block; }
.v4-bento__sub {
  font-size: 13.5px;
  color: var(--ink-dim);
  line-height: 1.5;
  max-width: 28ch;
  margin-bottom: auto;
}
.v4-bento__cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: gap 0.15s;
}
.v4-bento__cell:hover .v4-bento__cta { gap: 10px; }

.v4-bento__viz {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}
.v4-bento__cell > *:not(.v4-bento__viz) {
  position: relative;
  z-index: 2;
}

/* === LG cards (Create / Certify): viz takes the right half, fades left === */
.v4-bento__cell.lg .v4-bento__viz {
  top: 0; right: 0; bottom: 0;
  width: 52%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 40%, transparent 100%);
  mask-image: linear-gradient(to left, #000 0%, #000 40%, transparent 100%);
}
.v4-bento__cell.lg .v4-bento__title { max-width: 52%; }
.v4-bento__cell.lg .v4-bento__sub   { max-width: 50%; }

/* === MD cards (Assign / Report): viz lives in bottom-right corner === */
.v4-bento__cell.md .v4-bento__viz {
  right: 22px;
  bottom: 22px;
  width: 200px;
  height: 110px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  -webkit-mask-image: linear-gradient(to bottom left, #000 30%, transparent 100%);
  mask-image: linear-gradient(to bottom left, #000 30%, transparent 100%);
}

/* === SM cards (Conduct / Grade): tiny decorative viz in top-right === */
.v4-bento__cell.sm .v4-bento__viz {
  top: 24px;
  right: 24px;
  width: 120px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

/* Pillar accent colors (legacy data-p selector — aligned to unified palette) */
.v4-bento__cell[data-p="01"] { --accent: #EF2A9F; }
.v4-bento__cell[data-p="02"] { --accent: #FF7A1A; }
.v4-bento__cell[data-p="03"] { --accent: #F7B500; }
.v4-bento__cell[data-p="04"] { --accent: #34D399; }
.v4-bento__cell[data-p="05"] { --accent: #59ABEA; }
.v4-bento__cell[data-p="06"] { --accent: #8B5CF6; }

/* Mini visualizations (positioned by parent .v4-bento__viz, not by themselves) */
.v4-viz-questions {
  padding: 4px 0;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0.95;
  width: 100%;
  max-width: 280px;
}
.v4-viz-questions .q {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 9px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--ink-dim);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.v4-viz-questions .q .tag {
  font-size: 9px; padding: 1px 5px; border-radius: 3px;
  background: rgba(239,42,159,0.18); color: var(--pink-lit);
}

.v4-viz-calendar {
  display: grid; grid-template-columns: repeat(7, 12px);
  gap: 3px;
}
.v4-viz-calendar div {
  width: 12px; height: 12px; border-radius: 2px;
  background: rgba(243,139,0,0.1);
}
.v4-viz-calendar div.on { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.v4-viz-calendar div.mid { background: rgba(243,139,0,0.4); }

.v4-viz-eye {
  width: 96px; height: 96px;
  display: grid; place-items: center;
  position: relative;
}
.v4-viz-eye::before {
  content: "";
  position: absolute;
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 1px solid rgba(229,163,0,0.25);
  background: radial-gradient(circle, rgba(229,163,0,0.25), transparent 60%);
}
.v4-viz-eye::after {
  content: "";
  position: relative;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent);
  animation: v4-blink 4s ease-in-out infinite;
}
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 30px var(--accent);
  animation: v4-blink 4s ease-in-out infinite;
}
@keyframes v4-blink {
  0%, 90%, 100% { transform: scale(1); }
  93% { transform: scaleY(0.1); }
}

.v4-viz-rubric {
  display: flex; flex-direction: column; gap: 5px;
  width: 100%;
}
.v4-viz-rubric .bar {
  height: 8px; border-radius: 4px;
  background: rgba(22,168,155,0.15);
  position: relative; overflow: hidden;
}
.v4-viz-rubric .bar::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--accent);
  border-radius: 4px;
  width: var(--w, 60%);
  box-shadow: 0 0 12px var(--accent);
}

.v4-viz-chart {
  width: 100%; height: 100%;
  display: flex; align-items: flex-end; gap: 4px;
}
.v4-viz-chart .b {
  flex: 1;
  background: linear-gradient(180deg, var(--accent), rgba(89,171,234,0.2));
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
}

.v4-viz-cert {
  width: 160px; height: 115px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(139,92,246,0.05));
  border: 1px solid rgba(139,92,246,0.4);
  display: flex; flex-direction: column; padding: 12px;
  transform: rotate(-6deg);
  box-shadow: 0 12px 40px rgba(139,92,246,0.2);
}
.v4-viz-cert::before {
  content: "✦";
  font-size: 22px; color: var(--accent);
  font-family: "Nexa", sans-serif;
}
.v4-viz-cert .lines {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 3px;
}
.v4-viz-cert .lines div {
  height: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.15);
}
.v4-viz-cert .lines div:nth-child(2) { width: 80%; }
.v4-viz-cert .lines div:nth-child(3) { width: 55%; background: var(--accent); }

/* ────────────────────────────────────────────────
   AGENT LOOP (animated SVG)
   ──────────────────────────────────────────────── */
.v4-loop {
  background: var(--bg);
  position: relative;
}
.v4-loop::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 30%, transparent 75%);
  pointer-events: none;
}
.v4-loop__head {
  text-align: center;
  max-width: 760px; margin: 0 auto 56px;
  position: relative;
}
.v4-loop__head h2 { margin: 16px 0 18px; }
.v4-loop__head p { color: var(--ink-dim); font-size: 16px; line-height: 1.6; }

.v4-loop__stage {
  position: relative;
  max-width: 980px; margin: 0 auto;
  aspect-ratio: 1.6;
}
.v4-loop__svg { width: 100%; height: 100%; overflow: visible; }
.v4-loop__node {
  position: absolute;
  width: 200px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.v4-loop__node.active {
  border-color: var(--pink);
  box-shadow: 0 0 0 1px var(--pink) inset, 0 0 60px rgba(239,42,159,0.35);
  transform: scale(1.04);
}
.v4-loop__node-evt {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; font-weight: 600;
  color: var(--pink);
  text-transform: lowercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 6px;
}
.v4-loop__node-evt .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
}
.v4-loop__node-title {
  font-family: "Nexa", sans-serif;
  font-weight: 800; font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.v4-loop__node-desc {
  font-size: 11.5px;
  color: var(--ink-dim);
  margin-top: 4px;
  line-height: 1.4;
}

/* ────────────────────────────────────────────────
   INTEL / Process Monitor
   ──────────────────────────────────────────────── */
.v4-intel { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.v4-intel__monitor {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.v4-intel__monitor-head {
  display: flex; align-items: center;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--line);
  gap: 14px;
}
.v4-intel__monitor-head .lights { display: flex; gap: 6px; }
.v4-intel__monitor-head .lights span { width: 11px; height: 11px; border-radius: 50%; background: #3a4150; }
.v4-intel__monitor-head .lights span:nth-child(1) { background: #ff5f57; }
.v4-intel__monitor-head .lights span:nth-child(2) { background: #febc2e; }
.v4-intel__monitor-head .lights span:nth-child(3) { background: #28c840; }
.v4-intel__monitor-head .title {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; color: var(--ink-dim);
}
.v4-intel__monitor-head .meta {
  margin-left: auto;
  display: flex; gap: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: var(--ink-mute);
}
.v4-intel__monitor-head .meta span .v { color: var(--green); font-weight: 600; }

.v4-intel__tabs {
  display: flex;
  padding: 0 16px;
  background: rgba(255,255,255,0.015);
  border-bottom: 1px solid var(--line);
  gap: 4px;
}
.v4-intel__tab {
  padding: 12px 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: var(--ink-mute);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: color 0.15s, border-color 0.15s;
}
.v4-intel__tab .count {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  font-size: 10px;
  color: var(--ink-mute);
}
.v4-intel__tab.active {
  color: var(--ink);
  border-bottom-color: var(--pink);
}
.v4-intel__tab.active .count { background: rgba(239,42,159,0.18); color: var(--pink-lit); }

.v4-intel__table {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}
.v4-intel__row {
  display: grid;
  grid-template-columns: 32px 1.5fr 1fr 90px 90px 60px;
  gap: 16px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  color: var(--ink-dim);
  transition: background 0.12s;
}
.v4-intel__row:hover { background: rgba(255,255,255,0.025); }
.v4-intel__row.header {
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10.5px;
  background: rgba(255,255,255,0.015);
}
.v4-intel__row .id { color: var(--ink-mute); }
.v4-intel__row .name {
  color: var(--ink);
  font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.v4-intel__row .name .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent, var(--blue));
  box-shadow: 0 0 8px var(--accent, var(--blue));
}
.v4-intel__row .desc { color: var(--ink-mute); font-family: "Proxima Soft", sans-serif; font-size: 12px; }
.v4-intel__row .status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px;
  color: var(--green);
}
.v4-intel__row .status .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  animation: v4-pulse 1.8s ease-in-out infinite;
}
.v4-intel__row .load {
  display: flex; align-items: center; gap: 6px;
}
.v4-intel__row .load .bar {
  flex: 1; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.06);
  position: relative; overflow: hidden;
}
.v4-intel__row .load .bar::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent, var(--blue));
  border-radius: 2px;
  width: var(--w, 50%);
}
.v4-intel__row .pct { color: var(--ink); font-weight: 600; font-size: 10.5px; }

.v4-intel__row[data-c="pink"] { --accent: var(--pink); }
.v4-intel__row[data-c="blue"] { --accent: var(--blue); }
.v4-intel__row[data-c="yellow"] { --accent: var(--yellow); }
.v4-intel__row[data-c="green"] { --accent: var(--green); }
.v4-intel__row[data-c="violet"] { --accent: var(--violet); }
.v4-intel__row[data-c="teal"] { --accent: var(--teal); }

.v4-intel__foot {
  padding: 14px 16px;
  display: flex; align-items: center;
  gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ink-mute);
  background: rgba(255,255,255,0.015);
}
.v4-intel__foot a {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(239,42,159,0.12);
  border: 1px solid rgba(239,42,159,0.3);
  color: var(--pink-lit);
  font-weight: 600;
  font-size: 11px;
  transition: background 0.15s;
}
.v4-intel__foot a:hover { background: rgba(239,42,159,0.2); }

/* ────────────────────────────────────────────────
   SECTORS
   ──────────────────────────────────────────────── */
.v4-sectors { background: var(--bg); }
.v4-sectors__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.v4-sector {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  position: relative; overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
  display: flex; flex-direction: column;
}
.v4-sector:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.v4-sector::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent 60%);
  opacity: 0.1;
  filter: blur(20px);
}
.v4-sector[data-s="edu"] { --accent: var(--blue); }
.v4-sector[data-s="gov"] { --accent: var(--violet); }
.v4-sector[data-s="ent"] { --accent: var(--yellow); }

.v4-sector__num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.v4-sector__name {
  font-family: "Nexa", sans-serif;
  font-weight: 900;
  font-size: 42px;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 8px;
}
.v4-sector__name span { color: var(--accent); }
.v4-sector__sub {
  font-size: 14px;
  color: var(--ink-dim);
  margin-bottom: 24px;
  max-width: 26ch;
}
.v4-sector__stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.v4-sector__stat {
  padding: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
}
.v4-sector__stat .v {
  font-family: "Nexa", sans-serif;
  font-weight: 900; font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.v4-sector__stat .l {
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 2px;
}
.v4-sector__link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  font-family: "Nexa", sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  align-self: flex-start;
  transition: background 0.15s, border-color 0.15s;
}
.v4-sector__link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* ────────────────────────────────────────────────
   PROOF / Quote band
   ──────────────────────────────────────────────── */
.v4-proof {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-deep), var(--bg));
  position: relative;
}
.v4-proof__inner {
  max-width: 1100px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
}
.v4-proof__quote {
  padding: 28px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  gap: 16px;
}
.v4-proof__mark {
  width: 28px; height: 28px;
  font-family: "Nexa", sans-serif;
  font-weight: 900; font-size: 36px;
  color: var(--pink);
  line-height: 0.6;
}
.v4-proof__text {
  font-family: "Nexa", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.v4-proof__by {
  margin-top: auto;
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.v4-proof__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  display: grid; place-items: center;
  font-family: "Nexa", sans-serif;
  font-weight: 900;
  font-size: 13px;
  color: #fff;
}
.v4-proof__by-name { font-weight: 600; font-size: 13px; color: var(--ink); }
.v4-proof__by-title { font-size: 11.5px; color: var(--ink-mute); }

/* ────────────────────────────────────────────────
   FINALE
   ──────────────────────────────────────────────── */
.v4-finale {
  padding: 160px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.v4-finale::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(800px at 50% 50%, rgba(239,42,159,0.12), transparent 60%),
    radial-gradient(600px at 20% 80%, rgba(89,171,234,0.1), transparent 60%),
    radial-gradient(600px at 80% 20%, rgba(247,181,0,0.08), transparent 60%);
  pointer-events: none;
}
.v4-finale__inner { position: relative; max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.v4-finale__big {
  font-family: "Nexa", sans-serif;
  font-weight: 900;
  font-size: clamp(56px, 9vw, 152px);
  letter-spacing: -0.05em;
  line-height: 0.9;
  text-wrap: balance;
  margin-bottom: 28px;
}
.v4-finale__sub {
  font-size: 18px;
  color: var(--ink-dim);
  max-width: 600px; margin: 0 auto 40px;
  line-height: 1.55;
}
.v4-finale__ctas {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 32px;
}
.v4-finale__bootline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: var(--ink-dim);
}
.v4-finale__bootline .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: v4-pulse 2s ease-in-out infinite;
}

/* ────────────────────────────────────────────────
   FOOTER
   ──────────────────────────────────────────────── */
.v4-footer {
  padding: 64px 0 36px;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}
.v4-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.v4-footer__brand {
  display: flex; align-items: center; gap: 12px;
  font-family: "Nexa", sans-serif;
  font-weight: 900; font-size: 24px;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.v4-footer__brand img { height: 30px; filter: brightness(0) invert(1); }
.v4-footer__tag {
  font-size: 13.5px; line-height: 1.55;
  color: var(--ink-dim);
  max-width: 280px;
  margin-bottom: 16px;
}
.v4-footer__prompt {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ink-dim);
}
.v4-footer__prompt .arrow { color: var(--pink); }

.v4-footer__col h5 {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.v4-footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.v4-footer__col a {
  color: var(--ink-dim);
  font-size: 13px;
  transition: color 0.15s;
}
.v4-footer__col a:hover { color: var(--ink); }
.v4-footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; gap: 24px;
  flex-wrap: wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ink-mute);
}
.v4-footer__bottom .right { margin-left: auto; display: flex; gap: 16px; }

/* ────────────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .v4-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .v4-term { min-height: 460px; }
  .v4-trust__inner { grid-template-columns: 1fr; gap: 20px; }
  .v4-trust__metrics { grid-template-columns: repeat(3, 1fr); }
  .v4-section__head { grid-template-columns: 1fr; gap: 20px; }
  .v4-bento { grid-template-columns: repeat(2, 1fr); }
  .v4-bento__cell.lg, .v4-bento__cell.md, .v4-bento__cell.sm { grid-column: span 1; }
  .v4-sectors__grid { grid-template-columns: 1fr; }
  .v4-proof__inner { grid-template-columns: 1fr; }
  .v4-footer__grid { grid-template-columns: 1fr 1fr; }
  .v4-loop__stage { aspect-ratio: 1.1; }
}
@media (max-width: 720px) {
  .v4-topbar__nav, .v4-topbar__status, .v4-topbar__divider, .v4-topbar__cmdk { display: none; }
  .v4-trust__metrics { grid-template-columns: repeat(2, 1fr); }
  .v4-intel__row { grid-template-columns: 24px 1fr 70px; gap: 10px; font-size: 11px; }
  .v4-intel__row .desc, .v4-intel__row .load { display: none; }
  .v4-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ────────────────────────────────────────────────
   LIGHT THEME — toggled via [data-theme="light"]
   ──────────────────────────────────────────────── */
:root[data-theme="light"] {
  --bg:        #F6F8FC;
  --bg-card:   #FFFFFF;
  --bg-elev:   #FFFFFF;
  --bg-deep:   #ECEFF5;
  --line:      rgba(10,14,25,0.08);
  --line-2:    rgba(10,14,25,0.14);
  --line-bright: rgba(10,14,25,0.28);
  --ink:       #0B1220;
  --ink-dim:   #4A5468;
  --ink-mute:  #6B7588;
  --ink-faint: #B5BCCB;
  --grid:      rgba(10,14,25,0.06);
}

/* Topbar: invert glass fill + brand mark */
[data-theme="light"] .v4-topbar { background: rgba(246,248,252,0.78); }
[data-theme="light"] .v4-topbar__brand img { filter: none; }
[data-theme="light"] .v4-topbar__cta { background: var(--pink); color: #fff; }
[data-theme="light"] .v4-topbar__cta:hover { background: var(--pink-lit); color: #fff; }

/* Subtle dark-tint backgrounds (replace white-on-dark tints) */
[data-theme="light"] .v4-btn--ghost,
[data-theme="light"] .v4-topbar__cmdk,
[data-theme="light"] .v4-hero__tag,
[data-theme="light"] .v4-kbd { background: rgba(10,14,25,0.04); }
[data-theme="light"] .v4-btn--ghost:hover,
[data-theme="light"] .v4-topbar__cmdk:hover,
[data-theme="light"] .v4-topbar__nav a:hover { background: rgba(10,14,25,0.07); color: var(--ink); }

/* Keep "OS surfaces" dark even in light mode — natural code/terminal pattern.
   Scoped tokens so descendant text/borders read correctly on the dark surface. */
[data-theme="light"] .v4-term,
[data-theme="light"] .v4-intel__monitor {
  --bg-card: #0C1320;
  --bg-elev: #111A2B;
  --line: rgba(255,255,255,0.07);
  --line-2: rgba(255,255,255,0.12);
  --line-bright: rgba(255,255,255,0.22);
  --ink: #E9EEF7;
  --ink-dim: #9BA7BC;
  --ink-mute: #5B6478;
  --ink-faint: #353C4C;
  color: var(--ink);
}
[data-theme="light"] .v4-term {
  background: linear-gradient(180deg, #0E1726 0%, #0A111E 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02) inset,
    0 30px 80px rgba(10,14,25,0.18),
    0 0 80px rgba(89,171,234,0.10);
}
[data-theme="light"] .v4-intel__monitor {
  background: linear-gradient(180deg, #0E1726 0%, #0A111E 100%);
  box-shadow: 0 20px 60px rgba(10,14,25,0.12);
}

/* Generic dark-tint surfaces inside major sections */
[data-theme="light"] .v4-bento,
[data-theme="light"] .v4-loop,
[data-theme="light"] .v4-intel,
[data-theme="light"] .v4-sectors,
[data-theme="light"] .v4-proof,
[data-theme="light"] .v4-finale,
[data-theme="light"] .v4-footer {
  --w-tint: 10,14,25;
}
[data-theme="light"] [style*="rgba(255,255,255"] { /* no-op anchor */ }

/* Replace common subtle white-tint backgrounds with dark equivalents */
[data-theme="light"] .v4-intel__row,

[data-theme="light"] .v4-intel__head,
[data-theme="light"] .v4-loop__step,
[data-theme="light"] .v4-loop__rail,
[data-theme="light"] .v4-sectors__card,
[data-theme="light"] .v4-proof__card,
[data-theme="light"] .v4-bento__cell,
[data-theme="light"] .v4-finale__cta {
  background-color: rgba(10,14,25,0.025);
}
[data-theme="light"] .v4-intel__row:hover { background-color: rgba(10,14,25,0.05); }

/* Selection */
[data-theme="light"] ::selection { background: rgba(239,42,159,0.25); color: var(--ink); }

/* Pink badge tint stays readable on light */
[data-theme="light"] .v4-hero__tag .badge { background: rgba(239,42,159,0.12); color: var(--pink); }

/* ── Small-mobile responsive (≤ 560px) ───────────────────── */
@media (max-width: 560px) {
  html, body { overflow-x: hidden; }
  .v4-wrap,
  .v4-trust__inner,
  .v4-proof__inner,
  .v4-finale__inner { padding-left: 18px !important; padding-right: 18px !important; }

  .v4-topbar__inner { padding: 0 18px; }
  .v4-topbar__brand img { height: 26px; }
  .v4-topbar__cta { padding: 8px 14px; font-size: 12px; }

  .v4-hero { padding: 96px 0 48px; }
  .v4-hero__grid { gap: 32px; }
  .v4-hero__headline {
    font-size: clamp(40px, 12.5vw, 68px);
    line-height: 1.0;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .v4-hero__sub { font-size: 15px; }
  .v4-hero__ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .v4-hero__ctas > a, .v4-hero__ctas > button { width: 100%; justify-content: center; }
  .v4-hero__meta { flex-wrap: wrap; gap: 8px 12px; font-size: 12px; }
  .v4-hero__tag { font-size: 11px; padding: 8px 12px; }
  .v4-hero__tag .badge { font-size: 10px; }

  .v4-h-display { font-size: clamp(32px, 9vw, 52px); }
  .v4-h-section { font-size: clamp(26px, 8vw, 40px); }

  .v4-bento { grid-template-columns: 1fr !important; }
  .v4-bento__cell { padding: 22px; }
  .v4-bento__cell.lg, .v4-bento__cell.md, .v4-bento__cell.sm { grid-column: span 1 !important; }

  .v4-trust__metrics { grid-template-columns: 1fr 1fr; gap: 12px; }
  .v4-sectors__grid { grid-template-columns: 1fr !important; }
  .v4-sectors__card { padding: 24px; }
  .v4-proof__inner { grid-template-columns: 1fr !important; }
  .v4-proof__card { padding: 22px; }
  .v4-loop__step { padding: 18px; }
  .v4-loop__stage { aspect-ratio: 1; }

  .v4-footer__grid { grid-template-columns: 1fr !important; gap: 28px; }

  .v4-finale__cta { padding: 28px 22px; }
  .v4-term { min-height: auto; }
  .v4-term__body { padding: 14px; font-size: 12px; }

  .v4-intel__row { grid-template-columns: 24px 1fr 60px !important; gap: 8px; font-size: 11px; }
  .v4-intel__row .desc, .v4-intel__row .load { display: none; }
}

/* Skip-to-content link (a11y) */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  padding: 12px 16px;
  background: #0b1220;
  color: #fff;
  font: 600 14px/1 system-ui, -apple-system, sans-serif;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  transform: translateY(-120%);
  z-index: 9999;
  transition: transform .15s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ── FAQ (homepage) ─────────────────────────────────────────── */
.v4-faq { padding-top: 64px; padding-bottom: 96px; }
.v4-faq__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.v4-faq__head .v4-eyebrow { justify-content: center; display: inline-flex; }
.v4-faq__head .v4-h2 { margin-top: 12px; }
.v4-faq__list {
  max-width: 880px;
  margin: 0 auto;
  border-top: 1px solid var(--line, rgba(255,255,255,.08));
}
.v4-faq__item {
  border-bottom: 1px solid var(--line, rgba(255,255,255,.08));
  transition: background .2s ease;
}
.v4-faq__item.open { background: rgba(124,92,255,.04); }
.v4-faq__q {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 8px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: var(--ink, #e9e9f1);
  font: inherit;
}
.v4-faq__q:focus-visible {
  outline: 2px solid var(--violet, #7c5cff);
  outline-offset: 4px;
  border-radius: 4px;
}
.v4-faq__num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--violet, #7c5cff);
  font-weight: 600;
}
.v4-faq__qtext {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
}
.v4-faq__chev {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 22px; line-height: 1;
  color: var(--violet, #7c5cff);
  border: 1px solid rgba(124,92,255,.35);
  border-radius: 6px;
  transition: background .2s ease, border-color .2s ease;
}
.v4-faq__item.open .v4-faq__chev {
  background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(61,217,201,.18));
  border-color: rgba(124,92,255,.6);
  color: #fff;
}
.v4-faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease;
}
.v4-faq__a-body {
  padding: 0 8px 24px 50px;
  color: var(--muted, #9a9aac);
  font-size: 15px;
  line-height: 1.6;
  max-width: 760px;
}
@media (max-width: 640px) {
  .v4-faq__q { grid-template-columns: auto 1fr auto; gap: 12px; padding: 18px 4px; }
  .v4-faq__qtext { font-size: 15px; }
  .v4-faq__a-body { padding-left: 36px; }
}
