/* ============================================================
   SKI Framework - Design System v3
   Sovereign dark · Plus Jakarta Sans · Teal/blue accents · No trackers
   ============================================================ */

/* ─── Design tokens ──────────────────────────────────────── */
:root {
  --bg:        #0A0A0A;
  --bg-1:      #0F0F0F;
  --bg-2:      #141414;
  --bg-3:      #1C1C1C;
  --bg-card:   rgba(255,255,255,0.052);
  --bg-card-h: rgba(255,255,255,0.082);
  --bg-nav:    rgba(10,10,10,0.92);

  --border:    rgba(255,255,255,0.10);
  --border-h:  rgba(255,255,255,0.18);
  --border-m:  rgba(255,255,255,0.06);

  --teal:        #2DD4BF;
  --teal-light:  #5EEAD4;
  --teal-bg:     rgba(45,212,191,0.07);
  --teal-border: rgba(45,212,191,0.18);
  --teal-glow:   rgba(45,212,191,0.12);

  --blue:        #60A5FA;
  --blue-bg:     rgba(96,165,250,0.07);
  --blue-glow:   rgba(96,165,250,0.12);

  --violet:      #A78BFA;
  --violet-bg:   rgba(167,139,250,0.07);

  --green:       #34D399;
  --green-bg:    rgba(52,211,153,0.07);
  --green-glow:  rgba(52,211,153,0.15);

  --amber:       #FBBF24;
  --amber-bg:    rgba(251,191,36,0.07);
  --amber-glow:  rgba(251,191,36,0.12);

  --red:         #F87171;
  --red-bg:      rgba(248,113,113,0.07);

  --text:   #F2F2F4;
  --text-2: #8B95A8;
  --text-3: #6B7A93;

  /* backward-compat aliases */
  --text-sec:    var(--text-2);
  --text-muted:  var(--text-3);
  --bg-elevated: var(--bg-2);
  --radius-sm: var(--r-sm);
  --radius:    var(--r);
  --radius-lg: var(--r-lg);
  --radius-xl: var(--r-xl);

  --font:      'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', Consolas, monospace;

  --r-sm:  8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 24px;

  --nav-h:      64px;
  --ann-h:      40px;
  --announce-h: 40px;
  --max-w:      1200px;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }

/* ─── Skip link (a11y) ───────────────────────────────────── */
.skip-link {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 9px 20px;
  background: var(--teal);
  color: #021212;
  font-size: 13px;
  font-weight: 700;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  text-decoration: none;
  z-index: 9999;
  transition: top 0.12s;
  white-space: nowrap;
}
.skip-link:focus { top: 0; outline: 2px solid #021212; outline-offset: 2px; }

/* ─── Noise texture ──────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.018;
  pointer-events: none;
  z-index: 9998;
}

/* ─── Global scroll offset (fixed header 40px banner + 64px nav) ─── */
section[id],
h2[id],
h3[id] {
  scroll-margin-top: calc(var(--ann-h) + var(--nav-h) + 20px);
}

/* ─── Layout ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
.section    { padding: 80px 0; position: relative; }
.section-sm { padding: 48px 0; position: relative; }

/* ─── Announcement banner ────────────────────────────────── */
/* FIX: was rgba(teal,7%) — transparent, content bled through on scroll */
.announce {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--ann-h);
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 13px;
  color: var(--text-2);
  z-index: 100;
  padding: 0 20px;
}
.announce::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(45,212,191,0.06) 0%,
    rgba(96,165,250,0.04) 50%,
    rgba(45,212,191,0.06) 100%);
  pointer-events: none;
}
.announce > * { position: relative; }
.announce strong { color: var(--text); font-weight: 600; }
.announce a {
  color: var(--teal);
  font-weight: 500;
  transition: opacity 0.15s;
}
.announce a:hover { opacity: 0.75; }
.announce-sep { color: var(--text-3); }

/* ─── Navigation ─────────────────────────────────────────── */
header {
  position: fixed;
  top: var(--ann-h); left: 0; right: 0;
  z-index: 99;
}
.nav {
  height: var(--nav-h);
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  margin-right: 4px;
  transition: opacity 0.15s;
  letter-spacing: -0.01em;
}
.nav-logo:hover { opacity: 0.8; }
.logo-ski { color: var(--teal); }
.logo-beta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-bg);
  border: 1px solid rgba(251,191,36,0.20);
  padding: 2px 7px;
  border-radius: 99px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
  font-weight: 450;
  letter-spacing: -0.005em;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--teal); background: var(--teal-bg); }
