/* ============================================================
   matrAIx — landing page (light theme with Neuton serif)
   Self-contained so the tool pages (styles.css) stay untouched.
   Inter (sans-serif) + JetBrains Mono (monospace).
   ============================================================ */

/* Color and font variables are defined in dark-theme.css. */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--disp);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  overflow-x: hidden;
  min-height: 100vh;
}
::selection { background: var(--phos); color: #04121f; }

/* ---------- Background layers ---------- */
#sim { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.9; }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 6s steps(4) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 25% { transform: translate(-4%,3%); }
  50% { transform: translate(3%,-4%); } 75% { transform: translate(-2%,-2%); }
}
.scanlines {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.5;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px, rgba(0,0,0,0.16) 3px, rgba(0,0,0,0) 4px);
  mix-blend-mode: multiply;
}
.vignette {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 30%, transparent 45%, rgba(0,0,0,0.8) 100%);
}

/* ---------- Brand ---------- */
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
}
.brand-mark {
  color: var(--phos); font-size: 1.25rem; text-shadow: var(--glow);
  animation: flick 4s infinite;
}
/* ---------------------------------------------------------------
   Logo wordmark font — pick ONE (comment out the others).
   All options are preloaded in index.html, so switching is instant.
   Vibe: professional + tech, designed but not flashy.
     1. Space Grotesk — geometric, modern, subtle techy character  (recommended)
     2. Sora          — clean geometric, understated & corporate-tech
     3. Chakra Petch  — squared/engineered, stronger "tech" feel
     4. Michroma      — wide, futuristic, minimal (a touch more sci-fi)
     5. JetBrains Mono— monospace, developer/terminal vibe
     6. Inter         — the current neutral default
   Tip: Chakra Petch / Michroma read better with a little more
   letter-spacing (e.g. 0.01em); Space Grotesk / Sora with -0.02em.
   --------------------------------------------------------------- */
.brand-name {
  display: inline-block;
  white-space: nowrap;
  word-break: keep-all;
  flex: none;
  font-family: "Orbitron", "Space Grotesk", var(--disp) !important;
  font-weight: 700; font-size: 1.92rem;
  letter-spacing: .025em;
  line-height: 1;
  transform: scaleX(1.05) scaleY(.88);
  transform-origin: left center;
}
.brand-name .tld { color: var(--ink); font-weight: 500; }
.brand-name.small {
  white-space: nowrap;
  word-break: keep-all;
  flex: none;
  font-size: 1.02rem; letter-spacing: .02em;
  transform: scaleX(1.05) scaleY(.9);
}
@keyframes flick { 0%, 10%, 90%, 100% { opacity: 1; } 45%, 55% { opacity: 0.5; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  gap: 20px;
}
.brand { flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
.brand-mark { display: none; }
.brand-name em {
  display: inline-block;
  margin-right: .09em;
  transform: translateX(.035em);
  font-style: normal;
  background: linear-gradient(90deg, #a855f7, #4A8FC2);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
  100% { background-position: 0% 0%; }
}
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: auto; height: auto; background: transparent; border: 1px solid var(--line);
  color: var(--ink); cursor: pointer; border-radius: 4px;
  transition: all 0.25s ease; flex-shrink: 0; padding: 10px 18px;
  font-family: var(--disp); font-size: 0.86rem; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-toggle:hover { border-color: var(--phos); color: var(--phos); }
.nav-links {
  display: flex; gap: 30px;
  justify-content: center; margin-top: 0; flex: 1;
  max-height: none; opacity: 1; visibility: visible; transition: none;
}
.nav-links a {
  color: var(--ink); text-decoration: none; font-family: var(--disp);
  font-size: var(--text-sm); letter-spacing: var(--tracking-wide); text-transform: uppercase;
  position: relative; transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: var(--phos); box-shadow: var(--glow); transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--phos); }
.nav-links a:hover::after { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  font-family: "Inter", var(--disp); font-size: 0.9rem; letter-spacing: -0.01em;
  text-transform: none; text-decoration: none; font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); background: rgba(74,143,194,.025); cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, color .22s ease, background .22s ease, box-shadow .22s ease;
}
.btn-ghost:hover {
  border-color: rgba(74,143,194,.58); color: var(--phos);
  background: rgba(74,143,194,.075); transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(20,64,98,.1);
}
.btn-solid {
  background: linear-gradient(135deg, #3979a8, #4A8FC2); color: #fff;
  border-color: rgba(112,188,239,.58); font-weight: 650;
  box-shadow: 0 8px 24px rgba(32,95,143,.2), inset 0 1px 0 rgba(255,255,255,.16);
}
.btn-solid:hover {
  background: linear-gradient(135deg, #4387b9, #59a0d1);
  border-color: rgba(142,208,250,.75); color: #fff;
  box-shadow: 0 12px 30px rgba(32,95,143,.28), inset 0 1px 0 rgba(255,255,255,.2);
  transform: translateY(-2px);
}
.btn-lg { padding: 15px 26px; font-size: 0.88rem; }
.btn .arr { transition: transform 0.25s; }
.btn:hover .arr { transform: translateX(5px); }

/* Homepage CTA palette: intentionally stronger than shared theme defaults. */
[data-theme="dark"] body .btn-solid {
  color: #f7fbff;
  background: linear-gradient(135deg, #245d88 0%, #347eae 58%, #3c8cbd 100%);
  border-color: rgba(93,166,214,.62);
  box-shadow: 0 10px 28px rgba(8,38,61,.32), inset 0 1px 0 rgba(255,255,255,.13);
}
[data-theme="dark"] body .btn-solid .arr { color: #d5efff; }
[data-theme="dark"] body .btn-solid:hover {
  color: #fff;
  background: linear-gradient(135deg, #2b6c9d 0%, #3d8dbc 58%, #48a0ce 100%);
  border-color: rgba(123,195,237,.78);
  box-shadow: 0 14px 34px rgba(7,40,64,.4), 0 0 0 3px rgba(74,143,194,.11), inset 0 1px 0 rgba(255,255,255,.17);
}
[data-theme="dark"] body .btn-ghost {
  color: rgba(238,246,250,.9);
  background: rgba(13,25,34,.5);
  border-color: rgba(125,177,211,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
[data-theme="dark"] body .btn-ghost:hover {
  color: #fff; background: rgba(74,143,194,.1);
  border-color: rgba(115,184,229,.55);
  box-shadow: 0 10px 26px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.04);
}
[data-theme="light"] body .btn-solid {
  color: #fff;
  background: linear-gradient(135deg, #173d58 0%, #2e719d 100%);
  border-color: rgba(27,82,119,.7);
  box-shadow: 0 9px 24px rgba(29,79,113,.2), inset 0 1px 0 rgba(255,255,255,.16);
}
[data-theme="light"] body .btn-solid:hover {
  color: #fff; background: linear-gradient(135deg, #1c4968 0%, #3782b2 100%);
  border-color: #2e719d; box-shadow: 0 13px 30px rgba(29,79,113,.26);
}
[data-theme="light"] body .btn-ghost {
  color: #17364c; background: rgba(255,255,255,.62); border-color: rgba(35,91,130,.2);
}
[data-theme="light"] body .btn-ghost:hover {
  color: #1f6e9e; background: #fff; border-color: rgba(42,117,166,.42);
  box-shadow: 0 10px 24px rgba(30,74,110,.09);
}
.nav-cta {
  padding: 9px 16px;
  flex-shrink: 0;
  display: flex;
}

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-dim); display: inline-block; }
.dot.live { background: var(--phos); box-shadow: var(--glow); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- Hero ---------- */
main { position: relative; z-index: 10; }

/* Skip layout/paint work for below-the-fold sections until they approach the
   viewport. Intrinsic sizes keep scrolling stable before content is rendered. */
main > section:not(.hero),
main > aside {
  content-visibility: auto;
  contain-intrinsic-size: auto 620px;
}
.perf-paused *,
.perf-paused *::before,
.perf-paused *::after { animation-play-state: paused !important; }

.hero {
  max-width: 1100px; margin: 0 auto;
  padding: clamp(140px, 18vw, 180px) clamp(20px, 5vw, 64px) 70px;
  text-align: center;
}

/* Split hero: text left, interactive globe right (desktop) */
.hero--split {
  max-width: 1240px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  text-align: center;
}
.hero--split .hero-copy {
  position: relative;
  z-index: 4;
  min-width: 0;
}
.hero--split .cta-row { margin-bottom: 0; }
@media (min-width: 900px) {
  .hero--split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(30px, 4vw, 56px);
    text-align: left;
    padding-top: clamp(150px, 16vw, 190px);
  }
  .hero--split .community-badge { animation-delay: 0.05s; }
  .hero--split .hero-copy { left: clamp(8px, 1vw, 16px); }
  .hero--split .megacount { justify-content: flex-start; }
  .hero--split .hero-subheading { margin-left: 0; margin-right: 0; }
  .hero--split .cta-row { justify-content: flex-start; }
}
.eyebrow {
  font-size: 0.8rem; letter-spacing: 0.18em; color: var(--ink-dim);
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 12px;
  flex-wrap: wrap; justify-content: center; margin-bottom: 30px;
  opacity: 0; animation: rise 0.7s 0.1s forwards;
}
.eyebrow .tick { color: var(--phos); }
.eyebrow .ver { color: var(--amber); border: 1px solid rgba(255,181,71,0.3); padding: 1px 7px; }
.eyebrow .sep { color: var(--line); }
.eyebrow .status { display: inline-flex; align-items: center; gap: 7px; color: var(--phos); }

/* Community badge */
.community-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 28px; padding: 10px 18px;
  background: rgba(80, 137, 184, 0.06); border: 1px solid rgba(80, 137, 184, 0.25);
  border-radius: 6px; font-size: var(--text-xs); letter-spacing: var(--tracking-wider);
  text-transform: uppercase; color: var(--phos);
  opacity: 0; animation: rise 0.7s 0.05s forwards;
  box-shadow: inset 0 0 20px rgba(80, 137, 184, 0.08);
}
.community-badge .badge-dot {
  width: 8px; height: 8px; background: var(--phos);
  border-radius: 50%; box-shadow: 0 0 12px rgba(80, 137, 184, 0.8), inset 0 0 4px rgba(255, 255, 255, 0.3);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px rgba(80, 137, 184, 0.8), inset 0 0 4px rgba(255, 255, 255, 0.3); }
  50% { opacity: 0.6; box-shadow: 0 0 18px rgba(80, 137, 184, 1), inset 0 0 4px rgba(255, 255, 255, 0.5); }
}

.headline {
  font-family: var(--disp); font-weight: 700; line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight); margin-bottom: 34px;
}
.headline .line { display: block; white-space: nowrap; font-size: clamp(2rem, 6vw, 3.81rem); color: var(--ink); opacity: 0; animation: rise 0.8s forwards; }
@media (max-width: 480px) { .headline .line { white-space: normal; } }
.headline .line.dim { color: var(--ink-dim); animation-delay: 0.28s; }
.headline .line:first-child { animation-delay: 0.18s; }

.hero-stat { margin-bottom: 34px; opacity: 0; animation: rise 0.8s 0.4s forwards; }
.megacount { display: flex; align-items: baseline; justify-content: center; gap: 0.22em; }
.megacount .count {
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(1.56rem, 5vw, 3.05rem); line-height: var(--leading-tight);
  color: var(--phos); text-shadow: 0 0 40px rgba(74,143,194,0.42);
  letter-spacing: var(--tracking-tight); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.megacount .count-unit {
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(1.25rem, 3.5vw, 2.44rem);
  color: var(--phos); text-shadow: 0 0 30px rgba(74,143,194,0.35);
  letter-spacing: var(--tracking-snug);
}
.stat-cap { display: block; margin-top: 14px; font-size: var(--text-lg); color: var(--ink); }
.stat-cap strong { color: var(--phos); font-weight: 700; }
.hero-subheading {
  max-width: 700px; margin: 20px auto 34px; font-size: var(--text-lg);
  color: var(--ink); line-height: var(--leading-normal);
  opacity: 0; animation: rise 0.8s 0.3s forwards;
}

.subhead {
  max-width: 600px; margin: 0 auto 38px; font-size: var(--text-lg);
  color: var(--ink); line-height: var(--leading-normal);
  opacity: 0; animation: rise 0.8s 0.6s forwards;
}

.cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; opacity: 0; animation: rise 0.8s 0.74s forwards; }

/* ---------- Interactive population globe ---------- */
.hero-globe-wrap {
  position: relative;
  z-index: 1;
  width: min(620px, 90vw);
  aspect-ratio: 1 / 1;
  margin: 6px auto 0;
  opacity: 0;
  animation: rise 1s 0.9s forwards;
}
@media (min-width: 900px) {
  .hero-globe-wrap {
    width: 100%;
    max-width: 560px;
    margin: 0;
    margin-left: auto;
    left: clamp(6px, 1.2vw, 18px);
    animation-delay: 0.4s;
  }
}
.hero-globe-wrap #heroGlobe {
  position: relative; z-index: 2;
  width: 100%; height: 100%;
  display: block;
  cursor: crosshair;
  touch-action: none;
}
.hero-globe-glow {
  position: absolute; z-index: 1;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 46%,
    rgba(74,143,194,0.22) 0%,
    rgba(74,143,194,0.10) 38%,
    rgba(74,143,194,0.0) 66%);
  filter: blur(6px);
  pointer-events: none;
  animation: globe-breathe 6s ease-in-out infinite;
}
@keyframes globe-breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.05); opacity: 1; }
}
/* Deeper, tighter blue glow for the globe on white backgrounds */
[data-theme="light"] .hero-globe-glow {
  background: radial-gradient(circle at 50% 46%,
    rgba(40,99,160,0.16) 0%,
    rgba(40,99,160,0.07) 40%,
    rgba(40,99,160,0.0) 68%);
}
.hero-globe-tag {
  position: absolute; z-index: 3;
  left: 50%; bottom: -1%;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px;
  background: rgba(74,143,194,0.06);
  border: 1px solid rgba(74,143,194,0.22);
  border-radius: 100px;
  font-size: 0.78rem;
  letter-spacing: var(--tracking-wide);
  color: var(--ink-dim);
  backdrop-filter: blur(6px);
  white-space: nowrap;
  pointer-events: none;
}
.hero-globe-tag b { color: var(--phos); font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-globe-tag .hgt-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--phos);
  box-shadow: 0 0 10px rgba(74,143,194,0.9);
  animation: pulse-dot 2s ease-in-out infinite;
}
@media (max-width: 560px) {
  .hero-globe-tag { font-size: 0.7rem; padding: 7px 13px; }
}

