/* ============================================================
   0xSpectra — Understanding the structures beneath the signals
   Enterprise security-lab redesign.
   Structure & legitimacy: CrowdStrike / Arctic Wolf playbook.
   Atmosphere: the 0xSpectra logo (wispy light-trails, wireframe
   globe, cyan→violet spectral glow) as ambient texture only.
   ============================================================ */

:root {
  /* Type scale (fluid, heavy enterprise display) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.25vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  --text-3xl: clamp(2.75rem, 1.6rem + 4.4vw, 5.25rem);
  --text-4xl: clamp(3.25rem, 1.4rem + 6.5vw, 6.5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --radius-sm: 0.25rem; --radius-md: 0.375rem; --radius-lg: 0.625rem;
  --radius-xl: 0.875rem; --radius-full: 9999px;

  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --content-wide: 1240px;
  --content-default: 1040px;
  --content-narrow: 720px;

  /* Distinctive editorial display; clean sans for body; mono for technical */
  --font-display: 'Clash Display', 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---------- DARK (default — the brand lives in the dark) ---------- */
:root, [data-theme="dark"] {
  --color-bg: #05060c;
  --color-bg-2: #080a13;
  --color-surface: #0c0f1a;
  --color-surface-2: #11141f;
  --color-border: #1a1e2e;
  --color-border-bright: #2a3047;

  --color-text: #eef0f7;
  --color-text-muted: #99a0b5;
  --color-text-faint: #5a6178;

  --color-cyan: #5bc8ff;
  --color-blue: #5a8bff;
  --color-violet: #a285f2;
  --color-accent: #5bc8ff;        /* the two-tone headline accent */

  --grad-spectral: linear-gradient(100deg, #5bc8ff 0%, #6f8eff 50%, #a285f2 100%);

  --shadow-md: 0 10px 40px rgba(0,0,0,0.55);
  --line-color: rgba(120,170,255,0.10);
}

/* ---------- LIGHT (cool, restrained, still serious) ---------- */
[data-theme="light"] {
  --color-bg: #ffffff;
  --color-bg-2: #f4f6fb;
  --color-surface: #ffffff;
  --color-surface-2: #f7f9fd;
  --color-border: #e3e7f0;
  --color-border-bright: #cbd2e2;

  --color-text: #0a0d18;
  --color-text-muted: #4d5468;
  --color-text-faint: #828aa0;

  --color-cyan: #0a7fd4;
  --color-blue: #2f5fe0;
  --color-violet: #6a3fc0;
  --color-accent: #1366d6;

  --grad-spectral: linear-gradient(100deg, #0a7fd4 0%, #2f5fe0 50%, #6a3fc0 100%);

  --shadow-md: 0 10px 40px rgba(20,30,60,0.10);
  --line-color: rgba(40,90,200,0.08);
}

/* ---------- base reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; scroll-behavior: smooth; scroll-padding-top: 6rem;
}
body {
  min-height: 100dvh; line-height: 1.55;
  font-family: var(--font-body); font-size: var(--text-base);
  color: var(--color-text); background-color: var(--color-bg);
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; height: auto; }
h1,h2,h3,h4 { font-family: var(--font-display); text-wrap: balance; line-height: 1.05; font-weight: 600; letter-spacing: -0.02em; }
p { text-wrap: pretty; max-width: 64ch; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; color: inherit; font: inherit; }
ul { list-style: none; }
strong { font-weight: 600; color: var(--color-text); }

::selection { background: rgba(91,200,255,0.25); color: var(--color-text); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: var(--radius-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--content-wide); margin-inline: auto; padding-inline: var(--space-6); }
section { padding-block: clamp(var(--space-16), 7vw, var(--space-24)); position: relative; }

.eyebrow {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--color-accent);
  display: inline-flex; align-items: center; gap: var(--space-3);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: 0.6; }
.grad-text { background: var(--grad-spectral); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.accent { color: var(--color-accent); }

/* faint wireframe-globe / spectral line ambient texture (logo DNA) */
.spectral-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.spectral-lines::before {
  content: ""; position: absolute; inset: -10% -10% auto auto; width: 60vmax; height: 60vmax;
  background:
    radial-gradient(closest-side, transparent 58%, var(--line-color) 58.5%, transparent 60%) ,
    radial-gradient(closest-side, transparent 70%, var(--line-color) 70.5%, transparent 72%);
  border-radius: 50%; opacity: 0.5;
  -webkit-mask: radial-gradient(closest-side, #000 70%, transparent);
          mask: radial-gradient(closest-side, #000 70%, transparent);
}

/* scroll reveal — opacity only (no CLS) */
.reveal { opacity: 1; }
@supports (animation-timeline: view()) {
  .reveal { opacity: 0; animation: revealFade linear both; animation-timeline: view(); animation-range: entry 5% cover 20%; }
}
@keyframes revealFade { to { opacity: 1; } }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announce {
  background: var(--color-bg-2); border-bottom: 1px solid var(--color-border);
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.04em;
}
.announce__inner {
  max-width: var(--content-wide); margin-inline: auto; padding: var(--space-3) var(--space-6);
  display: flex; align-items: center; justify-content: center; gap: var(--space-3); flex-wrap: wrap;
  color: var(--color-text-muted); text-align: center;
}
.announce .tag { color: var(--color-accent); }
.announce a { color: var(--color-text); border-bottom: 1px solid var(--color-border-bright); padding-bottom: 1px; }
.announce a:hover { color: var(--color-accent); border-color: currentColor; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, var(--color-bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color var(--transition-interactive);
}
.header.scrolled { border-bottom-color: var(--color-border); }
.header__inner {
  max-width: var(--content-wide); margin-inline: auto; padding: var(--space-5) var(--space-6);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
}
.brand { display: flex; align-items: center; gap: var(--space-3); }
/* oversized prism mark; negative margins let it overflow the bar (hazy edges) without
   growing the header line-height. soft feathered mask + glow dissolve it into the nav */
.brand__mark {
  width: 88px; height: auto; flex: none;
  margin-block: -19px; margin-inline-start: -8px;
  filter: drop-shadow(0 0 13px rgba(120,155,255,0.30));
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 97%);
  mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 97%);
}
/* wordmark rendered in the actual logo typeface (image); live text kept for screen readers */
.brand__name {
  display: inline-block;
  height: 18px;
  aspect-ratio: 1066 / 87;
  background: url("assets/wordmark.png") left center / contain no-repeat;
  text-indent: -9999px; overflow: hidden; white-space: nowrap;
}
[data-theme="light"] .brand__name { background-image: url("assets/wordmark-light.png"); }
.brand__name .hex { color: var(--color-accent); }
.nav { display: flex; align-items: center; gap: var(--space-8); }
/* modern label-swap: word slides up & out while an accent copy rises into its place */
.nav a {
  position: relative; display: block; overflow: hidden;
  height: 1.5em; line-height: 1.5em;
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 450;
  letter-spacing: 0.01em;
  color: color-mix(in oklab, var(--color-text) 72%, transparent);
}
.nav a > span {
  display: block; height: 1.5em;
  transition: transform 0.36s cubic-bezier(0.65, 0.05, 0.1, 1);
}
.nav a::after {
  content: attr(data-text);
  position: absolute; inset: 0; height: 1.5em; line-height: 1.5em;
  color: var(--color-accent); transform: translateY(100%);
  transition: transform 0.36s cubic-bezier(0.65, 0.05, 0.1, 1);
}
.nav a:hover > span { transform: translateY(-100%); }
.nav a:hover::after { transform: translateY(0); }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.theme-toggle { width: 38px; height: 38px; display: grid; place-items: center; color: var(--color-text-muted); border-radius: var(--radius-md); transition: color var(--transition-interactive), background var(--transition-interactive); }
.theme-toggle:hover { color: var(--color-text); background: var(--color-surface); }
.nav-toggle { display: none; color: var(--color-text); width: 38px; height: 38px; place-items: center; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.02em;
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-md); border: 1px solid var(--color-border-bright);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive), border-color var(--transition-interactive), background var(--transition-interactive), color var(--transition-interactive);
  white-space: nowrap;
}
.btn--primary { border-color: transparent; color: #04060e; background: var(--grad-spectral); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(91,200,255,0.30); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { color: var(--color-text); background: transparent; }
.btn--ghost:hover { border-color: var(--color-accent); transform: translateY(-2px); }
.btn--ghost:active { transform: translateY(0); }
.btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }

@media (max-width: 880px) {
  .nav { position: fixed; inset: auto 0 auto 0; top: var(--nav-top, 7.5rem); flex-direction: column; align-items: stretch; gap: 0;
    background: var(--color-bg-2); border-bottom: 1px solid var(--color-border); padding: var(--space-2) var(--space-6) var(--space-6);
    transform: translateY(-130%); transition: transform 280ms var(--ease-out), visibility 0s linear 280ms;
    visibility: hidden; pointer-events: none; box-shadow: var(--shadow-md); }
  .nav.open { transform: translateY(0); visibility: visible; pointer-events: auto; transition: transform 280ms var(--ease-out); }
  .nav a { padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border); font-size: var(--text-base); }
  .nav-toggle { display: grid; }
  .header .btn--demo { display: none; }
}

/* ============================================================
   HERO  (type-led headline + prominent dot-sphere centerpiece)
   ============================================================ */
/* Hero is ALWAYS dark — a deep navy room, regardless of site theme.
   The message lives in light on the left; the live sphere is ambient
   atmosphere on the right, bleeding off the edge, sitting BEHIND the copy. */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(var(--space-16), 9vw, var(--space-32)) clamp(var(--space-16), 8vw, var(--space-24));
  background:
    radial-gradient(120% 120% at 88% 28%, #0c1d3a 0%, #070d1d 42%, #04060e 78%);
  color: #eef0f7;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__bg .glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(48% 60% at 82% 34%, rgba(120,150,255,0.18), transparent 60%),
    radial-gradient(40% 48% at 14% 88%, rgba(91,200,255,0.10), transparent 60%);
}

/* ---- hero logo as living centerpiece: static glowing prism + live globe ---- */
/* logo sits behind the copy, anchored right, big enough to encompass the globe */
.hero__logo-stage {
  position: absolute; z-index: 1; pointer-events: none;   /* z-index 1 = behind the copy */
  top: 45%; right: -20%; transform: translateY(-50%);
  width: clamp(720px, 84vw, 1120px);
  /* ===== PLACEMENT KNOBS — edit these ===== */
  --gx: 48%;   /* live globe — left / right */
  --gy: 60%;   /* live globe — up / down    */
  --gd: 48%;   /* live globe — size         */
}
.hero__logo-frame {
  position: relative; width: 100%; aspect-ratio: 580 / 600;
  filter: drop-shadow(0 0 80px rgba(110,150,255,0.18));
}
/* transparent-background logo — composites cleanly on the dark hero, no box */
.hero__logo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
}
/* the LIVE dot-sphere, sized + placed over the logo's globe */
.hero__globe-canvas {
  position: absolute; z-index: 1; pointer-events: none;
  left: var(--gx); top: var(--gy); transform: translate(-45%, -40%);
  width: var(--gd); aspect-ratio: 1 / 1; height: auto;
  mix-blend-mode: screen;
}

