/* ═══════════════════════════════════════════════
   RESET & ROOT VARIABLES
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colour palette */
  --c-bg:        #070b12;
  --c-bg2:       #0d1220;
  --c-bg3:       #111828;
  --c-surface:   #141c2e;
  --c-border:    rgba(99,120,180,0.18);
  --c-text:      #dce6f5;
  --c-muted:     #738aaf;
  --c-accent1:   #4f8eff;
  --c-accent2:   #a259ff;
  --c-accent3:   #00d9a3;
  --c-accent4:   #ff6b6b;
  --c-accent5:   #ffb347;
  --c-gold:      #f0c040;

  /* Gradients */
  --grad-primary:  linear-gradient(135deg, #4f8eff 0%, #a259ff 100%);
  --grad-teal:     linear-gradient(135deg, #00d9a3 0%, #4f8eff 100%);
  --grad-fire:     linear-gradient(135deg, #ff6b6b 0%, #ffb347 100%);
  --grad-dark:     linear-gradient(180deg, #0d1220 0%, #070b12 100%);

  /* Typography */
  --font-body:  'Inter', sans-serif;
  --font-head:  'Outfit', sans-serif;
  --font-mono:  'JetBrains Mono', monospace;

  /* Spacing */
  --gap:  1.5rem;
  --radius: 1rem;
  --radius-sm: 0.5rem;

  /* Shadows */
  --shadow-glow: 0 0 40px rgba(79,142,255,0.15);
  --shadow-card: 0 4px 30px rgba(0,0,0,0.4);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-accent1); border-radius: 3px; }

/* ══════════════════════════════════════════════
   BASE
══════════════════════════════════════════════ */
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; }
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
h4 { font-size: 1rem; margin-bottom: 0.5rem; }
p  { margin-bottom: 1rem; color: var(--c-muted); }
a  { color: var(--c-accent1); text-decoration: none; }
a:hover { color: var(--c-accent2); }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; color: var(--c-muted); }
code { font-family: var(--font-mono); background: rgba(79,142,255,0.1); padding: 0.1em 0.4em; border-radius: 0.25rem; font-size: 0.88em; color: var(--c-accent1); }
strong { color: var(--c-text); font-weight: 600; }
em { color: var(--c-accent1); font-style: italic; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.hidden { display: none !important; }

/* ── GRADIENT TEXT ── */
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════════════
   PARTICLES CANVAS
══════════════════════════════════════════════ */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ══════════════════════════════════════════════
   PROGRESS BAR
══════════════════════════════════════════════ */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--grad-primary);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(79,142,255,0.8);
}

/* ══════════════════════════════════════════════
   TOP NAV
══════════════════════════════════════════════ */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.75rem 2rem;
  background: rgba(7,11,18,0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
  transition: background 0.3s;
}
.topnav.scrolled { background: rgba(7,11,18,0.95); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  color: var(--c-text); text-decoration: none;
}
.brand-icon { font-size: 1.4rem; }
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none; padding: 0; margin: 0;
}
.nav-link {
  font-size: 0.875rem; font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--c-muted);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--c-text); background: rgba(79,142,255,0.1); }
.nav-cta {
  background: var(--grad-primary);
  color: #fff !important;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
}
.nav-cta:hover { opacity: 0.9; background: var(--grad-primary) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--c-text); border-radius: 2px; transition: transform 0.3s; }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 8rem 8vw 4rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(79,142,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; right: 10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(162,89,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(79,142,255,0.4);
  border-radius: 2rem;
  padding: 0.35rem 0.9rem;
  color: var(--c-accent1);
  background: rgba(79,142,255,0.06);
  margin-bottom: 1.5rem;
  animation: fadeSlideIn 0.6s ease both;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  color: var(--c-text);
  margin-bottom: 1.25rem;
  animation: fadeSlideIn 0.7s ease 0.1s both;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--c-muted);
  max-width: 500px;
  margin-bottom: 2rem;
  animation: fadeSlideIn 0.7s ease 0.2s both;
}
.hero-subtitle strong { color: var(--c-accent3); }
.hero-buttons {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeSlideIn 0.7s ease 0.3s both;
}
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: 2rem;
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: all 0.2s; border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(79,142,255,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(79,142,255,0.5); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); color: var(--c-text); }
.hero-stats {
  display: flex; gap: 2rem;
  animation: fadeSlideIn 0.7s ease 0.4s both;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-head); font-size: 2rem; font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.78rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── NEURAL NET VISUAL ── */