/* nav button (demo trigger) — matches nav link appearance */
.nav-demo-btn {
  font-size: 14px;
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
  font-weight: 450;
  letter-spacing: -0.005em;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.nav-demo-btn:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-mobile .nav-demo-btn {
  font-size: 15px;
  color: var(--text-2);
  padding: 10px 12px;
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
  width: 100%;
  text-align: left;
}
.nav-mobile .nav-demo-btn:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.nav-github {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.nav-github:hover { color: var(--text); border-color: var(--border-h); background: rgba(255,255,255,0.05); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--r-sm);
}
.nav-hamburger span {
  width: 20px; height: 1.5px;
  background: var(--text-2);
  border-radius: 2px;
  transition: 0.2s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  font-size: 15px;
  color: var(--text-2);
  padding: 10px 12px;
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-mobile a:hover { color: var(--text); background: rgba(255,255,255,0.04); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--r-sm);
  transition: all 0.18s cubic-bezier(0.2, 0.9, 0.3, 1);
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: -0.01em;
  border: none;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, #2DD4BF 0%, #0F9F96 100%);
  color: #021212;
  font-weight: 700;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.5),
    0 0 0 1px rgba(45,212,191,0.3),
    0 4px 20px rgba(45,212,191,0.18);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-20deg);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.4),
    0 0 0 1px rgba(45,212,191,0.4),
    0 8px 36px rgba(45,212,191,0.24);
}
.btn-primary:hover::after { animation: shimmer 0.55s ease forwards; }
.btn-primary:active { transform: translateY(0); }
@keyframes shimmer { to { left: 160%; } }
.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-h);
  color: var(--text);
}

/* ─── Section headers ────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--text-3);
  opacity: 0.5;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.12;
  margin-bottom: 16px;
  color: var(--text);
  max-width: 22ch;
}
.section-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.72;
  max-width: 580px;
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--ann-h) + var(--nav-h) + 60px) 0 80px;
  position: relative;
  overflow: hidden;
}
/* dot grid */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 80%);
  pointer-events: none;
}
/* orbs — were at 7-8% opacity, now 13-15% */
.hero-orb-1 {
  position: absolute;
  width: 900px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,212,191,0.13) 0%, transparent 65%);
  top: -100px; right: -200px;
  filter: blur(60px);
  animation: orb1 22s ease-in-out infinite;
  pointer-events: none;
}
.hero-orb-2 {
  position: absolute;
  width: 700px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96,165,250,0.10) 0%, transparent 65%);
  bottom: -80px; left: -80px;
  filter: blur(72px);
  animation: orb2 28s ease-in-out infinite;
  pointer-events: none;
}
@keyframes orb1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(-60px,50px) scale(1.06); }
  66%       { transform: translate(40px,-40px) scale(0.93); }
}
@keyframes orb2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  40%       { transform: translate(50px,-60px) scale(1.04); }
  70%       { transform: translate(-40px,40px) scale(0.95); }
}

/* Split hero layout */
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-left { min-width: 0; }
.hero-right { min-width: 0; }

/* Eyebrow */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  flex-shrink: 0;
  animation: blink 2.5s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
.hero h1 {
  font-size: clamp(38px, 4.8vw, 62px);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.07;
  margin-bottom: 22px;
  color: var(--text);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 400;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 5px 13px;
  border-radius: 99px;
  letter-spacing: -0.005em;
}
.trust-item svg { color: var(--teal); flex-shrink: 0; }

