/* ═══════════════════════════════════════════════════════════════════════════
   Aletheia — styles.css
   Poppins 300 / 500 only. No inline scripts (CSP: script-src 'self').
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
img,svg,video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul,ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body { overflow-x: clip; }

/* ── Design Tokens ──────────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:        #050812;
  --bg2:       #080D18;
  --panel:     rgba(13,19,34,0.88);
  --panel2:    rgba(255,255,255,0.03);

  /* Borders */
  --border:    rgba(255,255,255,0.08);
  --border2:   rgba(255,255,255,0.05);

  /* Text */
  --white:     #FFFFFF;
  --body:      #C8CFD9;
  --muted:     #8D96A8;

  /* Brand */
  --purple:    #7B2DFF;
  --pink:      #FF2FCF;
  --cyan:      #00D8C8;
  --green:     #7DFF21;
  --amber:     #FFB020;
  --red:       #FF4E62;

  /* Gradients */
  --grad:      linear-gradient(135deg,#7B2DFF 0%,#FF2FCF 100%);
  --grad-cyan: linear-gradient(135deg,#00D8C8 0%,#7B2DFF 100%);

  /* Layout */
  --nav-h:    68px;
  --max-w:    1440px;
  --px:       clamp(24px,5vw,80px);
  --section-pad: clamp(72px,8vw,120px);

  /* Radius */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-btn: 10px;

  /* Motion */
  --ease:  cubic-bezier(.22,.61,.36,1);
  --t1:    180ms;
  --t2:    260ms;
  --t3:    420ms;

  /* Opening animation */
  --fade:  800ms;
}

/* ── Base Typography ────────────────────────────────────────────────────────── */
body {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 { font-weight: 300; line-height: 1.2; color: var(--white); }

p { max-width: 64ch; }

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

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--purple);
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid rgba(123,45,255,0.35);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--purple);
  background: rgba(123,45,255,0.08);
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--grad);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r-btn);
  transition: opacity var(--t2) var(--ease), transform var(--t2) var(--ease);
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 14px;
  font-weight: 300;
  border-radius: var(--r-btn);
  transition: border-color var(--t2) var(--ease), background var(--t2) var(--ease);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }

/* ── Nav ────────────────────────────────────────────────────────────────────── */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 var(--px);
  transition: background var(--t3) var(--ease), border-color var(--t3) var(--ease);
  border-bottom: 1px solid transparent;
}

#site-nav.is-scrolled {
  background: rgba(5,8,18,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img { height: 32px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}

.nav-link {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  transition: color var(--t1) var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--white); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--r-btn);
}

.btn-nav-ghost {
  color: var(--muted);
  transition: color var(--t1);
}
.btn-nav-ghost:hover { color: var(--white); }

.btn-nav-cta {
  background: var(--grad);
  color: var(--white);
  transition: opacity var(--t2);
}
.btn-nav-cta:hover { opacity: .85; }

/* Hamburger */
#nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-left: auto;
}

#nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}
/* Mobile: hidden by default, shown via JS .is-open class */
@media (max-width: 900px) {
  #nav-menu:not(.is-open) { display: none; }
}

/* ── Opening Overlay ────────────────────────────────────────────────────────── */
#opening-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  transition: opacity var(--fade) var(--ease);
}

#opening-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity var(--fade) var(--ease);
  max-width: min(480px, 80vw);
  width: 100%;
  height: auto; /* let height scale with width; the HTML height=252 attr crunched it on phones */
}

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding: 80px var(--px) var(--section-pad);
  display: flex;
  align-items: center;
}

.hero-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px,6vw,96px);
  align-items: center;
}

.hero-left { display: flex; flex-direction: column; gap: 28px; }

#hero-eyebrow,
#hero-h1,
#hero-h2,
#hero-body,
#hero-btns {
  opacity: 1;
}

.hero-eyebrow-wrap { display: flex; align-items: center; gap: 12px; }