.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 620px); align-items: center;
  min-height: clamp(460px, 58vh, 660px);
}
.hero__copy { position: relative; z-index: 2; max-width: 640px; }
.hero .eyebrow { color: #7fb6ff; }
.hero h1 { font-size: var(--text-4xl); line-height: 0.98; letter-spacing: -0.035em; font-weight: 600; margin-top: var(--space-6); }
.hero h1 .l1 { display: block; color: #f4f7ff; }
.hero h1 .l2 { display: block; }
.hero__lede { margin-top: var(--space-8); font-size: var(--text-lg); color: #aab2cc; max-width: 52ch; line-height: 1.5; }
.hero__cta { margin-top: var(--space-10); display: flex; flex-wrap: wrap; gap: var(--space-4); }
.hero .btn--ghost { color: #eef0f7; border-color: rgba(150,170,210,0.28); }
.hero .btn--ghost:hover { border-color: rgba(150,170,210,0.55); background: rgba(255,255,255,0.04); }

@media (max-width: 900px) {
  .hero { padding-block: clamp(var(--space-12), 14vw, var(--space-20)); }
  .hero__inner { grid-template-columns: 1fr; min-height: clamp(380px, 70vh, 560px); }
  .hero__copy { max-width: none; }
  /* faint big triangle behind the copy on mobile */
  .hero__logo-stage { right: -24%; width: 150vw; opacity: 0.55; }
}

/* ============================================================
   TRUST BAND (credibility markers — honest, not fake customers)
   ============================================================ */
.trust { border-block: 1px solid var(--color-border); background: var(--color-bg-2); }
.trust__inner { padding-block: var(--space-10); }
.trust__label { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-text-faint); text-align: center; margin-bottom: var(--space-8); }
.trust__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.trust__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-2); padding: var(--space-4); border-radius: var(--radius-lg); }
.trust__item .ic { color: var(--color-accent); }
.trust__item .t { font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); color: var(--color-text); letter-spacing: -0.01em; }
.trust__item .s { font-size: var(--text-xs); color: var(--color-text-muted); font-family: var(--font-mono); letter-spacing: 0.02em; }
@media (max-width: 760px) { .trust__row { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   SECTION HEADINGS (shared)
   ============================================================ */
.sec-head { max-width: 760px; margin-bottom: var(--space-12); }
.sec-head h2 { font-size: var(--text-2xl); margin-top: var(--space-4); letter-spacing: -0.03em; }
.sec-head p { margin-top: var(--space-5); color: var(--color-text-muted); font-size: var(--text-base); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }

/* ============================================================
   ARTIFACT — spectra cert terminal
   ============================================================ */
.terminal {
  border: 1px solid var(--color-border-bright); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--color-surface-2), var(--color-surface));
  box-shadow: var(--shadow-md); overflow: hidden; max-width: 920px; margin-inline: auto; position: relative; z-index: 1;
}
.terminal__bar { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border); background: var(--color-bg-2); }
.terminal__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--color-border-bright); }
.terminal__title { margin-left: var(--space-3); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-faint); }
.terminal__body { padding: var(--space-6); font-family: var(--font-mono); font-size: clamp(0.78rem, 0.7rem + 0.4vw, 0.95rem); line-height: 1.7; overflow-x: auto; }
.terminal__body .prompt { color: var(--color-accent); }
.terminal__body .cmd { color: var(--color-text); }
.terminal__body .dim { color: var(--color-text-faint); }
.terminal__body .key { color: var(--color-violet); }
.terminal__body .val { color: var(--color-text); }
.terminal__body .ok { color: #57d9a3; }
.terminal__body .flag { color: var(--color-blue); }
.terminal__body pre { white-space: pre; }
.artifact__note { display: flex; align-items: center; gap: var(--space-3); justify-content: center; margin-top: var(--space-6); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-faint); letter-spacing: 0.04em; text-align: center; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); border: 1px solid var(--color-border); background: var(--color-surface); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-muted); }
.pill .dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 8px var(--color-accent); }

