/* ============================================================
   XIOM Marketing Website — Design System
   Pixel-perfect odei.ai aesthetic
   Pure black, stark white, zero noise, sharp edges
   ============================================================ */

/* ─────────────────────────────────────────────────────────────
   1. CSS RESET
   ───────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: #000000;
  color: #ffffff;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

body.menu-unlocked {
  overflow: hidden;
}

body.section-open {
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }
img, canvas, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; }
em { font-style: italic; }
strong { font-weight: 600; }

/* ─────────────────────────────────────────────────────────────
   2. CSS CUSTOM PROPERTIES
   ───────────────────────────────────────────────────────────── */
:root {
  /* Colors */
  --bg:              #000000;
  --fg:              #ffffff;
  --fg-secondary:    rgba(255, 255, 255, 0.5);
  --fg-accent:       rgba(255, 255, 255, 0.7);
  --fg-muted:        rgba(255, 255, 255, 0.3);
  --fg-dim:          rgba(255, 255, 255, 0.2);

  --border:          rgba(255, 255, 255, 0.08);
  --border-subtle:   rgba(255, 255, 255, 0.05);
  --border-medium:   rgba(255, 255, 255, 0.15);
  --border-strong:   rgba(255, 255, 255, 0.3);

  --card-bg:         rgba(255, 255, 255, 0.02);
  --card-bg-hover:   rgba(255, 255, 255, 0.04);
  --code-bg:         rgba(255, 255, 255, 0.04);

  --success:         #4ade80;
  --failure:         rgba(255, 255, 255, 0.3);
  --warning:         rgba(255, 200, 0, 0.7);

  /* Fonts */
  --font-sans:       'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:       'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Spacing scale */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   3rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;
  --space-3xl:  8rem;

  /* Layout */
  --container-max: 1200px;
  --nav-height:    64px;

  /* Transitions */
  --transition:    all 0.2s ease;

  /* Border radius — ZERO everywhere */
  --radius: 0px;
}

/* ─────────────────────────────────────────────────────────────
   3. BASE STYLES
   ───────────────────────────────────────────────────────────── */
::selection {
  background: #ffffff;
  color: #000000;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* ─────────────────────────────────────────────────────────────
   4. TYPOGRAPHY CLASSES
   ───────────────────────────────────────────────────────────── */
.text-hero {
  font-size: 5.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  font-family: var(--font-sans);
}

.text-section-title {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-family: var(--font-sans);
}

.text-subsection {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-family: var(--font-sans);
}

.text-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  line-height: 1.4;
}

.text-body {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  font-family: var(--font-sans);
}

.text-body-sm {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.6;
  font-family: var(--font-sans);
}

.text-mono {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  font-weight: 400;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────
   5. LAYOUT UTILITIES
   ───────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ─────────────────────────────────────────────────────────────
   6. SECTION BASE
   ───────────────────────────────────────────────────────────── */
.section {
  min-height: 100vh;
  padding: var(--space-3xl) 0;
  position: relative;
  border-top: 1px solid var(--border-subtle);
}

.section-number {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: var(--space-lg);
  display: block;
}

/* ─────────────────────────────────────────────────────────────
   7. GRID SYSTEM
   ───────────────────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* ─────────────────────────────────────────────────────────────
   8. BUTTON STYLES
   ───────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #ffffff;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-primary:active {
  background: rgba(255, 255, 255, 0.12);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--fg-secondary);
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  white-space: nowrap;
  text-decoration: none;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* ─────────────────────────────────────────────────────────────
   9. NAVIGATION
   ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 2rem;
}

.nav-logo {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  flex-shrink: 0;
  cursor: default;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  padding: 0.5rem 0.875rem;
  transition: var(--transition);
  white-space: nowrap;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--fg); }

.nav-cta {
  flex-shrink: 0;
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
}

/* ─────────────────────────────────────────────────────────────
   10. SECTION NUMBER LABELS (already in .section-number)
       Additional helper for inline labels
   ───────────────────────────────────────────────────────────── */
.label-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
}