/* ─── Hero terminal mockup ───────────────────────────────── */
.hero-terminal {
  background: #0C0C0C;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.4),
    0 32px 96px rgba(0,0,0,0.55),
    0 0 80px rgba(45,212,191,0.05),
    inset 0 1px 0 rgba(255,255,255,0.06);
  font-family: var(--font-mono);
  font-size: 12.5px;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.2,0.9,0.3,1), box-shadow 0.6s ease;
  will-change: transform;
}
.hero-terminal:hover {
  transform: perspective(1200px) rotateY(-1deg) rotateX(0.5deg);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.4),
    0 40px 120px rgba(0,0,0,0.6),
    0 0 120px rgba(45,212,191,0.08),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.term-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.term-dot.r { background: #FF5F57; }
.term-dot.y { background: #FFBD2E; }
.term-dot.g { background: #28C840; }
.term-title {
  margin-left: 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.03em;
}
.term-body {
  padding: 20px 20px 14px;
  line-height: 1.5;
}
.t-line { display: block; }
.t-blank { height: 0.6em; display: block; }
.t-prompt { color: var(--teal); margin-right: 8px; user-select: none; }
.t-cmd    { color: #F2F2F4; }
.t-dim    { color: rgba(139,149,168,0.75); }
.t-teal   { color: var(--teal); }
.t-str    { color: #86EFAC; }
.t-arr    { color: rgba(139,149,168,0.5); margin: 0 4px; }
.t-flag   { color: #F87171; font-weight: 700; }
.t-ok     { color: var(--green); }
.term-verdict {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(45,212,191,0.035);
  padding: 14px 20px 16px;
  line-height: 1.75;
}
.tv-line  { display: block; }
.tv-key   { color: #94A3B8; }
.tv-punc  { color: rgba(139,149,168,0.5); }
.tv-flag  { color: #F87171; font-weight: 700; }
.tv-obj   { color: var(--teal); }
.tv-str   { color: #86EFAC; }

/* ─── Stats band ─────────────────────────────────────────── */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 130% at 50% 0%, var(--teal-glow), transparent 65%);
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.stat-item {
  padding: 40px 36px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.048em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
  display: block;
}
.stat-num.c-green { color: var(--green); text-shadow: 0 0 48px var(--green-glow); }
.stat-num.c-teal  { color: var(--teal);  text-shadow: 0 0 48px var(--teal-glow);  }
.stat-num.c-blue  { color: var(--blue);  text-shadow: 0 0 48px var(--blue-glow);  }
.stat-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.stat-sub, .stat-desc {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.55;
}
.stat-sub code, .stat-desc code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255,255,255,0.07);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--teal);
}

/* ─── Problem bento grid ─────────────────────────────────── */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 56px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.problem-card {
  background: var(--bg-1);
  padding: 32px 28px;
  position: relative;
  transition: background 0.18s;
  overflow: hidden;
}
/* visible at rest: subtle top border gradient */
.problem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(45,212,191,0.3) 50%, transparent 100%);
  opacity: 0.6;
  transition: opacity 0.2s;
}
.problem-card:hover { background: var(--bg-2); }
.problem-card:hover::before { opacity: 1; }
/* ghost number */
.problem-card::after {
  content: attr(data-num);
  position: absolute;
  bottom: 8px; right: 16px;
  font-size: 72px;
  font-weight: 900;
  color: rgba(255,255,255,0.025);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  letter-spacing: -0.06em;
  user-select: none;
  transition: color 0.2s;
}
.problem-card:hover::after { color: rgba(45,212,191,0.04); }
.problem-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.problem-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.42;
  letter-spacing: -0.01em;
}
.problem-a-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 7px;
}
.problem-a {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.68;
}
.problem-a code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: rgba(255,255,255,0.06);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--teal);
}
.problem-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.problem-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--teal-bg);
  color: var(--teal);
  border: 1px solid var(--teal-border);
}

