/* ============================================
   AZMUTH — Design System & Global Styles
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@900&family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  /* Colors */
  --bg-primary: #0a0f0a;
  --bg-secondary: #0d140d;
  --bg-card: rgba(26, 61, 43, 0.15);
  --bg-card-hover: rgba(26, 61, 43, 0.3);
  --forest: #1a3d2b;
  --emerald: #2d8a4e;
  --emerald-bright: #3ddc84;
  --emerald-glow: rgba(45, 138, 78, 0.4);
  --cream: #f0ebe0;
  --cream-muted: rgba(240, 235, 224, 0.6);
  --gold: #c9a84c;
  --amber: #e8a317;
  --red-risk: #e04040;
  --terminal-green: #00ff41;

  /* Typography */
  --font-wordmark: 'Orbitron', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-code: 'Courier New', monospace;

  /* Spacing */
  --section-pad: clamp(60px, 10vh, 120px);
  --container-width: 1200px;
  --gap: 24px;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
a { color: var(--emerald-bright); text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: none; font-family: inherit; }

/* ---- Custom Cursor ---- */
#custom-cursor {
  position: fixed; top: 0; left: 0;
  width: 16px; height: 16px;
  background: var(--emerald-bright);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: screen;
  transition: transform 0.15s var(--ease-out);
  box-shadow: 0 0 20px var(--emerald-glow), 0 0 60px rgba(61, 220, 132, 0.2);
}
#ink-trail-canvas {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* ---- Loading Screen ---- */
#loading-screen {
  position: fixed; inset: 0;
  background: var(--bg-primary);
  z-index: 9998;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loading-screen.hidden { opacity: 0; visibility: hidden; }
#loading-screen .logo-text {
  font-family: var(--font-wordmark);
  font-size: 3rem; font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--emerald-bright);
  text-transform: uppercase;
  margin-top: 24px;
  opacity: 0;
  animation: fadeInUp 0.8s 0.5s forwards;
}
.loader-nodes {
  position: relative; width: 120px; height: 120px;
}
.loader-node {
  position: absolute; width: 10px; height: 10px;
  background: var(--emerald-bright);
  border-radius: 50;
  animation: converge 2s var(--ease-spring) forwards;
}
@keyframes converge {
  0% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0); }
  50% { opacity: 1; transform: translate(calc(var(--tx) * 0.3), calc(var(--ty) * 0.3)) scale(1); }
  100% { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Graph-Paper Grid Overlay ---- */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(45, 138, 78, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 138, 78, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

/* ---- Section Base ---- */
.section {
  position: relative;
  padding: var(--section-pad) 0;
  z-index: 2;
}
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ---- Typography ---- */
.wordmark {
  font-family: var(--font-wordmark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--cream);
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
.label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--emerald);
}
.stat-number {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--emerald-bright);
}
.body-text {
  font-family: var(--font-body);
  color: var(--cream-muted);
  font-weight: 300;
  line-height: 1.7;
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Navbar ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 15, 10, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(45, 138, 78, 0.1);
  transition: transform 0.3s ease;
}
.nav-inner {
  max-width: var(--container-width);
  margin: 0 auto; padding: 0 var(--gap);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
}
.nav-logo img { height: 36px; }
.nav-logo span {
  font-family: var(--font-wordmark);
  font-weight: 900; font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-bright);
}
.nav-links {
  display: flex; gap: 28px; list-style: none;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.85rem; font-weight: 500;
  color: var(--cream-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--emerald-bright);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--emerald-bright); }
.nav-links a:hover::after { width: 100%; }
.hamburger {
  display: none;
  background: none; border: none;
  flex-direction: column; gap: 5px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--cream); transition: all 0.3s;
}

/* ---- Hero Section ---- */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 80px;
}
#hero-canvas {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 720px;
}
.hero-content h1 {
  margin-bottom: 20px;
}
.hero-content h1 em {
  color: var(--emerald-bright);
  font-style: normal;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--cream-muted);
  margin-bottom: 32px;
  max-width: 560px;
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--emerald), var(--forest));
  color: var(--cream);
  font-family: var(--font-heading);
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--emerald);
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.4s var(--ease-out);
  box-shadow: 0 0 30px var(--emerald-glow);
}
.cta-btn:hover {
  background: var(--emerald);
  box-shadow: 0 0 50px var(--emerald-glow), 0 0 100px rgba(45, 138, 78, 0.2);
  transform: translateY(-2px);
}