.telemetry {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); background: rgba(10,14,12,0.55);
  backdrop-filter: blur(6px); max-width: 880px; margin: 0 auto;
  opacity: 0; animation: rise 0.9s 0.9s forwards;
}
.tele-cell { padding: 18px 20px; border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 8px; text-align: left; }
.tele-cell:last-child { border-right: none; }
.tele-label { font-size: var(--text-xs); letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--ink); }
.tele-val { font-size: clamp(var(--text-lg), 2.2vw, var(--text-xl)); font-weight: 700; color: var(--phos); text-shadow: 0 0 14px rgba(74,143,194,0.3); font-variant-numeric: tabular-nums; }

@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Panels ---------- */
.panel {
  position: relative; z-index: 10;
  max-width: 1080px; margin: 0 auto;
  padding: clamp(70px, 10vw, 110px) clamp(20px, 5vw, 64px) 0;
}
.sec-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.sec-head .idx { font-family: var(--disp); font-size: var(--text-sm); letter-spacing: var(--tracking-widest); color: var(--phos); font-weight: 500; }
.sec-title {
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(1.95rem, 4.5vw, 2.44rem); letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug); margin: 12px 0 12px;
}
.sec-sub { color: var(--ink); font-size: var(--text-lg); line-height: var(--leading-normal); }

.target-chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: 22px; }
.chip {
  font-size: var(--text-sm); color: var(--ink);
  background: rgba(74,143,194,0.05); border: 1px solid var(--line-soft);
  padding: 6px 14px; border-radius: 100px;
}

/* ---------- A/B report viewer ---------- */
.report-card { background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.report-tabs {
  display: flex; gap: 6px; padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft); background: rgba(74,143,194,0.03);
  overflow-x: auto; scrollbar-width: none;
}
.report-tabs::-webkit-scrollbar { display: none; }
.rtab {
  font-family: var(--mono); font-weight: 500; font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--ink); background: transparent; border: 1px solid transparent;
  padding: 9px 16px; cursor: pointer; white-space: nowrap; transition: all 0.18s;
}
.rtab:hover { color: var(--ink); }
.rtab.active { color: #04121f; background: var(--phos); font-weight: 700; box-shadow: 0 0 16px rgba(74,143,194,0.3); }

.report-body { padding: clamp(20px, 4vw, 34px); }
.report-body.flip { animation: flip 0.4s ease; }
@keyframes flip { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.report-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.report-target { font-family: var(--disp); font-weight: 700; font-size: var(--text-xl); letter-spacing: var(--tracking-snug); }
.report-variants { margin-top: 8px; color: var(--ink); font-size: var(--text-base); }
.report-variants b { color: var(--phos); font-weight: 700; }
.report-agents { font-size: var(--text-sm); font-weight: 500; color: var(--ink); border: 1px solid var(--line); padding: 6px 12px; white-space: nowrap; }

.verdict {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  background: rgba(74,143,194,0.06); border: 1px solid var(--line);
  padding: 18px 22px; margin-bottom: 26px;
}
.verdict-badge { font-weight: 700; color: #04121f; background: var(--phos); padding: 5px 12px; font-size: var(--text-xs); letter-spacing: var(--tracking-wide); }
.verdict-lift { font-family: var(--disp); font-weight: 700; font-size: var(--text-3xl); color: var(--phos); text-shadow: var(--glow); letter-spacing: var(--tracking-snug); }
.verdict-metric { color: var(--ink); font-size: var(--text-base); }

.seg-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.seg-table th { text-align: right; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-dim); font-weight: 500; padding: 0 14px 12px; border-bottom: 1px solid var(--line-soft); }
.seg-table th:first-child { text-align: left; }
.seg-table td { padding: 13px 14px; text-align: right; font-size: 1rem; font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--line-soft); font-weight: 500; }
.seg-table td.seg { text-align: left; font-weight: 500; color: var(--ink); }
.seg-table td.win { color: var(--phos); background: rgba(74,143,194,0.07); }
.seg-table td.delta.up { color: var(--phos); }
.seg-table td.delta.down { color: var(--rose); }
.seg-table td.delta.flat { color: var(--ink-dim); }
.seg-table tr:last-child td { border-bottom: none; }

.findings h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-dim); margin-bottom: 14px; }
.findings ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.finding { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; color: var(--ink); line-height: 1.5; }
.sev { flex: 0 0 auto; font-size: var(--text-xs); font-weight: 700; letter-spacing: var(--tracking-wider); padding: 3px 8px; margin-top: 3px; }
.sev.high { background: rgba(255,92,108,0.15); color: var(--rose); }
.sev.med  { background: rgba(255,181,71,0.15); color: var(--amber); }
.sev.low  { background: rgba(74,143,194,0.13); color: var(--phos); }

