/* PARELION — shared styles */

:root {
  /* palette tokens (overridable via tweaks) */
  --bg:        #0a0e14;
  --bg-1:      #0e131a;
  --bg-2:      #141a23;
  --line:      #1d2531;
  --line-2:    #2a3342;
  --fg:        #e8ebf0;
  --fg-dim:    #aab3c0;
  --fg-mute:   #6b7785;
  --fg-faint:  #3d4654;
  --accent:    #5b8def;
  --accent-soft: rgba(91, 141, 239, 0.12);
  --warn:      #f0a070;
  --good:      #7dd87d;

  /* type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* scale */
  --max-w: 1360px;
  --gutter: clamp(20px, 4vw, 56px);

  /* density */
  --row-y: 28px;
}

[data-density="compact"] { --row-y: 18px; }
[data-density="loose"]   { --row-y: 40px; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg); }

/* ─────────── primitives ─────────── */

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 1px;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 450;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(46px, 7.2vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 420;
}
.h-section {
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-weight: 430;
}
.h-card {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p { margin: 0; color: var(--fg-dim); }
.lede { font-size: 18px; line-height: 1.45; color: var(--fg-dim); max-width: 56ch; }

/* ─────────── hairlines & dividers ─────────── */

.rule {
  height: 1px;
  background: repeating-linear-gradient(to right, var(--line) 0 4px, transparent 4px 8px);
  border: 0;
  margin: 0;
}
.rule-solid {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
.rule-v {
  width: 1px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 4px, transparent 4px 8px);
  align-self: stretch;
}

/* ─────────── nav ─────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
}
.brand-mark {
  width: 18px; height: 18px;
  position: relative;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--fg-dim);
}
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  border: 1px solid var(--line-2);
  padding: 7px 14px;
  border-radius: 2px;
  color: var(--fg);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-cta:hover { background: var(--accent-soft); border-color: var(--accent); }

/* ─────────── buttons ─────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "IBM Plex Mono", var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 2px;
  border: 1px solid var(--line-2);
  background: var(--bg-1);
  color: var(--fg);
  transition: all 0.18s ease;
}
.btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ─────────── section frame ─────────── */

.section {
  position: relative;
  padding: clamp(72px, 9vw, 140px) 0;
  border-bottom: 1px solid var(--line);
}
.section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--gutter);
  margin-bottom: 48px;
}
.section-head .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 32px; }
}

/* ─────────── hero ─────────── */

.hero {
  position: relative;
  padding: clamp(64px, 8vw, 120px) 0 clamp(48px, 6vw, 90px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* editorial display mode (serif) */
[data-display="serif"] h1, [data-display="serif"] h2, [data-display="serif"] h3, [data-display="serif"] h4 {
  font-weight: 400;
  letter-spacing: -0.018em;
}
[data-display="serif"] .h-display { letter-spacing: -0.025em; font-weight: 350; }
[data-display="serif"] .h-section { letter-spacing: -0.022em; font-weight: 400; }
[data-display="serif"] .hero h1 .strike::after { top: 60%; }
[data-display="serif"] .product h3 { font-weight: 400; }

/* split hero layout */
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
}
@media (max-width: 980px) {
  .hero-split { grid-template-columns: 1fr; }
}
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: 12px 0; }
.hero-media {
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}
.hero-media image-slot {
  flex: 1;
  display: block;
  width: 100%;
  min-height: 380px;
}
.hero-media .media-caption {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
  padding-top: 12px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-media .media-caption .ref { color: var(--fg-faint); }
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
  opacity: 0.35;
}
[data-grid="off"] .hero-grid { display: none; }
.hero-scan {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--accent-soft) 50%, transparent 100%);
  height: 240px;
  pointer-events: none;
  animation: scan 7s linear infinite;
  opacity: 0.6;
}
@keyframes scan {
  0%   { transform: translateY(-120%); }
  100% { transform: translateY(calc(100vh + 120%)); }
}
[data-motion="off"] .hero-scan { animation: none; display: none; }
[data-motion="off"] .marquee-track { animation: none !important; }
[data-motion="off"] .dot { animation: none !important; }
[data-motion="off"] .pulse { animation: none !important; }