.hero-visual { display: flex; align-items: center; justify-content: center; animation: fadeSlideIn 0.9s ease 0.2s both; }
#neural-net {
  width: 380px; height: 380px;
  position: relative;
}

/* ══════════════════════════════════════════════
   SECTIONS COMMON
══════════════════════════════════════════════ */
.content-section, .method-section, .toc-section {
  position: relative; z-index: 1;
  padding: 5rem 0;
}
.alt-bg { background: var(--c-bg2); }
.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--c-accent1);
  margin-bottom: 0.5rem;
}
.section-title { color: var(--c-text); margin-bottom: 1rem; }
.section-intro { font-size: 1.05rem; color: var(--c-muted); max-width: 800px; margin-bottom: 2.5rem; }

/* ══════════════════════════════════════════════
   CALLOUT BOXES
══════════════════════════════════════════════ */
.callout {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  border-left: 3px solid;
}
.callout-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 0.1rem; }
.callout-body { flex: 1; }
.callout-body p { margin-bottom: 0; }
.callout-def  { background: rgba(79,142,255,0.07); border-color: var(--c-accent1); }
.callout-tip  { background: rgba(0,217,163,0.07); border-color: var(--c-accent3); }
.callout-note { background: rgba(162,89,255,0.07); border-color: var(--c-accent2); }
.callout-example { background: rgba(255,107,107,0.07); border-color: var(--c-accent4); }

/* ══════════════════════════════════════════════
   TABLE OF CONTENTS
══════════════════════════════════════════════ */
.toc-section { padding: 4rem 0; }
.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}
.toc-card {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--c-text);
  font-weight: 500;
  transition: all 0.2s;
  position: relative; overflow: hidden;
}
.toc-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.2s;
}
.toc-card:hover::before { opacity: 0.05; }
.toc-card:hover { border-color: var(--c-accent1); transform: translateX(4px); color: var(--c-text); }
.toc-num {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700;
  color: var(--c-accent1); background: rgba(79,142,255,0.1);
  padding: 0.2rem 0.5rem; border-radius: 0.25rem; flex-shrink: 0;
}
.toc-title { flex: 1; font-size: 0.9rem; color: var(--c-text); }
.toc-arrow { color: var(--c-muted); font-size: 0.85rem; }
.toc-sub .toc-num { background: rgba(162,89,255,0.1); color: var(--c-accent2); }
.toc-sub { padding-left: 2rem; background: rgba(255,255,255,0.02); }

/* ══════════════════════════════════════════════
   INFO CARDS (two-col)
══════════════════════════════════════════════ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.info-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.info-card:hover { border-color: var(--c-accent1); transform: translateY(-2px); }
.card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.info-card h3 { margin-bottom: 0.75rem; color: var(--c-text); }
.info-card ul { padding-left: 1.1rem; }
.info-card h4 { color: var(--c-text); }

/* ── SCOPE DIAGRAM ── */
.concept-block {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 1.5rem 0;
}
.scope-diagram {
  position: relative; display: flex; flex-direction: column;
  align-items: center; gap: 0; margin: 2rem auto 0;
  max-width: 600px;
}
.scope-ring {
  width: 100%; text-align: center; padding: 1rem 2rem;
  border-radius: 2rem; font-weight: 600;
  transition: transform 0.3s;
}
.scope-ring:hover { transform: scale(1.02); }
.scope-ring-3 { background: rgba(79,142,255,0.06); border: 1px solid rgba(79,142,255,0.2); color: var(--c-accent1); font-size: 1rem; }
.scope-ring-2 { background: rgba(162,89,255,0.08); border: 1px solid rgba(162,89,255,0.25); color: var(--c-accent2); font-size: 1.05rem; margin: 0.5rem 2rem; }
.scope-ring-1 { background: rgba(0,217,163,0.1); border: 1px solid rgba(0,217,163,0.3); color: var(--c-accent3); font-size: 1.1rem; font-weight: 700; margin: 0 4rem; }

/* ══════════════════════════════════════════════
   PARADIGMS
══════════════════════════════════════════════ */
.paradigm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.paradigm-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 2rem 1.5rem;
  position: relative; overflow: hidden; text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}