.hero-title {
  font-size: clamp(40px,4.8vw,72px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -.02em;
}

.hero-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(17px,1.5vw,21px);
  font-weight: 300;
  color: var(--body);
  line-height: 1.55;
  max-width: 52ch;
}

.hero-btns-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Hero orbital visualization */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-viz {
  opacity: 1;
  transition: opacity var(--fade) var(--ease);
  width: 100%;
}

.hero-orbital {
  width: 100%;
  height: auto;
  max-width: 560px;
}

/* ── Trusted-by Strip ───────────────────────────────────────────────────────── */
.trusted-strip {
  padding: 28px 0;
  border-top: 1px solid var(--border2);
  border-bottom: 1px solid var(--border2);
  background: var(--bg2);
  overflow: hidden;
}

.trusted-inner {
  display: flex;
  align-items: center;
  gap: 0;
}

.trusted-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
  padding: 0 32px 0 var(--px);
  white-space: nowrap;
}

.trusted-names {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  padding-right: 48px;
  animation: marquee-scroll 60s linear infinite;
}

.trusted-name {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.28);
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s;
}
.trusted-name:hover { color: rgba(255,255,255,0.55); }

@media (prefers-reduced-motion: reduce) {
  .trusted-names { animation: none; }
}

/* ── Problem Section ────────────────────────────────────────────────────────── */
.problem-section {
  padding: var(--section-pad) var(--px);
  background: var(--bg);
}

.problem-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px,6vw,96px);
  align-items: start;
}

.problem-left { display: flex; flex-direction: column; gap: 24px; }

.section-h {
  font-size: clamp(28px,2.8vw,44px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: -.01em;
}

.problem-pain-list { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }

.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255,78,98,0.06);
  border: 1px solid rgba(255,78,98,0.15);
  border-radius: var(--r-md);
}

.pain-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--red);
  margin-top: 2px;
}

.pain-item p {
  font-size: 14px;
  color: var(--body);
  max-width: none;
}

.problem-right { display: flex; flex-direction: column; gap: 14px; }

.chaos-diagram {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.chaos-sources, .chaos-results { display: flex; flex-direction: column; gap: 10px; }

.chaos-source-item, .chaos-result-item {
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border2);
}

.chaos-result-item.is-neg { color: var(--red); border-color: rgba(255,78,98,0.2); background: rgba(255,78,98,0.04); }

.chaos-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--red);
}

.chaos-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,78,98,0.12);
  border: 1px solid rgba(255,78,98,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.chaos-label { font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }

.chaos-arrow {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.chaos-arrow-line {
  width: 1px;
  height: 12px;
  background: var(--border);
}

/* ── Horizontal Section Architecture ────────────────────────────────────────── */
.h-section {
  position: relative;
  background: var(--bg);
}

.h-sticky {
  position: relative;
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.h-header {
  flex-shrink: 0;
  padding: clamp(28px,3vw,48px) var(--px) 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.h-header-text { display: flex; flex-direction: column; gap: 8px; }

.h-track-wrap { flex: 1; overflow: hidden; position: relative; }

.h-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  height: 100%;
  align-items: flex-start;
  will-change: transform;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}

.h-progress {
  flex-shrink: 0;
  height: 2px;
  background: var(--border2);
  margin: 0 var(--px);
  position: relative;
  overflow: hidden;
}

.h-progress-fill {
  position: absolute;
  inset: 0;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}

/* ── Horizontal section arrow controls — centered side buttons ──────────────── */
.h-arrow {
  position: static;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .6);
  background: rgba(12, 16, 28, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .38);
  transition: border-color .18s, background .18s, opacity .18s, transform .18s, box-shadow .18s;
}

/* Centered controls row rendered below each horizontal section */
.h-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.h-arrow:hover:not(:disabled) {
  border-color: var(--purple);
  background: rgba(124, 92, 255, .92);
  transform: scale(1.06);
  box-shadow: 0 8px 26px rgba(124, 92, 255, .4);
}

.h-arrow:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

.h-arrow:disabled {
  opacity: .3;
  cursor: default;
}

/* ── Platform Section ───────────────────────────────────────────────────────── */
.platform-panel {
  flex-shrink: 0;
  width: clamp(640px,72vw,1080px);
  height: 100%;
  padding: 48px var(--px) 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  border-right: 1px solid var(--border2);
  align-self: flex-start;
}

.platform-panel:first-child { padding-left: var(--px); }

.panel-eyebrow { display: flex; align-items: center; gap: 12px; min-height: 40px; margin-bottom: 20px; }

.panel-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  color: var(--white);
  flex-shrink: 0;
}

.panel-title {
  font-size: clamp(24px,2vw,36px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
}

.panel-body {
  font-size: 15px;
  color: var(--body);
  line-height: 1.65;
  max-width: 54ch;
}

.panel-features { display: flex; flex-direction: column; gap: 10px; }

.panel-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--body);
}