.hero-inner { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(40px, 5.6vw, 84px); line-height: 1.0; }
.hero h1 .accent { color: var(--accent); }
.hero h1 .strike {
  position: relative;
  display: inline-block;
}
.hero h1 .strike::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 56%;
  height: 2px;
  background: var(--warn);
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding: 4px 9px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
}
.tag.live {
  color: var(--good);
  border-color: color-mix(in oklab, var(--good) 35%, var(--line-2));
}
.tag.live::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--good);
  margin-right: 7px;
  animation: pulse 1.8s ease-in-out infinite;
  vertical-align: middle;
}
.pulse, .tag.live::before {
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}
.hero-foot {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: end;
  gap: 32px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-stat .v {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--fg);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.hero-stat .l {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
@media (max-width: 800px) {
  .hero-foot { grid-template-columns: 1fr 1fr; }
}

/* ─────────── marquee ─────────── */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-1);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  padding: 14px 0;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.03em;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.marquee-track .dot {
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─────────── product grid ─────────── */

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.product {
  position: relative;
  padding: 36px 32px 32px;
  border-right: 1px solid var(--line);
  background: var(--bg);
  transition: background 0.25s ease;
  display: flex;
  flex-direction: column;
  min-height: 460px;
}
.product:last-child { border-right: 0; }
.product:hover { background: var(--bg-1); }
.product:hover .product-vis .layer { transform: translateY(-2px); }
.product-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.product-head .id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
}
.product-head .v {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-faint);
  letter-spacing: 0.04em;
}
.product h3 {
  font-size: 32px;
  font-weight: 430;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.product .product-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.product .product-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-dim);
  margin-bottom: 22px;
}
.product-vis {
  flex: 1;
  position: relative;
  margin-bottom: 18px;
  min-height: 200px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
}
.product-vis image-slot { flex: 1; width: 100%; min-height: 200px; }
.product:hover .product-vis { border-color: var(--line-2); }
.product-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.product-foot a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.product-foot a .arrow { transition: transform 0.2s ease; }
.product-foot a:hover .arrow { transform: translateX(4px); }
.product-foot .meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .products { grid-template-columns: 1fr; }
  .product { border-right: 0; border-bottom: 1px solid var(--line); }
  .product:last-child { border-bottom: 0; }
}

/* ─────────── live demo dashboard ─────────── */

.demo {
  background: var(--bg);
  position: relative;
}
.demo-frame {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg-1);
  overflow: hidden;
}
.demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.demo-bar .lights { display: inline-flex; gap: 6px; }
.demo-bar .lights i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-2);
  display: inline-block;
}
.demo-bar .lights i:nth-child(2) { background: color-mix(in oklab, var(--warn) 60%, var(--line-2)); }
.demo-bar .lights i:nth-child(3) { background: color-mix(in oklab, var(--good) 60%, var(--line-2)); }
.demo-body {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  min-height: 480px;
}
.demo-sidebar {
  border-right: 1px solid var(--line);
  padding: 18px 0;
  font-family: var(--font-mono);
  font-size: 12px;
}
.demo-sidebar h5 {
  font-size: 10px;
  color: var(--fg-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 16px 10px;
  font-weight: 400;
}
.demo-sidebar ul { list-style: none; margin: 0 0 22px; padding: 0; }
.demo-sidebar li {
  padding: 6px 16px;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: default;
}
.demo-sidebar li:hover { background: var(--bg-2); color: var(--fg); }
.demo-sidebar li.active { color: var(--fg); background: var(--bg-2); border-left: 2px solid var(--accent); padding-left: 14px; }
.demo-sidebar li .count {
  font-size: 10.5px;
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
}
.demo-main {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.demo-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg-2);
}
.demo-metric {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}
.demo-metric:last-child { border-right: 0; }
.demo-metric .l {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.demo-metric .v {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--fg);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.demo-metric .delta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  margin-top: 2px;
  color: var(--good);
}
.demo-metric .delta.down { color: var(--warn); }

