/* ============================================================
   Sterira — instrument-grade cleanroom design system (FLAT)
   Pure CSS. OKLCH throughout. NO shadows, NO gradients.
   Depth is expressed with borders, solid fills, and rules.
   ============================================================ */

:root {
  /* Color — Committed strategy: sterile ultramarine carries the brand */
  --bg: oklch(0.981 0.006 236);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.963 0.008 236);
  --surface-3: oklch(0.945 0.01 238);
  --ink: oklch(0.23 0.035 258);
  --ink-muted: oklch(0.44 0.03 255);
  --line: oklch(0.9 0.012 236);
  --line-strong: oklch(0.82 0.018 240);

  --primary: oklch(0.52 0.17 258);
  --primary-strong: oklch(0.45 0.17 260);
  --primary-tint: oklch(0.52 0.17 258 / 0.07);
  --airflow: oklch(0.72 0.14 226);
  --sterile: oklch(0.58 0.13 158);
  --alert: oklch(0.6 0.17 30);

  --deep: oklch(0.22 0.045 258);
  --deep-2: oklch(0.27 0.05 258);
  --deep-line: oklch(0.42 0.05 250 / 0.45);
  --ink-inv: oklch(0.97 0.01 236);
  --ink-inv-muted: oklch(0.78 0.03 240);

  /* Type — Google font pairing: Space Grotesk (display) + Inter (body) + JetBrains Mono (data) */
  --font-sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Archivo", "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --section-y: clamp(4rem, 8vw, 7rem);
  --radius: 14px;
  --radius-sm: 9px;
  --radius-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  /* Z-index scale (semantic) */
  --z-base: 1;
  --z-dropdown: 300;
  --z-sticky: 100;
  --z-nav: 200;
  --z-modal: 400;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: var(--wrap-narrow); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: var(--z-modal);
  background: var(--primary); color: #fff; padding: 0.6rem 1rem;
  border-radius: var(--radius-sm); transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2.5px solid var(--primary); outline-offset: 2px; border-radius: 3px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 700; }
h3 { font-size: clamp(1.12rem, 1.8vw, 1.4rem); letter-spacing: -0.015em; }
h4 { font-size: 1.02rem; }
p { text-wrap: pretty; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-muted); max-width: 62ch; line-height: 1.55; }

.eyebrow, .kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary);
  display: inline-flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}
/* Kickers read as a deliberate instrument-panel label system: a short rule, then the label. */
.kicker::before {
  content: ""; width: 1.7rem; height: 1px; background: currentColor; opacity: 0.55;
}
.section-head.center .kicker { justify-content: center; }
.section { padding-block: var(--section-y); }
.section-head { max-width: 56ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 0.9rem; }
.section-head p { color: var(--ink-muted); font-size: 1.08rem; }
.section-alt { background: var(--bg); border-block: 1px solid var(--line); }
.section-deep { background: var(--bg); color: var(--ink); border-block: 1px solid var(--line); }
.section-deep h2, .section-deep h3 { color: var(--ink); }
.section-deep p { color: var(--ink-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 500; font-size: 0.95rem; letter-spacing: -0.01em;
  padding: 0.7rem 1.25rem; border-radius: var(--radius-pill);
  border: 1px solid transparent; white-space: nowrap;
  transition: background 0.22s var(--ease-out), color 0.22s var(--ease-out),
              border-color 0.22s var(--ease-out), transform 0.22s var(--ease-out);
}
.btn-lg { padding: 0.9rem 1.6rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-solid { background: var(--primary); color: #fff; }
.btn-solid:hover { background: var(--primary-strong); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-tint); }
.btn-inv { background: var(--primary); color: #fff; }
.btn-inv:hover { transform: translateY(-2px); background: var(--primary-strong); }
.btn-inv-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-inv-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-tint); }
.btn .arw { transition: transform 0.25s var(--ease-out); }
.btn:hover .arw { transform: translateX(4px); }
.link-arrow { color: var(--primary); font-weight: 500; display: inline-flex; align-items: center; gap: 0.4rem; }
.link-arrow .arw { transition: transform 0.25s var(--ease-out); }
.link-arrow:hover .arw { transform: translateX(4px); }

/* ---------- Brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-glyph { width: 30px; height: 30px; }
.brand-glyph .g-ring { fill: none; stroke: var(--primary); stroke-width: 1.5; opacity: 0.55; }
.brand-glyph .g-flow { fill: none; stroke: var(--primary); stroke-width: 1.5; stroke-linecap: round; }
.brand-glyph .g-core { fill: var(--airflow); }
.brand-word { font-weight: 600; letter-spacing: 0.16em; font-size: 1.02rem; }

/* ---------- Chips / tags ---------- */
.chip {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  padding: 0.42rem 0.85rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); color: var(--ink); background: var(--surface);
}
.tag {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--primary); background: var(--primary-tint);
  border: 1px solid oklch(0.52 0.17 258 / 0.2); border-radius: var(--radius-sm);
  padding: 0.28rem 0.55rem; text-transform: uppercase;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sterile); box-shadow: none; position: relative; }
