/* ═══════════════════════════════════════════════════════
   MIDNIGHT ATOLL — atoll-cms Website Theme
   Dark, premium, technically confident.
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Design Tokens ── */
:root {
  /* Backgrounds */
  --bg:           #07090f;
  --bg-soft:      #0d1117;
  --bg-card:      #151b25;
  --bg-elevated:  #1c2333;
  --bg-hover:     #222b3a;

  /* Borders */
  --border:       #1e2736;
  --border-hl:    #2d3a4d;

  /* Text */
  --text:         #e6edf3;
  --text-2:       #8b949e;
  --text-3:       #4a5567;

  /* Brand */
  --brand:        #06d6a0;
  --brand-dim:    rgba(6, 214, 160, 0.12);
  --brand-glow:   rgba(6, 214, 160, 0.25);

  /* Accents */
  --coral:        #ff6b6b;
  --gold:         #fbbf24;
  --sky:          #38bdf8;
  --violet:       #a78bfa;

  /* Typography */
  --ff-display:   'Syne', sans-serif;
  --ff-body:      'Plus Jakarta Sans', sans-serif;
  --ff-mono:      'JetBrains Mono', monospace;

  --text-xs:      0.75rem;
  --text-sm:      0.875rem;
  --text-base:    1rem;
  --text-lg:      1.125rem;
  --text-xl:      1.25rem;
  --text-2xl:     1.5rem;
  --text-3xl:     clamp(1.75rem, 2.5vw, 2rem);
  --text-4xl:     clamp(2rem, 3.5vw, 2.75rem);
  --text-5xl:     clamp(2.5rem, 5vw, 3.75rem);
  --text-6xl:     clamp(3rem, 6vw, 4.5rem);

  /* Layout */
  --container:    1180px;
  --radius:       12px;
  --radius-lg:    20px;
  --header-h:     64px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ff-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; transition: color 0.2s; }
a:hover { color: #2ee8b7; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }

/* ── Layout ── */
.container {
  width: min(var(--container), 90vw);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-main {
  min-height: calc(100vh - var(--header-h));
}

/* ══════════════════════════════════════
   HEADER
   ══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 9, 15, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand) 0%, #38bdf8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 14px;
  color: #07090f;
}

.brand-text {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Navigation */
.nav {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

.nav a[aria-current="page"] {
  color: var(--text);
}

/* Header CTA */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #07090f;
  background: var(--brand);
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.header-cta:hover {
  background: #2ee8b7;
  color: #07090f;
  transform: translateY(-1px);
}

.header-cta svg {
  width: 16px;
  height: 16px;
}

/* Header nav wrapper (desktop) */
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem;
  color: var(--text-2);
  cursor: pointer;
}

.menu-toggle svg { width: 20px; height: 20px; }

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}

/* Mesh gradient background */
.hero::before {
  content: '';
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(ellipse 600px 500px at 20% 50%, rgba(6, 214, 160, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 500px 400px at 75% 30%, rgba(56, 189, 248, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 400px 600px at 60% 80%, rgba(167, 139, 250, 0.05) 0%, transparent 70%);
  animation: heroMesh 25s ease-in-out infinite;
  pointer-events: none;
}

/* Grid overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
  pointer-events: none;
}

@keyframes heroMesh {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(2%, -3%) scale(1.02); }
  66%  { transform: translate(-1%, 2%) scale(0.98); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero-content { max-width: 560px; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-hl);
  background: var(--bg-card);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: fadeUp 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

.hero-kicker .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: var(--text-6xl);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.5s cubic-bezier(0.16,1,0.3,1) 0.08s both;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--brand) 0%, var(--sky) 50%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 2rem;
  max-width: 48ch;
  animation: fadeUp 0.5s cubic-bezier(0.16,1,0.3,1) 0.16s both;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  animation: fadeUp 0.5s cubic-bezier(0.16,1,0.3,1) 0.24s both;
}

/* Terminal window */
.terminal {
  border: 1px solid var(--border-hl);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 20px 60px rgba(0,0,0,0.4),
    0 0 120px rgba(6, 214, 160, 0.04);
  animation: fadeUp 0.6s cubic-bezier(0.16,1,0.3,1) 0.3s both;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-hl);
}

.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #febc2e; }
.terminal-dot:nth-child(3) { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-3);
  font-family: var(--ff-mono);
}

.terminal pre {
  margin: 0;
  padding: 1.25rem 1.5rem;
  font-family: var(--ff-mono);
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--text-2);
  overflow-x: auto;
}

