/* VolgenX — site styles
   Brand: navy #0B1628, signal orange #F06A12, Archivo (display/body) + IBM Plex Mono (labels). */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-var.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0B1628;
  --navy-2: #13213A;
  --navy-3: #08111F;
  --line-dark: #22324F;
  --line-dark-2: #2E3F5E;
  --text-on-dark: #C9D2E0;
  --muted-on-dark: #93A1B8;
  --accent: #F06A12;
  --amber: #F5B547;
  --ground: #F3F5F8;
  --white: #FFFFFF;
  --ink: #0B1628;
  --ink-2: #3B4658;
  --ink-3: #4A5568;
  --line: #DDE2EA;
  --line-2: #CBD3DF;
  --radius: 12px;
  --max: 1200px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
p { text-wrap: pretty; }
button { font: inherit; }
[hidden] { display: none !important; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 12px 18px; border-radius: 6px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; }
@media (max-width: 720px) { .section { padding: 80px 0; } }
.section--dark { background: var(--navy); color: var(--white); }
.section--ground { background: var(--ground); }
.section--white { background: var(--white); }
.stack { display: flex; flex-direction: column; }
.gap-56 { gap: 56px; }

.eyebrow {
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-3);
}
.section--dark .eyebrow, .hero .eyebrow, .demo-main .eyebrow, .page-hero .eyebrow, .center-page .eyebrow { color: var(--muted-on-dark); }

.display {
  font-weight: 800; font-stretch: 112%;
  font-size: clamp(42px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance;
}
.h2 {
  font-weight: 800; font-stretch: 110%;
  font-size: clamp(32px, 4.2vw, 54px); line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance;
}
.h2--sm { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.section--dark .lead, .hero .lead, .demo-main .lead, .page-hero .lead, .center-page .lead { color: var(--text-on-dark); }
.intro { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.intro-split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 24px 64px; align-items: end;
}
.intro-split .lead { padding-bottom: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 26px; border-radius: 6px;
  font-weight: 700; font-size: 17px; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn--primary { background: var(--accent); color: var(--navy); }
.btn--primary:hover { background: #FF7B24; }
.btn--ghost { border-color: #3A4B6B; color: var(--white); font-weight: 600; }
.btn--ghost:hover { border-color: var(--white); }
.btn--ghost-light { border-color: var(--line-2); color: var(--ink); font-weight: 600; background: transparent; }
.btn--ghost-light:hover { border-color: var(--ink); }
.btn--lg { font-size: 18px; padding: 17px 32px; min-height: 56px; }
.btn--sm { font-size: 15px; padding: 11px 18px; min-height: 44px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 22, 40, 0.94);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid #1E2D48; color: var(--white);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.logo {
  display: inline-flex; align-items: center; text-decoration: none; color: var(--white);
  font-weight: 800; font-stretch: 112%; font-size: 26px; letter-spacing: -0.01em; line-height: 1;
}
.logo svg { height: 0.73em; width: 0.777em; margin-left: 0.06em; flex: none; }
.footer-grid .logo, .footer-grid .logo:hover { color: var(--white); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) {
  color: var(--muted-on-dark); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 0; white-space: nowrap;
}
.nav-links .btn { white-space: nowrap; }
.nav-links a:not(.btn):hover { color: var(--white); }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 6px; border: 1px solid var(--line-dark-2);
  background: transparent; color: var(--white); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid #1E2D48; padding: 8px 24px 24px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a:not(.btn) { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid #1E2D48; }
  .nav-links li:last-child { padding-top: 16px; }
  .nav-links .btn { width: 100%; }
}

/* Hero */
.hero { background: var(--navy); color: var(--white); padding: 96px 0 112px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(147,161,184,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147,161,184,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr));
  gap: 64px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-copy .lead { font-size: 20px; max-width: 34em; }
.hero-note { font-size: 14px; color: var(--muted-on-dark); display: flex; align-items: center; gap: 10px; }
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; position: relative;
}
.pulse::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--accent);
  opacity: 0; animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse::after { animation: none; } }
@media (max-width: 720px) { .hero { padding: 64px 0 80px; } }