.pulse-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--sterile); opacity: 0; animation: pulse-ring 2.4s var(--ease-out) infinite;
}
@keyframes pulse-ring { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }

/* ============================================================
   HEADER + MEGA NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: var(--bg); border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.25rem; height: 66px; }
.header-inner > .brand { justify-self: start; }
.nav { display: flex; align-items: center; justify-content: center; gap: clamp(0.5rem, 1.5vw, 1.6rem); justify-self: center; }
.header-cta { justify-self: end; }
.nav-item { position: relative; }
.nav-link {
  font-size: 0.94rem; color: var(--ink-muted); font-weight: 450;
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.5rem 0.3rem;
  background: none; border: 0; transition: color 0.2s var(--ease-out);
}
.nav-link:hover, .nav-item:hover .nav-link, .nav-link[aria-expanded="true"] { color: var(--ink); }
.nav-link .caret { width: 9px; height: 9px; transition: transform 0.25s var(--ease-out); }
.nav-item:hover .caret, .nav-link[aria-expanded="true"] .caret { transform: rotate(180deg); }
.nav-link.active { color: var(--primary); }

/* Dropdown panel */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 300px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.6rem; z-index: var(--z-dropdown);
  opacity: 0; visibility: hidden; transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.dropdown.wide { min-width: 520px; display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dd-link { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.6rem 0.7rem; border-radius: var(--radius-sm); transition: background 0.18s var(--ease-out); }
.dd-link:hover { background: var(--surface-2); }
.dd-ic { flex-shrink: 0; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--primary); background: var(--surface); }
.dd-ic svg { width: 18px; height: 18px; }
.dd-t { font-weight: 500; font-size: 0.92rem; color: var(--ink); }
.dd-d { font-size: 0.8rem; color: var(--ink-muted); line-height: 1.4; margin-top: 0.1rem; }

.header-cta { display: flex; align-items: center; gap: 0.5rem; }
.header-cta .btn-ghost { border-color: transparent; padding-inline: 0.9rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease-out), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; padding: 0.5rem var(--gutter) 1.75rem; border-bottom: 1px solid var(--line); background: var(--bg); max-height: calc(100vh - 66px); overflow-y: auto; }
.mobile-nav.open { display: block; }
.m-group { border-bottom: 1px solid var(--line); }
.m-group > button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 0; font-size: 1.05rem; color: var(--ink); background: none; border: 0; }
.m-group > button .caret { width: 11px; transition: transform 0.25s var(--ease-out); }
.m-group.open > button .caret { transform: rotate(180deg); }
.m-sub { display: none; padding-bottom: 0.6rem; }
.m-group.open .m-sub { display: block; }
.m-sub a { display: block; padding: 0.5rem 0 0.5rem 0.9rem; color: var(--ink-muted); font-size: 0.98rem; }
.mobile-nav > a { display: block; padding: 0.9rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 1.1rem; border: 0; width: 100%; }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3.5rem); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-muted); margin-bottom: 1.4rem; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: 0.5; }
.page-hero h1 { max-width: 18ch; margin-bottom: 1.1rem; }
.page-hero .lead { margin-bottom: 1.8rem; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.page-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }

/* ============================================================
   HOME HERO
   ============================================================ */