.paradigm-card:hover { transform: translateY(-6px); }
.paradigm-learn:hover { border-color: var(--c-accent1); }
.paradigm-search:hover { border-color: var(--c-accent2); }
.paradigm-solve:hover { border-color: var(--c-accent3); }
.paradigm-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-primary);
}
.paradigm-learn::before { background: var(--c-accent1); }
.paradigm-search::before { background: var(--c-accent2); }
.paradigm-solve::before { background: var(--c-accent3); }
.paradigm-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.paradigm-card h3 { color: var(--c-text); margin-bottom: 0.5rem; }
.paradigm-card p { font-size: 0.9rem; }
.paradigm-tag {
  display: inline-block; margin-top: 1rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--c-muted);
  border: 1px solid var(--c-border); border-radius: 2rem; padding: 0.2rem 0.6rem;
}

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0.55rem; top: 0.5rem; bottom: 0.5rem;
  width: 2px; background: linear-gradient(to bottom, var(--c-accent1), var(--c-accent2));
  border-radius: 2px;
}
.timeline-item { position: relative; padding: 0 0 1.75rem 2rem; }
.timeline-dot {
  position: absolute; left: -1.6rem; top: 0.4rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--grad-primary);
  box-shadow: 0 0 0 3px rgba(79,142,255,0.2);
}
.timeline-content { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.timeline-content h4 { color: var(--c-accent1); margin-bottom: 0.4rem; }
.timeline-content p { margin: 0; font-size: 0.9rem; }

/* ══════════════════════════════════════════════
   METHODS SECTION — CHIPS
══════════════════════════════════════════════ */
.methods-overview { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.method-chip {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem; border-radius: 2rem;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  font-size: 0.85rem; font-weight: 500; cursor: pointer;
  transition: all 0.2s; color: var(--c-text);
}
.method-chip:hover { background: rgba(79,142,255,0.1); border-color: var(--c-accent1); transform: translateY(-2px); }

/* ══════════════════════════════════════════════
   METHOD SECTIONS
══════════════════════════════════════════════ */
.method-header {
  display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2.5rem;
}
.method-header h2 { color: var(--c-text); font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.method-tagline { color: var(--c-muted); font-size: 0.95rem; margin: 0; }
.method-badge {
  width: 60px; height: 60px; border-radius: 1rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem;
  color: #fff;
}
.method-badge-1 { background: #2563eb; }
.method-badge-2 { background: #7c3aed; }
.method-badge-3 { background: #059669; }
.method-badge-4 { background: #dc2626; }
.method-badge-5 { background: #d97706; }
.method-badge-6 { background: #0891b2; }
.method-badge-7 { background: #9333ea; }
.method-badge-8 { background: #16a34a; }

.method-body { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.method-main { min-width: 0; }
.method-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 1.25rem;
}
.sidebar-card h4 { color: var(--c-accent1); margin-bottom: 1rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.sidebar-card dl dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-muted); margin-top: 0.75rem; }
.sidebar-card dl dd { font-size: 0.9rem; color: var(--c-text); margin-left: 0; }
.sidebar-warn { border-color: rgba(255,107,107,0.3); }
.sidebar-warn h4 { color: var(--c-accent4); }
.sidebar-warn ul { padding-left: 1rem; }
.sidebar-warn li { font-size: 0.85rem; }

/* ── FEATURE LIST ── */
.feature-list { list-style: none; padding: 0; }
.feature-list li { padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.92rem; }
.feature-list li:last-child { border: none; }
.badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  padding: 0.15rem 0.45rem; border-radius: 0.25rem; margin-right: 0.5rem;
}
.badge-green { background: rgba(0,217,163,0.15); color: var(--c-accent3); }
.badge-red   { background: rgba(255,107,107,0.15); color: var(--c-accent4); }
.badge-blue  { background: rgba(79,142,255,0.15); color: var(--c-accent1); }
.badge-purple{ background: rgba(162,89,255,0.15); color: var(--c-accent2); }

/* ── PROCESS FLOW ── */
.process-flow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0;
}
.pf-step {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  background: rgba(79,142,255,0.06); border: 1px solid rgba(79,142,255,0.15);
  border-radius: var(--radius-sm); padding: 0.75rem 1rem; min-width: 90px; text-align: center;
}
.pf-icon { font-size: 1.5rem; }
.pf-label { font-size: 0.75rem; font-weight: 600; color: var(--c-text); }
.pf-arrow { color: var(--c-muted); font-size: 1.2rem; }

/* ── CYCLE DIAGRAM ── */
.cycle-diagram {
  display: flex; align-items: center;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 1.5rem; gap: 0; margin: 1.5rem 0; flex-wrap: wrap; justify-content: center;
}
.cycle-step { display: flex; align-items: center; }
.cycle-circle {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-primary); color: #fff; font-size: 0.78rem; font-weight: 700; text-align: center;
  box-shadow: 0 4px 20px rgba(79,142,255,0.3);
}
.cycle-line {
  width: 24px; height: 2px; background: var(--grad-primary);
  position: relative;
}
.cycle-line::after {
  content: '▶'; position: absolute; right: -8px; top: -7px;
  color: var(--c-accent1); font-size: 0.7rem;
}

/* ── SUPERVISED TABS ── */
.sl-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--c-border); }
.sl-tab {
  padding: 0.6rem 1.25rem; font-size: 0.9rem; font-weight: 600;
  background: none; border: none; cursor: pointer; color: var(--c-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.sl-tab.active { color: var(--c-accent1); border-color: var(--c-accent1); }
.sl-tab-content { padding: 1.25rem; background: var(--c-surface); border-radius: var(--radius); border: 1px solid var(--c-border); margin-bottom: 1.5rem; }
.sl-tab-content h4 { color: var(--c-text); margin-bottom: 0.5rem; }

/* ── PIPELINE ── */
.pipeline {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 1.25rem; margin: 1.5rem 0;
}
.pipe-step {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(5,150,105,0.1); border: 1px solid rgba(5,150,105,0.2);
  border-radius: var(--radius-sm); padding: 0.5rem 0.75rem; font-size: 0.82rem; font-weight: 500;
  color: var(--c-accent3);
}
.pipe-num {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--c-accent3); color: #000; font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pipe-arrow { color: var(--c-muted); font-size: 0.9rem; }

/* ── UNSUPERVISED TASKS ── */
.un-tasks { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.un-task {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 1.25rem; text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.un-task:hover { border-color: var(--c-accent4); transform: translateY(-3px); }
.un-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.un-task h4 { color: var(--c-text); margin-bottom: 0.4rem; }
.un-task p { font-size: 0.85rem; margin: 0; }

/* ── SPECTRUM BAR ── */
.spectrum-bar {
  display: flex; align-items: center; gap: 1rem;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0;
}
.spectrum-end { text-align: center; flex-shrink: 0; min-width: 100px; }
.spectrum-end strong { display: block; color: var(--c-text); font-size: 0.9rem; }
.spectrum-end span { font-size: 0.75rem; color: var(--c-muted); }
.spectrum-mid { flex: 1; }
.spectrum-arrow { font-size: 0.8rem; color: var(--c-muted); text-align: center; margin-bottom: 0.5rem; }
.spectrum-fill {
  height: 8px; border-radius: 4px;
  background: linear-gradient(to right, var(--c-accent1), var(--c-accent2), var(--c-accent4));
}

/* ── ENSEMBLE CARDS ── */
.ensemble-strategies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0; }
.ens-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 1.5rem; text-align: center;
  transition: all 0.2s;
}
.ens-card:hover { border-color: var(--c-accent1); transform: translateY(-4px); }
.ens-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.ens-card h4 { color: var(--c-text); margin-bottom: 0.5rem; }
.ens-card p { font-size: 0.85rem; }
.ens-example { margin-top: 0.75rem; font-size: 0.78rem; color: var(--c-accent1); font-family: var(--font-mono); }

/* ── KDD FLOW ── */
.kdd-flow {
  display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; justify-content: center;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0;
}
.kdd-step {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  background: rgba(162,89,255,0.06); border: 1px solid rgba(162,89,255,0.15);
  border-radius: var(--radius-sm); padding: 0.75rem 1rem; min-width: 90px; text-align: center;
  transition: border-color 0.2s;
}
.kdd-step:hover { border-color: var(--c-accent2); }
.kdd-icon { font-size: 1.5rem; }
.kdd-label { font-size: 0.72rem; font-weight: 600; color: var(--c-text); }
.kdd-arrow { color: var(--c-muted); font-size: 1rem; }

/* ── LBD LOOP ── */
.lbd-loop {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  padding: 2rem; background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); margin: 1.5rem 0;
}
.lbd-circle {
  width: 110px; height: 110px; border-radius: 50%;
  background: var(--grad-primary); color: #fff; font-size: 0.78rem; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; box-shadow: 0 4px 20px rgba(79,142,255,0.3);
  gap: 0.2rem;
}
.lbd-circle small { font-size: 0.65rem; opacity: 0.85; }
.lbd-circle.lbd-small { width: 90px; height: 90px; font-size: 0.7rem; background: rgba(79,142,255,0.15); border: 1px solid rgba(79,142,255,0.3); color: var(--c-text); box-shadow: none; }
.lbd-row { display: flex; gap: 3rem; width: 100%; justify-content: center; }
.lbd-side { display: flex; align-items: center; }

/* ── RL CONCEPTS ── */
.rl-concepts { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 1.5rem; }
.rl-chip {
  display: flex; align-items: center; gap: 0.4rem;
  background: rgba(22,163,74,0.1); border: 1px solid rgba(22,163,74,0.25);
  border-radius: 2rem; padding: 0.4rem 0.9rem;
  font-size: 0.82rem; font-weight: 600; color: var(--c-accent3);
}

/* ══════════════════════════════════════════════
   COMPARISON TABLE
══════════════════════════════════════════════ */
.table-responsive { overflow-x: auto; }
.comparison-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.9rem;
}
.comparison-table th, .comparison-table td {
  padding: 0.9rem 1.25rem; text-align: left;
  border-bottom: 1px solid var(--c-border);
}
.comparison-table thead th {
  background: var(--c-surface); font-family: var(--font-head);
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--c-muted);
  position: sticky; top: 0;
}
.comparison-table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.comparison-table thead th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }
.col-kd { color: var(--c-accent2) !important; }
.col-ml { color: var(--c-accent3) !important; }
.comparison-table tbody tr { transition: background 0.15s; }
.comparison-table tbody tr:hover { background: rgba(79,142,255,0.04); }
.comparison-table td:first-child { color: var(--c-text); font-weight: 500; }

/* ══════════════════════════════════════════════
   CASE STUDY
══════════════════════════════════════════════ */
.case-study {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: calc(var(--radius) * 1.5); padding: 2.5rem; margin-top: 1.5rem;
}
.case-scenario { display: flex; gap: 1.5rem; align-items: flex-start; margin-bottom: 2rem; }
.case-avatar {
  font-size: 4rem; width: 80px; height: 80px; flex-shrink: 0;
  background: rgba(79,142,255,0.1); border: 2px solid rgba(79,142,255,0.3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.case-story h3 { color: var(--c-text); }
.case-story p  { margin: 0; font-size: 0.95rem; }
.features-grid h3 { margin-bottom: 1.25rem; color: var(--c-text); }
.feature-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.feat-card {
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 1rem; text-align: center;
  transition: transform 0.2s;
}
.feat-card:hover { transform: translateY(-3px); }
.feat-icon { font-size: 1.5rem; margin-bottom: 0.4rem; }
.feat-name { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-muted); margin-bottom: 0.4rem; }
.feat-val { font-size: 0.82rem; font-weight: 600; padding: 0.25rem 0.5rem; border-radius: 0.25rem; }
.fc-good { background: rgba(0,217,163,0.1); color: var(--c-accent3); }
.fc-mid  { background: rgba(255,179,71,0.1);  color: var(--c-accent5); }
.fc-poor { background: rgba(255,107,107,0.1);  color: var(--c-accent4); }
.model-output { margin: 1.5rem 0; }
.model-box {
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 1.5rem; text-align: center;
}
.model-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-muted); margin-bottom: 1rem; }
.risk-meter {
  height: 10px; background: rgba(255,255,255,0.08);
  border-radius: 5px; overflow: hidden; margin-bottom: 0.5rem;
}
.risk-fill {
  height: 100%; background: var(--grad-fire); border-radius: 5px;
  animation: riskGrow 1.2s ease-out forwards;
}
@keyframes riskGrow { from { width: 0 } }
.risk-label { font-size: 0.9rem; color: var(--c-muted); margin-bottom: 1rem; }
.risk-label strong { color: var(--c-accent4); }
.model-verdict {
  display: inline-block; padding: 0.5rem 1.5rem;
  border-radius: 2rem; font-weight: 700; font-size: 0.9rem;
}
.verdict-decline { background: rgba(255,107,107,0.1); color: var(--c-accent4); border: 1px solid rgba(255,107,107,0.3); }

/* ══════════════════════════════════════════════
   MPI
══════════════════════════════════════════════ */
.mpi-container { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin: 2rem 0; }
.mpi-analogy { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 2rem; }
.mpi-analogy h3 { color: var(--c-text); margin-bottom: 1.5rem; }
.ja-flow { display: flex; flex-direction: column; gap: 0; }
.ja-step {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ja-step:last-child { border: none; }
.ja-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 0.1rem; }
.ja-text strong { color: var(--c-text); display: block; margin-bottom: 0.2rem; font-size: 0.9rem; }
.ja-text p { margin: 0; font-size: 0.82rem; }
.ja-success { background: rgba(0,217,163,0.05); border-radius: var(--radius-sm); padding: 0.9rem !important; margin-top: 0.5rem; }
.mpi-pillars { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 2rem; }
.mpi-pillars h3 { color: var(--c-text); margin-bottom: 1.5rem; }
.pillar-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.pillar {
  flex: 1; background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 1.25rem; text-align: center;
}
.pillar-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.pillar h4 { color: var(--c-text); font-size: 0.85rem; margin-bottom: 0.4rem; }
.pillar p  { font-size: 0.78rem; margin: 0; }
.pillar-plus { font-size: 1.5rem; color: var(--c-muted); flex-shrink: 0; }
.pillar-result {
  text-align: center; padding: 1rem;
  background: var(--grad-primary); border-radius: var(--radius);
  color: #fff; font-size: 0.9rem;
}
.pillar-result strong { color: #fff; }

/* ══════════════════════════════════════════════
   QUIZ
══════════════════════════════════════════════ */
.quiz-container { display: flex; flex-direction: column; gap: 1.5rem; }
.quiz-question {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: border-color 0.2s;
}
.quiz-question h4 { color: var(--c-text); margin-bottom: 1.25rem; font-size: 1rem; line-height: 1.5; }
.quiz-options { display: flex; flex-direction: column; gap: 0.5rem; }
.quiz-option {
  padding: 0.75rem 1.25rem; border-radius: var(--radius-sm);
  border: 1px solid var(--c-border); background: var(--c-bg);
  cursor: pointer; color: var(--c-muted); font-size: 0.9rem;
  transition: all 0.2s; text-align: left; width: 100%;
}
.quiz-option:hover:not(:disabled) { border-color: var(--c-accent1); color: var(--c-text); background: rgba(79,142,255,0.07); }
.quiz-option.correct  { background: rgba(0,217,163,0.1); border-color: var(--c-accent3); color: var(--c-accent3); }
.quiz-option.wrong    { background: rgba(255,107,107,0.1); border-color: var(--c-accent4); color: var(--c-accent4); }
.quiz-option:disabled { cursor: default; }
.quiz-explanation {
  margin-top: 1rem; padding: 0.9rem 1.1rem;
  background: rgba(79,142,255,0.07); border-radius: var(--radius-sm);
  border-left: 3px solid var(--c-accent1); font-size: 0.87rem; color: var(--c-muted);
  animation: fadeIn 0.3s ease;
}
.quiz-score {
  text-align: center; padding: 3rem;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
  animation: fadeSlideIn 0.5s ease;
}
.score-emoji { font-size: 3rem; margin-bottom: 0.75rem; }
.score-text { font-size: 1.3rem; color: var(--c-text); margin-bottom: 1.5rem; font-weight: 600; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
  background: var(--c-bg2); border-top: 1px solid var(--c-border);
  padding: 3rem 0; position: relative; z-index: 1;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
.footer-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--c-text);
}
.footer-info p { margin: 0; font-size: 0.82rem; color: var(--c-muted); }
.footer-badge {
  background: rgba(79,142,255,0.1); border: 1px solid rgba(79,142,255,0.2);
  border-radius: 2rem; padding: 0.4rem 1rem; font-size: 0.8rem; color: var(--c-accent1);
}

/* ══════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════ */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(79,142,255,0.4); }
  70%  { box-shadow: 0 0 0 10px rgba(79,142,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,142,255,0); }
}

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

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 7rem 4vw 4rem; }
  .hero-visual { display: none; }
  .method-body { grid-template-columns: 1fr; }
  .method-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .mpi-container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { 
    display: none; flex-direction: column; position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(10,14,25,0.98); padding: 1.5rem;
    border-bottom: 1px solid var(--c-border); gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .paradigm-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .ensemble-strategies { grid-template-columns: 1fr; }
  .un-tasks { grid-template-columns: 1fr; }
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
  .pillar-row { flex-direction: column; }
  .hero-stats { gap: 1.25rem; }
  .toc-grid { grid-template-columns: 1fr; }
  .spectrum-bar { flex-direction: column; }
  .method-sidebar { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .process-flow, .kdd-flow { flex-wrap: wrap; justify-content: center; }
  .pipeline { flex-direction: column; align-items: flex-start; }
  .hero-buttons { flex-direction: column; }
  .case-scenario { flex-direction: column; }
}