/* ─────────────────────────────────────────────────────────────
   11. DIVIDERS
   ───────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 4rem 0;
  border: none;
}

.divider-sm {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 2rem 0;
  border: none;
}

/* ─────────────────────────────────────────────────────────────
   12. CODE BLOCK STYLES
   ───────────────────────────────────────────────────────────── */
.code-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  overflow-x: auto;
  border-radius: var(--radius);
  white-space: pre-wrap;
  word-break: break-word;
}

.code-block .code-comment  { color: rgba(255,255,255,0.3); }
.code-block .code-key      { color: rgba(255,255,255,0.6); }
.code-block .code-value    { color: rgba(180,255,180,0.8); }
.code-block .code-string   { color: rgba(255,200,120,0.8); }
.code-block .code-error    { color: rgba(255,80,80,0.7); }
.code-block .code-success  { color: var(--success); }

/* ─────────────────────────────────────────────────────────────
   13. CARD STYLES
   ───────────────────────────────────────────────────────────── */
.card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.card-sm {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
}

/* ─────────────────────────────────────────────────────────────
   14. CHECKMARK LIST (✓ in green)
   ───────────────────────────────────────────────────────────── */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--fg-accent);
}

.check-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 600;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 0.1em;
  font-family: var(--font-sans);
}

/* ─────────────────────────────────────────────────────────────
   15. X LIST (✗ in muted white)
   ───────────────────────────────────────────────────────────── */
.x-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.x-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--fg-secondary);
}

.x-list li::before {
  content: '✗';
  color: var(--failure);
  font-weight: 600;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 0.1em;
  font-family: var(--font-sans);
}

/* ─────────────────────────────────────────────────────────────
   16. DATA TABLE STYLES
   ───────────────────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-weight: 300;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.data-table td { color: var(--fg-secondary); }
.data-table td:first-child { color: var(--fg); }

.data-table tr:last-child th,
.data-table tr:last-child td { border-bottom: none; }

.data-table tbody tr { transition: var(--transition); }
.data-table tbody tr:hover td { color: var(--fg); }

/* ─────────────────────────────────────────────────────────────
   17. SCROLL REVEAL ANIMATIONS
   ───────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fast {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal-fast.visible { opacity: 1; transform: translateY(0); }

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger.visible > *:nth-child(1)  { opacity: 1; transform: none; transition-delay: 0s; }
.stagger.visible > *:nth-child(2)  { opacity: 1; transform: none; transition-delay: 0.07s; }
.stagger.visible > *:nth-child(3)  { opacity: 1; transform: none; transition-delay: 0.14s; }
.stagger.visible > *:nth-child(4)  { opacity: 1; transform: none; transition-delay: 0.21s; }
.stagger.visible > *:nth-child(5)  { opacity: 1; transform: none; transition-delay: 0.28s; }
.stagger.visible > *:nth-child(6)  { opacity: 1; transform: none; transition-delay: 0.35s; }

/* ─────────────────────────────────────────────────────────────
   18. INTERACTIVE PROMPT STYLES
   ───────────────────────────────────────────────────────────── */
.prompt-wrapper {
  max-width: 600px;
  margin: 4rem 0;
}

.prompt-text {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--fg-accent);
  margin-bottom: 2rem;
}

.cursor-blink {
  display: inline-block;
  animation: blink 1s step-end infinite;
  color: var(--fg);
}

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

.prompt-buttons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.prompt-buttons.is-hidden {
  display: none !important;
}

.typewriter-block .prompt-buttons {
  justify-content: center;
  animation: fadeIn 0.4s ease;
  margin-top: 0.5rem;
  padding-bottom: 1rem;
}