/* ============================================================
   STAT BAND (honest public-CT scale)
   ============================================================ */
.stats { position: relative; }
.stats__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); position: relative; z-index: 1; }
.stat { text-align: center; }
.stat .n { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: #051226; }
.stat .l { margin-top: var(--space-3); font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: #0a2a4d; font-weight: 600; }
.stat .sub { margin-top: var(--space-2); font-size: var(--text-xs); color: rgba(8,30,60,0.78); }
@media (max-width: 720px) { .stats__row { grid-template-columns: 1fr; gap: var(--space-10); } }

/* ============================================================
   EDITORIAL RESEARCH GRID (CrowdStrike-style article cards)
   ============================================================ */
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.rcard {
  display: flex; flex-direction: column; padding: var(--space-6); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); background: var(--color-surface); position: relative; overflow: hidden;
  transition: border-color var(--transition-interactive), transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.rcard::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--grad-spectral); opacity: 0; transition: opacity var(--transition-interactive); }
.rcard:hover { border-color: var(--color-border-bright); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.rcard:hover::before { opacity: 1; }
.rcard.is-flagship::before { opacity: 1; }
.rcard .cat { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.rcard h3 { font-size: var(--text-lg); margin-top: var(--space-4); line-height: 1.18; font-weight: 600; letter-spacing: -0.02em; }
.rcard p { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-4); flex: 1; }
.rcard .foot { margin-top: var(--space-6); display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.rcard .read { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text); display: inline-flex; align-items: center; gap: var(--space-2); }
.rcard.is-future { opacity: 0.66; }
@media (max-width: 960px) { .research-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .research-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ARTIFACT head row (two-col: copy + terminal handled in flow)
   ============================================================ */
.artifact .sec-head { margin-bottom: var(--space-10); }

/* ============================================================
   STRUCTURE — one lens, many signals (compact list)
   ============================================================ */
.signals { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.signal-card { display: flex; gap: var(--space-5); padding: var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); transition: border-color var(--transition-interactive); }
.signal-card:hover { border-color: var(--color-border-bright); }
.signal-card .num { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-accent); flex: none; padding-top: 2px; }
.signal-card h3 { font-size: var(--text-base); font-weight: 600; letter-spacing: -0.01em; }
.signal-card .role { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-faint); letter-spacing: 0.08em; text-transform: uppercase; margin-left: var(--space-2); }
.signal-card p { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-3); }
.signal-card.is-wedge { border-color: color-mix(in oklab, var(--color-accent) 38%, var(--color-border)); }
.signal-card.is-future { opacity: 0.7; }
@media (max-width: 760px) { .signals { grid-template-columns: 1fr; } }