.terminal .prompt { color: var(--brand); }
.terminal .cmd { color: var(--text); }
.terminal .comment { color: var(--text-3); font-style: italic; }
.terminal .output { color: var(--text-3); }

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  font-family: var(--ff-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background: var(--brand);
  color: #07090f;
  box-shadow: 0 0 0 0 var(--brand-glow);
}

.btn-primary:hover {
  background: #2ee8b7;
  color: #07090f;
  transform: translateY(-2px);
  box-shadow: 0 4px 24px var(--brand-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hl);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  border-color: var(--text-3);
  color: var(--text);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════ */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.section-kicker {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: var(--text-4xl);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--text-2);
  max-width: 56ch;
  margin: 0 auto;
}

/* ══════════════════════════════════════
   FEATURES GRID
   ══════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-card {
  background: var(--bg);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  transition: background 0.3s;
}

.feature-card:hover {
  background: var(--bg-card);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: var(--brand-dim);
  color: var(--brand);
}

.feature-icon svg { width: 20px; height: 20px; }

.feature-icon.coral { background: rgba(255,107,107,0.12); color: var(--coral); }
.feature-icon.gold { background: rgba(251,191,36,0.12); color: var(--gold); }
.feature-icon.sky { background: rgba(56,189,248,0.12); color: var(--sky); }
.feature-icon.violet { background: rgba(167,139,250,0.12); color: var(--violet); }

.feature-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-2);
  font-size: var(--text-sm);
  line-height: 1.65;
  margin: 0;
}

/* ══════════════════════════════════════
   ARCHITECTURE / CODE SECTION
   ══════════════════════════════════════ */
.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.arch-text h3 {
  font-size: var(--text-2xl);
  margin-bottom: 1rem;
}

.arch-text p {
  color: var(--text-2);
  margin-bottom: 1.5rem;
}

.arch-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.arch-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.5;
}

.arch-list .check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-dim);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.arch-list .check svg { width: 12px; height: 12px; }

.code-window {
  border: 1px solid var(--border-hl);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
}

.code-bar {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-family: var(--ff-mono);
  font-size: var(--text-xs);
  color: var(--text-3);
}

.code-bar .file-icon {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  color: var(--brand);
}

.code-window pre {
  margin: 0;
  padding: 1.25rem 1.5rem;
  font-family: var(--ff-mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-2);
  overflow-x: auto;
}

.code-window .key { color: var(--sky); }
.code-window .val { color: var(--brand); }
.code-window .str { color: var(--gold); }
.code-window .cmt { color: var(--text-3); font-style: italic; }
.code-window .dir { color: var(--violet); }
.code-window .file { color: var(--text-2); }
.code-window .indent { color: var(--text-3); }

/* ══════════════════════════════════════
   COMPARISON TABLE
   ══════════════════════════════════════ */
.compare-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  min-width: 640px;
}

.compare-table thead {
  background: var(--bg-card);
}

.compare-table th {
  text-align: left;
  padding: 1rem 1.25rem;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.compare-table th.hl {
  color: var(--brand);
  position: relative;
}

.compare-table th.hl::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand);
}

.compare-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle;
}

.compare-table td.hl {
  background: var(--brand-dim);
  color: var(--text);
  font-weight: 500;
}

.compare-table tbody tr:last-child td { border-bottom: none; }

.compare-table tbody tr:hover td {
  background: var(--bg-card);
}

.compare-table tbody tr:hover td.hl {
  background: rgba(6, 214, 160, 0.18);
}

.check-yes {
  color: var(--brand);
  font-weight: 600;
}