/* ---------- Training data ---------- */
.data-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 30px; align-items: start; }
.data-panel { background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.data-toggle { display: flex; gap: 6px; padding: 12px; border-bottom: 1px solid var(--line-soft); background: rgba(74,143,194,0.03); }
.dt-btn { font-family: var(--mono); font-weight: 700; font-size: var(--text-sm); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--ink); background: transparent; border: 1px solid transparent; padding: 8px 14px; cursor: pointer; transition: all 0.18s; }
.dt-btn:hover { color: var(--ink); }
.dt-btn.active { color: #04121f; background: var(--phos); font-weight: 700; }
.data-sample { margin: 0; padding: 20px 22px; overflow-x: auto; font-family: var(--mono); font-size: 0.82rem; line-height: 1.7; color: var(--ink-dim); }
.data-sample .jk { color: var(--phos); }
.data-sample .js { color: var(--amber); }
.data-sample .jn { color: var(--cyan); }
.data-points { list-style: none; display: flex; flex-direction: column; gap: 16px; padding-top: 4px; }
.data-points li { font-size: 1.04rem; color: var(--ink-dim); line-height: 1.5; padding-left: 22px; position: relative; }
.data-points li::before { content: "→"; position: absolute; left: 0; color: var(--phos); font-weight: 700; }
.data-points strong { color: var(--ink); font-weight: 500; }

/* ---------- Closing ---------- */
.closing {
  position: relative; z-index: 10; max-width: 800px; margin: 0 auto;
  padding: clamp(90px, 13vw, 150px) clamp(20px, 5vw, 40px); text-align: center;
}
.closing h2 {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 3.6rem); letter-spacing: -0.03em;
  line-height: 1.05; margin-bottom: 14px;
}
.closing h2 span { color: var(--phos); text-shadow: var(--glow); font-style: italic; }
.closing-sub { color: var(--ink-dim); font-size: 1.06rem; margin-bottom: 32px; }

/* ---------- Reports snapshot ---------- */
.report-snaps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rsnap { border: 1px solid var(--line-soft); background: var(--bg-2); padding: 18px; text-align: left; transition: border-color .25s, transform .25s, background .25s; }
.rsnap:hover { border-color: var(--line); transform: translateY(-3px); background: #0d1411; }
.rsnap-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.rsnap-name { font-size: var(--text-sm); color: var(--ink); font-weight: 700; }
.rsnap-win { font-size: var(--text-xs); letter-spacing: var(--tracking-wider); text-transform: uppercase; color: #04121f; background: var(--phos); padding: 2px 7px; border-radius: 100px; font-weight: 700; white-space: nowrap; }
.rsnap-lift { font-family: var(--disp); font-weight: 700; font-size: var(--text-3xl); color: var(--phos); text-shadow: var(--glow); line-height: var(--leading-tight); }
.rsnap-metric { font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-dim); margin-top: 4px; }
.rsnap-find { font-size: .8rem; color: var(--ink-dim); line-height: 1.45; margin-top: 12px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
/* ---------- reports: concise human-study vs matrAIx strip ---------- */
.reports-compare {
  max-width: 760px; margin: 0 auto 30px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg-2); padding: 18px 22px;
}
.rc-lead { text-align: center; font-size: var(--text-sm); color: var(--ink); margin-bottom: 16px; }
.rc-lead b { color: var(--ink); }
.rc-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rc-cell { text-align: center; border-left: 1px solid var(--line-soft); }
.rc-cell:first-child { border-left: none; }
.rc-num {
  display: block; font-family: var(--disp); font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1;
  color: var(--phos); text-shadow: var(--glow);
}
.rc-lab {
  display: block; margin-top: 9px;
  font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-dim);
}
@media (max-width: 560px) {
  .rc-strip { grid-template-columns: 1fr; gap: 12px; }
  .rc-cell { border-left: none; border-top: 1px solid var(--line-soft); padding-top: 12px; }
  .rc-cell:first-child { border-top: none; padding-top: 0; }
}

.rsnap-acc {
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.74rem; letter-spacing: 0.02em; color: var(--phos);
}

.reports-foot { text-align: center; margin-top: 28px; }
.reports-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-family: var(--mono); font-size: 0.84rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  color: #04121f;
  background: linear-gradient(120deg, var(--phos), #4A8FC2);
  border: 1px solid var(--phos);
  box-shadow: 0 0 24px rgba(80, 137, 184, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.reports-btn:hover { transform: translateY(-2px); box-shadow: 0 0 46px rgba(80, 137, 184, 0.6); }
.reports-btn .rb-ico { font-size: var(--text-base); line-height: 1; }
.reports-btn .arr { transition: transform 0.25s; }
.reports-btn:hover .arr { transform: translateX(5px); }
/* shine sweep on hover */
.reports-btn::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg); transition: left 0.55s ease;
}
.reports-btn:hover::after { left: 130%; }
@media (prefers-reduced-motion: reduce) { .reports-btn::after { display: none; } }
@media (max-width: 920px) { .report-snaps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .report-snaps { grid-template-columns: 1fr; } }

/* ---------- Research papers ---------- */
.papers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.paper { border: 1px solid var(--line-soft); background: var(--bg-2); padding: 18px; display: flex; flex-direction: column; transition: border-color .25s, transform .25s, background .25s; }
.paper:hover { border-color: var(--line); transform: translateY(-3px); background: #0d1411; }
.paper-venue { align-self: flex-start; font-family: var(--mono); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(255,181,71,.3); padding: 3px 9px; border-radius: 100px; margin-bottom: 14px; }
.paper-title { font-family: var(--disp); font-weight: 700; font-size: 1.02rem; line-height: 1.22; letter-spacing: -.01em; color: var(--ink); margin-bottom: 12px; }
.paper-authors { font-size: .76rem; color: var(--ink-dim); line-height: 1.5; margin-top: auto; }
.paper-authors b { color: var(--phos); font-weight: 500; }
.paper-authors .corr { font-style: italic; }
@media (max-width: 980px) { .papers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .papers { grid-template-columns: 1fr; } }

/* ---------- Twin globes: real people ≈ matrAIx agents ---------- */
.globes { display: flex; align-items: center; justify-content: center; gap: clamp(12px,4vw,46px); margin: 42px auto 38px; flex-wrap: wrap; max-width: 760px; }
.globe-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.globe { width: clamp(168px,30vw,250px); height: clamp(168px,30vw,250px); display: block; }
.globe-cap { text-align: center; }
.globe-cap b { display: block; font-family: var(--disp); font-weight: 800; font-size: 1.3rem; color: var(--phos); line-height: 1; }
.globe-cap span { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }
.globe-wrap.human .globe-cap b { color: var(--cyan); }
.globe-link { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink-dim); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; line-height: 1.3; }
.globe-link .sym { font-family: var(--disp); font-size: 1.9rem; color: var(--phos); text-shadow: var(--glow); }

/* ---------- Footer ---------- */
.foot {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 26px clamp(20px, 5vw, 40px); border-top: 1px solid var(--line);
  background: rgba(6,8,7,0.7); font-size: var(--text-sm);
}
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-dim); text-decoration: none; transition: color 0.2s; }
.foot-links a:hover { color: var(--phos); }
.foot-meta { color: var(--ink-dim); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Training-data flywheel (self-improving loop) ---------- */
.evolve { display: flex; flex-direction: column; align-items: center; }
.flywheel { position: relative; width: min(280px, 78vw); aspect-ratio: 1; margin: 6px auto 0; }
.flywheel::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); }
.fw-ring { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(74,143,194,0) 0deg, rgba(74,143,194,0) 250deg, rgba(74,143,194,.75) 332deg, rgba(74,143,194,0) 360deg);
  -webkit-mask: radial-gradient(circle, transparent 57%, #000 58%); mask: radial-gradient(circle, transparent 57%, #000 58%);
  filter: drop-shadow(0 0 6px rgba(74,143,194,.5)); animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fw-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 46%; height: 46%; border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, #11241c, #0a0e0c); border: 1px solid var(--phos);
  box-shadow: 0 0 24px rgba(74,143,194,.22), inset 0 0 16px rgba(74,143,194,.08);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.fw-ver { font-size: 0.6rem; letter-spacing: 0.1em; color: var(--ink-dim); text-transform: uppercase; }
.fw-ver b { color: var(--phos); }
.fw-q { font-family: var(--disp); font-weight: 800; font-size: clamp(1.4rem, 5vw, 1.9rem); color: var(--phos); text-shadow: var(--glow); line-height: 1; font-variant-numeric: tabular-nums; transition: color .3s; }
.fw-lab { font-size: 0.55rem; letter-spacing: 0.06em; color: var(--ink-dim); text-transform: uppercase; }
.fw-node { position: absolute; font-size: 0.72rem; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); padding: 5px 11px; border-radius: 100px; white-space: nowrap; }
.fw-node.nT { top: 0; left: 50%; transform: translate(-50%,-50%); }
.fw-node.nR { right: 0; top: 50%; transform: translate(50%,-50%); }
.fw-node.nB { bottom: 0; left: 50%; transform: translate(-50%,50%); }
.fw-node.nL { left: 0; top: 50%; transform: translate(-50%,-50%); }
.qchart { width: min(280px, 78vw); margin-top: 22px; }
.qbars { display: flex; align-items: flex-end; gap: 6px; height: 88px; border-bottom: 1px solid var(--line-soft); }
.qbar { flex: 1; min-height: 2px; height: 0; border-radius: 2px 2px 0 0; background: linear-gradient(to top, var(--phos-deep), var(--phos)); transition: height .7s cubic-bezier(.2,.8,.2,1); }
.qbar.on { box-shadow: 0 0 10px rgba(74,143,194,.4); }
.qcap { margin-top: 10px; font-size: 0.78rem; color: var(--ink-dim); text-align: center; }
.qcap b { color: var(--phos); font-variant-numeric: tabular-nums; }