/* Stats Bar */
.stats-bar {
  display: flex; flex-wrap: wrap; gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(45, 138, 78, 0.2);
}
.stat-item {
  display: flex; flex-direction: column; gap: 4px;
}
.stat-item .stat-number { font-size: 1.8rem; }
.stat-item .stat-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: var(--cream-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---- Problem Section ---- */
#problem { background: var(--bg-secondary); }
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.gradebook {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
}
.gradebook-header {
  display: grid; grid-template-columns: 1fr 1fr;
  background: rgba(45, 138, 78, 0.1);
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream-muted);
}
.gradebook-row {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.04);
  align-items: center;
}
.gradebook-row .score {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--red-risk);
}
.identical-badge {
  display: inline-block;
  margin-left: 12px;
  padding: 2px 10px;
  background: rgba(224, 64, 64, 0.15);
  border: 1px solid var(--red-risk);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--red-risk);
  text-transform: uppercase;
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge { 0%,100% { opacity:1; } 50% { opacity:0.5; } }

.profile-card {
  background: var(--bg-card);
  border: 1px solid rgba(45, 138, 78, 0.2);
  border-radius: 16px;
  padding: 28px;
}
.profile-card h4 {
  font-size: 0.9rem;
  margin-bottom: 20px;
  color: var(--emerald-bright);
}
.metric-bar-group { margin-bottom: 12px; }
.metric-bar-label {
  display: flex; justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 4px;
}
.metric-bar-label span:first-child { color: var(--cream-muted); }
.metric-bar-label span:last-child {
  font-family: var(--font-mono); color: var(--emerald-bright);
}
.metric-bar-track {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.metric-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s var(--ease-out);
}
.metric-bar-fill.strength { background: var(--emerald-bright); }
.metric-bar-fill.developing { background: var(--amber); }
.metric-bar-fill.risk { background: var(--red-risk); }

/* Toggle */
.toggle-container {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-top: 48px;
}
.toggle-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--cream-muted);
  transition: color 0.3s;
}
.toggle-label.active { color: var(--emerald-bright); }
.toggle-switch {
  position: relative;
  width: 56px; height: 28px;
  background: var(--forest);
  border-radius: 14px;
  border: 1px solid var(--emerald);
  cursor: pointer;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: var(--emerald-bright);
  border-radius: 50%;
  transition: transform 0.3s var(--ease-spring);
}
.toggle-switch.active::after { transform: translateX(28px); }

.before-after-panel {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 24px; margin-top: 32px;
}
.ba-card {
  background: var(--bg-card);
  border: 1px solid rgba(45, 138, 78, 0.15);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.5s var(--ease-out);
}
.ba-card .ba-icon { font-size: 2rem; margin-bottom: 12px; }
.ba-card h4 {
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--cream);
}
.ba-card p {
  font-size: 0.8rem;
  color: var(--cream-muted);
}

/* ---- Pipeline Section ---- */
#pipeline { overflow: hidden; }
.pipeline-track {
  display: flex; gap: 24px;
  padding: 40px 0;
}
.pipeline-stage {
  flex: 0 0 240px;
  perspective: 800px;
}
.pipeline-card {
  position: relative;
  width: 100%; height: 280px;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out);
}
.pipeline-stage:hover .pipeline-card { transform: rotateY(180deg); }
.pipeline-front, .pipeline-back {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(45, 138, 78, 0.2);
  border-radius: 16px;
  padding: 28px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
}
.pipeline-back {
  transform: rotateY(180deg);
  background: rgba(26, 61, 43, 0.3);
}
.pipeline-front .stage-num {
  font-family: var(--font-mono);
  font-size: 3rem; font-weight: 700;
  color: var(--emerald-bright);
  opacity: 0.3;
  margin-bottom: 12px;
}
.pipeline-front .stage-icon { font-size: 2.5rem; margin-bottom: 16px; }
.pipeline-front h3 { font-size: 1rem; }
.pipeline-back p {
  font-size: 0.85rem;
  color: var(--cream-muted);
  line-height: 1.6;
}
.pipeline-connector {
  display: flex; align-items: center;
  flex: 0 0 40px;
  color: var(--emerald);
  font-size: 1.5rem;
}
.pipeline-time {
  text-align: center; margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--emerald-bright);
  animation: pulse-badge 2s infinite;
}

