/* ByteTrace — military defense-tech aesthetic.
   Minimal. Strategic. HUD-like. 1-pixel white lines, no gradients, no fluff.
   Reference inspirations: cockpit HUDs, NORAD ops, ARMA, classified-banner
   archetypes, Defense Distributed signage. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Monochrome base — pure black, then white in 4 opacities */
  --bg: #000000;
  --bg-raised: #07080b;
  --bg-card: #0a0b0f;

  /* Pure white at varying opacities for HUD line work */
  --line-faint: rgba(255, 255, 255, 0.06);
  --line-low: rgba(255, 255, 255, 0.12);
  --line-mid: rgba(255, 255, 255, 0.22);
  --line-high: rgba(255, 255, 255, 0.45);
  --line: rgba(255, 255, 255, 0.85);

  /* Text — white scale only */
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.78);
  --text-quiet: rgba(255, 255, 255, 0.52);
  --text-muted: rgba(255, 255, 255, 0.34);
  --text-trace: rgba(255, 255, 255, 0.18);

  /* Single accent — HUD amber. Used sparingly. */
  --amber: #ffb800;
  --amber-dim: #b88500;
  --amber-glow: rgba(255, 184, 0, 0.12);

  /* Warning red — used only for compliance urgency */
  --warn: #ff4d4d;
  --warn-dim: #b83838;

  /* Typography */
  --font-display: 'Saira', 'Eurostile', 'Bank Gothic', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'SF Mono', monospace;
  --font-body: 'Saira', 'Inter', -apple-system, sans-serif;

  /* Spacing */
  --gutter: 24px;
  --section-pad: 96px;

  /* Common HUD constants */
  --bracket-size: 18px;
  --bracket-width: 1px;
  --line-thin: 1px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  font-feature-settings: "ss01", "cv01";
}

/* Mobile horizontal-overflow safety belt: prevent any wide child
   element from creating horizontal scroll. Images, svgs, pre, and
   tables get hard-capped to viewport width. */
@media (max-width: 780px) {
  img, svg, video, canvas, iframe, table {
    max-width: 100%;
    height: auto;
  }
  pre, code {
    max-width: 100%;
    overflow-x: hidden;
    white-space: pre-wrap;
    word-break: break-word;
  }
}

/* Global subtle grid — military HUD background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-faint) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-faint) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, rgba(0,0,0,0.85), transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, rgba(0,0,0,0.85), transparent 80%);
}

body > * { position: relative; z-index: 1; }

/* ── Typography ──────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  line-height: 1.05;
  text-transform: uppercase;
}

h1 { font-size: 96px; letter-spacing: -0.005em; font-weight: 700; }
h2 { font-size: 44px; letter-spacing: 0.015em; }
h3 { font-size: 22px; letter-spacing: 0.04em; font-weight: 600; }
h4 { font-size: 14px; letter-spacing: 0.18em; font-weight: 600; }

@media (max-width: 768px) {
  h1 { font-size: 56px; }
  h2 { font-size: 32px; }
}

p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
}

.lead {
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1.6;
  max-width: 640px;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.1s, border-color 0.1s;
}
a:hover { color: var(--amber); }

code, pre {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

code {
  background: transparent;
  color: var(--text);
  padding: 0;
  border: none;
}

pre {
  background: transparent;
  border: 1px solid var(--line-low);
  padding: 20px 24px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}

/* ── Layout containers ────────────────────────────── */

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

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

section {
  padding: var(--section-pad) 0;
  position: relative;
}

section.tight { padding: 64px 0; }

/* ── HUD primitives — corner brackets, callsigns ─── */

.hud-frame {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line-low);
}

.hud-frame::before,
.hud-frame::after,
.hud-frame > .corners::before,
.hud-frame > .corners::after {
  content: '';
  position: absolute;
  width: var(--bracket-size);
  height: var(--bracket-size);
  border: 1px solid var(--text);
  pointer-events: none;
}
.hud-frame::before {        /* top-left */
  top: -1px; left: -1px;
  border-right: none; border-bottom: none;
}
.hud-frame::after {         /* top-right */
  top: -1px; right: -1px;
  border-left: none; border-bottom: none;
}
.hud-frame > .corners::before { /* bottom-left */
  bottom: -1px; left: -1px;
  border-right: none; border-top: none;
}
.hud-frame > .corners::after {  /* bottom-right */
  bottom: -1px; right: -1px;
  border-left: none; border-top: none;
}

/* Compact bracket pair — single-line treatment */
.bracket-pair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-quiet);
  text-transform: uppercase;
}
.bracket-pair::before { content: '['; color: var(--text); }
.bracket-pair::after { content: ']'; color: var(--text); }

/* Callsign — military-tag style */
.callsign {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-quiet);
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--line-low);
}