/* ---------- Simulation Playground (mirrored matrAIx OS) ---------- */
.os-card { max-width: 980px; margin: 0 auto; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.os-card-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--line-soft); background: linear-gradient(to bottom, rgba(0, 61, 122, 0.08), rgba(0, 52, 163, 0.05)); }
.os-card-id { font-family: var(--disp); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.01em; color: var(--ink); }
.os-card-id em { color: var(--phos); font-style: normal; text-shadow: var(--glow); }
.os-card-id .v { color: var(--amber); font-size: 0.82rem; border: 1px solid rgba(255,181,71,0.3); padding: 1px 7px; margin: 0 5px; }
.os-card-id .node { color: var(--ink-dim); font-weight: 400; font-family: var(--mono); font-size: 0.86rem; }
.os-card-status { display: flex; align-items: center; gap: 14px; }
.os-card-status .led { display: inline-flex; align-items: center; gap: 6px; font-size: 0.68rem; letter-spacing: 0.1em; color: var(--ink-dim); }
.os-card-status .led::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--phos); box-shadow: var(--glow); animation: pulse 1.4s infinite; }
.os-card-clock { font-family: var(--mono); font-size: 0.85rem; color: var(--phos); font-variant-numeric: tabular-nums; text-shadow: 0 0 10px rgba(74,143,194,0.3); }
.os-card-body { padding: 22px 18px; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.pg-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) { .pg-actions { width: 100%; justify-content: center; } }
.os-card-vitals { display: flex; border: 1px solid var(--line-soft); }
.os-card-vitals > div { padding: 14px 22px; border-right: 1px solid var(--line-soft); }
.os-card-vitals > div:last-child { border-right: none; }
.os-card-vitals b { display: block; font-family: var(--disp); font-weight: 800; font-size: 1.5rem; color: var(--phos); font-variant-numeric: tabular-nums; }
.os-card-vitals span { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-dim); }
@media (max-width: 640px) { .os-card-body { justify-content: center; text-align: center; } .os-card-vitals { width: 100%; justify-content: center; } }

/* ---------- Services grid (from enterprise.html) ---------- */
.svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.svc .card { border: 1px solid var(--line-soft); background: var(--bg-2); padding: 22px; transition: border-color 0.2s, transform 0.2s; }
.svc .card:hover { border-color: var(--line); transform: translateY(-2px); }
.svc h3 { font-family: var(--disp); font-weight: 700; font-size: 1.04rem; margin-top: 14px; }

.svc-anim { height: 50px; display: flex; align-items: center; justify-content: flex-start; }
.a-run { position: relative; width: 62px; height: 34px; border: 1px solid var(--line-soft); background: var(--bg-3); overflow: hidden; }
.a-run i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--phos); box-shadow: var(--glow); animation: arun 1.8s linear infinite; }
.a-run i:nth-child(1) { top: 7px; animation-delay: 0s; }
.a-run i:nth-child(2) { top: 15px; animation-delay: 0.5s; }
.a-run i:nth-child(3) { top: 23px; animation-delay: 1s; }
@keyframes arun { 0% { left: -6px; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 64px; opacity: 0; } }

.a-bars { display: flex; align-items: flex-end; gap: 5px; height: 38px; }
.a-bars i { width: 8px; background: linear-gradient(var(--phos), var(--phos-deep)); box-shadow: 0 0 8px rgba(80, 137, 184, 0.4); animation: abar 2.2s ease-in-out infinite; }
.a-bars i:nth-child(1) { animation-delay: 0s; }
.a-bars i:nth-child(2) { animation-delay: 0.3s; }
.a-bars i:nth-child(3) { animation-delay: 0.6s; }
.a-bars i:nth-child(4) { animation-delay: 0.9s; }
@keyframes abar { 0%, 100% { height: 24%; } 50% { height: 100%; } }

.a-loop { width: 38px; height: 38px; border: 3px solid var(--line-soft); border-top-color: var(--phos); border-right-color: var(--phos); border-radius: 50%; box-shadow: 0 0 10px rgba(80, 137, 184, 0.25); animation: aspin 1.5s linear infinite; }
@keyframes aspin { to { transform: rotate(360deg); } }

.a-grid { display: grid; grid-template-columns: repeat(4, 8px); gap: 4px; }
.a-grid i { width: 8px; height: 8px; background: var(--bg-3); border: 1px solid var(--line-soft); animation: acell 2.8s ease-in-out infinite; }
.a-grid i:nth-child(3n) { animation-delay: 0.4s; }
.a-grid i:nth-child(3n+1) { animation-delay: 1.1s; }
.a-grid i:nth-child(3n+2) { animation-delay: 1.8s; }

/* Capability icons stay fully visible but animate only on interaction. */
.capability-grid .a-run i{animation:none;left:12px;opacity:1}.capability-grid .a-run i:nth-child(2){left:29px}.capability-grid .a-run i:nth-child(3){left:46px}
.capability-grid .a-bars i{animation:none}.capability-grid .a-bars i:nth-child(1){height:42%}.capability-grid .a-bars i:nth-child(2){height:82%}.capability-grid .a-bars i:nth-child(3){height:58%}.capability-grid .a-bars i:nth-child(4){height:30%}
.capability-grid .a-loop{animation:none;transform:rotate(28deg)}
.capability-grid .a-grid i{animation:none}.capability-grid .a-grid i:nth-child(2),.capability-grid .a-grid i:nth-child(3),.capability-grid .a-grid i:nth-child(5),.capability-grid .a-grid i:nth-child(8){background:var(--phos);box-shadow:0 0 7px rgba(80,137,184,.5)}
.capability-grid .card:hover .a-run i,.capability-grid .card:focus-visible .a-run i{animation:arun 1.8s linear infinite}.capability-grid .card:hover .a-run i:nth-child(1),.capability-grid .card:focus-visible .a-run i:nth-child(1){animation-delay:0s}.capability-grid .card:hover .a-run i:nth-child(2),.capability-grid .card:focus-visible .a-run i:nth-child(2){animation-delay:.5s}.capability-grid .card:hover .a-run i:nth-child(3),.capability-grid .card:focus-visible .a-run i:nth-child(3){animation-delay:1s}
.capability-grid .card:hover .a-bars i,.capability-grid .card:focus-visible .a-bars i{animation:abar 2.2s ease-in-out infinite}.capability-grid .card:hover .a-bars i:nth-child(1),.capability-grid .card:focus-visible .a-bars i:nth-child(1){animation-delay:0s}.capability-grid .card:hover .a-bars i:nth-child(2),.capability-grid .card:focus-visible .a-bars i:nth-child(2){animation-delay:.18s}.capability-grid .card:hover .a-bars i:nth-child(3),.capability-grid .card:focus-visible .a-bars i:nth-child(3){animation-delay:.36s}.capability-grid .card:hover .a-bars i:nth-child(4),.capability-grid .card:focus-visible .a-bars i:nth-child(4){animation-delay:.54s}
.capability-grid .card:hover .a-loop,.capability-grid .card:focus-visible .a-loop{animation:aspin 1.5s linear infinite}
.capability-grid .card:hover .a-grid i,.capability-grid .card:focus-visible .a-grid i{animation:acell 2.8s ease-in-out infinite}.capability-grid .card:hover .a-grid i:nth-child(1),.capability-grid .card:focus-visible .a-grid i:nth-child(1){animation-delay:0s}.capability-grid .card:hover .a-grid i:nth-child(2),.capability-grid .card:focus-visible .a-grid i:nth-child(2){animation-delay:.22s}.capability-grid .card:hover .a-grid i:nth-child(3),.capability-grid .card:focus-visible .a-grid i:nth-child(3){animation-delay:.44s}.capability-grid .card:hover .a-grid i:nth-child(4),.capability-grid .card:focus-visible .a-grid i:nth-child(4){animation-delay:.66s}.capability-grid .card:hover .a-grid i:nth-child(5),.capability-grid .card:focus-visible .a-grid i:nth-child(5){animation-delay:.88s}.capability-grid .card:hover .a-grid i:nth-child(6),.capability-grid .card:focus-visible .a-grid i:nth-child(6){animation-delay:1.1s}.capability-grid .card:hover .a-grid i:nth-child(7),.capability-grid .card:focus-visible .a-grid i:nth-child(7){animation-delay:1.32s}.capability-grid .card:hover .a-grid i:nth-child(8),.capability-grid .card:focus-visible .a-grid i:nth-child(8){animation-delay:1.54s}
@keyframes acell { 0%, 100% { background: var(--bg-3); box-shadow: none; } 45%, 60% { background: var(--phos); box-shadow: 0 0 7px rgba(80, 137, 184, 0.6); } }