.prompt-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--fg-secondary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 400;
  padding: 0.625rem 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.05em;
  border-radius: var(--radius);
}
.prompt-btn:hover {
  border-color: rgba(255,255,255,0.5);
  color: #ffffff;
  background: rgba(255,255,255,0.04);
}
.prompt-btn.selected-yes {
  border-color: var(--success);
  color: var(--success);
}
.prompt-btn.selected-no {
  border-color: rgba(255,255,255,0.4);
  color: #ffffff;
}

.prompt-response {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--fg-secondary);
  border-left: 2px solid rgba(255,255,255,0.1);
  padding-left: 1.25rem;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  border-top: none;
  overflow: hidden;
}

#sphere-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.25;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 4rem;
  padding-bottom: 6rem;
}

.hero-headline {
  margin: 3rem 0 3rem;
  max-width: 800px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────────────────────────
   INTRO / COMPARISON SECTION
   ───────────────────────────────────────────────────────────── */
.intro-body {
  max-width: 680px;
  color: var(--fg-secondary);
  margin: 2rem 0 4rem;
}

.comparison-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.comparison-header span:first-child { padding-left: 3rem; }
.comparison-header span:last-child  { padding-left: 2rem; }

.comparison-grid {
  border: 1px solid var(--border);
  border-top: none;
  margin-bottom: 4rem;
}

.comparison-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  align-items: stretch;
  transition: var(--transition);
}
.comparison-row:last-child { border-bottom: none; }
.comparison-row:hover { background: rgba(255,255,255,0.015); }

.row-number {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  padding: 1.5rem 0.5rem 1.5rem 1rem;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
}

.row-today {
  padding: 1.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--fg-secondary);
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
}

.row-arrow {
  padding: 1.5rem 1rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}

.row-possible {
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}

.row-possible strong {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
}

.row-possible small {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--fg-muted);
}

.intro-explanation {
  margin-top: 0;
}

/* ─────────────────────────────────────────────────────────────
   PROBLEM SECTION
   ───────────────────────────────────────────────────────────── */
.cost-number {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0.75rem 0;
  color: var(--fg);
  font-family: var(--font-mono);
}

.loop-diagram {
  margin: 4rem 0;
  text-align: center;
}

.loop-steps {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--fg-accent);
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--code-bg);
}

/* ─────────────────────────────────────────────────────────────
   SUBSECTION SPACING HELPERS
   ───────────────────────────────────────────────────────────── */
.mt-xs  { margin-top: var(--space-xs); }
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-xs  { margin-bottom: var(--space-xs); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }

/* ─────────────────────────────────────────────────────────────
   PRODUCT SECTION — Receipt card, authority tiers, governance loop
   ───────────────────────────────────────────────────────────── */
.receipt-card {
  font-family: var(--font-mono);
}

.receipt-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  font-size: 0.8125rem;
  align-items: baseline;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 0.5rem;
}
.receipt-row:last-child { border-bottom: none; }

.receipt-label {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  font-weight: 600;
  padding-top: 0.1rem;
}

/* Governance loop grid */
.governance-loop {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  border: 1px solid var(--border);
  padding: 2rem;
  align-items: center;
}
.loop-center {
  text-align: center;
  border-right: 1px solid var(--border);
  padding-right: 2rem;
}
.loop-steps-grid {
  display: grid;
  gap: 1rem;
}
.loop-step {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--fg-secondary);
  padding: 0.75rem 1rem;
  border-left: 2px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.loop-step .text-label {
  color: var(--fg-muted);
  flex-shrink: 0;
}

/* Six problems solved cards */
.problem-card {
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--card-bg);
}
.problem-number {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}
.problem-before {
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
  font-style: italic;
}
.problem-after {
  font-size: 0.875rem;
  color: var(--fg);
  font-weight: 500;
  padding-left: 0.75rem;
  border-left: 2px solid var(--success);
}

/* Authority tiers */
.tier-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: var(--transition);
}
.tier-row:last-child { border-bottom: none; }
.tier-row:hover { background: rgba(255,255,255,0.015); }
.tier-name {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
}
.tier-desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--fg-secondary);
}
.tier-badge {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  white-space: nowrap;
}
.tier-row.tier-autonomous .tier-name { color: var(--success); }
.tier-row.tier-autonomous .tier-badge { border-color: var(--success); color: var(--success); }