.hero { position: relative; padding-block: clamp(2.75rem, 6vw, 5.5rem) clamp(3rem, 5vw, 5rem); overflow: hidden; }
.hero-accent { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-accent .ha-panel { display: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero-copy .eyebrow { margin-bottom: 1.5rem; }
.hero-copy h1 { margin-bottom: 1.4rem; }
.hero-copy .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.2rem; }
.hero-mini { display: flex; flex-wrap: wrap; gap: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero-mini dt { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.3rem; }
.hero-mini dd { font-size: 0.92rem; font-weight: 500; }

/* Instrument scene (flat, bordered) */
.hero-scene { position: relative; }
.hero-scene .airflow-canvas { position: absolute; inset: -6% -4%; width: 108%; height: 112%; z-index: 0; opacity: 0.7; }
.scene-frame { position: relative; z-index: 1; background: var(--deep); border: 1px solid var(--deep-2); border-radius: var(--radius); padding: 1.1rem 1.1rem 1.25rem; color: var(--ink-inv); }
.scene-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.scene-tag, .scene-live { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.08em; color: var(--ink-inv-muted); }
.scene-live { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--airflow); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sterile); animation: blink 1.6s var(--ease-out) infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.isolator { width: 100%; height: auto; margin: 0.2rem 0 0.85rem; background: oklch(0.19 0.04 258); border-radius: var(--radius-sm); }
.isolator .laminar line { stroke: var(--airflow); stroke-width: 1; opacity: 0.16; stroke-dasharray: 4 7; }
.isolator .laminar { animation: flow 3.5s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -22; } }
.isolator .deck { stroke: var(--deep-line); stroke-width: 2; }
.isolator .vial rect:first-child { fill: oklch(0.34 0.04 250 / 0.5); stroke: var(--airflow); stroke-width: 0.7; opacity: 0.9; }
.isolator .v-liq { fill: var(--airflow); opacity: 0.9; }
.isolator .vial.filling .nozzle { stroke: var(--airflow); stroke-width: 2; stroke-linecap: round; animation: fillpulse 1.8s var(--ease-out) infinite; }
@keyframes fillpulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
.isolator .vial.reject rect:first-child { stroke: var(--alert); }
.isolator .vial.reject .v-liq { fill: var(--alert); }
.scene-readout { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; }
.ro { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--deep-line); padding-top: 0.45rem; }
.ro-k { font-size: 0.72rem; color: var(--ink-inv-muted); }
.ro-v { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 500; color: var(--ink-inv); }
.ro-v.ok { color: var(--airflow); }

/* ============================================================
   STAT / TELEMETRY BAND
   ============================================================ */
.telemetry { background: var(--bg); color: var(--ink); border-block: 1px solid var(--line); }
.telemetry-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.telem { position: relative; padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1rem, 2vw, 1.8rem); border-left: 1px solid var(--line); }
.telem:first-child { border-left: 0; padding-left: 0; }
.telem-v { display: block; font-family: var(--font-mono); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.telem-k { display: block; font-size: 0.86rem; color: var(--ink-muted); margin-top: 0.35rem; line-height: 1.4; }

/* Light stat grid (bordered cells) */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.stat-cell { padding: clamp(1.4rem, 2.5vw, 2rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-num { font-family: var(--font-mono); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; letter-spacing: -0.02em; color: var(--primary); display: block; }
.stat-label { font-size: 0.92rem; color: var(--ink-muted); margin-top: 0.4rem; }

/* Stakes readout: an instrument ledger of the stakes, deliberately NOT a metric-card grid */
.stakes { display: flex; flex-direction: column; }
.stake { display: grid; grid-template-columns: minmax(4.5rem, auto) 1fr; gap: clamp(1rem, 2vw, 1.6rem); align-items: baseline; padding: clamp(1rem, 2vw, 1.35rem) 0; border-top: 1px solid var(--line); }
.stake:last-child { border-bottom: 1px solid var(--line); }
.stake dt { font-family: var(--font-mono); font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.02em; color: var(--primary); }
.stake dd { color: var(--ink); font-size: 1rem; line-height: 1.5; margin: 0; }

/* ============================================================
   FEATURE SPLIT
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.split.reverse .split-media { order: -1; }
.split-copy .kicker { margin-bottom: 1rem; }
.split-copy h2 { margin-bottom: 1rem; }
.split-copy .lead { margin-bottom: 1.5rem; }
.split-points { display: grid; gap: 0.85rem; margin-top: 1.2rem; }
.split-points li { position: relative; padding-left: 1.7rem; color: var(--ink-muted); }
.split-points li::before { content: ""; position: absolute; left: 0; top: 0.5rem; width: 9px; height: 9px; border: 2px solid var(--primary); border-radius: 50%; }

/* Flat instrument panel used as media */
.panel { background: var(--deep); border: 1px solid var(--deep-2); border-radius: var(--radius); padding: 1.2rem; color: var(--ink-inv); }
.panel-top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--ink-inv-muted); margin-bottom: 0.8rem; }
.panel-ok { color: var(--airflow); }
.panel-chart { width: 100%; height: auto; background: oklch(0.19 0.04 258); border-radius: var(--radius-sm); padding: 0.5rem; }
.panel-chart .grid-lines line { stroke: var(--deep-line); stroke-width: 1; }
.panel-chart .c-target { fill: none; stroke: var(--ink-inv-muted); stroke-width: 1.5; stroke-dasharray: 5 5; opacity: 0.55; }
.panel-chart .c-run { fill: none; stroke: var(--airflow); stroke-width: 2.5; stroke-linecap: round; }
.panel-chart .c-band { fill: color-mix(in oklch, var(--airflow) 13%, transparent); stroke: none; }
.panel-chart .c-dots circle { fill: var(--airflow); }
.panel-legend { display: flex; gap: 1.4rem; margin-top: 0.8rem; font-size: 0.76rem; color: var(--ink-inv-muted); }
.panel-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.panel-legend i { width: 16px; height: 2px; display: inline-block; border-radius: 2px; }
.lg-target { background: var(--ink-inv-muted); opacity: 0.6; }
.lg-run { background: var(--airflow); }
.lg-band { background: color-mix(in oklch, var(--airflow) 40%, var(--bg)); }
.telem-v.mono-ok { color: var(--primary); }

/* Flat surface visual (for product pages) */
.surface-visual { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 2.5vw, 2rem); }
.surface-visual .sv-svg { width: 100%; height: auto; }