/* ─── How it works teaser ────────────────────────────────── */
.how-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--r-xl);
  padding: 56px 60px;
  position: relative;
  overflow: hidden;
}
.how-teaser::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(45,212,191,0.20) 0%,
    rgba(96,165,250,0.10) 50%,
    transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.how-teaser-text h2 {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.22;
  margin-bottom: 14px;
}
.how-teaser-text p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 26px;
}
.how-steps { display: flex; flex-direction: column; gap: 2px; }
.how-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--text-2);
  transition: background 0.15s, color 0.15s;
  cursor: default;
}
.how-step:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.how-step-n {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--teal-bg);
  border: 1px solid var(--teal-border);
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* ─── Verdict envelope ───────────────────────────────────── */
.envelope {
  background: var(--bg-1);
  position: relative;
}
.envelope::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(45,212,191,0.04), transparent 65%);
  pointer-events: none;
}
.envelope-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.envelope-code {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.envelope-code-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.env-dot { width: 10px; height: 10px; border-radius: 50%; }
.env-dot-r { background: #FF5F57; }
.env-dot-y { background: #FFBD2E; }
.env-dot-g { background: #28C840; }
.envelope-code-title {
  font-size: 11px;
  color: var(--text-3);
  margin-left: 4px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.envelope-code pre {
  padding: 20px;
  font-size: 12.5px;
  line-height: 1.82;
  overflow-x: auto;
  font-family: var(--font-mono);
}
.ef {
  display: block;
  border-radius: 3px;
  padding: 0 4px;
  margin: 0 -4px;
  transition: background 0.10s;
  cursor: default;
}
.ef:hover, .ef.is-active { background: rgba(45,212,191,0.08); }
.punct { color: var(--text-3); }
.k     { color: #94A3B8; }
.v-flag { color: #F87171; font-weight: 600; }
.v-str  { color: #86EFAC; }
.v-num  { color: var(--blue); }
.v-bool { color: var(--amber); }
.envelope-panel {
  position: sticky;
  top: calc(var(--ann-h) + var(--nav-h) + 20px);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.envelope-panel-inner {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}
.envelope-panel-default {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 300px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}
.ep-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-bg);
  border: 1px solid var(--teal-border);
  padding: 3px 10px;
  border-radius: 99px;
  display: inline-block;
  margin-bottom: 2px;
}
.ep-field {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.ep-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 16px;
}
.ep-guarantee {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
  padding: 14px 16px;
  background: var(--teal-bg);
  border: 1px solid var(--teal-border);
  border-radius: var(--r-sm);
}
.envelope-panel-content { display: none; }
.envelope-panel-content.is-active { display: block; }

/* ─── Measured section ───────────────────────────────────── */
.measured { background: var(--bg-1); position: relative; }
.measured-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: start;
}
.eval-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 24px;
}
.eval-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.eval-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}
.eval-table tr:last-child td { border-bottom: none; }
.eval-table .acc  { color: var(--blue);  font-weight: 600; font-variant-numeric: tabular-nums; }
.eval-table .zero { color: var(--green); font-weight: 700; text-shadow: 0 0 20px var(--green-glow); }
.eval-table .fix  { color: var(--text-2); }
.measured-hero {
  background: linear-gradient(160deg, rgba(52,211,153,0.07) 0%, transparent 60%);
  border: 1px solid rgba(52,211,153,0.15);
  border-radius: var(--r-xl);
  padding: 40px 32px;
  text-align: center;
  margin-bottom: 12px;
}
.measured-hero-num {
  font-size: clamp(56px, 7vw, 80px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--green);
  text-shadow: 0 0 64px var(--green-glow);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.measured-hero-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.measured-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  margin-bottom: 8px;
}
.measured-stat:last-child { margin-bottom: 0; }
.measured-stat .num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 5px;
  font-variant-numeric: tabular-nums;
}
.measured-stat .label { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.measured-stat .sub   { font-size: 12px; color: var(--text-2); line-height: 1.5; }
.measured-stat .sub code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255,255,255,0.06);
  padding: 1px 4px;
  border-radius: 3px;
  color: var(--teal);
}
.mlinks { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.mlink {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--teal);
  transition: opacity 0.15s;
}
.mlink:hover { opacity: 0.7; text-decoration: underline; text-underline-offset: 3px; }

/* ─── EU AI Act banner ───────────────────────────────────── */
.euai {
  position: relative;
  background: linear-gradient(135deg, rgba(251,191,36,0.06) 0%, rgba(251,191,36,0.03) 100%);
  border: 1px solid rgba(251,191,36,0.14);
  border-radius: var(--r-xl);
  padding: 48px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
}
.euai::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--amber-glow), transparent 70%);
  pointer-events: none;
}
.euai-left { flex: 1; position: relative; }
.euai-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-bg);
  border: 1px solid rgba(251,191,36,0.20);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.euai h3 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 10px;
}
.euai h3 strong { color: var(--amber); }
.euai p { font-size: 14.5px; color: var(--text-2); line-height: 1.65; max-width: 460px; }
.euai-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  position: relative;
}
.euai-countdown {
  text-align: center;
  padding: 18px 32px;
  background: rgba(251,191,36,0.05);
  border: 1px solid rgba(251,191,36,0.14);
  border-radius: var(--r-lg);
}
.euai-days {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.055em;
  color: var(--amber);
  line-height: 1;
  display: block;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 48px var(--amber-glow);
}
.euai-days-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(251,191,36,0.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 5px;
}