.callsign.amber {
  border-color: var(--amber);
  color: var(--amber);
}

/* Classification banner */
.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line-low);
  border-bottom: 1px solid var(--line-low);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--text-quiet);
  text-transform: uppercase;
}
.banner span:not(.dot) { color: var(--text); }
.banner .dot {
  width: 4px; height: 4px;
  background: var(--amber);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Scan line — moves down element */
@keyframes scan-line {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

.scan {
  position: relative;
  overflow: hidden;
}
.scan::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber-glow);
  animation: scan-line 4s linear infinite;
  pointer-events: none;
}

/* ── Nav ─────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-low);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}
.nav-brand-icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0;
}
.nav-brand-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-quiet);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-brand-text b { color: var(--text); font-weight: 700; }
.nav-brand-text .accent { color: var(--amber); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--text-quiet);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.1s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 8px 18px !important;
  border: 1px solid var(--text) !important;
  color: var(--text) !important;
  letter-spacing: 0.18em !important;
}
.nav-cta:hover {
  background: var(--text);
  color: var(--bg) !important;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ── Buttons ─────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.12s;
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-primary {
  border-color: var(--amber);
  color: var(--amber);
}
.btn-primary:hover {
  background: var(--amber);
  color: var(--bg);
  box-shadow: 0 0 24px var(--amber-glow);
}

.btn-ghost {
  border-color: var(--line-mid);
  color: var(--text-dim);
}
.btn-ghost:hover {
  border-color: var(--text);
  color: var(--text);
  background: transparent;
}

.btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* Arrow ornament */
.arrow::after { content: '→'; margin-left: 2px; }

/* ── Hero ────────────────────────────────────────── */

.hero {
  padding: 140px 0 96px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero-text { max-width: 640px; }

/* Decision trace ribbon — visualizes the substrate executing
   bytecode with signed checkpoints. Sits under the BYTETRACE
   headline as a HUD-style explanatory glyph. */
.trace-strip {
  margin: 28px 0 32px;
  width: 100%;
  max-width: 100%;
  position: relative;
}
.trace-strip svg {
  width: 100%;
  height: auto;
  display: block;
}

/* scan playhead sweeps left → right across the bar field */
.ts-scan {
  animation: ts-scan-sweep 5.5s cubic-bezier(.45,.05,.55,.95) infinite alternate;
}
.ts-scan-glow {
  animation: ts-scan-sweep 5.5s cubic-bezier(.45,.05,.55,.95) infinite alternate;
}
@keyframes ts-scan-sweep {
  0%   { transform: translateX(0); }
  100% { transform: translateX(712px); }
}

/* amber LLM-call bars pulse subtly, slightly offset per bar via
   nth-child so the strip feels alive rather than synchronized */
.ts-llm {
  animation: ts-llm-pulse 2.4s ease-in-out infinite;
}
.ts-bars rect.ts-llm:nth-of-type(2) { animation-delay: 0.4s; }
.ts-bars rect.ts-llm:nth-of-type(3) { animation-delay: 0.9s; }
.ts-bars rect.ts-llm:nth-of-type(4) { animation-delay: 1.3s; }
@keyframes ts-llm-pulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

@media (max-width: 780px) {
  .trace-strip { margin: 20px 0 24px; }
}

.hero h1 {
  margin: 24px 0 24px;
  font-size: 112px;
  line-height: 0.95;
}

@media (max-width: 980px) {
  .hero h1 { font-size: 80px; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 56px; }
}

.hero .lead {
  margin: 0 0 36px;
  font-size: 17px;
  max-width: 520px;
  color: var(--text-dim);
}

.hero-meta {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-low);
}
.hero-meta div {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-quiet);
  text-transform: uppercase;
}
.hero-meta div strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  margin-top: 4px;
  letter-spacing: 0.18em;
}

/* ── Hero glyph ──────────────────────────────────── */

.glyph-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.glyph {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  position: relative;
}

.glyph svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes rotate-slow {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}

@keyframes pulse-stroke {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes hex-cycle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.7; }
}

.g-rotate-slow { animation: rotate-slow 60s linear infinite; transform-origin: 120px 120px; }
.g-pulse { animation: pulse-stroke 3s ease-in-out infinite; }
.g-hex-1 { animation: hex-cycle 4s ease-in-out infinite; }
.g-hex-2 { animation: hex-cycle 4s ease-in-out infinite 1s; }
.g-hex-3 { animation: hex-cycle 4s ease-in-out infinite 2s; }
.g-hex-4 { animation: hex-cycle 4s ease-in-out infinite 3s; }

.g-scan-line {
  animation: glyph-scan 6s linear infinite;
}