.check-no {
  color: var(--text-3);
}

.check-paid {
  color: var(--gold);
  font-size: var(--text-xs);
}

/* ══════════════════════════════════════
   STEPS / GETTING STARTED
   ══════════════════════════════════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  counter-increment: step;
  position: relative;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s;
}

.step:hover {
  border-color: var(--border-hl);
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-dim);
  color: var(--brand);
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--text-sm);
  margin-bottom: 1rem;
}

.step h3 {
  font-size: var(--text-base);
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-2);
  font-size: var(--text-sm);
  margin-bottom: 1rem;
}

.step pre {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}

.step code {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--brand);
  overflow-x: auto;
  line-height: 1.6;
  white-space: pre;
}

/* ══════════════════════════════════════
   CTA BANNER
   ══════════════════════════════════════ */
.cta-banner {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 50% 80% at 50% 100%, var(--brand-dim) 0%, transparent 70%),
    var(--bg-card);
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  font-size: var(--text-3xl);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: var(--text-2);
  max-width: 48ch;
  margin: 0 auto 2rem;
}

.cta-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.badge-mit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: var(--brand-dim);
  color: var(--brand);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-top: 1.5rem;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: clamp(2.5rem, 4vw, 4rem) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  text-decoration: none;
}

.footer-brand .brand-mark {
  width: 24px;
  height: 24px;
  font-size: 12px;
}

.footer-brand .brand-text {
  font-size: var(--text-sm);
}

.footer-about {
  color: var(--text-3);
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--ff-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-3);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: clamp(2rem, 3vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--text-3);
}

.footer-bottom a {
  color: var(--text-3);
}

.footer-bottom a:hover {
  color: var(--text-2);
}

/* ══════════════════════════════════════
   PAGE DEFAULT (Interior pages)
   ══════════════════════════════════════ */
.page-head {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.page-kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.page-head h1 {
  font-size: var(--text-4xl);
  margin-bottom: 0.75rem;
}

.page-head .lead {
  font-size: var(--text-lg);
  color: var(--text-2);
  max-width: 64ch;
  margin: 0;
}

.page-content {
  max-width: 780px;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

/* ══════════════════════════════════════
   PROSE
   ══════════════════════════════════════ */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.25rem; }

.prose h2 {
  font-size: var(--text-2xl);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.prose h3 {
  font-size: var(--text-xl);
  margin-top: 2rem;
}

.prose p {
  color: var(--text-2);
  line-height: 1.75;
}

.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(6, 214, 160, 0.3);
}

.prose a:hover {
  text-decoration-color: var(--brand);
}

.prose strong { color: var(--text); font-weight: 600; }

.prose ul, .prose ol {
  padding-left: 1.5rem;
  color: var(--text-2);
}

.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--text-3); }

.prose code {
  font-family: var(--ff-mono);
  font-size: 0.875em;
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--brand);
}

.prose pre {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: var(--ff-mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-2);
}

.prose pre code {
  padding: 0;
  background: none;
  border: none;
  font-size: inherit;
  color: inherit;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--brand);
  background: var(--brand-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.prose blockquote p { color: var(--text); margin: 0; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: var(--text-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.prose thead { background: var(--bg-card); }

.prose th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}

.prose tbody tr:last-child td { border-bottom: none; }
.prose tbody tr:hover { background: var(--bg-card); }

.prose hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
}

.prose img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ══════════════════════════════════════
   STATS BAR
   ══════════════════════════════════════ */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat-value {
  font-family: var(--ff-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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


/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .terminal {
    max-width: 520px;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .arch-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .stats-bar {
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    position: relative;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) - 1px);
    left: -1rem;
    right: -1rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .header-nav.is-open {
    display: flex;
  }

  .nav {
    flex-direction: column;
    gap: 0.25rem;
  }

  .nav a {
    width: 100%;
    padding: 0.6rem 0.85rem;
  }

  .header-cta {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    font-size: var(--text-4xl);
  }
}

/* ══════════════════════════════════════
   UTILITY
   ══════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