/* ─── Sector cards ───────────────────────────────────────── */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 48px;
}
.sector-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: default;
  position: relative;
  overflow: hidden;
}
/* Gradient top line — visible at rest */
.sector-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45,212,191,0.4), transparent);
  opacity: 0.5;
  transition: opacity 0.2s;
}
.sector-card:hover {
  border-color: rgba(255,255,255,0.12);
  background: var(--bg-card-h);
}
.sector-card:hover::before { opacity: 1; }
.sector-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.sector-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
  letter-spacing: -0.015em;
}
.sector-regs {
  font-size: 11.5px;
  color: var(--text-3);
  margin-bottom: 14px;
  line-height: 1.5;
}
.sector-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 18px;
}
.sector-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sector-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(255,255,255,0.04);
  color: var(--text-2);
  border: 1px solid rgba(255,255,255,0.06);
}

/* ─── Get started ────────────────────────────────────────── */
.getstarted {
  background: var(--bg-1);
  position: relative;
  overflow: hidden;
}
.getstarted::before {
  content: '';
  position: absolute;
  bottom: -140px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal-glow), transparent 70%);
  pointer-events: none;
}
.getstarted-card {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.getstarted-card h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.028em;
  margin-bottom: 12px;
}
.getstarted-card > p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.code-block {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 12px;
  text-align: left;
}
.code-block-header {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
  gap: 8px;
}
.code-block-title {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.code-block pre {
  padding: 16px 20px;
  font-size: 12.5px;
  font-family: var(--font-mono);
  line-height: 1.82;
  overflow-x: auto;
  color: var(--text-2);
}
.code-block pre .comment { color: var(--text-3); }
.code-block pre .cmd     { color: var(--teal); }
.code-block pre .k       { color: var(--blue); }
.getstarted-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 64px 0 44px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 260px repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.footer-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.footer-logo .logo-ski { color: var(--teal); }
.footer-tagline {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 18px;
}
.footer-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.footer-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(255,255,255,0.03);
  color: var(--text-2);
  border: 1px solid rgba(255,255,255,0.06);
}
.footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a {
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.15s;
}
.footer-col ul a:hover { color: var(--text); }
.footer-demo-btn {
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.15s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  text-align: left;
}
.footer-demo-btn:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-copy { font-size: 12.5px; color: var(--text-3); }
.footer-copy a { color: var(--text-2); transition: color 0.15s; }
.footer-copy a:hover { color: var(--text); }
.footer-trademark  { font-size: 12px; color: var(--text-3); }
.footer-trademark a { color: var(--text-2); }
.footer-disclaimer {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.6;
  max-width: 820px;
}
.footer-disclaimer strong { color: var(--text-2); }

/* ─── Mobile docs section nav ────────────────────────────── */
.docs-mobile-nav { display: none; }