@keyframes glyph-scan {
  0% { transform: translateY(-110px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(110px); opacity: 0; }
}

/* ── Section headers ────────────────────────────── */

.section-header {
  margin-bottom: 64px;
  max-width: 720px;
}
.section-header.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header .callsign { margin-bottom: 20px; }
.section-header h2 { margin-bottom: 16px; }
.section-header .lead { color: var(--text-dim); }
.section-header.center .lead { margin: 0 auto; }

.doc-icon {
  width: 80px;
  height: 96px;
  margin: 0 auto 24px;
  display: block;
}
.doc-icon svg { width: 100%; height: 100%; display: block; }
.section-header.center .doc-icon { margin-left: auto; margin-right: auto; }

/* ── Three-step explainer ─────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

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

.step {
  position: relative;
  padding: 32px 28px 28px;
  border: 1px solid var(--line-low);
  background: var(--bg-card);
  transition: border-color 0.2s;
  overflow: hidden;
}
.step:hover { border-color: var(--line-mid); }

.step::before, .step::after,
.step .step-corners::before, .step .step-corners::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--text);
}
.step::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.step::after { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.step .step-corners::before { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.step .step-corners::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.step-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-tag::before {
  content: '';
  width: 8px;
  height: 1px;
  background: var(--amber);
}

.step h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: 0.04em;
}
.step p { font-size: 14px; color: var(--text-dim); line-height: 1.65; }

.step .code-snippet {
  margin-top: 18px;
  padding: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line-low);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.65;
}

.code-comment { color: var(--text-muted); }
.code-keyword { color: var(--amber); }
.code-string { color: var(--text); }
.code-func { color: var(--text); font-weight: 600; }

/* Flow diagram animation overlay */
.step-flow {
  margin-top: 18px;
  height: 32px;
  position: relative;
  border: 1px solid var(--line-low);
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-quiet);
  text-transform: uppercase;
  overflow: hidden;
}
.step-flow::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -20%;
  width: 20%;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  animation: flow-sweep 3s linear infinite;
  opacity: 0.4;
}

@keyframes flow-sweep {
  0% { left: -20%; }
  100% { left: 120%; }
}

/* ── Vertical pitch cards ───────────────────── */

.verticals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 980px) { .verticals { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .verticals { grid-template-columns: 1fr; } }

.vertical {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--line-low);
  background: var(--bg-card);
  transition: border-color 0.2s, background 0.2s;
}
.vertical:hover { border-color: var(--text); background: var(--bg-raised); }

.vertical-id {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--text-quiet);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
}
.vertical-id .dot {
  width: 6px; height: 6px;
  background: var(--amber);
  display: inline-block;
}

.vertical h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: 0.04em;
}
.vertical p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.65;
}

.vertical .regs {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-low);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-quiet);
  text-transform: uppercase;
  line-height: 1.6;
}

/* ── Hardware callout ──────────────────────── */

.hardware-strip {
  border: 1px solid var(--text);
  padding: 28px 36px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
}
.hardware-strip::before,
.hardware-strip::after,
.hardware-strip .corners::before,
.hardware-strip .corners::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--amber);
}
.hardware-strip::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.hardware-strip::after { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.hardware-strip > .corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hardware-strip .corners::before { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.hardware-strip .corners::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.hardware-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--amber);
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--amber);
}

.hardware-text {
  font-size: 15px;
  color: var(--text-dim);
}
.hardware-text strong {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hardware-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-width: 140px;
}
.chip-icon {
  width: 96px;
  height: 96px;
  display: block;
  animation: chip-pulse 4s ease-in-out infinite;
}
.chip-icon rect[stroke="#ffb800"] { animation: chip-die-pulse 3s ease-in-out infinite; }
@keyframes chip-pulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}
@keyframes chip-die-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@media (max-width: 780px) {
  .hardware-strip { grid-template-columns: 1fr; text-align: center; }
  .hardware-cta { align-items: center; }
}

/* ── Comparison table ─────────────────────── */

.comparison {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line-low);
  font-family: var(--font-body);
}

.comparison th, .comparison td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-low);
  font-size: 13px;
}

.comparison th {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 10px;
  color: var(--text);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--bg-card);
}
.comparison th:first-child { color: var(--text-quiet); font-weight: 500; }
.comparison th.us { color: var(--amber); border-bottom: 1px solid var(--amber); }

.comparison td:first-child {
  font-weight: 500;
  color: var(--text);
}
.comparison td.us {
  color: var(--amber);
  font-weight: 500;
  background: rgba(255, 184, 0, 0.02);
}
.comparison tr:last-child td { border-bottom: none; }
.comparison .check { color: var(--amber); font-weight: 700; font-family: var(--font-mono); }
.comparison .x { color: var(--text-muted); font-family: var(--font-mono); }

.comparison-table-wrap { width: 100%; }