/* ============================================================
   CARD GRIDS (bordered, flat — varied, not identical)
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 2.5vw, 2rem); transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out); }
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card-ic { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--primary); margin-bottom: 1.1rem; }
.card-ic svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 0.55rem; }
.card p { color: var(--ink-muted); font-size: 0.96rem; }
.card .link-arrow { margin-top: 1rem; font-size: 0.9rem; }
.card-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--primary); display: block; margin-bottom: 0.9rem; }
.card-tick { display: block; width: 1.9rem; height: 2px; background: var(--primary); border-radius: 2px; margin-bottom: 1.1rem; transition: width 0.3s var(--ease-out); }
.card:hover .card-tick { width: 2.8rem; }
.product-page .card-tick { background: var(--brand); }

/* Feature list rows (alternative to cards) */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 0.4fr 1fr 0.5fr; gap: 1.5rem; align-items: start; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.row-k { font-family: var(--font-mono); font-size: 0.8rem; color: var(--primary); }
.row h3 { margin-bottom: 0.4rem; }
.row p { color: var(--ink-muted); font-size: 0.96rem; }
.row-meta { font-size: 0.85rem; color: var(--ink-muted); text-align: right; }

/* ============================================================
   PROCESS / TIMELINE (legit ordered sequence)
   ============================================================ */
.steps { display: flex; align-items: stretch; gap: 0.5rem; flex-wrap: wrap; }
.step { flex: 1 1 200px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.step-no { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); display: block; margin-bottom: 0.9rem; }
.step h3 { margin-bottom: 0.55rem; }
.step p { color: var(--ink-muted); font-size: 0.94rem; }
.step-arrow { flex: 0 0 auto; display: flex; align-items: center; color: var(--line-strong); font-size: 1.4rem; }

.timeline { border-left: 1px solid var(--line-strong); margin-left: 0.5rem; }
.tl-item { position: relative; padding: 0 0 2rem 2rem; }
.tl-item::before { content: ""; position: absolute; left: -6px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--primary); }
.tl-year { font-family: var(--font-mono); font-size: 0.8rem; color: var(--primary); }
.tl-item h3 { margin: 0.3rem 0 0.4rem; }
.tl-item p { color: var(--ink-muted); font-size: 0.96rem; max-width: 60ch; }

/* ============================================================
   TABS / STAGE SELECTOR
   ============================================================ */
.line-schematic { display: grid; grid-template-columns: minmax(220px, 0.85fr) 1.4fr; gap: clamp(1.5rem, 3vw, 2.5rem); }
.stage-track { display: flex; flex-direction: column; gap: 0.3rem; }
.stage-track button { width: 100%; display: flex; align-items: center; gap: 0.9rem; background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 0.8rem 0.9rem; text-align: left; color: var(--ink-muted); transition: background 0.22s var(--ease-out), color 0.22s var(--ease-out), border-color 0.22s var(--ease-out); }
.stage-track button:hover { background: var(--surface); color: var(--ink); }
.stage-track button[aria-selected="true"] { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.stage-track button[aria-selected="true"] .st-no { color: var(--primary); }
.st-no { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; color: var(--line-strong); }
.st-name { font-weight: 500; font-size: 0.98rem; }
.stage-panel { display: grid; grid-template-columns: 190px 1fr; gap: clamp(1.3rem, 2.5vw, 2.2rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 2.5vw, 2.2rem); align-content: start; }
.stage-media { background: var(--deep); border: 1px solid var(--deep-2); border-radius: var(--radius-sm); padding: 1.1rem; display: flex; flex-direction: column; justify-content: space-between; min-height: 180px; }
.stage-agent-id { font-family: var(--font-mono); font-size: 0.68rem; color: var(--airflow); letter-spacing: 0.04em; }
.stage-icon { width: 100%; height: auto; margin-top: auto; color: var(--airflow); }
.stage-info h3 { margin-bottom: 0.7rem; }
.stage-info > p { color: var(--ink-muted); font-size: 1rem; margin-bottom: 1.4rem; max-width: 50ch; }
.stage-metrics { display: grid; gap: 0.6rem; }
.stage-metrics li { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.6rem; border-top: 1px solid var(--line); font-size: 0.9rem; }
.sm-k { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); }
.sm-v { font-weight: 500; text-align: right; }
.stage-panel.swap { animation: swapIn 0.4s var(--ease-out); }
@keyframes swapIn { from { opacity: 0.3; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--surface); }
table.cmp th, table.cmp td { padding: 0.95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
table.cmp thead th { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); font-weight: 500; background: var(--surface-2); }
table.cmp tbody th { font-weight: 500; color: var(--ink); }
table.cmp td.yes { color: var(--sterile); font-weight: 500; }
table.cmp td.no { color: var(--ink-muted); }
table.cmp tr:last-child td, table.cmp tr:last-child th { border-bottom: 0; }
table.cmp .col-primary { color: var(--primary); }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq { border-top: 1px solid var(--line); max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem 0; background: none; border: 0; text-align: left; font-size: 1.05rem; font-weight: 500; color: var(--ink); }
.faq-q .fq-ic { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq-q .fq-ic::before, .faq-q .fq-ic::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; background: var(--primary); transform: translate(-50%, -50%); transition: transform 0.25s var(--ease-out); }
.faq-q .fq-ic::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .fq-ic::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease-out); }
.faq-item.open .faq-a { max-height: 1200px; }
.faq-a p { color: var(--ink-muted); padding-bottom: 1.3rem; max-width: 68ch; }