/* ─── Docs pages ─────────────────────────────────────────── */
.docs-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 56px;
  align-items: start;
  padding: calc(var(--ann-h) + var(--nav-h) + 48px) 40px 96px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.docs-sidebar {
  position: sticky;
  top: calc(var(--ann-h) + var(--nav-h) + 28px);
  max-height: calc(100vh - var(--ann-h) - var(--nav-h) - 56px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.docs-sidebar-inner { display: flex; flex-direction: column; }
.docs-sidebar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 18px 10px 6px;
}
.docs-sidebar-section { margin-bottom: 4px; }
.docs-sidebar a {
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text-2);
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: 0.15s;
}
.docs-sidebar a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.docs-sidebar a.active {
  color: var(--teal);
  background: var(--teal-bg);
  border-color: var(--teal-border);
}
.docs-content { max-width: 720px; }
.docs-hero {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.docs-content h1 {
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 14px;
}
.docs-version {
  font-size: 0.48em;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--teal-bg);
  color: var(--teal);
  border: 1px solid var(--teal-border);
  vertical-align: middle;
  letter-spacing: 0;
  margin-left: 10px;
}
.docs-lead {
  font-size: 15.5px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 20px;
}
.docs-callout {
  background: var(--teal-bg);
  border: 1px solid var(--teal-border);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.62;
  margin: 16px 0;
}
.docs-callout strong { color: var(--teal); }
.docs-callout-amber {
  background: var(--amber-bg);
  border-color: rgba(251,191,36,0.18);
}
.docs-callout-amber strong { color: var(--amber); }
.docs-content section { padding: 0; }
.docs-content h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: 52px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--ann-h) + var(--nav-h) + 24px);
}
.docs-content h3 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 26px;
  margin-bottom: 10px;
  scroll-margin-top: calc(var(--ann-h) + var(--nav-h) + 24px);
}
.docs-content p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 14px;
}
.docs-content ul, .docs-content ol { padding-left: 20px; margin-bottom: 14px; }
.docs-content li { font-size: 14.5px; color: var(--text-2); line-height: 1.7; margin-bottom: 5px; }
.docs-content strong { color: var(--text); }
.docs-content a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.docs-content code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--teal);
}
.docs-table-wrap {
  overflow-x: auto;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  margin: 14px 0 20px;
}
.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: var(--bg-2);
}
.docs-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.docs-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top;
  line-height: 1.55;
}
.docs-table tr:last-child td { border-bottom: none; }
.docs-table code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--teal);
}
.docs-table .v-flag  { color: var(--red);   font-weight: 600; }
.docs-table .v-clear { color: var(--green); font-weight: 600; }