.demo-chart {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 16px 18px;
  flex: 1;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.demo-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.demo-chart-head .t {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.demo-chart-head .legend {
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-mute);
}
.demo-chart-head .legend i {
  display: inline-block;
  width: 8px; height: 2px;
  margin-right: 6px;
  vertical-align: middle;
}
.demo-chart svg { width: 100%; flex: 1; }

.demo-right {
  padding: 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.demo-right h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 400;
}
.event {
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-dim);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.event:first-of-type { border-top: 0; padding-top: 0; }
.event .row { display: flex; justify-content: space-between; }
.event .row .ts { color: var(--fg-faint); }
.event .who { color: var(--fg); }
.event.alert .who { color: var(--warn); }
.event.alert::before {
  content: "▲ ";
  color: var(--warn);
}
.event.ok::before {
  content: "● ";
  color: var(--good);
}
@media (max-width: 1000px) {
  .demo-body { grid-template-columns: 1fr; }
  .demo-sidebar, .demo-main { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ─────────── platform diagram ─────────── */

.platform {
  background: var(--bg);
}
.platform-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) {
  .platform-stack { grid-template-columns: 1fr; }
}
.platform-diagram {
  border: 1px solid var(--line);
  background: var(--bg-1);
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  overflow: hidden;
}
.platform-diagram svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.platform-list { display: flex; flex-direction: column; }
.platform-row {
  padding: var(--row-y) 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: start;
  gap: 20px;
  transition: padding-left 0.2s ease;
}
.platform-row:last-child { border-bottom: 1px solid var(--line); }
.platform-row:hover { padding-left: 8px; }
.platform-row .n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  padding-top: 4px;
}
.platform-row h4 {
  font-size: 19px;
  font-weight: 460;
  letter-spacing: -0.012em;
  margin-bottom: 6px;
}
.platform-row p {
  font-size: 13.5px;
  color: var(--fg-dim);
  line-height: 1.45;
  max-width: 48ch;
}
.platform-row .stamp {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 6px;
}

/* ─────────── manifesto ─────────── */

.manifesto {
  background: var(--bg);
  position: relative;
}
.manifesto-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--gutter);
}
@media (max-width: 720px) {
  .manifesto-body { grid-template-columns: 1fr; }
}
.manifesto-side {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.manifesto-prose {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  color: var(--fg);
  font-weight: 430;
  letter-spacing: -0.011em;
  max-width: 32ch;
}
.manifesto-prose em { color: var(--accent); font-style: normal; }
.manifesto-prose p + p { margin-top: 1em; }
.manifesto-sig {
  margin-top: 36px;
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ─────────── footer ─────────── */

.foot {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 80px 0 32px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}
@media (max-width: 800px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
.foot-col h6 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin: 0 0 18px;
  font-weight: 400;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a {
  font-size: 14px;
  color: var(--fg-dim);
  transition: color 0.15s ease;
}
.foot-col a:hover { color: var(--fg); }
.foot-brand .lede {
  margin-top: 16px;
  font-size: 13.5px;
  max-width: 36ch;
  color: var(--fg-dim);
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.04em;
}
.foot-mark {
  font-family: var(--font-mono);
  font-size: 64px;
  line-height: 1;
  color: var(--fg);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

/* ─────────── product page hero ─────────── */

.p-hero {
  padding: clamp(70px, 9vw, 130px) 0 60px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.p-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}
@media (max-width: 900px) {
  .p-hero-grid { grid-template-columns: 1fr; }
}
.p-hero .badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.p-hero .badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.p-hero h1 {
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-weight: 420;
}
.p-hero .lede { margin-top: 22px; font-size: 17px; }
.p-hero-meta {
  display: grid;
  grid-template-columns: repeat(2, auto) 1fr;
  gap: 36px;
  align-items: end;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.p-hero-meta .col { display: flex; flex-direction: column; gap: 4px; }
.p-hero-meta .l {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--fg-faint); text-transform: uppercase; letter-spacing: 0.08em;
}
.p-hero-meta .v {
  font-family: var(--font-mono); font-size: 14px;
  color: var(--fg);
}

/* product page generic */

.p-section { padding: clamp(56px, 7vw, 110px) 0; border-bottom: 1px solid var(--line); }
.p-section .container > .eyebrow { margin-bottom: 14px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--line);
}
.feature {
  padding: 32px 28px 28px 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
}
.feature:nth-child(even) { padding-right: 0; padding-left: 28px; border-right: 0; }
.feature:nth-last-child(-n+2) { border-bottom: 0; }
.feature .n { font-family: var(--font-mono); font-size: 11px; color: var(--fg-mute); letter-spacing: 0.06em; padding-top: 6px;}
.feature h4 { font-size: 17px; letter-spacing: -0.01em; margin-bottom: 8px; font-weight: 460;}
.feature p { font-size: 13.5px; color: var(--fg-dim); line-height: 1.5; }
@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(even) { border-right: 0; padding: 24px 0; }
}

/* spec table */
.spec {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
}
.spec .row {
  display: grid;
  grid-template-columns: 240px 1fr 120px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.spec .row .k { color: var(--fg-mute); text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em; }
.spec .row .v { color: var(--fg); }
.spec .row .t { color: var(--fg-faint); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; text-align: right; }
@media (max-width: 720px) {
  .spec .row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .spec .row .t { text-align: left; }
}

/* ascii visuals */
.ascii {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.3;
  color: var(--fg-mute);
  white-space: pre;
  letter-spacing: 0;
}

/* product visual blocks */
.vis-redline, .vis-fieldbook, .vis-atrium { position: absolute; inset: 0; padding: 14px; }

/* redline diff */
.vis-redline .line {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 0;
  white-space: nowrap;
  overflow: hidden;
}
.vis-redline .add { color: var(--good); }
.vis-redline .del { color: var(--warn); text-decoration: line-through; opacity: 0.8;}
.vis-redline .ctx { color: var(--fg-mute); }
.vis-redline .marker {
  display: inline-block; width: 12px; color: var(--fg-faint);
}

/* fieldbook seal */
.vis-fieldbook {
  display: flex; align-items: center; justify-content: center;
}
.vis-fieldbook .seal {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-mute);
  text-align: center;
  line-height: 1.5;
}
.vis-fieldbook .seal .hash {
  color: var(--accent);
  word-break: break-all;
  margin-top: 6px;
}

/* atrium graph */
.vis-atrium svg { width: 100%; height: 100%; }

/* live ticker overlays on product cards */
.product .ticker {
  position: absolute;
  bottom: 8px; left: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-faint);
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed var(--line);
  padding-top: 6px;
}

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease;}
.reveal.in { opacity: 1; transform: translateY(0); }
[data-motion="off"] .reveal { opacity: 1; transform: none; transition: none;}