.feature-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
  margin-top: 7px;
}

/* Dashboard mockup panel */
.panel-dashboard { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

/* ── Dashboard Mockup ───────────────────────────────────────────────────────── */
.db-mock {
  display: grid;
  grid-template-columns: 160px 1fr;
  height: 340px;
  background: #080E1C;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-size: 11px;
}

.db-sidebar {
  background: #060B17;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.db-sidebar-logo { height: 24px; width: auto; opacity: .7; }

.db-sidenav { display: flex; flex-direction: column; gap: 2px; }

.db-sidenav-item {
  padding: 7px 10px;
  border-radius: 6px;
  color: rgba(255,255,255,0.35);
  font-size: 11px;
  cursor: default;
  transition: background .15s;
}
.db-sidenav-item.is-active {
  background: rgba(123,45,255,0.18);
  color: var(--white);
}

.db-main { display: flex; flex-direction: column; overflow: hidden; }

.db-topbar {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.db-topbar-title { font-size: 12px; color: var(--white); font-weight: 300; flex: 1; }

.db-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.db-live-label { font-size: 10px; color: var(--green); font-weight: 500; letter-spacing: .06em; }

.db-content { padding: 14px 16px; overflow: hidden; display: flex; flex-direction: column; gap: 14px; flex: 1; }

.db-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }

.db-kpi {
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.db-kpi-label { font-size: 10px; color: var(--muted); }
.db-kpi-val { font-size: 16px; color: var(--white); font-weight: 300; }
.db-kpi-delta { font-size: 10px; color: var(--cyan); }
.db-kpi-delta.neg { color: var(--red); }

.db-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1; min-height: 0; }

.db-chart-block, .db-table-block {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.db-block-label { font-size: 10px; color: var(--muted); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }

.db-bars { display: flex; flex-direction: column; gap: 6px; }

.db-bar-row { display: flex; align-items: center; gap: 8px; }

.db-bar-name { font-size: 10px; color: var(--muted); width: 56px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.db-bar-track { flex: 1; height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }

.db-bar-fill { height: 100%; background: var(--grad); border-radius: 2px; }

.db-bar-val { font-size: 10px; color: var(--white); width: 32px; text-align: right; flex-shrink: 0; }

.db-rows { display: flex; flex-direction: column; gap: 6px; overflow: hidden; }

.db-row { display: flex; align-items: center; gap: 8px; }

.db-row-name { font-size: 10px; color: var(--body); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.db-row-val { font-size: 10px; color: var(--white); }

.db-badge-sm {
  font-size: 9px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.db-badge-sm.green { background: rgba(125,255,33,0.12); color: var(--green); }
.db-badge-sm.amber { background: rgba(255,176,32,0.12); color: var(--amber); }

/* ── How It Works Section ───────────────────────────────────────────────────── */
.timeline-panel {
  flex: 0 0 320px;
  width: 320px;
  min-width: 320px;
  height: 100%;
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  border-right: 1px solid var(--border2);
  transition: background var(--t3) var(--ease);
}

.timeline-panel.is-active {
  background: rgba(123,45,255,0.06);
}

.timeline-node-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
  transition: background var(--t3) var(--ease), border-color var(--t3) var(--ease), color var(--t3) var(--ease);
}

.timeline-panel.is-active .timeline-node-dot {
  background: rgba(123,45,255,0.18);
  border-color: rgba(123,45,255,0.5);
  color: var(--purple);
}

.timeline-stage {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--t3) var(--ease);
}
.timeline-panel.is-active .timeline-stage { color: var(--purple); }

.timeline-title {
  font-size: 20px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.25;
}

.timeline-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  max-width: none;
}

.timeline-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.timeline-tag {
  font-size: 10px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all var(--t2);
}
.timeline-panel.is-active .timeline-tag {
  background: rgba(123,45,255,0.1);
  border-color: rgba(123,45,255,0.3);
  color: var(--purple);
}

/* Timeline header intro panel */
.timeline-intro-panel {
  flex-shrink: 0;
  width: clamp(320px,28vw,420px);
  height: 100%;
  padding: 40px var(--px) 40px clamp(24px,5vw,80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  border-right: 1px solid var(--border);
}

/* ── Why Aletheia ───────────────────────────────────────────────────────────── */
.why-section {
  padding: var(--section-pad) var(--px);
  background: var(--bg2);
}

.why-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.why-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px,5vw,80px);
  align-items: start;
}

.why-header-left { display: flex; flex-direction: column; gap: 16px; }

.why-header-right {
  font-size: clamp(17px,1.4vw,21px);
  color: var(--body);
  line-height: 1.65;
  max-width: 52ch;
}

.why-stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 2px;
}

.stat-card {
  padding: 36px 28px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-num {
  font-size: clamp(36px,3.5vw,54px);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  letter-spacing: -.03em;
}

.stat-num span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label { font-size: 13px; color: var(--muted); max-width: 22ch; }

/* ── CTA Section ────────────────────────────────────────────────────────────── */
.cta-section {
  padding: var(--section-pad) var(--px);
  background: var(--bg);
  border-top: 1px solid var(--border2);
}

.cta-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.cta-title {
  font-size: clamp(32px,3.5vw,56px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.cta-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-sub { font-size: 17px; color: var(--body); max-width: 52ch; }

.cta-btns { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }

.cta-form {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-form-row { display: flex; gap: 12px; }

.cta-input {
  flex: 1;
  padding: 13px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  transition: border-color var(--t2);
  outline: none;
}
.cta-input::placeholder { color: var(--muted); }
.cta-input:focus { border-color: rgba(123,45,255,0.5); }

.form-note { font-size: 12px; color: var(--muted); text-align: center; }

#form-error {
  display: none;
  font-size: 13px;
  color: var(--red);
  text-align: center;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
footer {
  padding: 48px var(--px) 32px;
  background: var(--bg2);
  border-top: 1px solid var(--border2);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; max-width: 300px; }

.footer-logo { height: 28px; width: auto; object-fit: contain; opacity: .7; }

.footer-tagline { font-size: 13px; color: var(--muted); max-width: 38ch; }

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-link-group { display: flex; flex-direction: column; gap: 10px; }

.footer-group-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-link {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  transition: color var(--t1);
}
.footer-link:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy { font-size: 12px; color: var(--muted); }

/* ── Scroll Reveal ──────────────────────────────────────────────────────────── */
.js-loaded [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t3) var(--ease), transform var(--t3) var(--ease);
}

.js-loaded [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.js-loaded [data-reveal="right"] {
  transform: translateX(18px);
}
.js-loaded [data-reveal="right"].is-revealed {
  transform: none;
}

/* ── Proof cards grid ───────────────────────────────────────────────────────── */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2px;
}

@media (max-width: 900px) {
  .proof-grid { grid-template-columns: 1fr; }
}

/* ── Privacy / Terms Pages ──────────────────────────────────────────────────── */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 60px) var(--px) var(--section-pad);
}

.legal-page h1 {
  font-size: clamp(28px,3vw,42px);
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 20px;
  margin: 40px 0 12px;
}

.legal-page p {
  font-size: 15px;
  color: var(--body);
  margin-bottom: 16px;
  max-width: 70ch;
}

.legal-page ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-page li {
  font-size: 15px;
  color: var(--body);
  margin-bottom: 8px;
}

/* ── Responsive: Tablet ─────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .why-stats { grid-template-columns: repeat(2,1fr); }
  .db-kpis { grid-template-columns: repeat(2,1fr); }
  .why-header { grid-template-columns: 1fr; }
}

/* ── Responsive: Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Nav */
  #nav-toggle { display: flex; }

  #nav-menu.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    top: var(--nav-h);
    background: rgba(5,8,18,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px var(--px);
    z-index: 99;
    overflow-y: auto;
  }

  .nav-links { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav-link {
    display: block;
    padding: 14px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--border2);
    width: 100%;
  }
  .nav-actions { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 24px; }
  .btn-nav { width: 100%; justify-content: center; padding: 14px; }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { order: -1; }
  .hero-orbital { max-width: 320px; margin: 0 auto; }

  /* Problem */
  .problem-inner { grid-template-columns: 1fr; }

  /* Horizontal sections — degrade to vertical */
  .h-section { height: auto !important; }
  .h-sticky { position: static; height: auto; overflow: visible; }
  .h-track-wrap { overflow: visible; }
  .h-track { flex-direction: column; transform: none !important; height: auto; width: auto; }
  .h-progress { display: none; }
  .h-controls { display: none; }

  /* Kill inline min-width:clamp() on panels so they don't overflow (and force
     iOS to zoom the whole page out) on phones */
  .platform-panel,
  .timeline-panel,
  .timeline-intro-panel {
    min-width: 0 !important;
    max-width: 100%;
  }

  .platform-panel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border2);
    padding: 48px var(--px);
  }

  .timeline-panel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border2);
    padding: 36px var(--px);
  }

  .timeline-intro-panel {
    width: 100%;
    border-right: none;
    padding: 48px var(--px);
  }

  /* Stack inline two-column grids on mobile */
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }

  /* "Everything Is Connected" is an inline 3-col grid (280px 1fr 1fr) — stack it */
  .why-panel-row { grid-template-columns: 1fr !important; }

  .panel-dashboard { grid-template-columns: 1fr; }

  .db-mock { grid-template-columns: 1fr; height: auto; }
  .db-sidebar { display: none; }

  /* Why */
  .why-stats { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .why-stats { grid-template-columns: 1fr; }
  .cta-form-row { flex-direction: column; }
  .trusted-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ── Opening statement ───────────────────────────────────────────────────────── */
#opening-statement {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 90vw;
  text-align: center;
}