/* ---- Cognitive Engine Section ---- */
#cognitive-engine { background: var(--bg-secondary); }
.cluster-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.cluster-ring {
  background: var(--bg-card);
  border: 1px solid rgba(45, 138, 78, 0.15);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.cluster-ring:hover { border-color: var(--emerald); }
.cluster-ring::before {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 70% 30%, var(--emerald-glow), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s;
}
.cluster-ring:hover::before { opacity: 1; }
.cluster-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--emerald);
  margin-bottom: 20px;
  position: relative;
}
.metric-item {
  display: flex; justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative;
}
.metric-item:last-child { border-bottom: none; }
.metric-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--cream);
}
.metric-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
}
.metric-tooltip {
  display: none;
  position: absolute;
  bottom: 100%; left: 0; right: 0;
  background: rgba(10, 15, 10, 0.95);
  border: 1px solid var(--emerald);
  border-radius: 8px;
  padding: 12px;
  font-size: 0.8rem;
  color: var(--cream-muted);
  z-index: 10;
}
.metric-item:hover .metric-tooltip { display: block; }

/* ---- Archetypes Section ---- */
#archetypes { overflow: hidden; }
.archetype-carousel {
  display: flex; gap: 24px;
  padding: 40px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.archetype-carousel::-webkit-scrollbar { display: none; }
.archetype-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid rgba(45, 138, 78, 0.15);
  border-radius: 20px;
  padding: 36px 28px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}
.archetype-card:hover { border-color: var(--emerald); }
.archetype-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--cream);
}
.archetype-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 16px;
}
.archetype-tag {
  padding: 4px 12px;
  background: rgba(45, 138, 78, 0.15);
  border: 1px solid rgba(45, 138, 78, 0.3);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--emerald-bright);
}
.archetype-desc {
  font-size: 0.85rem;
  color: var(--cream-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}
.archetype-rx {
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.archetype-rx .label { margin-bottom: 6px; }
.archetype-rx p {
  font-size: 0.8rem;
  color: var(--gold);
  font-style: italic;
}

/* ---- Causal Chain Section ---- */
#causal-chain { background: var(--bg-secondary); }
#causal-graph-canvas {
  width: 100%;
  height: 400px;
  margin-top: 40px;
}

/* ---- Rules Section (Terminal) ---- */
#rules {
  background: #050a05;
  border-top: 1px solid rgba(0, 255, 65, 0.1);
  border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}
.terminal-panel {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 65, 0.15);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 32px;
}
.terminal-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  background: rgba(0, 255, 65, 0.05);
  border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}
.terminal-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }
.terminal-header span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(0, 255, 65, 0.5);
  margin-left: 8px;
}
.terminal-body {
  padding: 24px;
  max-height: 500px;
  overflow-y: auto;
}
.rule-line {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--terminal-green);
  padding: 6px 0;
  opacity: 0;
  transform: translateX(-10px);
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: all 0.3s;
}
.rule-line.visible {
  opacity: 1;
  transform: translateX(0);
}
.rule-line.highlighted {
  background: rgba(0, 255, 65, 0.05);
  border-left-color: var(--terminal-green);
}
.rule-line .rule-num {
  color: rgba(0, 255, 65, 0.4);
  margin-right: 12px;
}
.rule-tooltip {
  display: none;
  margin-top: 8px;
  padding: 12px;
  background: rgba(0, 255, 65, 0.05);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--cream-muted);
}
.rule-line.highlighted:hover .rule-tooltip { display: block; }

/* ---- Roadmap Section ---- */
#roadmap {}
.timeline {
  display: flex; align-items: center;
  justify-content: center;
  gap: 0; margin: 48px 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 50%; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--forest), var(--emerald), var(--forest));
}
.timeline-node {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--forest);
  border-radius: 16px;
  padding: 24px;
  width: 240px;
  text-align: center;
  z-index: 2;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.timeline-node.active {
  border-color: var(--emerald-bright);
  box-shadow: 0 0 30px var(--emerald-glow);
}
.timeline-arrow {
  width: 60px;
  display: flex; align-items: center; justify-content: center;
  color: var(--emerald); font-size: 1.5rem;
  z-index: 2;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 48px;
}
.comparison-table th {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald);
  padding: 16px;
  border-bottom: 1px solid rgba(45, 138, 78, 0.2);
  text-align: left;
}
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.9rem;
  color: var(--cream-muted);
}
.comparison-table td:nth-child(3) {
  font-family: var(--font-mono);
  color: var(--emerald-bright);
}
.progress-bar-container {
  margin-top: 32px;
  text-align: center;
}
.progress-bar-track {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 12px;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--emerald-bright));
  border-radius: 4px;
  width: 0%;
  transition: width 3s var(--ease-out);
}