/* ============================================================
   ABOUT / CREDIBILITY split
   ============================================================ */
.about { background: var(--color-bg-2); border-block: 1px solid var(--color-border); }
.about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; }
.about__copy h2 { font-size: var(--text-2xl); margin-top: var(--space-4); letter-spacing: -0.03em; }
.about__copy p { margin-top: var(--space-5); color: var(--color-text-muted); }
.cred-list { display: grid; gap: var(--space-3); }
.cred-item { padding: var(--space-5) var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.cred-item .left .label { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-faint); letter-spacing: 0.1em; text-transform: uppercase; }
.cred-item .left h3 { font-size: var(--text-base); margin-top: var(--space-2); font-weight: 600; letter-spacing: -0.01em; }
.cred-item .left p { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-1); }
.cred-item a { color: var(--color-accent); font-family: var(--font-mono); font-size: var(--text-xs); white-space: nowrap; }
.cred-item a:hover { text-decoration: underline; }
@media (max-width: 880px) { .about__grid { grid-template-columns: 1fr; } }

/* ============================================================
   END CTA
   ============================================================ */
.endcta { position: relative; overflow: hidden; text-align: center; }
.endcta h2 { font-size: var(--text-2xl); max-width: 20ch; margin-inline: auto; letter-spacing: -0.03em; }
.endcta p { color: var(--color-text-muted); margin: var(--space-5) auto 0; }
.endcta__row { margin-top: var(--space-8); display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--color-border); background: var(--color-bg-2); padding-block: var(--space-12); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); }
.footer__links { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.footer__links a { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-muted); letter-spacing: 0.04em; transition: color var(--transition-interactive); }
.footer__links a:hover { color: var(--color-text); }
.footer__fine { width: 100%; margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--color-border); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-faint); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }

/* ============================================================
   AURORA BAND (bright spectral section -- the light/dark rhythm)
   ============================================================ */
.aurora { position: relative; overflow: hidden; border-block: 1px solid transparent;
  background:
    radial-gradient(60% 120% at 12% 0%, rgba(91,200,255,0.92), transparent 60%),
    radial-gradient(70% 130% at 88% 100%, rgba(162,133,242,0.92), transparent 62%),
    linear-gradient(105deg, #6fb8ff 0%, #6f8eff 45%, #b59cff 100%);
  color: #06101f;
}
.aurora::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
  background-image: radial-gradient(rgba(255,255,255,0.55) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask: radial-gradient(120% 100% at 50% 50%, #000, transparent 78%);
          mask: radial-gradient(120% 100% at 50% 50%, #000, transparent 78%);
}
.aurora .eyebrow { color: #0a2a4d; }
.aurora .eyebrow::before { background: #0a2a4d; }
.aurora h2 { color: #051226; }
.aurora p { color: rgba(8,30,60,0.82); }
.aurora .btn--primary { background: #06101f; color: #eaf4ff; border-color: transparent; }
.aurora .btn--primary:hover { box-shadow: 0 10px 28px rgba(6,16,31,0.35); }
.aurora .btn--ghost { color: #06101f; border-color: rgba(6,16,31,0.4); }
.aurora .btn--ghost:hover { border-color: #06101f; }

/* ============================================================
   PRODUCT VIEW SWITCH -- terminal <-> pipeline diagram
   ============================================================ */
.viewswitch { display: inline-flex; padding: 4px; gap: 2px; margin: 0 auto var(--space-8); border: 1px solid var(--color-border-bright); border-radius: var(--radius-full); background: var(--color-surface); position: relative; z-index: 2; }
.viewswitch__btn { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-5); border-radius: var(--radius-full); font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.04em; color: var(--color-text-muted); transition: color var(--transition-interactive); position: relative; z-index: 1; }
.viewswitch__btn[aria-selected="true"] { color: #04060e; }
.viewswitch__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--radius-full); background: var(--grad-spectral); transition: transform 320ms var(--ease-out); z-index: 0; box-shadow: 0 6px 20px rgba(91,200,255,0.30); }
.viewswitch[data-active="diagram"] .viewswitch__thumb { transform: translateX(100%); }
.switch-center { display: flex; justify-content: center; }

.viewpanel { transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out); }
.viewpanel[hidden] { display: none; }
.viewpanel.is-enter { opacity: 0; transform: translateY(10px) scale(0.99); }

/* ---------- dotted pipeline diagram (brand dot motif) ---------- */
.pipeline { max-width: 920px; margin-inline: auto; border: 1px solid var(--color-border-bright); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--color-surface-2), var(--color-surface)); box-shadow: var(--shadow-md); padding: clamp(var(--space-6), 4vw, var(--space-12)); position: relative; overflow: hidden; }
.pipeline::before { content:""; position:absolute; inset:0; pointer-events:none; opacity:0.5; background-image: radial-gradient(var(--line-color) 1px, transparent 1.4px); background-size: 20px 20px; -webkit-mask: radial-gradient(120% 90% at 50% 0%, #000, transparent 80%); mask: radial-gradient(120% 90% at 50% 0%, #000, transparent 80%); }
.pipeline__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); position: relative; z-index: 1; }
.pnode { text-align: center; padding: var(--space-5) var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg-2); }
.pnode .ic { color: var(--color-accent); margin-bottom: var(--space-3); display: inline-flex; }
.pnode .ti { font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); letter-spacing: -0.01em; }
.pnode .de { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-1); font-family: var(--font-mono); }
.pipeline__band { position: relative; z-index: 1; margin: var(--space-5) 0; padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); text-align: center; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; }
.pipeline__band.b1 { background: color-mix(in oklab, var(--color-accent) 16%, var(--color-surface)); border: 1px solid color-mix(in oklab, var(--color-accent) 40%, var(--color-border)); color: var(--color-text); }
.pipeline__band.b2 { background: var(--grad-spectral); color: #04060e; font-weight: 600; box-shadow: 0 8px 26px rgba(91,200,255,0.22); }
.pipeline__dots { display: flex; justify-content: center; gap: 6px; padding: var(--space-2) 0; position: relative; z-index: 1; }
.pipeline__dots span { width: 4px; height: 4px; border-radius: 50%; background: var(--color-accent); opacity: 0.35; animation: dotFlow 1.6s ease-in-out infinite; }
.pipeline__dots span:nth-child(2){ animation-delay: .2s } .pipeline__dots span:nth-child(3){ animation-delay: .4s } .pipeline__dots span:nth-child(4){ animation-delay: .6s } .pipeline__dots span:nth-child(5){ animation-delay: .8s }
@keyframes dotFlow { 0%,100%{ opacity:0.2; transform: translateY(0) } 50%{ opacity:1; transform: translateY(2px) } }
@media (prefers-reduced-motion: reduce){ .pipeline__dots span { animation: none; opacity:0.5 } }
.pipeline__cap { text-align: center; margin-top: var(--space-5); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-faint); }
@media (max-width: 620px){ .pipeline__row { grid-template-columns: 1fr; gap: var(--space-3); } }