/* CTA strip */
.cta-strip {
  border-top: 1px solid var(--line);
  padding: 80px 0;
  background: var(--bg);
}
.cta-strip .container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}
.cta-strip h2 {
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 420;
  max-width: 18ch;
}
.cta-strip .actions { display: flex; gap: 12px; }
@media (max-width: 720px) {
  .cta-strip .container { grid-template-columns: 1fr; }
}


/* ─────────── RESPONSIVE (mobile/tablet) ─────────── */

.nav-toggle{
  display:none;
  position:relative;width:40px;height:40px;
  background:transparent;border:1px solid var(--line-2);border-radius:2px;
  padding:0;cursor:pointer;
  align-items:center;justify-content:center;flex-direction:column;gap:5px;
}
.nav-toggle span{display:block;width:18px;height:1.5px;background:var(--fg);transition:transform .22s ease,opacity .22s ease}
.nav.open .nav-toggle span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
.nav.open .nav-toggle span:nth-child(2){opacity:0}
.nav.open .nav-toggle span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}

@media (max-width:820px){
  .nav-inner{gap:12px}
  .nav-toggle{display:inline-flex}

  /* Mobile sheet */
  .nav-links{
    position:fixed;left:0;right:0;top:56px;
    background:color-mix(in oklab, var(--bg) 96%, transparent);
    backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
    border-bottom:1px solid var(--line);
    flex-direction:column;align-items:stretch;
    gap:0;padding:8px 0;
    max-height:calc(100vh - 56px);overflow-y:auto;
    transform:translateY(-8px);opacity:0;pointer-events:none;
    transition:transform .22s ease,opacity .22s ease;
    z-index:60;
  }
  .nav-links a{
    padding:14px var(--gutter);font-size:13px;letter-spacing:.04em;
    border-bottom:1px solid var(--line);
  }
  .nav-links a:last-child{border-bottom:0}
  .nav.open .nav-links{transform:translateY(0);opacity:1;pointer-events:auto}

  /* Move standalone .nav-cta into row alongside hamburger on mobile */
  .nav-cta{padding:7px 12px;font-size:11px}
}

@media (max-width:600px){
  .nav-cta{display:none}
  .nav-links .nav-cta{display:inline-flex;align-self:stretch;margin:12px var(--gutter);justify-content:center;padding:14px 18px}
}

@media (max-width:820px){
  /* hero text safer on small viewports */
  .hero h1{font-size:clamp(34px,10vw,84px);line-height:1.02}
  .h-display{font-size:clamp(38px,11vw,104px)}
  .h-section{font-size:clamp(28px,8vw,60px)}

  /* hero foot already collapses at 800; tighten gap */
  .hero-foot{gap:18px 24px}

  /* product page hero meta — stack to single column on phone */
  .p-hero-meta{grid-template-columns:1fr;gap:14px}

  /* footer bottom wrap */
  .foot-bottom{flex-wrap:wrap;gap:8px 18px;align-items:flex-start}

  /* demo dashboard — already collapses at 1000; ensure metrics wrap on phone */
  .demo-metrics{grid-template-columns:1fr 1fr}
  .demo-metric:nth-child(2){border-right:0}
  .demo-metric:nth-child(1),.demo-metric:nth-child(2){border-bottom:1px solid var(--line)}
}

@media (max-width:480px){
  .container{padding:0 18px}
  .nav-inner{height:56px}
  .nav-links{top:56px}
  .hero h1{font-size:clamp(32px,11vw,84px)}
  .p-hero h1{font-size:clamp(38px,12vw,120px)}
  .foot-grid{grid-template-columns:1fr;gap:24px;margin-bottom:40px}
  .cta-strip h2{font-size:clamp(28px,8vw,64px);max-width:none}
  .cta-strip .actions{flex-wrap:wrap}
}

/* word-break on long mono content (hashes / file paths) */
@media (max-width:720px){
  .spec .row .v,.spec .row .k{word-break:break-word}
  .feature p,.feature h4{word-wrap:break-word}
  .p-hero .lede code{word-break:break-all}
}