@media (max-width: 860px) { .svc { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .svc { grid-template-columns: 1fr; } }

/* ---------- EAAS: Evaluation-as-a-Service levels ---------- */
.eaas { display: grid; grid-template-columns: 260px 1fr; gap: 16px; margin-top: 8px; }
.eaas-rail { display: flex; flex-direction: column; gap: 10px; }
.eaas-tab { text-align: left; font-family: var(--mono); color: var(--ink-dim); background: var(--bg-2); border: 1px solid var(--line-soft); border-left: 3px solid transparent; padding: 14px 16px; cursor: pointer; display: flex; align-items: center; gap: 12px; transition: all 0.2s; }
.eaas-tab:hover { border-color: var(--line); color: var(--ink); }
.eaas-tab.active { border-color: var(--line); border-left-color: var(--phos); background: var(--bg-3); color: var(--ink); }
.eaas-tab .lv { font-family: var(--mono); font-weight: 600; font-size: .72rem; letter-spacing: .04em; color: var(--ink); flex: 0 0 56px; width: 56px; white-space: nowrap; }
.eaas-tab.active .lv { color: var(--phos); text-shadow: var(--glow); }
.eaas-tab .tx { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.eaas-tab .nm { font-family: var(--disp); font-weight: 700; font-size: 1.02rem; }
.eaas-tab .meter { display: flex; gap: 3px; }
.eaas-tab .meter i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); display: block; }
.eaas-tab .meter i.on { background: var(--phos); box-shadow: 0 0 7px rgba(80, 137, 184, 0.6); }

.eaas-stage { border: 1px solid var(--line-soft); background: var(--bg-2); display: flex; flex-direction: column; overflow: hidden; }
.stage-viz { position: relative; min-height: 230px; background: radial-gradient(120% 140% at 50% 0, rgba(80, 137, 184, 0.05), transparent 60%); border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.viz { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: 22px; }
.viz.on { display: flex; }

.stage-info { padding: 18px 20px; }
.stage-info .top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.stage-info h3 { font-family: var(--disp); font-weight: 800; font-size: 1.3rem; }
.stage-info .tag { font-size: 0.78rem; color: var(--amber); }
.stage-info .desc { color: var(--ink-dim); font-size: 0.93rem; line-height: 1.55; margin-bottom: 14px; }
.stage-info .desc b { color: var(--ink); }
.stage-info .meta { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; }
.stage-info .lab { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--phos); margin-bottom: 7px; display: block; }
.stage-info ul { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.stage-info ul li { font-size: 0.8rem; color: var(--ink); border: 1px solid var(--line-soft); background: var(--bg-3); padding: 5px 10px; }
.stage-info .best { font-size: 0.88rem; color: var(--ink-dim); line-height: 1.5; }
.stage-info .best b { color: var(--ink); }

.info { display: none; }
.info.on { display: block; }

@media (max-width: 760px) {
  .eaas { grid-template-columns: 1fr; }
  .eaas-rail { flex-direction: row; flex-wrap: wrap; }
  .eaas-tab { flex: 1; min-width: 130px; }
  .stage-info .meta { grid-template-columns: 1fr; }
}

/* ---------- EAAS Visualizations ---------- */
.svy { width: 100%; max-width: 330px; display: flex; flex-direction: column; gap: 13px; }
.svy .row { display: flex; align-items: center; gap: 10px; }
.svy .lab2 { font-size: 0.72rem; color: var(--ink-dim); width: 52px; flex: none; text-align: right; }
.svy .track { flex: 1; height: 15px; background: var(--bg-3); border: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.svy .fill { position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, var(--phos-deep), var(--phos)); box-shadow: var(--glow); }
.viz.on .svy .fill { animation: svyfill 3.6s cubic-bezier(0.2, 0.8, 0.2, 1) infinite; }
@keyframes svyfill { 0% { width: 0; } 22% { width: var(--w); } 86% { width: var(--w); } 94%, 100% { width: 0; } }
.svy .pct { font-size: 0.66rem; color: var(--phos); width: 32px; flex: none; text-align: left; opacity: 0; }
.viz.on .svy .pct { animation: svypct 3.6s ease infinite; }
@keyframes svypct { 0%, 18% { opacity: 0; } 30%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
.svy .cap { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--phos); margin-bottom: 2px; }
.svy .cap b { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--phos); box-shadow: var(--glow); margin-left: 4px; vertical-align: middle; }
.viz.on .svy .cap b { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

.cv { width: 100%; max-width: 300px; display: flex; flex-direction: column; gap: 9px; }
.cv .b { max-width: 78%; padding: 8px 12px; font-size: 0.78rem; line-height: 1.35; border: 1px solid var(--line-soft); opacity: 0; transform: translateY(8px); border-radius: 4px; }
.cv .me { align-self: flex-start; background: var(--bg-3); color: var(--ink); }
.cv .ai { align-self: flex-end; background: rgba(80, 137, 184, 0.1); border-color: var(--line); color: var(--ink); }
.viz.on .cv .b { animation: cvpop 6.4s ease-in-out infinite; }
.viz.on .cv .b:nth-of-type(1) { animation-delay: 0.2s; }
.viz.on .cv .b:nth-of-type(2) { animation-delay: 1.4s; }
.viz.on .cv .b:nth-of-type(3) { animation-delay: 2.6s; }
.viz.on .cv .b:nth-of-type(4) { animation-delay: 3.8s; }
@keyframes cvpop { 0% { opacity: 0; transform: translateY(8px); } 5% { opacity: 1; transform: translateY(0); } 90% { opacity: 1; transform: translateY(0); } 97%, 100% { opacity: 0; transform: translateY(8px); } }

.scr { width: 100%; max-width: 300px; }
.scr-chrome { display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: var(--bg-3); border: 1px solid var(--line-soft); border-bottom: 0; }
.scr-chrome .d { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.scr-chrome .url { margin-left: 8px; flex: 1; height: 14px; background: var(--bg); border: 1px solid var(--line-soft); border-radius: 3px; }
.scr-body { border: 1px solid var(--line-soft); background: rgba(6, 8, 7, 0.6); padding: 18px 16px; min-height: 158px; position: relative; }
.web .field { height: 18px; background: var(--bg-3); border: 1px solid var(--line-soft); margin-bottom: 13px; position: relative; overflow: hidden; }
.web .field::after { content: ""; position: absolute; inset: 0; background: rgba(80, 137, 184, 0.22); transform: scaleX(0); transform-origin: left; }
.viz.on .web .field:nth-of-type(1)::after { animation: webfill 4.2s ease infinite; animation-delay: 0.2s; }
.viz.on .web .field:nth-of-type(2)::after { animation: webfill 4.2s ease infinite; animation-delay: 1.1s; }
.viz.on .web .field:nth-of-type(3)::after { animation: webfill 4.2s ease infinite; animation-delay: 2s; }
@keyframes webfill { 0%, 6% { transform: scaleX(0); } 20%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.web .btn3 { height: 24px; width: 96px; background: var(--phos); box-shadow: var(--glow); opacity: 0.35; }
.viz.on .web .btn3 { animation: webbtn 4.2s ease infinite; }
@keyframes webbtn { 0%, 66% { opacity: 0.35; transform: scale(1); } 74% { opacity: 1; transform: scale(1.08); } 82% { opacity: 1; transform: scale(1); } 92%, 100% { opacity: 0.35; } }
.web .cursor { position: absolute; left: 40px; top: 48px; font-size: 17px; color: var(--phos); filter: drop-shadow(0 0 5px rgba(80, 137, 184, 0.8)); pointer-events: none; }
.viz.on .web .cursor { animation: webcur 4.2s cubic-bezier(0.5, 0, 0.5, 1) infinite; }
@keyframes webcur { 0%, 28% { left: 40px; top: 48px; } 36%, 46% { left: 60px; top: 79px; } 54%, 64% { left: 84px; top: 110px; } 72%, 100% { left: 60px; top: 144px; } }
.web .ring { position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--phos); opacity: 0; left: 36px; top: 48px; pointer-events: none; }
.viz.on .web .ring { animation: webring 4.2s ease infinite; }
@keyframes webring {
  0%, 30% { opacity: 0; transform: scale(0.5); left: 36px; top: 48px; }
  33% { opacity: 0.9; transform: scale(0.6); }
  41% { opacity: 0; transform: scale(1.6); }
  47% { left: 56px; top: 79px; transform: scale(0.5); }
  50% { opacity: 0.9; transform: scale(0.6); }
  58% { opacity: 0; transform: scale(1.6); }
  64% { left: 80px; top: 110px; transform: scale(0.5); }
  67% { opacity: 0.9; transform: scale(0.6); }
  75% { opacity: 0; transform: scale(1.6); }
  80% { left: 56px; top: 144px; transform: scale(0.5); }
  83% { opacity: 0.9; transform: scale(0.6); }
  91%, 100% { opacity: 0; transform: scale(1.6); left: 56px; top: 144px; }
}
.web .prog { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--phos); box-shadow: var(--glow); width: 0; }
.viz.on .web .prog { animation: webprog 4.2s ease infinite; }
@keyframes webprog { 0%, 6% { width: 0; } 20% { width: 33%; } 46% { width: 66%; } 74% { width: 100%; } 92% { width: 100%; } 100% { width: 0; } }

.phone { width: 120px; height: 200px; border: 2px solid var(--line); border-radius: 18px; background: var(--bg); position: relative; overflow: hidden; box-shadow: 0 0 26px rgba(80, 137, 184, 0.14); }
.phone .notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 34px; height: 5px; border-radius: 3px; background: var(--line); z-index: 3; }
.phone .screens { display: flex; width: 300%; height: 100%; }
.viz.on .phone .screens { animation: appslide 6.6s cubic-bezier(0.7, 0, 0.3, 1) infinite; }
.phone .s { width: 33.333%; height: 100%; padding: 22px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.phone .s .ln { height: 9px; background: var(--bg-3); border: 1px solid var(--line-soft); }
.phone .s .ln.hl { background: rgba(80, 137, 184, 0.2); border-color: var(--line); }
.phone .s .blk { flex: 1; border: 1px solid var(--line-soft); background: rgba(80, 137, 184, 0.06); }
@keyframes appslide { 0%, 20% { transform: translateX(0); } 33%, 53% { transform: translateX(-33.333%); } 66%, 86% { transform: translateX(-66.666%); } 99%, 100% { transform: translateX(0); } }
.phone .dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 3; }
.phone .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
.phone .tap { position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--phos); z-index: 4; opacity: 0; left: 50px; top: 150px; }
.viz.on .phone .tap { animation: apptap 6.6s ease infinite; }
@keyframes apptap { 0%, 14% { opacity: 0; transform: scale(0.4); left: 50px; top: 150px; } 18% { opacity: 0.95; transform: scale(0.7); } 26% { opacity: 0; transform: scale(1.7); } 46% { opacity: 0; left: 42px; top: 60px; } 50% { opacity: 0.95; transform: scale(0.7); left: 42px; top: 60px; } 58% { opacity: 0; transform: scale(1.7); } 80% { opacity: 0; left: 60px; top: 120px; } 84% { opacity: 0.95; transform: scale(0.7); left: 60px; top: 120px; } 92% { opacity: 0; transform: scale(1.7); } 100% { opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) { .data-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .nav { gap: 0; flex-wrap: nowrap; justify-content: space-between; }
  .brand { flex: 0; }
  .nav-toggle { display: flex !important; order: 2; position: relative; z-index: 21; pointer-events: auto; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
    display: flex !important; flex-direction: column;
    gap: 0; padding: 0; margin-top: 0;
    max-height: 0; opacity: 0; visibility: hidden;
    overflow: hidden; transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    background: #0a0a0a !important;
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 18px 36px rgba(0,0,0,.45);
    backdrop-filter: blur(14px);
  }
  .nav-links.active {
    max-height: 500px; opacity: 1; visibility: visible;
  }
  .nav-links a {
    padding: 14px clamp(20px, 5vw, 40px); display: block;
    border-bottom: 1px solid var(--line-soft);
    text-align: center;
    color: #e7e9ec;
    font-family: var(--disp);
  }
  .nav-toggle.active { border-color: var(--phos); color: var(--phos); }
  .nav-links a:hover { color: var(--phos); }
  .telemetry { grid-template-columns: repeat(2, 1fr); }
  .tele-cell:nth-child(2) { border-right: none; }
  .verdict-lift { font-size: var(--text-2xl); }
  .seg-table th, .seg-table td { padding-left: 8px; padding-right: 8px; font-size: var(--text-sm); }
}
@media (max-width: 460px) { .telemetry { grid-template-columns: 1fr; } .tele-cell { border-right: none; border-bottom: 1px solid var(--line-soft); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .eyebrow, .community-badge, .headline .line, .hero-stat, .hero-subheading,
  .subhead, .cta-row, .hero-globe-wrap, .telemetry {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Agent runway (moved from the demo portal) ---------- */
.runway { position: relative; z-index: 4; display: flex; flex-direction: column; overflow: hidden;
  border-block: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 18%, rgba(74,143,194,0.045), transparent 60%); }
.runway--band { height: clamp(600px, 90vh, 1000px); margin: 56px 0; }
.runway-stage { position: relative; flex: 1; min-height: 0; }
#runway { position: absolute; inset: 0; width: 100%; height: 100%; }
.runway-hud { position: absolute; left: 0; right: 0; top: 0; padding: clamp(20px,5vw,52px) clamp(20px,5vw,52px) 0; pointer-events: none; z-index: 3; }
.runway-hud h1 { font-family: var(--disp); font-weight: 800; font-size: clamp(2rem,5.5vw,4rem); letter-spacing: -.03em; line-height: 1; margin-bottom: 14px; }
.runway-hud h1 .hl { color: var(--phos); text-shadow: var(--glow); }
.runway-hud p { color: var(--ink-dim); font-size: clamp(.95rem,1.7vw,1.12rem); max-width: 600px; line-height: 1.5; }
.runway-stats { position: absolute; left: 0; right: 0; bottom: 52px; z-index: 3; display: flex; justify-content: center; pointer-events: none; }
.rstat { padding: 0 clamp(14px,3vw,32px); text-align: center; border-right: 1px solid var(--line-soft); }
.rstat:last-child { border-right: none; }
.rstat b { display: block; font-family: var(--disp); font-weight: 800; font-size: clamp(1.3rem,2.6vw,2rem); color: var(--phos); font-variant-numeric: tabular-nums; text-shadow: 0 0 12px rgba(74,143,194,.3); }
.rstat span { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); }
.scrollcue { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; z-index: 4; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); animation: bob 2s infinite; }
.scrollcue:hover { color: var(--phos); }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(5px)} }
@media (max-width:620px){ .runway-stats{flex-wrap:wrap;gap:8px} }