/* ============================================================
   QUOTE / TESTIMONIAL
   ============================================================ */
.quote { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.8rem, 3vw, 2.6rem); background: var(--surface); }
.quote blockquote { font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.4; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 1.4rem; text-wrap: balance; }
.quote-by { display: flex; align-items: center; gap: 0.8rem; }
.quote-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; color: var(--primary); }
.quote-name { font-weight: 500; }
.quote-role { font-size: 0.85rem; color: var(--ink-muted); }

/* ============================================================
   LOGO / SPEC WALL
   ============================================================ */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.logo-cell { padding: 1.5rem; display: grid; place-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.04em; color: var(--ink-muted); text-align: center; }

/* ============================================================
   PRICING TIERS
   ============================================================ */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; align-items: stretch; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 2.5vw, 2.1rem); display: flex; flex-direction: column; transition: border-color 0.28s var(--ease-out), transform 0.28s var(--ease-out); }
.tier:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.tier-featured { border-color: var(--primary); border-width: 1.5px; position: relative; }
.tier-badge { position: absolute; top: -0.7rem; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; background: var(--primary); color: #fff; padding: 0.3rem 0.8rem; border-radius: var(--radius-pill); }
.tier-name { font-size: 1.05rem; letter-spacing: 0.02em; margin-bottom: 0.7rem; }
.tier-price { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 1rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.tp-num { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; }
.tp-per { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-muted); }
.tier-desc { color: var(--ink-muted); font-size: 0.96rem; margin-bottom: 1.3rem; }
.tier-feats { display: grid; gap: 0.7rem; margin-bottom: 1.6rem; }
.tier-feats li { position: relative; padding-left: 1.6rem; font-size: 0.94rem; }
.tier-feats li::before { content: ""; position: absolute; left: 0; top: 0.35rem; width: 12px; height: 7px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.tier .btn { margin-top: auto; }

/* ============================================================
   TEAM GRID
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; }
.member { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: var(--surface); }
.member-avatar { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; color: var(--primary); margin-bottom: 1rem; }
.member h3 { font-size: 1.05rem; }
.member .role { font-size: 0.85rem; color: var(--primary); font-family: var(--font-mono); margin: 0.2rem 0 0.7rem; }
.member p { font-size: 0.9rem; color: var(--ink-muted); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta { position: relative; overflow: hidden; background: var(--bg); color: var(--ink); border-top: 1px solid var(--line); }
.cta-inner { position: relative; padding-block: clamp(3.5rem, 7vw, 6rem); }
.cta .airflow-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.25; }
.cta-content { position: relative; z-index: 1; max-width: 46ch; }
.cta-content h2 { color: var(--ink); margin-bottom: 1rem; }
.cta-content > p { color: var(--ink-muted); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-form { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cta-form input { flex: 1 1 260px; padding: 0.9rem 1.1rem; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 1rem; font-family: var(--font-sans); }
.cta-form input::placeholder { color: var(--ink-muted); }
.cta-form input:focus-visible { outline-color: var(--primary); border-color: var(--primary); }
.cta-fine { font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea { padding: 0.8rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font: inherit; font-size: 0.95rem; color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--primary); outline-offset: 0; }

/* ============================================================
   MISC
   ============================================================ */
.prose { max-width: 68ch; }
.prose p { color: var(--ink-muted); margin-bottom: 1.1rem; }
.prose h2 { margin: 2rem 0 0.9rem; }
.prose h3 { margin: 1.6rem 0 0.6rem; }
.prose ul { display: grid; gap: 0.6rem; margin-bottom: 1.1rem; }
.prose ul li { position: relative; padding-left: 1.5rem; color: var(--ink-muted); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.6rem; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.divider { border: 0; border-top: 1px solid var(--line); }
.center { text-align: center; }
.mt-cta { margin-top: 2.5rem; }
.two-col-list { columns: 2; column-gap: 2rem; }
.two-col-list li { break-inside: avoid; padding: 0.5rem 0 0.5rem 1.5rem; position: relative; color: var(--ink-muted); }
.two-col-list li::before { content: ""; position: absolute; left: 0; top: 0.95rem; width: 8px; height: 8px; border: 2px solid var(--primary); border-radius: 50%; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding-top: clamp(3rem, 5vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; padding-bottom: 3rem; }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-tag { color: var(--ink-muted); font-size: 0.95rem; max-width: 32ch; margin-bottom: 0.8rem; }
.footer-mono { font-family: var(--font-mono); font-size: 0.82rem; color: var(--primary); }
.footer-col h4 { font-size: 0.72rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); margin-bottom: 1.1rem; font-weight: 500; }
.footer-col a { display: block; font-size: 0.92rem; color: var(--ink); padding: 0.35rem 0; transition: color 0.2s var(--ease-out); }
.footer-col a:hover { color: var(--primary); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-muted); }
.footer-base nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-base nav a:hover { color: var(--primary); }

/* ============================================================
   PAGE-SPECIFIC COMPONENTS
   ============================================================ */
.page-hero-center { text-align: center; }
.page-hero-center .breadcrumb { justify-content: center; }
.page-hero-center .eyebrow { justify-content: center; }
.page-hero-center h1 { max-width: 22ch; margin-inline: auto; }
.page-hero-center .lead { max-width: 68ch; margin-inline: auto; }

.ha-quote { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); padding: clamp(2rem, 4vw, 3rem); display: flex; flex-direction: column; gap: 1rem; }
.surface-visual > .ha-quote { border: none; background: none; padding: clamp(1rem, 2vw, 1.6rem) 0; }
.ha-quote-text { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
.ha-quote-by { font-family: var(--font-mono); font-size: 0.82rem; color: var(--primary); }

.card-tag { display: inline-block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: 0.2rem 0.7rem; margin-bottom: 0.9rem; }

.row-link { color: var(--primary); text-align: right; font-size: 0.85rem; font-weight: 500; white-space: nowrap; transition: color 0.2s var(--ease-out); }
.row-link:hover { color: var(--ink); }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.contact-form-col h2 { margin-bottom: 0.4rem; }
.contact-sub { color: var(--ink-muted); margin-bottom: 1.8rem; }
.contact-form-col form .btn { margin-top: 1.5rem; }
.form-fine { font-size: 0.8rem; color: var(--ink-muted); margin-top: 1rem; max-width: 52ch; }
.contact-info-col { display: grid; gap: 1.2rem; }
.info-block { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 1.5rem; }
.info-block h3 { font-size: 1.02rem; margin-bottom: 1rem; }
.info-list { display: grid; gap: 0.9rem; }
.info-list li { display: flex; flex-direction: column; gap: 0.15rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.info-k { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); }
.info-v { font-weight: 500; color: var(--primary); }
.info-check { display: grid; gap: 0.7rem; }
.info-check li { position: relative; padding-left: 1.6rem; font-size: 0.94rem; color: var(--ink-muted); }
.info-check li::before { content: ""; position: absolute; left: 0; top: 0.35rem; width: 12px; height: 7px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
[data-reveal] { opacity: 1; }
.reveal-on [data-reveal] { opacity: 0; transform: translateY(18px); }
.reveal-on [data-reveal].in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .hero-scene { max-width: 520px; }
  .hero-accent { display: none; }
  .telemetry-bar { grid-template-columns: repeat(2, 1fr); }
  .telem { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); }
  .telem:first-child, .telem:nth-child(2) { border-top: 0; }
  .split, .split.reverse .split-media { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .line-schematic { grid-template-columns: 1fr; }
  .stage-track { flex-direction: row; overflow-x: auto; padding-bottom: 0.4rem; }
  .stage-track button { min-width: 150px; }
  .tiers { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .step-arrow { display: none; }
  .step { flex-basis: 100%; }
  .row { grid-template-columns: 1fr; gap: 0.4rem; }
  .row-meta { text-align: left; }
  .row-link { text-align: left; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .header-inner { display: flex; justify-content: space-between; }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .stage-panel { grid-template-columns: 1fr; }
  .stage-media { min-height: 130px; flex-direction: row; align-items: center; }
  .stage-icon { width: 56px; margin: 0 0 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .two-col-list { columns: 1; }
}
@media (max-width: 480px) {
  .telemetry-bar { grid-template-columns: 1fr; }
  .telem { border-top: 1px solid var(--line); }
  .telem:first-child { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .page-hero-actions .btn { flex: 1 1 100%; }
  .stat-cell { border-right: 0; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   PRODUCTS — dropdown logos, homepage showcase, product pages
   ============================================================ */

/* Product dropdown logo tiles */
.product-dd .dd-link { align-items: center; }
.dd-logo {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; position: relative; overflow: hidden;
  transition: border-color 0.2s var(--ease-out), transform 0.3s var(--ease-out);
}
.dd-logo::before {
  content: ""; position: absolute; inset: 0;
  background: var(--brand, var(--primary)); opacity: 0.07;
}
.dd-logo img { width: 24px; height: 24px; position: relative; }
.product-dd .dd-link:hover .dd-logo { border-color: var(--brand, var(--primary)); transform: scale(1.06); }

/* Homepage product showcase */
.product-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.product-card {
  --brand: var(--primary);
  position: relative; display: block; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.4rem; overflow: hidden;
  transition: border-color 0.25s var(--ease-out), transform 0.35s var(--ease-out);
}
.product-card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brand); transform: scaleY(0); transform-origin: top;
  transition: transform 0.35s var(--ease-out);
}
.product-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.product-card:hover::after { transform: scaleY(1); }
.pc-top { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1rem; }
.pc-logo {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-2);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.pc-logo::before { content: ""; position: absolute; inset: 0; background: var(--brand); opacity: 0.08; }
.pc-logo img { width: 30px; height: 30px; position: relative; transition: transform 0.5s var(--ease-out); }
.product-card:hover .pc-logo img { transform: rotate(-6deg) scale(1.05); }
.pc-name { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.01em; }
.pc-role { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.product-card p { color: var(--ink-muted); font-size: 0.96rem; line-height: 1.55; }
.pc-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.1rem; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.03em; color: var(--brand); }
.product-card:hover .pc-link .arw { transform: translateX(4px); }
.pc-link .arw { transition: transform 0.25s var(--ease-out); }

/* ---------- Product page (branded, uses --brand) ---------- */
.product-page { --brand: var(--primary); }
.product-hero {
  position: relative; overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.product-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--bg);
  pointer-events: none;
}
.product-hero .wrap { position: relative; z-index: 1; }
.ph-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.ph-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brand);
  border: 1px solid color-mix(in oklab, var(--brand) 35%, var(--line));
  background: color-mix(in oklab, var(--brand) 6%, var(--surface));
  padding: 0.4rem 0.8rem; border-radius: var(--radius-pill);
}
.ph-name { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.035em; margin: 1.1rem 0 0.6rem; }
.ph-tagline { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem, 2.2vw, 1.6rem); color: var(--brand); letter-spacing: -0.01em; }
.ph-lead { margin-top: 1.2rem; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.product-page .btn-solid { background: var(--brand); border-color: var(--brand); }
.product-page .btn-solid:hover { background: color-mix(in oklab, var(--brand) 82%, black); }
.product-page .btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.product-page .kicker, .product-page .eyebrow { color: var(--brand); }
.product-page .link-arrow { color: var(--brand); }

/* Hero logo medallion */
.ph-medallion {
  position: relative; aspect-ratio: 1; max-width: 340px; margin-inline: auto; width: 100%;
  border: 1px solid var(--line); border-radius: 22px; background: var(--surface);
  display: grid; place-items: center; overflow: hidden;
}
.ph-medallion::before {
  content: ""; position: absolute; inset: 0; background: var(--brand); opacity: 0.05;
}
.ph-medallion .ring {
  position: absolute; border: 1px solid color-mix(in oklab, var(--brand) 45%, transparent);
  border-radius: 50%; inset: 12%; opacity: 0.5;
  animation: ringspin 26s linear infinite;
}
.ph-medallion .ring.r2 { inset: 26%; border-style: dashed; animation-duration: 18s; animation-direction: reverse; opacity: 0.7; }
.ph-medallion .ring.r3 { inset: 40%; opacity: 0.9; }
@keyframes ringspin { to { transform: rotate(360deg); } }
.ph-medallion img { position: relative; width: 46%; height: 46%; animation: floatlogo 6s ease-in-out infinite; }
@keyframes floatlogo { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(6px); } }
.ph-medallion .tick { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: 0.8; }
.ph-medallion .tick.t1 { top: 10%; left: 50%; }
.ph-medallion .tick.t2 { top: 50%; right: 10%; }
.ph-medallion .tick.t3 { bottom: 10%; left: 50%; }
.ph-medallion .tick.t4 { top: 50%; left: 10%; }

/* Feature lists on product pages: an instrument ledger, not an identical card grid */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(1.5rem, 3vw, 3rem); }
.feat {
  border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent;
  padding: 1.3rem 0.1rem 1.4rem; position: relative;
  transition: border-color 0.3s var(--ease-out);
}
.feat:hover { border-top-color: var(--brand); transform: none; }
.feat-no { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--brand); opacity: 0.85; }
.feat p { margin-top: 0.55rem; color: var(--ink); font-size: 1rem; line-height: 1.55; }