/* ─── About page — FIX: was 3 nested padding layers = 208px gaps ── */
.about-main {
  padding: calc(var(--ann-h) + var(--nav-h) + 64px) 0 96px;
}
.about-hero {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.about-hero h1 {
  font-size: clamp(26px, 3.8vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.about-lead {
  font-size: 17px;
  line-height: 1.78;
  color: var(--text-2);
  max-width: 640px;
}
.about-section {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.about-section:last-of-type { border-bottom: none; margin-bottom: 0; }
.about-section h2 {
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.about-section p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 14px;
  max-width: 680px;
}
.about-section a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
/* keep old classes working too */
.about-block {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.about-block:last-child { border-bottom: none; }
.about-block h2 {
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.about-block p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 14px;
  max-width: 680px;
}
.about-block a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.principle {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.principle:last-child { border-bottom: none; }
.principle-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}
.principle h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 7px; letter-spacing: -0.01em; }
.principle p  { font-size: 14px; color: var(--text-2); line-height: 1.72; }
.about-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 24px;
}
.about-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.about-link:hover { border-color: var(--border-h); background: var(--bg-card-h); }
.about-link svg { flex-shrink: 0; color: var(--teal); margin-top: 2px; }
.about-link strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.about-legal {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.7;
}
.about-legal p { margin-bottom: 8px; }
.about-legal a { color: var(--text-2); }

/* ─── Fade up (hero) ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.fade-up { animation: fadeUp 0.55s cubic-bezier(0.2,0.9,0.3,1) both; }
.fade-up.d1 { animation-delay: 0.07s; }
.fade-up.d2 { animation-delay: 0.14s; }
.fade-up.d3 { animation-delay: 0.22s; }

/* ─── Scroll-reveal ──────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity  0.6s cubic-bezier(0.2,0.9,0.3,1),
    transform 0.6s cubic-bezier(0.2,0.9,0.3,1);
}
[data-reveal].in-view { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner     { grid-template-columns: 1fr; gap: 48px; }
  .hero-terminal  { max-width: 600px; transform: none; }
  .stats-grid     { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2)  { border-right: none; }
  .stat-item:nth-child(3)  { border-top: 1px solid var(--border); }
  .problems-grid  { grid-template-columns: repeat(2,1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .footer-brand   { grid-column: 1 / -1; }
  .docs-layout    { grid-template-columns: 180px 1fr; gap: 36px; }
  .envelope-inner { grid-template-columns: 1fr 300px; }
}

@media (max-width: 768px) {
  /* --ann-h = 0 because announce is in document flow on mobile, not fixed */
  :root { --nav-h: 56px; --ann-h: 0px; --announce-h: 0px; }

  /* Announce: pull out of fixed positioning so it flows naturally above the nav */
  .announce {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: 0 !important;
    font-size: 12px;
    padding: 10px 16px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    z-index: auto !important;
  }
  .announce-sep { display: none; }

  /* Header: sticky so it follows the announce naturally, then locks at top */
  header {
    position: sticky !important;
    top: 0 !important;
  }

  /* Hamburger: visible — only hide nav-links and the GitHub button, not the whole nav-actions */
  .nav-links  { display: none; }
  .nav-github { display: none; }
  .nav-hamburger { display: flex; }

  .nav-inner  { padding: 0 20px; }
  .section    { padding: 56px 0; }
  .section-sm { padding: 36px 0; }
  .container  { padding: 0 20px; }
  .hero-inner { padding: 0 20px; }
  .hero h1    { font-size: clamp(34px,9vw,48px); }
  .hero-terminal { transform: none !important; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item  { padding: 28px 20px; }
  .problems-grid  { grid-template-columns: 1fr; }
  .how-teaser     { grid-template-columns: 1fr; padding: 32px 28px; gap: 28px; }
  .envelope-inner { grid-template-columns: 1fr; }
  .envelope-panel { position: static; }
  .measured-grid  { grid-template-columns: 1fr; }
  .euai           { flex-direction: column; padding: 32px 24px; }
  .euai-right     { align-items: flex-start; }
  .sectors-grid   { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  .docs-layout    { grid-template-columns: 1fr; padding: calc(var(--nav-h) + 12px) 20px 56px; }
  .docs-sidebar   { display: none; }
  .docs-mobile-nav {
    display: flex;
    overflow-x: auto;
    gap: 7px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--nav-h);
    z-index: 50;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    scrollbar-width: none;
    margin: 0 -20px;
    margin-bottom: 20px;
  }
  .docs-mobile-nav::-webkit-scrollbar { display: none; }
  .docs-mobile-nav a {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: 99px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-2);
    white-space: nowrap;
    transition: 0.15s;
  }
  .docs-mobile-nav a.active,
  .docs-mobile-nav a:hover {
    background: var(--teal-bg);
    border-color: var(--teal-border);
    color: var(--teal);
  }
  .about-links { grid-template-columns: 1fr; }
  .principle   { grid-template-columns: 1fr; gap: 6px; }
  .term-body   { font-size: 11px; }
}

@media (max-width: 480px) {
  .hero { padding-top: calc(var(--nav-h)+40px); }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-trust { gap: 6px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item  { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .sectors-grid   { grid-template-columns: 1fr; }
  .getstarted-card { text-align: left; }
}

/* ─── Demo modal ─────────────────────────────────────────── */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.demo-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.demo-modal[hidden] { display: none !important; }

.demo-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
}

.demo-modal-inner {
  position: relative;
  width: min(1060px, 96vw);
  height: min(720px, 90vh);
  background: #0A0A0A;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.05);
}
.demo-modal.is-open .demo-modal-inner {
  transform: scale(1) translateY(0);
}

/* thin auto-play progress line at very top */
.demo-auto-bar {
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  background: var(--teal);
  width: 0;
  z-index: 10;
  pointer-events: none;
}

.demo-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
  z-index: 2;
}
.demo-modal-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.demo-modal-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.demo-modal-step {
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
.demo-modal-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.demo-icon-btn:hover {
  background: rgba(255,255,255,0.14);
  color: var(--text);
}
.demo-esc-hint {
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

/* .skix inside modal: fill remaining space */
.demo-modal-inner .skix {
  flex: 1;
  min-height: 0;
  height: auto !important;
}
/* hide the built-in skix chrome (we have our own header) */
.demo-modal-inner .skix-progress { display: none; }
.demo-modal-inner .skix-header   { display: none !important; }

@media (max-width: 640px) {
  .demo-modal { padding: 0; }
  .demo-modal-inner { width: 100%; height: 100%; border-radius: 0; border: none; }
  .demo-esc-hint { display: none; }
}