/* ---------- Softer corners: gentle rounding on boxes (kept subtle) ---------- */
/* Buttons & small pills */
.report-agents { border-radius: 7px; }

/* Primary containers / cards */
.telemetry,
.report-card,
.data-panel,
.os-card,
.eaas-stage { border-radius: 12px; }

.rsnap,
.paper,
.svc .card,
.eaas-tab { border-radius: 10px; }

/* Small inner boxes */
.a-run,
.stage-info ul li,
.svy .track,
.web .field { border-radius: 6px; }

/* Browser mockup: round outer corners only so chrome + body meet flush */
.scr-chrome { border-radius: 6px 6px 0 0; }
.scr-body { border-radius: 0 0 6px 6px; }

.a-grid i { border-radius: 2px; }

/* ============================================================
   Research-first homepage (2026 information architecture)
   ============================================================ */

/* Navigation additions */
.nav-links { gap: clamp(14px, 1.8vw, 26px); }
.nav-links a { font-size: 0.76rem; }
.theme-nav { padding: 8px 11px; min-width: auto; }
.nav-github {
  flex: none; color: var(--ink-dim); text-decoration: none;
  font-family: var(--disp); font-size: 0.74rem; letter-spacing: 0.06em;
  text-transform: uppercase; transition: color .2s;
}
.nav-github:hover { color: var(--phos); }
@media (max-width: 1120px) { .nav-github { display: none; } }

/* Hero copy */
.headline--vision .line {
  white-space: normal;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.02;
}
.hero-text-link {
  display: inline-block; margin-top: 26px; color: var(--ink-dim);
  font-size: 0.82rem; letter-spacing: .04em; text-decoration: none;
  opacity: 0; animation: rise .8s .82s forwards;
}
.hero-text-link:hover { color: var(--phos); transform: translateX(2px); }

/* Shared research components */
.section-kicker,
.idx {
  font-family: "Inter", var(--disp); font-size: 0.72rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase; color: var(--phos);
}
.maturity {
  display: inline-flex; align-items: center; width: fit-content;
  padding: 4px 9px; border: 1px solid var(--line);
  border-radius: 999px; font-family: var(--mono); font-size: 0.58rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim);
  white-space: nowrap;
}
.maturity.active { color: var(--phos); border-color: rgba(74,143,194,.35); background: rgba(74,143,194,.08); }
.maturity.progress { color: var(--cyan); border-color: rgba(107,192,232,.3); background: rgba(107,192,232,.06); }
.maturity.prototype { color: var(--amber); border-color: rgba(255,181,71,.32); background: rgba(255,181,71,.07); }
.maturity.planned { color: var(--ink-dim); background: var(--bg-3); }
.maturity.vision { color: #a98be9; border-color: rgba(169,139,233,.34); background: rgba(169,139,233,.07); }
.section-action { margin-top: 28px; text-align: center; }

/* Problem */
.problem-panel { padding-top: clamp(80px, 10vw, 120px); }
.problem-lead {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 7vw, 90px);
  align-items: end; margin: 18px 0 42px;
}
.problem-lead h2 {
  font-family: var(--disp); font-size: clamp(2rem, 4.3vw, 3.45rem);
  line-height: 1.05; letter-spacing: -.035em;
}
.problem-lead p { color: var(--ink-dim); font-size: 1.02rem; line-height: 1.75; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.research-card {
  min-height: 220px; padding: 24px; border: 1px solid var(--line-soft);
  border-radius: 12px; background: var(--bg-2);
}
.card-index { font-family: var(--mono); font-size: .66rem; color: var(--phos); letter-spacing: .1em; }
.research-card h3 { margin: 46px 0 12px; font-family: var(--disp); font-size: 1.2rem; }
.research-card p { color: var(--ink-dim); font-size: .9rem; line-height: 1.6; }
.research-card strong { color: var(--ink); }

/* Three-layer stack */
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stack-card {
  position: relative; padding: 24px; min-height: 390px;
  display: flex; flex-direction: column; border: 1px solid var(--line-soft);
  border-radius: 14px; background: var(--bg-2); overflow: hidden;
}
.stack-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--phos), transparent 75%);
}
.environment-layer::before { background: linear-gradient(90deg, var(--cyan), transparent 75%); }
.application-layer::before { background: linear-gradient(90deg, var(--amber), transparent 75%); }
.stack-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack-num { font-family: var(--mono); color: var(--ink-dim); font-size: .72rem; }
.stack-question { margin: 52px 0 10px; font-family: var(--mono); color: var(--phos); font-size: .66rem; letter-spacing: .12em; }
.stack-card h3 { font-family: var(--disp); font-size: 2rem; letter-spacing: -.03em; margin-bottom: 14px; }
.stack-card > p:not(.stack-question) { color: var(--ink-dim); font-size: .9rem; line-height: 1.65; }
.stack-card ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 20px 0 24px; }
.stack-card li { padding: 5px 9px; border: 1px solid var(--line-soft); border-radius: 6px; background: var(--bg-3); color: var(--ink); font-size: .7rem; }
.stack-card a { margin-top: auto; color: var(--phos); text-decoration: none; font-size: .8rem; }