.opening-line {
  opacity: 0;
  transition: opacity var(--fade) var(--ease);
  font-size: clamp(28px, 2.8vw, 44px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: -.01em;
  text-align: center;
  margin: 0;
  max-width: none;
}

/* ── Logo marquee ───────────────────────────────────────────────────────────── */
.logo-marquee-section {
  padding: 32px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border2);
  border-bottom: 1px solid var(--border2);
  overflow: hidden;
}

.logo-marquee-label {
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  padding: 0 var(--px);
}

.marquee-outer { overflow: hidden; width: 100%; }

.marquee-track {
  display: flex;
  align-items: center;
  animation: marquee-scroll 52s linear infinite;
  width: max-content;
}

.marquee-logos {
  display: flex;
  align-items: center;
  gap: 52px;
  padding-right: 52px;
}

.marquee-outer:hover .marquee-track,
.marquee-outer:focus-within .marquee-track { animation-play-state: paused; }

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-logo {
  height: 24px;
  width: auto;
  flex-shrink: 0;
  display: block;
  opacity: 0.28;
  filter: brightness(0) invert(1);
  transition: opacity 200ms var(--ease);
}

.marquee-logo:hover { opacity: 0.65; }

/* ── Why Aletheia horizontal panels ─────────────────────────────────────────── */
.why-panel {
  flex-shrink: 0;
  height: 100%;
  padding: clamp(36px,4.5vh,64px) clamp(36px,3.5vw,64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  border-right: 1px solid var(--border2);
}

.why-panel-top { display: flex; flex-direction: column; gap: 14px; }

.why-panel-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  flex: 1;
}