/* Incident card */
.incident {
  background: var(--navy-2); border: 1px solid var(--line-dark); border-radius: 14px; padding: 24px;
  display: flex; flex-direction: column; gap: 18px; box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab {
  min-height: 44px; padding: 10px 14px; border-radius: 6px; cursor: pointer;
  font-size: 14px; font-weight: 600; background: transparent; color: var(--text-on-dark);
  border: 1px solid var(--line-dark-2); transition: background-color .15s, color .15s, border-color .15s;
}
.tab:hover { border-color: var(--muted-on-dark); color: var(--white); }
.tab[aria-selected="true"] { background: var(--white); color: var(--navy); border-color: var(--white); }
.incident-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  font-family: var(--mono); font-size: 13px; color: var(--muted-on-dark);
}
.map { background: var(--navy); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.map svg { width: 100%; height: auto; }
.alert-halo { animation: halo 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { 0% { transform: scale(.6); opacity: .55; } 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .alert-halo { animation: none; } .map * { transition: none !important; } }
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 10px; font-size: 14px; color: var(--text-on-dark); }
.legend span { display: flex; align-items: center; gap: 10px; }

.alert {
  border: 1px solid var(--accent); border-radius: 10px; padding: 18px;
  display: flex; flex-direction: column; gap: 8px; transition: border-color .3s;
}
.alert[data-grade="suspicious"] { border-color: var(--amber); }
.alert-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.alert-title { font-weight: 700; font-size: 17px; }
.alert-body { font-size: 15px; color: var(--text-on-dark); line-height: 1.5; min-height: 4.5em; }
.grade {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px; white-space: nowrap; display: inline-block;
}
.grade--critical { background: var(--accent); color: var(--navy); }
.grade--suspicious { border: 1px solid var(--amber); color: var(--amber); padding: 3px 9px; }
.grade--expected { border: 1px solid #5A6B88; color: var(--text-on-dark); padding: 3px 9px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fact {
  border: 1px solid var(--line-dark); border-radius: 8px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 2px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.04em; color: var(--muted-on-dark); text-transform: uppercase; min-width: 0;
}
.fact strong { color: var(--white); font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.fineprint { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: #8090A8; text-transform: uppercase; }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } }

/* Trust bar */
.trustbar { background: var(--navy-2); border-top: 1px solid #1E2D48; border-bottom: 1px solid #1E2D48; color: var(--text-on-dark); }
.trustbar ul {
  list-style: none; margin: 0 auto; padding: 22px 24px; max-width: var(--max);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em;
}
.trustbar li { display: flex; align-items: center; gap: 10px; }
.trustbar li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Cards and grids */
.grid { display: grid; gap: 24px; }
.grid-300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-260 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid-240 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.grid-320 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.card { background: var(--white); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.section--white .card { background: var(--ground); }
.card--dark { background: var(--navy-2); border: 1px solid var(--line-dark); }
.card h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.card p { font-size: 16px; color: var(--ink-2); }
.card--dark p { color: var(--text-on-dark); }

.card .stat-value { font-weight: 800; font-stretch: 110%; font-size: clamp(40px, 4.5vw, 52px); line-height: 1; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 4px; }
.card .stat-source { font-family: var(--mono); font-size: 12px; color: #5A6578; margin-top: auto; padding-top: 8px; }

.ruled { border-top: 2px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.ruled--accent { border-top-color: var(--accent); }
.ruled .num { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.ruled h3, .ruled h4 { margin: 0; font-size: 20px; font-weight: 700; }
.ruled p { font-size: 16px; color: var(--ink-2); }
.section--dark .ruled h3 { font-size: 22px; }
.section--dark .ruled p { color: var(--text-on-dark); }
.subhead { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }

/* Sources chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 18px; font-size: 15px; }
.chips li.is-key { background: var(--navy); color: var(--white); border-color: var(--navy); font-weight: 600; }

/* Stages */
.stage-card { padding: 32px; border-radius: var(--radius); background: var(--navy-2); border: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 14px; }
.stage-label { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; color: var(--muted-on-dark); text-transform: uppercase; }
.stage-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.stage-card h3 { font-size: 22px; font-weight: 700; line-height: 1.3; }
.stage-card p { font-size: 16px; color: var(--text-on-dark); }

/* Live view table */
.panel { background: var(--navy-2); border: 1px solid var(--line-dark); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.panel-head h3 { font-size: 20px; font-weight: 700; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.live-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.live-table th {
  text-align: left; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; font-weight: 500;
  color: var(--muted-on-dark); padding: 12px; border-bottom: 1px solid var(--line-dark); text-transform: uppercase;
}
.live-table td { padding: 14px 12px; border-bottom: 1px solid var(--line-dark); }
.live-table tr:last-child td { border-bottom: 0; }
.live-table td.mono { font-family: var(--mono); font-size: 14px; }
.live-table td.muted { color: var(--text-on-dark); }

/* Roles */
.roles { background: var(--white); border-radius: 14px; padding: 12px; }
.roles .tabs { padding: 4px; }
.roles .tab {
  font-size: 15px; padding: 12px 18px; color: var(--ink-2); border-color: transparent;
}
.roles .tab:hover { color: var(--ink); border-color: var(--line-2); }
.roles .tab[aria-selected="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.role-panel {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 32px 56px; padding: 36px 28px 28px;
}
.role-need { font-size: 26px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
.role-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.role-list li { display: flex; gap: 12px; align-items: baseline; font-size: 17px; color: #1F2A3C; }
.role-list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.panel-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 12px; }
@media (max-width: 560px) { .role-panel { padding: 28px 12px 16px; } .role-need { font-size: 22px; } }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 28px 40px; }
.features h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.features p { font-size: 15px; color: var(--ink-2); }

/* Attack steps */
.steps3 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.steps3 > div { padding: 32px; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.steps3 .eyebrow { letter-spacing: 0.12em; font-size: 12px; }
.steps3 h3 { font-size: 22px; font-weight: 700; }
.steps3 p { font-size: 16px; color: var(--ink-2); }

/* Policy year */
.policy-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 8px; }
.policy-step {
  text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; min-height: 44px;
  border-radius: 8px; cursor: pointer; background: var(--navy); color: var(--white); border: 1px solid var(--line-dark-2);
  font-size: 16px; font-weight: 600; transition: background-color .15s, color .15s, border-color .15s;
}
.policy-step:hover { border-color: var(--muted-on-dark); }
.policy-step span { font-family: var(--mono); font-size: 12px; font-weight: 400; opacity: .8; }
.policy-step[aria-selected="true"] { background: var(--accent); color: var(--navy); border-color: var(--accent); }
.policy-text { font-size: 18px; line-height: 1.6; color: #E2E8F0; max-width: 52em; min-height: 3.2em; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 56px 64px; }
.points { display: flex; flex-direction: column; gap: 16px; font-size: 16px; color: var(--ink-2); list-style: none; margin: 0; padding: 0; }
.points strong { color: var(--ink); }
.not-card { background: var(--white); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 20px; align-self: start; }
.not-card h3 { font-size: 24px; font-weight: 700; }

/* Name */
.name-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 40px 64px; align-items: center; }
.wordmark-xl { font-weight: 800; font-stretch: 112%; font-size: clamp(64px, 9vw, 120px); line-height: 1; letter-spacing: -0.02em; display: flex; align-items: baseline; }
.wordmark-xl svg { height: 0.7em; width: 0.745em; margin-left: 0.05em; flex: none; }
.pron { font-family: var(--mono); font-size: 15px; color: var(--ink-3); margin-top: 8px; }
.name-copy { display: flex; flex-direction: column; gap: 16px; font-size: 18px; color: var(--ink-2); }

/* CTA band */
.cta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 40px 64px; align-items: center; }
.cta-grid .btn-row { justify-content: flex-start; }

/* Footer */
.site-footer { background: var(--navy-3); color: var(--muted-on-dark); padding: 64px 0 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px; }
.footer-grid h2 { color: var(--white); font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { text-decoration: none; color: var(--muted-on-dark); }
.footer-grid a:hover { color: var(--white); }
.footer-tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; margin-top: 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #1E2D48; padding-top: 24px; margin-top: 48px; font-size: 13px; }
.footer-bottom a { text-decoration: none; color: var(--muted-on-dark); }
.footer-bottom a:hover { color: var(--white); }
.footer-bottom nav { display: flex; gap: 20px; }

/* Demo page */
.demo-main { background: var(--navy); color: var(--white); padding: 88px 0 112px; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 56px 80px; align-items: start; }
.agenda { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.agenda li { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line-dark); }
.agenda .num { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 3px; }
.agenda h2 { font-size: 17px; font-weight: 700; }
.agenda p { font-size: 15px; color: var(--text-on-dark); }
.form-card { background: var(--white); color: var(--ink); border-radius: 14px; padding: 36px; box-shadow: 0 30px 60px rgba(0,0,0,0.35); }
@media (max-width: 480px) { .form-card { padding: 24px; } }
.form { display: flex; flex-direction: column; gap: 20px; }
.form h2 { font-size: 24px; font-weight: 700; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 12px 14px; min-height: 48px; width: 100%;
  border: 1px solid #B8C2D1; border-radius: 6px; color: var(--ink); background: var(--white);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(240,106,18,0.35); }
.field[data-invalid] input, .field[data-invalid] select { border-color: #B42318; }
.field-error { font-size: 13px; color: #B42318; }
.consent { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.consent label { flex: 1 1 0; min-width: 0; }
.consent .field-error { flex-basis: 100%; padding-left: 30px; margin: 0; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--navy); }
.consent a { color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14px; color: #B42318; min-height: 1em; }

/* Legal / simple pages */
.page-hero { background: var(--navy); color: var(--white); padding: 80px 0 64px; }
.prose { max-width: 760px; margin: 0 auto; padding: 64px 24px 112px; }
.prose h2 { font-size: 24px; font-weight: 700; margin: 40px 0 12px; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.prose .note { background: var(--ground); border-radius: 8px; padding: 16px 20px; font-size: 15px; margin-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }

.center-page { min-height: 70vh; display: flex; align-items: center; background: var(--navy); color: var(--white); padding: 96px 0; }
.center-page .stack { gap: 24px; max-width: 640px; }

/* Scroll reveal (only when JS is on and motion allowed) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Platform pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px; }
.pillar {
  background: var(--ground); border-radius: 16px; padding: 40px;
  display: flex; flex-direction: column; gap: 18px;
}
.pillar h3 { font-weight: 800; font-stretch: 108%; font-size: 28px; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.pillar--dark { background: var(--navy); color: var(--white); }
.pillar--dark .eyebrow { color: var(--muted-on-dark); }
.pillar--dark .role-list li { color: var(--text-on-dark); }
.pillar-link { margin-top: auto; padding-top: 8px; font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.pillar-link span { transition: transform .2s; }
.pillar-link:hover span { transform: translateX(4px); }
@media (max-width: 480px) { .pillar { padding: 28px 22px; } .pillar h3 { font-size: 24px; } }

/* ---------- Live view filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  min-height: 40px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text-on-dark); border: 1px solid var(--line-dark-2);
  font-size: 14px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center;
}
.filter span { font-family: var(--mono); font-size: 12px; color: var(--muted-on-dark); }
.filter:hover { border-color: var(--muted-on-dark); }
.filter[aria-pressed="true"] { background: var(--white); color: var(--navy); border-color: var(--white); }
.filter[aria-pressed="true"] span { color: var(--ink-3); }
.live-table tr { transition: opacity .2s; }

/* ---------- ETA demo ---------- */
.eta {
  background: var(--navy); color: var(--white); border-radius: 16px; padding: 32px;
  display: flex; flex-direction: column; gap: 24px;
}
@media (max-width: 560px) { .eta { padding: 22px 18px; } }
.eta-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 24px; }
.eta-ship { font-family: var(--mono); font-size: 13px; color: var(--muted-on-dark); }
.eta-promise { font-size: 17px; margin-top: 6px; color: var(--text-on-dark); }
.eta-promise strong { color: var(--white); }
.eta-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.eta-box { border: 1px solid var(--line-dark-2); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.eta-box--vx { border-color: var(--accent); background: rgba(240, 106, 18, 0.07); }
.eta-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-on-dark); }
.eta-value { font-weight: 800; font-stretch: 110%; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; transition: color .3s; }
.eta-value[data-late="true"] { color: var(--amber); }
.eta-note { font-size: 14px; color: var(--muted-on-dark); }
.eta-event { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; min-height: 3.4em; font-size: 17px; color: var(--text-on-dark); }
.eta-event p { flex: 1 1 320px; min-width: 0; }
.eta-event strong { color: var(--white); font-variant-numeric: tabular-nums; margin-right: 6px; }
.eta-pill {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px; white-space: nowrap; border: 1px solid #5A6B88; color: var(--text-on-dark);
}
.eta-pill[data-state="risk"] { border-color: var(--amber); color: var(--amber); }
.eta-pill[data-state="lead"] { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.eta-steps {
  list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px;
}
.eta-steps::before {
  content: ""; position: absolute; left: 8.33%; right: 8.33%; top: 21px; height: 2px; background: var(--line-dark-2);
}
.eta-steps::after {
  content: ""; position: absolute; left: 8.33%; top: 21px; height: 2px; background: var(--white);
  width: calc((100% - 16.66%) * var(--progress, 0)); transition: width .45s cubic-bezier(.2,.7,.2,1);
}
.eta-step {
  position: relative; z-index: 1; width: 100%; min-height: 44px; background: none; border: 0; color: var(--muted-on-dark);
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 2px 4px; cursor: pointer; text-align: center; border-radius: 8px;
}
.eta-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--navy); border: 2px solid var(--line-dark-2); transition: all .3s; }
.eta-step.is-past .eta-dot { background: var(--white); border-color: var(--white); }
.eta-step[aria-current="step"] .eta-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(240,106,18,0.25); }
.eta-step-time { font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.eta-step-name { font-size: 13px; font-weight: 600; color: var(--text-on-dark); line-height: 1.3; }
.eta-step[aria-current="step"] .eta-step-name { color: var(--white); }
.eta-step:hover .eta-step-name { color: var(--white); }
@media (max-width: 640px) {
  .eta-steps { grid-template-columns: 1fr; gap: 0; }
  .eta-steps::before { left: 17px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .eta-steps::after { left: 17px; top: 22px; width: 2px; height: calc((100% - 44px) * var(--progress, 0)); transition: height .45s; }
  .eta-step { flex-direction: row; align-items: center; gap: 12px; padding: 8px 8px; text-align: left; }
  .eta-step-time { order: 3; margin-left: auto; }
}
.eta-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.eta .btn--ghost-light { color: var(--white); border-color: #3A4B6B; }
.eta .btn--ghost-light:hover { border-color: var(--white); }
.eta .btn--ghost-light:disabled { opacity: .4; cursor: default; }
.ruled h4 { font-size: 19px; }

/* ---------- Modes ---------- */
.modes { background: var(--ground); border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 560px) { .modes { padding: 26px 18px; } }
.modes-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.modes .tab, .score .tab { color: var(--ink-2); border-color: var(--line-2); background: var(--white); }
.modes .tab:hover, .score .tab:hover { color: var(--ink); border-color: var(--ink); }
.modes .tab[aria-selected="true"], .score .tab[aria-selected="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.mode-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 24px 56px; }

/* ---------- Scorecard ---------- */
.score { border: 1px solid var(--line); border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 560px) { .score { padding: 26px 18px; } }
.score-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 24px; }
.score-head .fineprint { color: var(--ink-3); }
.score-sub { color: var(--ink-2); max-width: 46em; }
.score .tab { background: transparent; }
.score-note { font-size: 15px; color: var(--ink-3); margin-bottom: 16px; }
.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.bars li { display: grid; grid-template-columns: 96px minmax(0, 1fr) 72px; align-items: center; gap: 16px; }
.bar-name { font-weight: 600; font-size: 15px; }
.bar-track { height: 14px; border-radius: 999px; background: var(--ground); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--navy); transition: width .6s cubic-bezier(.2,.7,.2,1); }
.bar-fill--low { background: var(--accent); }
.bar-val { font-family: var(--mono); font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .bars li { grid-template-columns: 76px minmax(0, 1fr) 58px; gap: 10px; } }

/* ---------- Flow (fits) ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr); gap: 24px; align-items: center; }
@media (max-width: 960px) { .flow { grid-template-columns: 1fr; } }
.flow-col { background: var(--ground); border-radius: 16px; padding: 32px; }
.flow-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.flow-list li { display: flex; flex-direction: column; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.flow-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.flow-list strong { font-size: 18px; }
.flow-list span { font-size: 15px; color: var(--ink-2); }
.flow-core { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); position: relative; }
.flow-mark { width: 120px; height: 120px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; box-shadow: 0 0 0 10px var(--ground), 0 0 0 11px var(--line); }
.flow-mark svg { width: 52px; height: 49px; }
@media (min-width: 961px) {
  .flow-core::before, .flow-core::after { content: ""; position: absolute; top: 60px; height: 2px; width: 40px; background: var(--line-2); }
  .flow-core::before { right: 100%; } .flow-core::after { left: 100%; }
}

/* ---------- Incident scenes ---------- */
.map .scene text { font-family: var(--mono); font-size: 12.5px; fill: #A9B5C8; }
.map .scene text.soft { fill: #8090A8; }
.map .scene text.strong { fill: #FFFFFF; font-weight: 500; }
.map .scene text.warn { fill: var(--amber); }
.map .scene { animation: scene-in .35s ease; }
@keyframes scene-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .map .scene { animation: none; } }
@media (max-width: 480px) { .map { padding: 12px; } .map .scene text { font-size: 17px; } .map .scene text.soft { display: none; } }
.legend > span { display: flex; align-items: center; gap: 10px; }
.sw { flex: none; display: inline-block; }
.sw--line { width: 18px; height: 0; border-top: 2.5px solid #FFFFFF; border-radius: 2px; }
.sw--dash { width: 18px; height: 0; border-top: 2px dashed #8090A8; }
.sw--dot { width: 10px; height: 10px; border-radius: 50%; }
.sw--critical { background: var(--accent); }
.sw--suspicious { background: var(--amber); }
.sw--band { width: 18px; height: 12px; background: rgba(147,161,184,0.25); border-top: 1px solid #5A6B88; border-bottom: 1px solid #5A6B88; }
.sw--p { width: 14px; height: 14px; border: 2px solid #93A1B8; border-radius: 3px; }

.sw--ring { width: 12px; height: 12px; border-radius: 50%; border: 2px dashed #FFFFFF; }

/* ---------- Integrations ---------- */
.integ {
  display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white);
}
@media (max-width: 860px) { .integ { grid-template-columns: 1fr; } }
.integ-list { display: flex; flex-direction: column; background: var(--ground); padding: 10px; gap: 4px; }
@media (max-width: 860px) {
  .integ-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
}
.integ-tab {
  display: flex; align-items: center; gap: 12px; text-align: left; min-height: 48px; padding: 10px 14px;
  border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--ink-2);
  font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .15s, color .15s;
}
.integ-tab:hover { background: var(--white); color: var(--ink); }
.integ-tab[aria-selected="true"] { background: var(--navy); color: var(--white); }
.integ-abbr {
  flex: none; width: 42px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em;
  padding: 4px 0; text-align: center; border-radius: 4px; border: 1px solid var(--line-2); color: var(--ink-3);
}
.integ-tab[aria-selected="true"] .integ-abbr { border-color: var(--accent); color: var(--accent); }
.integ-panel { padding: 36px; display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 560px) { .integ-panel { padding: 26px 18px; } }
.integ-title { font-weight: 800; font-stretch: 108%; font-size: 28px; line-height: 1.15; letter-spacing: -0.01em; }
.integ-flow { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 700px) { .integ-flow { grid-template-columns: 1fr; } .integ-arrow { transform: rotate(90deg); justify-self: start; } }
.integ-col { background: var(--ground); border-radius: 12px; padding: 22px; }
.integ-arrow { color: var(--accent); align-self: center; justify-self: center; }
.integ-arrow svg { width: 28px; height: 28px; }
.connect { display: flex; flex-direction: column; gap: 4px; }
.connect-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.connect-list li { border-top: 2px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.connect-list strong { font-size: 18px; }
.connect-list span { font-size: 15px; color: var(--ink-2); }

/* Seven menu items need the compact menu a little earlier */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid #1E2D48; padding: 8px 24px 24px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a:not(.btn) { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid #1E2D48; }
  .nav-links li:last-child { padding-top: 16px; }
  .nav-links .btn { width: 100%; }
}

/* ---------- 3D hero ---------- */
.hero--3d { padding: 0; min-height: 720px; display: flex; flex-direction: column; justify-content: center; }
.hero--3d::before { z-index: 0; }
.hero-scene {
  position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity 1.4s ease;
  cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none;
}
.hero-scene.is-ready { opacity: 1; }
.hero-scene.is-dragging { cursor: grabbing; }
.hero-scene canvas { display: block; width: 100%; height: 100%; }
.hero--3d::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,22,40,0.94) 0%, rgba(11,22,40,0.8) 32%, rgba(11,22,40,0) 60%),
              linear-gradient(0deg, rgba(11,22,40,0.85) 0%, rgba(11,22,40,0) 22%);
}
.hero-inner { position: relative; z-index: 2; padding-block: 112px; pointer-events: none; width: 100%; }
.hero-inner .hero-copy { max-width: 600px; pointer-events: auto; }
.hero-hint {
  position: absolute; z-index: 2; bottom: 22px; right: max(24px, calc((100% - var(--max)) / 2 + 24px));
  display: flex; gap: 18px; margin: 0; pointer-events: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #8090A8;
}
.hero-hint span:first-child::before { content: "↔ "; letter-spacing: 0; }
.hero-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.map-label {
  position: absolute; left: 0; top: 0; will-change: transform; white-space: nowrap;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: #C9D2E0;
  translate: 10px -50%; text-shadow: 0 1px 6px rgba(11,22,40,0.9);
}
.map-label--left { translate: calc(-100% - 10px) -50%; }
.map-alert {
  position: absolute; left: 0; top: 0; will-change: transform; translate: -50% calc(-100% - 26px);
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  background: rgba(19,33,58,0.94); border: 1px solid var(--line-dark-2); border-radius: 8px; padding: 9px 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45); color: var(--white);
  opacity: 0; transition: opacity .35s ease;
}
.map-alert.is-on { opacity: 1; }
.map-alert-text { display: flex; flex-direction: column; line-height: 1.3; }
.map-alert-text strong { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted-on-dark); letter-spacing: 0.04em; }
.map-alert-text span { font-size: 14px; font-weight: 600; }
@media (max-width: 899px) {
  .hero--3d { min-height: 0; }
  .hero--3d::after { display: none; }
  .hero-inner { order: 1; padding-block: 64px 8px; pointer-events: auto; }
  .hero-scene { position: relative; inset: auto; order: 2; height: 400px; }
  .hero-hint { position: relative; order: 3; right: auto; bottom: auto; justify-content: space-between; padding: 0 24px 28px; }
  .map-label { font-size: 11px; }
}

/* ---------- Incident section ---------- */
.incident-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 48px 64px; align-items: center; }

/* ---------- 3D X ---------- */
.x-scene { height: 460px; opacity: 0; transition: opacity 1.2s ease; }
.x-scene.is-ready { opacity: 1; }
.x-scene canvas { display: block; width: 100%; height: 100%; }
@media (max-width: 899px) { .x-scene { height: 320px; } }

/* ---------- Depth: tilt and 3D reveal ---------- */
.tilt { transform-style: preserve-3d; }
.tilt.is-tilting { box-shadow: 0 24px 50px rgba(11,22,40,0.18); }
.js .reveal { transform: perspective(1000px) translateY(28px) rotateX(9deg); transform-origin: 50% 0; }
.js .reveal.is-visible { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { transform: none; } }

/* 3D transforms on content that has not scrolled in yet must never widen the page */
main { overflow-x: clip; }

.hero-hint { display: none; }
.hero-scene.is-ready ~ .hero-hint { display: flex; }

/* Hero tag: Detect. Respond. Prevent. */
.hero-tag {
  font-weight: 700; font-stretch: 112%; font-size: clamp(18px, 2vw, 22px); letter-spacing: 0.01em;
  color: var(--white); word-spacing: 0.15em;
}
.hero--3d .display { font-size: clamp(40px, 5vw, 68px); }
.hero-inner .hero-copy { max-width: 640px; }
.hero-tag span { color: var(--accent); }

/* ---------- Data sources (clickable) ---------- */
.sources { display: flex; flex-direction: column; gap: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 44px; border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 18px;
  font-size: 15px; font-weight: 500; color: var(--ink); background: var(--white); cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-selected="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); font-weight: 600; }
.source-panel { background: var(--ground); border-radius: 12px; padding: 26px 28px; display: flex; flex-direction: column; gap: 6px; min-height: 150px; }
.source-panel .panel-label { margin-bottom: 4px; }
.source-name { font-size: 20px; font-weight: 700; }
.source-text { font-size: 17px; color: var(--ink-2); max-width: 62em; }

.role-list--dark { margin-top: 6px; }
.role-list--dark li { color: var(--text-on-dark); font-size: 16px; }