/* Pipeline */
.pipeline-panel { max-width: 1240px; }
.pipeline {
  display: grid; grid-template-columns: repeat(7, 1fr); list-style: none;
  border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden;
  background: var(--bg-2);
}
.pipeline li { position: relative; min-height: 180px; padding: 22px 16px; border-right: 1px solid var(--line-soft); }
.pipeline li:last-child { border-right: 0; }
.pipeline li:not(:last-child)::after { content: "→"; position: absolute; right: -7px; top: 50%; z-index: 2; color: var(--phos); background: var(--bg-2); }
.pipeline span { display: block; font-family: var(--mono); color: var(--phos); font-size: .62rem; letter-spacing: .1em; }
.pipeline b { display: block; margin: 54px 0 8px; font-family: var(--disp); font-size: .88rem; line-height: 1.25; }
.pipeline small { display: block; color: var(--ink-dim); font-size: .7rem; line-height: 1.45; }

/* Artifacts */
.artifact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.artifact-card {
  min-height: 260px; padding: 22px; display: flex; flex-direction: column;
  border: 1px solid var(--line-soft); border-radius: 12px; background: var(--bg-2);
  color: var(--ink); text-decoration: none; transition: transform .2s, border-color .2s;
}
.artifact-card:hover { transform: translateY(-3px); border-color: var(--line); }
.artifact-card h3 { margin: 34px 0 12px; font-family: var(--disp); font-size: 1.25rem; letter-spacing: -.02em; }
.artifact-card p { color: var(--ink-dim); font-size: .86rem; line-height: 1.6; }
.artifact-link { margin-top: auto; padding-top: 20px; color: var(--phos); font-size: .76rem; }

/* Applications */
.application-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.application-card {
  min-height: 320px; padding: 22px; border: 1px solid var(--line-soft);
  border-radius: 12px; background: var(--bg-2);
}
.application-card.priority { border-color: var(--line); box-shadow: inset 0 1px 0 rgba(74,143,194,.16); }
.application-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.application-head > span:first-child { font-family: var(--disp); font-weight: 700; font-size: 1.15rem; color: var(--phos); }
.application-card h3 { margin: 52px 0 12px; font-family: var(--disp); font-size: 1.35rem; }
.application-card p { min-height: 76px; color: var(--ink-dim); font-size: .84rem; line-height: 1.55; }
.application-card ul { margin-top: 18px; padding-left: 16px; color: var(--ink); font-size: .73rem; line-height: 1.8; }

/* Concrete case */
.case-panel { max-width: 1180px; }
.case-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 7vw, 90px); align-items: center; }
.case-copy h2 { margin: 16px 0 20px; font-family: var(--disp); font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.04; letter-spacing: -.035em; }
.case-copy > p { color: var(--ink-dim); font-size: 1rem; line-height: 1.7; }
.case-note { display: flex; align-items: flex-start; gap: 12px; margin: 24px 0; padding: 14px; border-left: 2px solid var(--amber); background: rgba(255,181,71,.04); }
.case-note p { color: var(--ink-dim); font-size: .76rem; line-height: 1.5; }
.case-actions, .closing-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trajectory-card { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); overflow: hidden; }
.trajectory-head { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); color: var(--ink-dim); font-family: var(--mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.trajectory-row { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; padding: 18px; border-bottom: 1px solid var(--line-soft); }
.persona-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--phos); box-shadow: var(--glow); }
.persona-dot.amber { background: var(--amber); box-shadow: 0 0 12px rgba(255,181,71,.45); }
.trajectory-row b { display: block; font-size: .83rem; }
.trajectory-row small { display: block; margin-top: 5px; color: var(--ink-dim); font-size: .7rem; }
.outcome { font-family: var(--mono); font-size: .58rem; letter-spacing: .06em; padding: 4px 7px; border-radius: 5px; }
.outcome.pass { color: var(--phos); background: rgba(74,143,194,.09); }
.outcome.flag { color: var(--amber); background: rgba(255,181,71,.09); }
.trajectory-finding { padding: 18px; background: var(--bg-3); }
.trajectory-finding span { font-family: var(--mono); color: var(--phos); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.trajectory-finding p { margin-top: 7px; color: var(--ink); font-size: .82rem; line-height: 1.5; }

/* Principles band */
.principles-band { position: relative; z-index: 10; margin-top: clamp(80px, 11vw, 130px); border-block: 1px solid var(--line); background: var(--bg-2); }
.principles-inner { max-width: 1180px; margin: 0 auto; padding: clamp(52px, 8vw, 80px) clamp(20px, 5vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 7vw, 90px); align-items: center; }
.principles-inner h2 { margin-top: 14px; font-family: var(--disp); font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.03em; }
.principles-copy p { color: var(--ink-dim); font-size: 1rem; line-height: 1.7; margin-bottom: 18px; }
.principles-copy a { color: var(--phos); text-decoration: none; font-size: .82rem; }

/* Research */
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.research-item { min-height: 300px; padding: 22px; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--bg-2); transition: transform .2s, border-color .2s; }
.research-item:hover { transform: translateY(-3px); border-color: var(--line); }
.research-type { color: var(--amber); font-family: var(--mono); font-size: .6rem; letter-spacing: .09em; text-transform: uppercase; }
.research-item h3 { margin: 50px 0 14px; font-family: var(--disp); font-size: 1.2rem; line-height: 1.25; }
.research-item p { color: var(--ink-dim); font-size: .85rem; line-height: 1.6; }
.research-item > span:last-child { margin-top: auto; padding-top: 18px; color: var(--phos); font-size: .75rem; }

/* Playground */
.playground-card { padding: clamp(28px, 5vw, 50px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(135deg, var(--bg-2), rgba(74,143,194,.07)); }
.playground-card h2 { margin: 18px 0 12px; font-family: var(--disp); font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.035em; }
.playground-card p { max-width: 660px; color: var(--ink-dim); line-height: 1.65; }
.playground-card .prototype-note { margin-top: 12px; font-size: .7rem; color: var(--amber); }
.playground-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.playground-actions .btn { justify-content: center; }

/* Community */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.team-card { min-height: 270px; padding: 24px; display: flex; flex-direction: column; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--bg-2); }
.team-label { color: var(--phos); font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; }
.team-card h3 { margin: 48px 0 12px; font-family: var(--disp); font-size: 1.25rem; }
.team-card p { color: var(--ink-dim); font-size: .85rem; line-height: 1.6; }
.team-card a { margin-top: auto; padding-top: 20px; color: var(--phos); text-decoration: none; font-size: .77rem; }
.community-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Closing */
.closing--research { max-width: 960px; }
.closing--research h2 { margin: 18px 0; }
.closing-actions { justify-content: center; }

/* Light-theme clarity for new surfaces */
[data-theme="light"] .research-card,
[data-theme="light"] .stack-card,
[data-theme="light"] .artifact-card,
[data-theme="light"] .application-card,
[data-theme="light"] .trajectory-card,
[data-theme="light"] .research-item,
[data-theme="light"] .team-card,
[data-theme="light"] .playground-card,
[data-theme="light"] .pipeline { box-shadow: 0 10px 34px rgba(30, 74, 110, .035); }