/* Mobile comparison cards (hidden on desktop) */
.comparison-cards { display: none; }

@media (max-width: 780px) {
  .comparison-table-wrap { display: none; }

  .comparison-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
  }

  .comp-card {
    border: 1px solid var(--line-low);
    background: var(--bg-card);
    padding: 16px 18px 14px;
    position: relative;
  }
  .comp-card::before,
  .comp-card::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid var(--text);
  }
  .comp-card::before {
    top: -1px; left: -1px; border-right: none; border-bottom: none;
  }
  .comp-card::after {
    top: -1px; right: -1px; border-left: none; border-bottom: none;
  }

  .comp-cap {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text);
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line-low);
    line-height: 1.3;
  }

  .comp-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .comp-rows li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    padding: 3px 0;
  }
  .comp-rows li.us {
    color: var(--amber);
    background: rgba(255, 184, 0, 0.04);
    margin: 4px -8px 0;
    padding: 6px 8px;
    border-left: 2px solid var(--amber);
    font-weight: 600;
  }
  .comp-rows .check {
    color: var(--amber);
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 14px;
  }
  .comp-rows .x {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 14px;
  }
  .comp-rows .partial {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    text-transform: lowercase;
    letter-spacing: 0.1em;
  }
}

/* ── Manifest sample ───────────────────────── */

.manifest-sample {
  background: var(--bg-card);
  border: 1px solid var(--line-low);
  padding: 24px 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  position: relative;
}
.manifest-sample::before,
.manifest-sample::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--amber);
}
.manifest-sample::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.manifest-sample::after { top: -1px; right: -1px; border-left: none; border-bottom: none; }

.manifest-sample .key { color: var(--amber); }
.manifest-sample .string { color: var(--text); }
.manifest-sample .num { color: var(--text-dim); }
.manifest-sample .punct { color: var(--text-quiet); }
.manifest-sample .comment { color: var(--text-muted); font-style: italic; }

/* ── EU AI Act callout ─────────────────────── */

.callout {
  border: 1px solid var(--warn);
  padding: 28px 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  position: relative;
}
.callout::before, .callout::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--warn);
}
.callout::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.callout::after { top: -1px; right: -1px; border-left: none; border-bottom: none; }

.callout-icon {
  width: 64px; height: 64px;
  border: 1px solid var(--warn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--warn);
}

.callout-text h4 {
  color: var(--text);
  font-size: 14px;
  margin-bottom: 8px;
  letter-spacing: 0.12em;
}
.callout-text p {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0;
  line-height: 1.65;
}
.callout-text strong { color: var(--warn); font-weight: 600; }

@media (max-width: 768px) {
  .callout { grid-template-columns: 1fr; text-align: center; }
  .callout-icon { margin: 0 auto; }
}

/* ── Contact / inbound form ──────────────────── */

.contact-section {
  position: relative;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border: 1px solid var(--line-low);
  padding: 36px;
  background: var(--bg-card);
  position: relative;
}
.contact-form::before, .contact-form::after,
.contact-form .corners::before, .contact-form .corners::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--text);
}
.contact-form::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.contact-form::after { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.contact-form .corners::before { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.contact-form .corners::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

@media (max-width: 640px) {
  .contact-form { grid-template-columns: 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field.full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-quiet);
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  background: var(--bg);
  border: 1px solid var(--line-low);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  transition: border-color 0.15s;
  outline: none;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--amber);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
  font-family: var(--font-body);
}

.contact-form .submit-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.contact-form .submit-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-quiet);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── FAQ ───────────────────────────────────── */

.faq {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line-low);
  border: 1px solid var(--line-low);
}

.faq details {
  background: var(--bg);
  padding: 0;
  transition: background 0.2s;
}
.faq details[open] { background: var(--bg-card); }

.faq summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.04em;
  font-family: var(--font-display);
  text-transform: uppercase;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--amber);
  font-weight: 300;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p {
  padding: 0 24px 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
  text-transform: none;
}

/* ── Footer ──────────────────────────────── */

footer {
  border-top: 1px solid var(--line-low);
  padding: 56px 0 32px;
  margin-top: 96px;
}

footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

@media (max-width: 768px) {
  footer .container { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-quiet);
  margin-top: 14px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-quiet);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-dim);
  font-size: 13px;
  text-decoration: none;
}
.footer-col a:hover { color: var(--amber); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line-low);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-quiet);
  text-transform: uppercase;
}

/* ── Misc helpers ────────────────────────── */

.divider {
  height: 1px;
  background: var(--line-low);
  border: none;
  margin: 0;
}

.kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  border: 1px solid var(--line-low);
  padding: 2px 6px;
  color: var(--text-quiet);
  letter-spacing: 0.12em;
}