/* Formula display */
.formula-display {
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--code-bg);
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--fg);
}
.formula-display sub, .formula-display sup {
  font-size: 0.65em;
}

/* ─────────────────────────────────────────────────────────────
   LEVELS SECTION
   ───────────────────────────────────────────────────────────── */
.levels-table td, .levels-table th {
  font-size: 0.8rem;
}
.levels-table .l5-row td {
  background: rgba(255,255,255,0.025);
}

.product-level-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card-bg);
}
.level-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}

.barrier-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card-bg);
}
.barrier-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

/* ─────────────────────────────────────────────────────────────
   SCIENCE SECTION
   ───────────────────────────────────────────────────────────── */
.axiom-card {
  padding: 2rem;
  border: 1px solid var(--border);
  counter-increment: axiom-counter;
}
.axiom-number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.axiom-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--fg);
}
.axiom-body {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--fg-secondary);
  line-height: 1.6;
}

.research-row {
  display: grid;
  grid-template-columns: 3rem 200px 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.research-row:last-child { border-bottom: none; }
.research-id {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  padding-top: 0.1rem;
}
.research-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg);
}
.research-desc {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--fg-secondary);
  line-height: 1.5;
}

.definition-block {
  border-left: 2px solid rgba(255,255,255,0.15);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: var(--code-bg);
}
.definition-block p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--fg-accent);
  font-style: italic;
}
.definition-block cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-style: normal;
}

/* ─────────────────────────────────────────────────────────────
   MEMORY SECTION
   ───────────────────────────────────────────────────────────── */
.memory-pillar {
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--card-bg);
}
.pillar-icon {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  color: var(--fg-muted);
}
.pillar-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--fg);
}
.pillar-tech {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--success);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.pillar-desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--fg-secondary);
  line-height: 1.6;
}

.terminal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--border);
  background: var(--code-bg);
  color: var(--fg-secondary);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.terminal-btn:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--fg);
}
.terminal-btn.danger:hover {
  border-color: rgba(255,80,80,0.5);
  color: rgba(255,120,120,0.9);
}

/* ─────────────────────────────────────────────────────────────
   ROADMAP SECTION
   ───────────────────────────────────────────────────────────── */
.phase-progress-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 3rem;
}
.phase-bar-segment {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.12);
}
.phase-bar-segment.done    { background: var(--success); }
.phase-bar-segment.current { background: rgba(255,255,255,0.5); }

.phase-row {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.phase-row:last-child { border-bottom: none; }

.phase-name-col {
  padding-right: 1rem;
  border-right: 1px solid var(--border);
}
.phase-number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}
.phase-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.phase-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border: 1px solid;
}
.phase-tag.done    { border-color: var(--success); color: var(--success); }
.phase-tag.current { border-color: rgba(255,255,255,0.4); color: var(--fg); }
.phase-tag.pending { border-color: var(--border); color: var(--fg-muted); }

.phase-col-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

/* ─────────────────────────────────────────────────────────────
   PRIVACY SECTION
   ───────────────────────────────────────────────────────────── */
.privacy-commitment {
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.commitment-icon {
  font-size: 1.1rem;
  font-family: var(--font-mono);
  color: var(--fg-muted);
}
.commitment-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
}
.commitment-desc {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--fg-secondary);
  line-height: 1.5;
}

.data-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
  font-size: 0.875rem;
}
.data-row:last-child { border-bottom: none; }
.data-key {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.data-val { font-weight: 300; color: var(--fg-secondary); }

/* ─────────────────────────────────────────────────────────────
   CONNECT / CTA SECTION
   ───────────────────────────────────────────────────────────── */
.connect-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-3xl) 0;
}