/* Homepage responsive */
@media (max-width: 980px) {
  .stack-grid, .artifact-grid, .research-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .application-grid { grid-template-columns: 1fr 1fr; }
  .pipeline { grid-template-columns: repeat(4, 1fr); }
  .pipeline li { border-bottom: 1px solid var(--line-soft); }
  .pipeline li:nth-child(4) { border-right: 0; }
  .pipeline li:nth-child(4)::after { display: none; }
}
@media (max-width: 820px) {
  .nav-github { display: block; padding: 12px clamp(20px, 5vw, 40px); text-align: center; }
  .nav > .nav-github { display: none; }
  .hero-globe-wrap { left: auto; }
  .problem-lead, .case-grid, .principles-inner, .playground-card { grid-template-columns: 1fr; }
  .problem-lead { align-items: start; }
  .playground-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 680px) {
  .problem-grid, .stack-grid, .artifact-grid, .application-grid, .research-grid, .team-grid { grid-template-columns: 1fr; }
  .research-card, .stack-card, .artifact-card, .application-card, .research-item, .team-card { min-height: 0; }
  .research-card h3, .stack-question, .application-card h3, .research-item h3, .team-card h3 { margin-top: 28px; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline li { min-height: 0; border-right: 0; display: grid; grid-template-columns: 34px 1fr; gap: 4px 10px; }
  .pipeline li::after { display: none; }
  .pipeline b { margin: 0; }
  .pipeline small { grid-column: 2; }
  .playground-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-text-link { opacity: 1; }
}

/* ---------- Compact homepage sections ---------- */
.research-stack-strip {
  position: relative; z-index: 10; border-block: 1px solid var(--line-soft);
  background: var(--bg-2);
}
.stack-strip-inner {
  max-width: 1180px; margin: 0 auto; padding: 30px clamp(20px, 5vw, 40px);
  display: grid; grid-template-columns: .72fr 1.28fr; gap: 34px; align-items: center;
}
.stack-strip-intro h2 {
  margin-top: 8px; font-family: var(--disp); font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  line-height: 1.15; letter-spacing: -.025em;
}
.stack-strip-flow { display: flex; align-items: stretch; gap: 10px; }
.stack-strip-flow > a,
.stack-strip-flow > div {
  flex: 1; min-width: 0; padding: 5px 14px; border-right: 1px solid var(--line-soft);
  color: var(--ink); text-decoration: none;
}
.stack-strip-flow > a { transition: border-color .2s, transform .2s; }
.stack-strip-flow > a:hover { color: var(--phos); transform: translateY(-2px); }
.stack-strip-flow span { display: block; color: var(--phos); font-family: "Inter", var(--disp); font-size: .52rem; letter-spacing: .08em; }
.stack-strip-flow b { display: block; margin: 9px 0 4px; font-family: var(--disp); font-size: .86rem; }
.stack-strip-flow > i { align-self: center; color: var(--phos); font-style: normal; font-size: .72rem; }
.stack-strip-flow .stack-output { border-right: 0; }

.capability-panel { padding-top: clamp(72px, 9vw, 104px); }
.capability-grid .card {
  min-height: 150px; display: flex; flex-direction: column;
  color: var(--ink); text-decoration: none;
}
.capability-grid .svc-anim { height: 56px; }
.capability-grid h3 { margin-top: 20px; font-size: 1.08rem; }

.application-types { max-width: 1160px; }
.application-types .eaas { margin-top: 0; }
.application-types .eaas-stage { min-height: 370px; }
.application-types .stage-viz { min-height: 245px; }
.application-types .stage-info { padding: 16px 22px; }
.application-types .stage-info .tag { font-size: .84rem; }
.application-types .stage-info .desc { font-size: 1rem; }
.example-context {
  display: block; color: var(--amber); font-family: var(--mono);
  font-size: .68rem; letter-spacing: .09em; line-height: 1.4; text-transform: uppercase;
}
.svy .example-context { margin-bottom: -2px; }
.svy .cap { font-size: .78rem; text-transform: none; letter-spacing: .02em; color: var(--ink); }
.application-types .svy .lab2 { font-size: .78rem; width: 64px; }
.application-types .svy .pct { font-size: .74rem; width: 38px; }
.application-types .cv .b { font-size: .84rem; }
.cv .example-context { align-self: stretch; margin-bottom: 3px; text-align: center; }
.scr-chrome .url {
  display: flex; align-items: center; padding: 0 7px; overflow: hidden;
  color: var(--ink-dim); font-family: var(--mono); font-size: .62rem;
  white-space: nowrap;
}
.mock-context { margin-bottom: 12px; }
.app-example { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.discovery-panel { padding-top: clamp(54px, 6vw, 72px); }
.discovery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.discovery-card {
  position: relative; min-height: 185px; padding: clamp(22px, 3.5vw, 32px);
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line-soft); border-radius: 14px;
  background: var(--bg-2); color: var(--ink); text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.discovery-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 70% at 100% 0, rgba(74,143,194,.11), transparent 70%);
}
.application-discovery::before { background: radial-gradient(70% 70% at 100% 0, rgba(255,181,71,.09), transparent 70%); }
.discovery-card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: 0 14px 34px rgba(0,0,0,.12); }
.discovery-top { position: relative; display: flex; justify-content: flex-end; align-items: center; color: var(--phos); }
.application-discovery .discovery-top { color: var(--amber); }
.discovery-card h2 { position: relative; max-width: 440px; margin: 28px 0 10px; font-family: var(--disp); font-size: clamp(1.3rem, 2.6vw, 1.85rem); line-height: 1.08; letter-spacing: -.03em; }
.discovery-link { position: relative; margin-top: auto; padding-top: 12px; color: var(--phos); font-size: .78rem; }
.application-discovery .discovery-link { color: var(--amber); }
.discovery-domains {
  position: relative; display: flex; flex-wrap: wrap; gap: 5px;
  margin-top: 8px;
}
.discovery-domains span {
  padding: 4px 7px; border: 1px solid rgba(255,181,71,.18); border-radius: 999px;
  color: var(--ink-dim); font-size: .66rem; line-height: 1.25;
}

.compact-os-card { max-width: 1080px; }
.compact-os-card .os-card-body { display:grid;grid-template-columns:minmax(0,1fr) auto;padding:26px 20px;gap:32px; }
.compact-os-card .os-card-vitals { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%; }
.compact-os-card .os-card-vitals > div { min-width:0; }
.video-panel { max-width: 960px; }
.video-frame {
  position: relative; height: 0; padding-bottom: 56.25%; overflow: hidden;
  border: 1px solid var(--line); border-radius: 14px; background: #000;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.community-closing { padding-top: clamp(76px, 9vw, 105px); padding-bottom: clamp(82px, 10vw, 115px); }
.community-closing h2 { margin: 18px 0; }
@media (max-width: 760px) {
  .stack-strip-inner { grid-template-columns: 1fr; }
  .stack-strip-flow { display: grid; grid-template-columns: 1fr 1fr; }
  .stack-strip-flow > i { display: none; }
  .discovery-grid { grid-template-columns: 1fr; }
  .application-types .eaas-stage { min-height: 0; }
  .compact-os-card .os-card-vitals > div { min-width: 0; flex: 1; padding: 12px 8px; }
  .compact-os-card .os-card-vitals b { font-size: 1.16rem; }
  .compact-os-card .os-card-vitals span { font-size: .56rem; }
}

@media (max-width: 520px) {
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .capability-grid .card { min-height: 140px; padding: 16px; }
  .capability-grid h3 { font-size: .92rem; }
  .application-types .eaas-rail { display: grid; grid-template-columns: 1fr 1fr; }
  .application-types .eaas-tab { min-width: 0; }
  .compact-os-card .os-card-vitals { display: grid; grid-template-columns: repeat(3, 1fr); }
  .compact-os-card .os-card-vitals > div { border-right: 1px solid var(--line-soft); }
}

@media (max-width: 760px) {
  .grain { animation: none; }
}

/* ---------- Homepage typography pass ---------- */
.nav-links a { font-size: .82rem; }
.section-kicker,
.idx,
.sec-head .idx { font-size: .8rem; }
.community-badge { font-size: .76rem; }

.stack-strip-flow span { font-size: .64rem; }
.stack-strip-flow b { font-size: 1rem; }
.stack-strip-flow > i { font-size: .88rem; }

.capability-grid h3 { font-size: 1.18rem; }
.example-context { font-size: .73rem; }

.compact-os-card .os-card-status .led { font-size: .75rem; }
.compact-os-card .os-card-vitals span { font-size: .8rem; }

.discovery-top .idx { font-size: .75rem; }
.discovery-link { font-size: .88rem; }
.discovery-domains span { padding: 5px 8px; font-size: .73rem; }

.community-closing .closing-sub { font-size: 1.08rem; line-height: 1.65; }
.foot { font-size: .84rem; }
.foot-meta { font-size: .72rem; }

@media (max-width: 760px) {
  .compact-os-card .os-card-vitals span { font-size: .66rem; }
  .compact-os-card .os-card-body { grid-template-columns:1fr; }
}

@media (max-width: 520px) {
  .capability-grid h3 { font-size: 1rem; }
  .stack-strip-flow span { font-size: .58rem; }
  .stack-strip-flow b { font-size: .94rem; }
  .discovery-domains span { font-size: .66rem; }
}

/* Wide-screen proportion pass */
@media (min-width: 1280px) {
  .hero--split { max-width: 1440px; }
  .panel { max-width: 1360px; }
  .stack-strip-inner { max-width: 1400px; }
  .application-types { max-width: 1360px; }
  .pipeline-panel { max-width: 1440px; }
  .case-panel, .principles-inner { max-width: 1360px; }
  .video-panel { max-width: 1040px; }
}

@media (min-width: 900px) {
  .hero--split { gap: clamp(14px, 2vw, 30px); }
  .hero--split .hero-copy { left: clamp(24px, 2.6vw, 44px); }
  .hero-globe-wrap { left: clamp(-18px, -1vw, -8px); }
}