/* Ecosystem strip */
.eco-strip { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.eco-chip {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.8rem 0.45rem 0.5rem;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface);
  font-size: 0.85rem; color: var(--ink); transition: border-color 0.2s var(--ease-out); transition: transform .25s var(--ease-out), border-color .2s var(--ease-out);
}
.eco-chip:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.eco-chip img { width: 20px; height: 20px; }

/* Stacked prose blocks on product pages */
.product-page .split-media > p + p { margin-top: 1rem; color: var(--ink-muted); }
.product-page .split-media > .lead { margin-bottom: 0; }

/* Spec rows */
.spec-list { border-top: 1px solid var(--line); }
.spec-row { display: grid; grid-template-columns: 0.9fr 2fr; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.spec-k { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.spec-v { color: var(--ink); }

/* Enhanced reveal: soft blur + directional */
.reveal-on [data-reveal] { filter: blur(4px); }
.reveal-on [data-reveal].in { filter: blur(0); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), filter 0.7s var(--ease-out); }

@media (max-width: 900px) {
  .product-wall { grid-template-columns: repeat(2, 1fr); }
  .ph-grid { grid-template-columns: 1fr; }
  .ph-medallion { grid-row: 1; max-width: 260px; }
}
@media (max-width: 620px) {
  .product-wall { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 1fr; gap: 0.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-medallion .ring, .ph-medallion img { animation: none; }
  .reveal-on [data-reveal] { filter: none !important; }
}

/* ============================================================
   ENHANCEMENT PASS — instrument detailing, interaction states,
   header refinement. Additive; respects the flat cleanroom system
   (no shadows, no gradients as decoration). Grids below live only
   on genuine readout instruments, per the design system.
   ============================================================ */

/* --- Calibration grid on the dark readout instruments --- */
/* These surfaces are literal measurement readouts (isolator deck, lyo
   scope, agent scope), so a faint calibration grid reads as instrument
   life, not decoration. Kept very low-contrast in airflow cyan. */
.isolator,
.panel-chart {
  background-color: oklch(0.19 0.04 258);
  background-image: none;
  background-size: 26px 26px;
  background-position: -1px -1px;
}
.stage-media {
  background-image: none;
  background-size: 22px 22px;
  background-position: -1px -1px;
}

/* A slow sweep line gives the live readouts a heartbeat without motion cost. */
.scene-frame,
.panel { position: relative; }
.scene-frame::after,
.panel::after {
  content: ""; position: absolute; left: 1px; right: 1px; top: 0; height: 2px;
  background: none;
  border-radius: 2px; pointer-events: none;
  animation: instrument-sweep 5.5s var(--ease-out-quart) infinite;
}
@keyframes instrument-sweep {
  0% { top: 0; opacity: 0; }
  8% { opacity: 0.7; }
  92% { opacity: 0.7; }
  100% { top: calc(100% - 2px); opacity: 0; }
}

/* --- Unified interaction states --- */
/* Tactile press feedback on the buttons and interactive cards. */
.btn:active { transform: translateY(0) scale(0.985); }
.card:active,
.product-card:active,
.tier:active,
.eco-chip:active { transform: translateY(-1px); }

/* Clear, consistent keyboard focus on every interactive block. */
.card:focus-visible,
.product-card:focus-visible,
.tier a:focus-visible,
.stage-track button:focus-visible,
.faq-q:focus-visible,
.link-arrow:focus-visible,
.pc-link:focus-visible {
  outline: 2.5px solid var(--primary); outline-offset: 3px; border-radius: 4px;
}
.card:focus-visible,
.product-card:focus-visible { outline-offset: 2px; border-radius: var(--radius); }

/* Card links get the same lift on keyboard focus as on hover, so the
   affordance is identical for mouse and keyboard users. */
.card:focus-visible,
.product-card:focus-visible { border-color: var(--line-strong); transform: translateY(-3px); }

/* FAQ trigger reads as interactive on hover. */
.faq-q { transition: color 0.2s var(--ease-out); }
.faq-q:hover { color: var(--primary); }
.faq-a { transition: max-height 0.34s var(--ease-out); }

/* --- Header refinement on scroll --- */
/* Subtle compaction plus a crisp hairline signals "scrolled" without
   shadow — in keeping with the flat system. */
.header-inner { transition: height 0.3s var(--ease-out); }
.site-header.scrolled .header-inner { height: 58px; }

@media (prefers-reduced-motion: reduce) {
  .scene-frame::after,
  .panel::after { animation: none; opacity: 0.5; top: 0; }
}