.audience-tags {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.audience-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  color: var(--fg-secondary);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 3rem;
}
.social-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  padding: 0.5rem 1.25rem;
  transition: var(--transition);
}
.social-link:hover { color: var(--fg); border-color: rgba(255,255,255,0.3); }

/* ─────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--fg); }

.footer-copy {
  font-size: 0.7rem;
  color: var(--fg-dim);
  font-family: var(--font-mono);
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .text-hero         { font-size: 4rem; }
  .text-section-title{ font-size: 2.75rem; }
  .nav-links         { display: none; }
  .grid-3            { grid-template-columns: 1fr 1fr; }
  .grid-4            { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .text-hero         { font-size: 2.8rem; }
  .text-section-title{ font-size: 2rem; }
  .text-subsection   { font-size: 1.35rem; }
  .grid-2            { grid-template-columns: 1fr; gap: 1.5rem; }
  .grid-3            { grid-template-columns: 1fr; gap: 1.5rem; }
  .grid-4            { grid-template-columns: 1fr; gap: 1.25rem; }
  .section           { padding: 5rem 0; }
  .hero-ctas         { flex-direction: column; }
  .container         { padding: 0 1.25rem; }
  .comparison-row    { grid-template-columns: 2rem 1fr; }
  .row-arrow, .row-possible { display: none; }
  .comparison-header { grid-template-columns: 1fr; }
  .comparison-header span:last-child { display: none; }
  .footer-inner      { flex-direction: column; align-items: flex-start; }
}

/* ─────────────────────────────────────────────────────────────
   SITE SHELL — base (dashboard.css handles home HUD)
   ───────────────────────────────────────────────────────────── */
.site-shell {
  position: relative;
  min-height: 100vh;
  background: #000;
}

.home-view.is-behind {
  visibility: hidden;
  pointer-events: none;
}

.hero-globe-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.typewriter-block {
  width: 100%;
  text-align: center;
  transition: opacity 0.35s ease;
}

.typewriter-block.fade-out {
  opacity: 0;
}

.typewriter-block.is-hidden {
  display: none;
}

.typewriter-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.5rem;
  min-height: 1.2em;
  font-family: var(--font-sans);
}

.typewriter-text {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  font-weight: 400;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 auto 1rem;
  min-height: 3.7em;
  white-space: pre-wrap;
  background: transparent;
  border: none;
  text-align: center;
}

.typewriter-question {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
  min-height: 1.5em;
}

.typewriter-reveal {
  animation: fadeIn 0.4s ease;
}

.section-back-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid var(--border-subtle);
}

body.section-open .section-back-bar {
  display: block;
}

.section-back-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.section-back-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.section-stage {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background: #000;
}

.section-stage.has-active {
  display: block;
  overflow-y: auto;
  padding-top: 56px;
}

.section-panel {
  display: none;
  min-height: calc(100vh - 56px);
  border-top: none;
  padding: 2rem 1.5rem 4rem;
}

.section-panel.is-active {
  display: block;
  animation: sectionFadeIn 0.35s ease;
}

@keyframes sectionFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.download-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  padding: 1.5rem;
  box-sizing: border-box;
}

.download-card-title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.download-card-desc {
  margin: 0;
  color: var(--fg-secondary);
  min-height: 3.2em;
  line-height: 1.55;
}

.download-card-actions {
  margin-top: auto;
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.download-card-actions .btn-primary {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  justify-content: center;
  white-space: normal;
  padding-left: 1rem;
  padding-right: 1rem;
}

.download-card-meta {
  margin: 0;
  min-height: 1.4em;
  color: var(--fg-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.download-card-meta a {
  color: var(--fg-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-card-meta a:hover {
  color: var(--fg);
}

.download-version {
  margin: 1.25rem 0 0;
  color: var(--fg-muted);
}

.site-footer {
  display: none;
}

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

  .download-card-desc {
    min-height: 0;
  }
}

@media (max-width: 768px) {
  body,
  body.menu-unlocked,
  body.section-open {
    overflow: auto;
    height: auto;
    min-height: 100vh;
  }
}