.why-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  display: block;
}

.why-headline {
  font-size: clamp(22px, 1.9vw, 34px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Story blocks — Panel 1 */
.story-blocks {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  flex: 1;
}

.story-block {
  padding: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story-headline { font-size: 15px; font-weight: 300; color: var(--white); line-height: 1.35; }
.story-body { font-size: 12px; color: var(--muted); line-height: 1.65; max-width: none; }

.story-closing {
  font-size: 13px;
  color: var(--body);
  line-height: 1.7;
  border-left: 2px solid rgba(123,45,255,0.35);
  padding-left: 14px;
  font-style: italic;
  max-width: 72ch;
}

/* Why list */
.why-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.why-list li {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
  max-width: none;
}
.why-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0,216,200,0.45);
}

/* Connection diagram */
.why-panel-diagram { display: flex; align-items: center; justify-content: center; }
.connection-diagram { width: 100%; max-width: 400px; height: auto; }

/* Predictive cards — Panel 3 */
.predict-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.predict-card {
  padding: 18px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.predict-card-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple);
}

.predict-card-body { font-size: 13px; color: var(--body); line-height: 1.65; max-width: none; }

/* Intelligence capabilities — Panel 4 */
.intel-caps { display: flex; flex-direction: column; gap: 12px; }

.intel-cap {
  padding: 18px 22px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  border-left: 2px solid rgba(123,45,255,0.32);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.intel-cap-title { font-size: 14px; font-weight: 500; color: var(--white); }
.intel-cap-body { font-size: 13px; color: var(--muted); line-height: 1.65; max-width: none; }

/* Dominant metric — Panel 5 */
.dominant-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 12px 0;
}