/* ---- Market Section ---- */
#market { background: var(--bg-secondary); }
.market-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}
.market-stat-card {
  background: var(--bg-card);
  border: 1px solid rgba(45,138,78,0.15);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}
.market-stat-card .stat-number { font-size: 2.2rem; display: block; }
.market-stat-card .stat-label { margin-top: 8px; }
.india-map-container {
  position: relative;
  width: 100%; max-width: 500px;
  margin: 0 auto 48px;
}
#india-map-svg { width: 100%; height: auto; }
.milestone-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.milestone {
  background: var(--bg-card);
  border: 1px solid rgba(45, 138, 78, 0.15);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: border-color 0.3s;
}
.milestone:hover { border-color: var(--emerald); }
.milestone h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--emerald-bright);
  margin-bottom: 8px;
}
.milestone p {
  font-size: 0.8rem;
  color: var(--cream-muted);
}
.revenue-chart {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 200px;
  margin-top: 40px;
  padding: 0 20px;
}
.revenue-bar-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}
.revenue-bar {
  width: 100%;
  background: linear-gradient(180deg, var(--emerald-bright), var(--emerald));
  border-radius: 6px 6px 0 0;
  transition: height 1.5s var(--ease-out);
  position: relative;
  min-height: 4px;
}
.revenue-bar .bar-value {
  position: absolute;
  top: -24px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--emerald-bright);
  white-space: nowrap;
}
.revenue-bar-label {
  margin-top: 8px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: var(--cream-muted);
  text-align: center;
}

/* ---- YouTube Section ---- */
#youtube {
  background: #050505;
  position: relative;
  overflow: hidden;
}
#youtube::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}
.cinema-frame {
  max-width: 800px;
  margin: 0 auto;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.05);
}
.cinema-frame iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
}

/* ---- Competitive Moat Section ---- */
#moat {}
.moat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.moat-col {
  background: var(--bg-card);
  border: 1px solid rgba(45, 138, 78, 0.15);
  border-radius: 16px;
  padding: 32px 24px;
  transition: all 0.5s var(--ease-out);
  overflow: hidden;
}
.moat-col:hover {
  background: rgba(26, 61, 43, 0.25);
  border-color: var(--emerald);
  transform: translateY(-4px);
}
.moat-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.moat-col h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}
.moat-col p {
  font-size: 0.85rem;
  color: var(--cream-muted);
  line-height: 1.6;
}
.moat-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), margin-top 0.5s;
  font-size: 0.8rem;
  color: var(--cream-muted);
}
.moat-col:hover .moat-detail {
  max-height: 200px;
  margin-top: 12px;
}

/* ---- Footer ---- */
#footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(45, 138, 78, 0.1);
  text-align: center;
  padding: 80px 0 48px;
}
.footer-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--cream);
  max-width: 700px;
  margin: 0 auto 48px;
  line-height: 1.4;
}
.footer-quote em {
  color: var(--emerald-bright);
  font-style: normal;
}
.footer-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.pillar {
  padding: 20px;
}
.pillar h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--emerald-bright);
  margin-bottom: 6px;
}
.pillar p {
  font-size: 0.8rem;
  color: var(--cream-muted);
}
.footer-closing {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 32px;
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(45, 138, 78, 0.1);
  font-size: 0.75rem;
  color: var(--cream-muted);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .cluster-grid { grid-template-columns: 1fr; }
  .moat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-pillars { grid-template-columns: repeat(2, 1fr); }
  .milestone-timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline { flex-direction: column; gap: 16px; }
  .timeline::before { display: none; }
  .timeline-arrow { transform: rotate(90deg); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(10,15,10,0.95);
    padding: 20px var(--gap);
    gap: 16px;
    border-bottom: 1px solid rgba(45,138,78,0.1);
  }
  .problem-grid { grid-template-columns: 1fr; }
  .before-after-panel { grid-template-columns: 1fr; }
  .moat-grid { grid-template-columns: 1fr; }
  .footer-pillars { grid-template-columns: 1fr; }
  .market-stats { grid-template-columns: 1fr; }
  .milestone-timeline { grid-template-columns: 1fr 1fr; }
  .stats-bar { gap: 20px; }
  .stat-item .stat-number { font-size: 1.4rem; }
  h1 { font-size: 2rem; }
  #custom-cursor { display: none; }
  body { cursor: auto; }
  button { cursor: pointer; }
}