.metric-number {
  font-size: clamp(72px, 10vw, 136px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label { font-size: 15px; color: var(--body); max-width: 30ch; line-height: 1.6; text-align: center; }

.result-secondaries { display: flex; flex-direction: column; gap: 10px; width: 100%; }

.result-secondary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}

.result-secondary-num { font-size: 20px; font-weight: 300; color: var(--white); letter-spacing: -0.02em; flex-shrink: 0; }
.result-secondary-label { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* Control & Trust — Panel 6 */
.control-areas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1;
}

.control-area {
  padding: 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.control-area-headline { font-size: 18px; font-weight: 300; color: var(--white); line-height: 1.25; }
.control-area-body { font-size: 13px; color: var(--body); line-height: 1.7; max-width: none; }

.why-closing {
  padding: 22px 24px;
  background: rgba(123,45,255,0.05);
  border: 1px solid rgba(123,45,255,0.18);
  border-radius: var(--r-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.why-closing-text { font-size: 15px; color: var(--body); line-height: 1.65; max-width: 54ch; }

/* Portal screenshot placeholder */
.portal-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 220px;
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  gap: 10px;
}

.portal-placeholder-text {
  font-size: 12px;
  color: rgba(255,255,255,0.22);
  font-style: italic;
  text-align: center;
  line-height: 1.6;
  max-width: none;
}

/* ── Why Aletheia vertical sections ─────────────────────────────────────────── */
.why-vsection {
  padding: var(--section-pad) var(--px);
}

.why-vsection-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Panel 2 — Everything Is Connected bullets */
.why-panel-bullets { display: flex; flex-direction: column; gap: 14px; }
.why-panel-intro { font-size: 14px; color: var(--white); line-height: 1.6; font-weight: 300; }

.why-bullets { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.why-bullets li {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
}
.why-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0,216,200,0.45);
}

/* Panel 3 — Predictive Intelligence grid */
.why-intel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.why-intel-card {
  padding: 18px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.why-intel-card p { font-size: 13px; color: var(--body); line-height: 1.65; }

.why-intel-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple);
}

/* Panel 4 — Results That Compound */
.results-dominant {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 12px 0;
}

.results-dominant .dominant-metric {
  font-size: clamp(80px, 11vw, 148px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dominant-x {
  font-size: 0.55em;
  vertical-align: super;
  letter-spacing: 0;
}

.dominant-label {
  font-size: 15px;
  color: var(--body);
  max-width: 32ch;
  line-height: 1.6;
  text-align: center;
}

.results-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.result-stat {
  padding: 18px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-stat--full { grid-column: 1 / -1; }

.result-pct {
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 300;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.result-label { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── Mobile — new components ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .why-panel {
    width: 100%;
    min-width: 0 !important;
    border-right: none;
    border-bottom: 1px solid var(--border2);
    padding: 44px var(--px);
    justify-content: flex-start;
  }
  .story-blocks    { grid-template-columns: 1fr; }
  .why-panel-row   { grid-template-columns: 1fr; }
  .predict-cards   { grid-template-columns: 1fr; }
  .control-areas   { grid-template-columns: 1fr; }
  .why-panel-diagram { display: none; }
  .metric-number   { font-size: clamp(64px,20vw,96px); }

  .logo-marquee-section { padding: 28px 0; }
  .marquee-track {
    animation: none !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 0 var(--px) !important;
  }
  .marquee-logos {
    flex-wrap: wrap !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 24px !important;
    padding: 0 !important;
  }
  .marquee-logos-dup { display: none !important; }
  .why-intel-grid  { grid-template-columns: 1fr; }
  .results-stats   { grid-template-columns: 1fr; }
  .result-stat--full { grid-column: auto; }
  .results-dominant .dominant-metric { font-size: clamp(64px, 20vw, 100px); }
  .why-vsection-inner { gap: 24px; }
  .why-panel-row   { grid-template-columns: 1fr; }
  .why-panel-diagram { display: none; }
  .story-blocks    { grid-template-columns: 1fr; }
}


/* ── Reduced Motion ─────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── Related articles (Knowledge Hub, generated by scripts/gen-related.js) ───── */
.su-related{max-width:720px;margin:64px auto 0;padding-top:40px;border-top:1px solid rgba(255,255,255,0.08)}
.su-related-h{font-size:20px;font-weight:300;color:#fff;margin:0 0 24px}
.su-related-grid{display:grid;grid-template-columns:1fr 1fr;gap:36px}
.su-related-label{font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:#7B2DFF;margin:0 0 14px}
.su-related ul{list-style:none;margin:0;padding:0}
.su-related li{margin:0 0 13px}
.su-related a{color:#c7ccda;text-decoration:none;font-size:14px;line-height:1.5;transition:color .15s ease;display:inline-block}
.su-related a:hover{color:#fff;text-decoration:underline}
@media(max-width:640px){.su-related-grid{grid-template-columns:1fr;gap:26px}.su-related{margin-top:48px}}

/* ── Article share row (Knowledge Hub, generated by scripts/gen-related.js) ──── */
.su-share{max-width:720px;margin:56px auto 0;padding-top:28px;border-top:1px solid rgba(255,255,255,0.08);display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.su-share-label{font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:#7B2DFF;margin-right:2px}
.su-share-btn{display:inline-flex;align-items:center;gap:7px;background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.12);border-radius:999px;padding:8px 15px;font-family:'Poppins',sans-serif;font-size:13px;font-weight:400;color:#c7ccda;text-decoration:none;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease}
.su-share-btn:hover{background:rgba(123,45,255,0.12);border-color:rgba(123,45,255,0.45);color:#fff}
.su-share-btn svg{width:15px;height:15px;display:block;flex-shrink:0}
.su-share-btn.is-copied{border-color:#22c55e;color:#22c55e;background:rgba(34,197,94,0.08)}

/* ── Center the simple article / Knowledge Hub footer (leave the homepage multi-column footer left-aligned) ── */
footer:not(:has(.footer-links)) .footer-inner { grid-template-columns: 1fr; justify-items: center; }
footer:not(:has(.footer-links)) .footer-brand { align-items: center; max-width: none; text-align: center; }
footer:not(:has(.footer-links)) .footer-bottom { justify-content: center; text-align: center; }
