/* ═══════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════ */
:root {
  --base: #04060D;
  --base1: #070B14;
  --base2: #0B1020;
  --base3: #111828;
  --glass: rgba(7,11,20,0.75);
  --glass2: rgba(11,16,32,0.6);
  --border-dim: rgba(255,255,255,0.06);
  --border-mid: rgba(255,255,255,0.1);
  --text-bright: #F0F4FF;
  --text-mid: #8B95B0;
  --text-dim: #4A5270;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'IBM Plex Sans', sans-serif;
  --display: 'Rajdhani', sans-serif;

  /* Per-section accent — overridden by JS */
  --accent: #8B5CF6;
  --accent-rgb: 139,92,246;
  --accent2: #A78BFA;
  --accent-dim: rgba(139,92,246,0.12);
  --accent-glow: rgba(139,92,246,0.35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

body {
  background: var(--base);
  color: var(--text-bright);
  font-family: var(--sans);
  font-weight: 300;
  overflow: hidden;
  height: 100vh;
  cursor: none;
}

/* ═══ CURSOR ═══ */
#cursor {
  position: fixed; z-index: 99999; pointer-events: none;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent), 0 0 30px var(--accent-glow);
  transform: translate(-50%,-50%);
  transition: background 0.3s, box-shadow 0.3s, width 0.2s, height 0.2s;
}
#cursor-ring {
  position: fixed; z-index: 99998; pointer-events: none;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.5;
  transform: translate(-50%,-50%);
  transition: all 0.12s ease, border-color 0.3s;
}
body:has(button:hover) #cursor, body:has(a:hover) #cursor { width: 16px; height: 16px; }
body:has(button:hover) #cursor-ring, body:has(a:hover) #cursor-ring { width: 44px; height: 44px; }

/* ═══ INDIA STRIP ═══ */
.india-strip {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1000;
  background: linear-gradient(90deg, #FF9933 33%, #FFFFFF 33% 66%, #138808 66%);
}

/* ═══ NAV ═══ */
nav {
  position: fixed; top: 2px; left: 0; right: 0; z-index: 900;
  height: 58px; display: flex; align-items: center;
  background: rgba(4,6,13,0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-dim);
  transition: border-color 0.4s;
}
.nav-inner {
  width: 100%; max-width: 100%; padding: 0 28px;
  display: flex; align-items: center; gap: 0;
}
.nav-logo {
  font-family: var(--display); font-size: 22px; font-weight: 700;
  color: var(--text-bright); letter-spacing: 0.04em;
  margin-right: 32px; white-space: nowrap; flex-shrink: 0;
}
.nav-logo span { color: var(--accent); transition: color 0.4s; }
.nav-logo .dot { color: #FF9933; }

.nav-sections {
  display: flex; gap: 2px; flex: 1; overflow-x: auto;
  scrollbar-width: none; align-items: center;
}
.nav-sections::-webkit-scrollbar { display: none; }

.nav-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 6px; border: none;
  background: transparent; color: var(--text-dim);
  font-family: var(--mono); font-size: 10px;
  font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: none; transition: all 0.2s; white-space: nowrap;
}
.nav-btn .nb-num { font-size: 9px; opacity: 0.5; }
.nav-btn:hover { color: var(--text-mid); background: rgba(255,255,255,0.04); }
.nav-btn.active {
  color: var(--accent); background: var(--accent-dim);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb),0.25);
}
.nav-btn.active .nb-num { opacity: 1; }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  padding: 5px 12px; border-radius: 100px;
  background: rgba(255,153,51,0.08); color: #FF9933;
  border: 1px solid rgba(255,153,51,0.2);
}

/* ═══ SECTION SYSTEM ═══ */
.section-page {
  position: fixed; inset: 60px 0 0 0; z-index: 1;
  overflow-y: auto; overflow-x: hidden;
  opacity: 0; pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  scrollbar-width: thin; scrollbar-color: var(--accent-dim) transparent;
}
.section-page.active {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
.section-page::-webkit-scrollbar { width: 3px; }
.section-page::-webkit-scrollbar-track { background: transparent; }
.section-page::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 2px; }

/* Section background grids */
.sec-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.sec-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(var(--accent-rgb),0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb),0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, black 0%, transparent 75%);
}
.sec-bg-glow {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb),0.12) 0%, transparent 70%);
}

/* Inner content wrapper */
.sec-inner {
  position: relative; z-index: 2;
  max-width: 1320px; margin: 0 auto; padding: 52px 40px 80px;
}

/* ═══ TYPOGRAPHY ═══ */
.sec-eyebrow {
  font-family: var(--mono); font-size: 10px; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.sec-eyebrow::before {
  content: ''; display: block; width: 20px; height: 1px;
  background: var(--accent); box-shadow: 0 0 6px var(--accent);
}
.sec-title {
  font-family: var(--display); font-size: clamp(36px,5vw,68px);
  font-weight: 700; line-height: 1.0; letter-spacing: 0.01em;
  color: var(--text-bright); margin-bottom: 16px;
}
.sec-title em {
  font-style: normal; color: var(--accent);
  text-shadow: 0 0 24px var(--accent-glow);
}
.sec-sub {
  font-size: 15px; color: var(--text-mid); line-height: 1.7;
  max-width: 600px; font-weight: 300;
}

/* ═══ GLASS CARDS ═══ */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--border-dim);
  border-radius: 12px; backdrop-filter: blur(12px);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.glass-card:hover {
  border-color: rgba(var(--accent-rgb),0.3);
  box-shadow: 0 0 30px rgba(var(--accent-rgb),0.08), inset 0 0 30px rgba(var(--accent-rgb),0.02);
  transform: translateY(-2px);
}
.neon-border {
  border-color: rgba(var(--accent-rgb),0.4) !important;
  box-shadow: 0 0 20px rgba(var(--accent-rgb),0.15), inset 0 0 20px rgba(var(--accent-rgb),0.03) !important;
}

/* ═══ BUTTONS ═══ */
.btn-neon {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 6px; border: 1px solid var(--accent);
  background: var(--accent-dim); color: var(--accent);
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: none; transition: all 0.25s;
  box-shadow: 0 0 20px rgba(var(--accent-rgb),0.1);
  text-decoration: none;
}
.btn-neon:hover {
  background: rgba(var(--accent-rgb),0.2);
  box-shadow: 0 0 30px rgba(var(--accent-rgb),0.25);
}
.btn-neon-solid {
  background: var(--accent); color: var(--base);
  box-shadow: 0 0 20px rgba(var(--accent-rgb),0.4);
}
.btn-neon-solid:hover {
  box-shadow: 0 0 40px rgba(var(--accent-rgb),0.6);
  color: var(--base);
}

/* ═══ TAGS ═══ */
.tag {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 100px;
}
.tag-accent { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(var(--accent-rgb),0.25); }
.tag-red { background: rgba(248,113,113,0.1); color: #F87171; border: 1px solid rgba(248,113,113,0.25); }
.tag-orange { background: rgba(251,146,60,0.1); color: #FB923C; border: 1px solid rgba(251,146,60,0.25); }
.tag-green { background: rgba(52,211,153,0.1); color: #34D399; border: 1px solid rgba(52,211,153,0.25); }
.tag-yellow { background: rgba(251,191,36,0.1); color: #FBBF24; border: 1px solid rgba(251,191,36,0.25); }

/* ═══ CODE BLOCKS ═══ */
.code-wrap {
  background: rgba(4,6,13,0.95); border: 1px solid var(--border-dim);
  border-radius: 10px; overflow: hidden;
}
.code-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--border-dim);
  background: var(--base2);
}
.code-bar-lang { font-family: var(--mono); font-size: 10px; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; }
.code-bar-file { font-family: var(--mono); font-size: 10px; color: var(--text-dim); }
pre.code { padding: 20px; font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--text-mid); overflow-x: auto; tab-size: 2; }
pre.code .kw { color: #A78BFA; }
pre.code .fn { color: #34D399; }
pre.code .str { color: #FBBF24; }
pre.code .cm { color: var(--text-dim); font-style: italic; }
pre.code .num { color: #FB923C; }
pre.code .cls { color: #67E8F9; }

/* ═══ ANIMATIONS ═══ */
@keyframes fadeSlideUp { from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none} }
@keyframes neonPulse { 0%,100%{box-shadow:0 0 10px rgba(var(--accent-rgb),0.2)}50%{box-shadow:0 0 25px rgba(var(--accent-rgb),0.5)} }
@keyframes scanLine { from{transform:translateY(-100%)}to{transform:translateY(100%)} }
@keyframes blink { 0%,100%{opacity:1}50%{opacity:0} }
@keyframes spin { from{transform:rotate(0deg)}to{transform:rotate(360deg)} }
@keyframes countUp { from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none} }
@keyframes dash { from{stroke-dashoffset:300}to{stroke-dashoffset:0} }
@keyframes glitch {
  0%,100%{transform:none;clip-path:none}
  20%{transform:translate(-2px,1px);clip-path:polygon(0 20%,100% 20%,100% 30%,0 30%)}
  40%{transform:translate(2px,-1px);clip-path:polygon(0 60%,100% 60%,100% 70%,0 70%)}
  60%{transform:none;clip-path:none}
}

.anim-in { animation: fadeSlideUp 0.5s ease both; }
.anim-in-1 { animation-delay: 0.05s; }
.anim-in-2 { animation-delay: 0.1s; }
.anim-in-3 { animation-delay: 0.15s; }
.anim-in-4 { animation-delay: 0.2s; }
.anim-in-5 { animation-delay: 0.25s; }

/* ══════════════════════════════════════
   SECTION 1: HOME (Violet)
══════════════════════════════════════ */
#sec-home { --accent:#8B5CF6; --accent-rgb:139,92,246; --accent2:#A78BFA; --accent-dim:rgba(139,92,246,0.1); --accent-glow:rgba(139,92,246,0.3); }

.hero-grid-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  min-height: calc(100vh - 140px);
}
.hero-left {}
.hero-tagline {
  font-family: var(--mono); font-size: 10px; color: var(--accent);
  letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.hero-tagline::before { content:''; width:24px; height:1px; background:var(--accent); box-shadow:0 0 8px var(--accent); }
.hero-h1 {
  font-family: var(--display); font-size: clamp(52px,6vw,88px);
  font-weight: 700; line-height: 0.95; letter-spacing: 0.01em;
  color: var(--text-bright); margin-bottom: 8px;
}
.hero-h1 .glitch {
  position: relative; color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
}
.hero-h1 .glitch:hover { animation: glitch 0.4s ease; }
.hero-sub-title {
  font-family: var(--display); font-size: clamp(22px,3vw,36px);
  font-weight: 300; color: var(--text-mid); margin-bottom: 28px;
}
.hero-desc { font-size: 15px; color: var(--text-mid); line-height: 1.8; max-width: 480px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-metrics {
  display: flex; gap: 0; border: 1px solid var(--border-dim);
  border-radius: 10px; overflow: hidden; background: var(--glass);
}
.hm-item {
  flex: 1; padding: 18px 16px; text-align: center;
  border-right: 1px solid var(--border-dim);
  transition: background 0.2s;
}
.hm-item:last-child { border-right: none; }
.hm-item:hover { background: var(--accent-dim); }
.hm-val { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 4px; }
.hm-label { font-family: var(--mono); font-size: 9px; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; }

/* RIGHT: Terminal preview */
.hero-terminal {
  background: rgba(4,6,13,0.9); border: 1px solid rgba(139,92,246,0.3);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 60px rgba(139,92,246,0.12), 0 0 120px rgba(139,92,246,0.06);
}
.term-bar {
  display: flex; align-items: center; padding: 12px 18px;
  border-bottom: 1px solid rgba(139,92,246,0.15);
  background: var(--base2); gap: 8px;
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-body { padding: 20px; font-family: var(--mono); font-size: 12px; line-height: 1.8; }
.t-line { display: flex; gap: 0; margin-bottom: 2px; }
.t-prompt { color: var(--accent); margin-right: 8px; }
.t-cmd { color: #34D399; }
.t-out { color: var(--text-mid); margin-left: 16px; }
.t-out.success { color: #34D399; }
.t-out.warn { color: #FBBF24; }
.t-out.accent { color: var(--accent); }
.t-cursor { display: inline-block; width: 8px; height: 14px; background: var(--accent); animation: blink 1s infinite; vertical-align: middle; }

/* ══════════════════════════════════════
   SECTION 2: ARCHITECTURE (Cyan)
══════════════════════════════════════ */
#sec-arch { --accent:#22D3EE; --accent-rgb:34,211,238; --accent2:#67E8F9; --accent-dim:rgba(34,211,238,0.08); --accent-glow:rgba(34,211,238,0.25); }

.arch-three { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 36px; }
.arch-pipe-card {
  background: var(--glass); border: 1px solid var(--border-dim);
  border-radius: 12px; padding: 26px; position: relative; overflow: hidden;
  cursor: none; transition: all 0.3s;
}
.arch-pipe-card::before {
  content:''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0); transition: transform 0.4s;
}
.arch-pipe-card:hover::before { transform: scaleX(1); }
.arch-pipe-card:hover { border-color: rgba(var(--accent-rgb),0.3); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(var(--accent-rgb),0.1); }
.apc-icon { font-size: 32px; margin-bottom: 14px; }
.apc-num { font-family: var(--mono); font-size: 9px; color: var(--text-dim); letter-spacing: 0.15em; margin-bottom: 10px; }
.apc-title { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--text-bright); margin-bottom: 10px; }
.apc-desc { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin-bottom: 14px; }
.apc-stack { display: flex; flex-wrap: wrap; gap: 6px; }

/* Foundation box */
.foundation-box {
  margin-top: 24px; padding: 28px 32px;
  background: var(--glass); border: 1px solid rgba(var(--accent-rgb),0.25);
  border-radius: 12px; position: relative; overflow: hidden;
}
.foundation-box::before {
  content:''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 30%, var(--accent) 70%, transparent 100%);
}
.foundation-stats { display: flex; gap: 32px; margin-top: 20px; flex-wrap: wrap; }
.fs-item { text-align: center; }
.fs-val { font-family: var(--display); font-size: 32px; font-weight: 700; color: var(--accent); }
.fs-label { font-family: var(--mono); font-size: 10px; color: var(--text-dim); letter-spacing: 0.08em; margin-top: 4px; }

/* ══════════════════════════════════════
   PIPELINES (Shared - used by sec 3 & 4)
══════════════════════════════════════ */
.pipeline-container { margin-top: 36px; }
.step-row {
  display: flex; gap: 0; position: relative;
  margin-bottom: 2px;
}
.step-row:not(:last-child)::after {
  content:''; position: absolute; left: 20px; top: 48px; bottom: -2px;
  width: 1px; background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
  opacity: 0.3;
}
.step-num-badge {
  width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
  border: 1px solid rgba(var(--accent-rgb),0.25); background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; color: var(--accent); font-weight: 500;
  margin-top: 2px; z-index: 1; transition: all 0.25s;
}
.step-row.open .step-num-badge {
  background: var(--accent); color: var(--base);
  box-shadow: 0 0 20px var(--accent-glow);
}
.step-content-wrap { flex: 1; padding: 0 0 0 18px; }
.step-header-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 0 10px;
  cursor: none; flex-wrap: wrap;
}
.step-h-title { font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--text-bright); }
.step-h-file { font-family: var(--mono); font-size: 10px; color: var(--text-dim); }
.step-expand-body { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1); }
.step-row.open .step-expand-body { max-height: 600px; }
.step-inner { padding: 4px 0 24px; }
.step-desc-text { font-size: 13px; color: var(--text-mid); line-height: 1.7; margin-bottom: 16px; }
.detail-pills { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 8px; margin-top: 14px; }
.dp { background: var(--base2); border: 1px solid var(--border-dim); border-radius: 8px; padding: 12px; }
.dp-k { font-family: var(--mono); font-size: 9px; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 5px; }
.dp-v { font-family: var(--mono); font-size: 12px; color: var(--accent); font-weight: 500; }

/* ══════════════════════════════════════
   SECTION 5: LANGGRAPH (Emerald)
══════════════════════════════════════ */
#sec-langgraph { --accent:#10B981; --accent-rgb:16,185,129; --accent2:#34D399; --accent-dim:rgba(16,185,129,0.08); --accent-glow:rgba(16,185,129,0.25); }

.lg-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; margin-top: 32px; min-height: 500px; }
.lg-graph-panel { position: relative; }
.lg-graph-outer { overflow: auto; background: rgba(4,6,13,0.6); border: 1px solid var(--border-dim); border-radius: 12px; padding: 16px; }
#lg-svg { display: block; }

.gn {
  cursor: none; transition: all 0.2s;
}
.gn-rect {
  fill: rgba(11,16,32,0.95); stroke: rgba(16,185,129,0.3);
  stroke-width: 1; rx: 8; transition: all 0.2s;
}
.gn:hover .gn-rect, .gn.active .gn-rect {
  stroke: rgba(16,185,129,0.9);
  filter: drop-shadow(0 0 8px rgba(16,185,129,0.4));
}
.gn-title { font-family: 'IBM Plex Mono'; font-size: 9px; fill: #34D399; letter-spacing: 0.06em; }
.gn-sub { font-family: 'IBM Plex Sans'; font-size: 8px; fill: #4A5270; }
.gn-badge-rect { fill: rgba(16,185,129,0.1); rx: 4; }
.gn-badge-text { font-family: 'IBM Plex Mono'; font-size: 8px; fill: #10B981; letter-spacing: 0.04em; }
.gn.cache .gn-rect { stroke: rgba(96,165,250,0.3); }
.gn.cache:hover .gn-rect, .gn.cache.active .gn-rect { stroke: rgba(96,165,250,0.9); filter: drop-shadow(0 0 8px rgba(96,165,250,0.4)); }
.gn.cache .gn-title { fill: #60A5FA; }
.gn.error .gn-rect { stroke: rgba(248,113,113,0.3); }
.gn.error:hover .gn-rect, .gn.error.active .gn-rect { stroke: rgba(248,113,113,0.9); filter: drop-shadow(0 0 8px rgba(248,113,113,0.4)); }
.gn.error .gn-title { fill: #F87171; }
.gn.crag-type .gn-rect { stroke: rgba(251,146,60,0.3); }
.gn.crag-type:hover .gn-rect, .gn.crag-type.active .gn-rect { stroke: rgba(251,146,60,0.9); filter: drop-shadow(0 0 8px rgba(251,146,60,0.4)); }
.gn.crag-type .gn-title { fill: #FB923C; }

.lg-detail-panel {
  background: var(--glass); border: 1px solid var(--border-dim);
  border-radius: 12px; padding: 0; overflow: hidden; height: fit-content;
}
.lg-dp-header { padding: 18px 20px; border-bottom: 1px solid var(--border-dim); background: var(--base2); }
.lg-dp-icon { font-size: 24px; margin-bottom: 8px; }
.lg-dp-name { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 4px; }
.lg-dp-title { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--text-bright); }
.lg-dp-body { padding: 18px 20px; }
.lg-dp-desc { font-size: 13px; color: var(--text-mid); line-height: 1.65; margin-bottom: 16px; }
.lg-dp-writes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.write-chip { font-family: var(--mono); font-size: 10px; padding: 4px 10px; border-radius: 6px; background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(var(--accent-rgb),0.2); }
.lg-dp-code { background: var(--base); border: 1px solid var(--border-dim); border-radius: 8px; overflow: hidden; }
.lg-dp-code pre { padding: 14px; font-family: var(--mono); font-size: 11px; line-height: 1.6; color: var(--text-mid); overflow-x: auto; }

.edge-path { fill: none; transition: stroke-opacity 0.3s; }
.edge-label-text { font-family: 'IBM Plex Mono'; font-size: 8px; }

.cond-edges { margin-top: 20px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.ce-card { background: var(--glass); border: 1px solid var(--border-dim); border-radius: 8px; padding: 14px; }
.ce-title { font-family: var(--mono); font-size: 10px; color: var(--accent); margin-bottom: 8px; letter-spacing: 0.06em; }
.ce-rule { font-size: 12px; color: var(--text-mid); line-height: 1.6; margin-bottom: 4px; }
.ce-rule span.g { color: #34D399; }
.ce-rule span.y { color: #FBBF24; }
.ce-rule span.r { color: #F87171; }

/* ══════════════════════════════════════
   SECTION 6: LANGUAGE DETECTOR (Pink)
══════════════════════════════════════ */
#sec-lang { --accent:#F472B6; --accent-rgb:244,114,182; --accent2:#F9A8D4; --accent-dim:rgba(244,114,182,0.08); --accent-glow:rgba(244,114,182,0.25); }

.ld-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.ld-left {}
.ld-query-box {
  background: var(--glass); border: 1px solid var(--border-dim);
  border-radius: 12px; overflow: hidden; margin-bottom: 20px;
}
.ld-query-bar {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid var(--border-dim);
}
.ld-input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: var(--mono); font-size: 13px; color: var(--text-bright);
  cursor: none;
}
.ld-input::placeholder { color: var(--text-dim); }
.ld-presets-wrap { padding: 12px 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.ld-preset {
  padding: 5px 12px; border-radius: 100px; border: 1px solid var(--border-dim);
  background: transparent; font-family: var(--mono); font-size: 10px;
  color: var(--text-dim); cursor: none; transition: all 0.2s; letter-spacing: 0.04em;
}
.ld-preset:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

.ld-right {}
.step-detector {
  background: var(--glass); border: 1px solid var(--border-dim);
  border-radius: 12px; overflow: hidden;
}
.sd-header { padding: 14px 18px; border-bottom: 1px solid var(--border-dim); background: var(--base2); }
.sd-header-title { font-family: var(--mono); font-size: 10px; color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; }
.sd-steps { padding: 16px 18px; }
.sd-step { display: flex; gap: 14px; padding: 10px 0; position: relative; }
.sd-step:not(:last-child)::after {
  content:''; position: absolute; left: 13px; top: 32px; bottom: -6px;
  width: 1px; background: var(--border-dim);
}
.sd-step.reached::after { background: rgba(var(--accent-rgb),0.3); }
.sd-dot {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--border-mid); background: var(--base2);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; z-index: 1; transition: all 0.3s; margin-top: 1px;
}
.sd-step.reached .sd-dot { border-color: var(--accent); background: var(--accent-dim); }
.sd-step.active .sd-dot { border-color: var(--accent); background: var(--accent); animation: neonPulse 1.5s infinite; }
.sd-body { flex: 1; }
.sd-step-title { font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--text-mid); margin-bottom: 2px; transition: color 0.3s; }
.sd-step.active .sd-step-title, .sd-step.reached .sd-step-title { color: var(--text-bright); }
.sd-step-detail { font-size: 11px; color: var(--text-dim); line-height: 1.5; }
.sd-result-badge {
  display: inline-block; margin-top: 5px;
  font-family: var(--mono); font-size: 10px; padding: 3px 9px;
  border-radius: 100px; transition: all 0.3s;
}
.sd-result-badge.matched { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(var(--accent-rgb),0.3); }
.sd-result-badge.skipped { background: rgba(74,82,112,0.2); color: var(--text-dim); border: 1px solid var(--border-dim); }

.ld-result {
  background: var(--glass); border: 1px solid rgba(var(--accent-rgb),0.35);
  border-radius: 12px; padding: 20px 22px; margin-top: 16px;
  display: none;
  box-shadow: 0 0 30px rgba(var(--accent-rgb),0.1);
}
.ld-result.show { display: block; }
.ld-result-lang { font-family: var(--display); font-size: 36px; font-weight: 700; color: var(--accent); text-shadow: 0 0 20px var(--accent-glow); }
.ld-result-meta { font-family: var(--mono); font-size: 11px; color: var(--text-dim); margin-top: 6px; }

/* ══════════════════════════════════════
   SECTION 7: BUGS (Red)
══════════════════════════════════════ */
#sec-bugs { --accent:#F87171; --accent-rgb:248,113,113; --accent2:#FCA5A5; --accent-dim:rgba(248,113,113,0.08); --accent-glow:rgba(248,113,113,0.25); }

.bugs-layout { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 32px; }
.bug-card {
  background: var(--glass); border: 1px solid var(--border-dim);
  border-radius: 12px; overflow: hidden; cursor: none; transition: all 0.25s;
}
.bug-card:hover { border-color: rgba(var(--accent-rgb),0.25); transform: translateY(-2px); }
.bug-card-header { padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; }
.bug-rank-badge {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
}
.sev-CRITICAL .bug-rank-badge { background: rgba(248,113,113,0.15); color: #F87171; border: 1px solid rgba(248,113,113,0.3); }
.sev-HIGH     .bug-rank-badge { background: rgba(251,146,60,0.12); color: #FB923C; border: 1px solid rgba(251,146,60,0.25); }
.sev-MEDIUM   .bug-rank-badge { background: rgba(251,191,36,0.1);  color: #FBBF24; border: 1px solid rgba(251,191,36,0.2); }
.sev-LOW      .bug-rank-badge { background: rgba(52,211,153,0.1);  color: #34D399; border: 1px solid rgba(52,211,153,0.2); }
.bug-meta { flex: 1; }
.bug-title { font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--text-bright); margin-bottom: 4px; }
.bug-file { font-family: var(--mono); font-size: 10px; color: var(--text-dim); margin-bottom: 6px; }
.sev-label { font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: 0.1em; }
.sev-CRITICAL .sev-label { color: #F87171; }
.sev-HIGH     .sev-label { color: #FB923C; }
.sev-MEDIUM   .sev-label { color: #FBBF24; }
.sev-LOW      .sev-label { color: #34D399; }
.bug-expand-body { max-height: 0; overflow: hidden; transition: max-height 0.45s ease; }
.bug-card.open .bug-expand-body { max-height: 500px; }
.bug-expand-inner { padding: 0 18px 18px; }
.bug-desc-text { font-size: 13px; color: var(--text-mid); line-height: 1.65; margin-bottom: 14px; }
.diff-block { border-radius: 8px; overflow: hidden; border: 1px solid var(--border-dim); }
.diff-label { padding: 6px 14px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; }
.diff-before-label { background: rgba(248,113,113,0.08); color: #F87171; }
.diff-after-label  { background: rgba(52,211,153,0.08); color: #34D399; }
.diff-before-code { padding: 12px 14px; font-family: var(--mono); font-size: 11px; color: #FCA5A5; line-height: 1.6; background: rgba(248,113,113,0.04); }
.diff-after-code  { padding: 12px 14px; font-family: var(--mono); font-size: 11px; color: #6EE7B7; line-height: 1.6; background: rgba(52,211,153,0.04); }

/* ══════════════════════════════════════
   SECTION 8: RESEARCH (Amber)
══════════════════════════════════════ */
#sec-research { --accent:#F59E0B; --accent-rgb:245,158,11; --accent2:#FCD34D; --accent-dim:rgba(245,158,11,0.08); --accent-glow:rgba(245,158,11,0.25); }

.research-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 32px; }
.paper-card {
  background: var(--glass); border: 1px solid var(--border-dim);
  border-radius: 12px; overflow: hidden; cursor: none; transition: all 0.25s;
}
.paper-card:hover { border-color: rgba(var(--accent-rgb),0.3); transform: translateY(-2px); box-shadow: 0 10px 40px rgba(var(--accent-rgb),0.08); }
.paper-header { padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.paper-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: var(--accent-dim); border: 1px solid rgba(var(--accent-rgb),0.2);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.paper-meta { flex: 1; }
.paper-title { font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--text-bright); margin-bottom: 4px; line-height: 1.35; }
.paper-authors { font-family: var(--mono); font-size: 10px; color: var(--text-dim); margin-bottom: 6px; }
.paper-year { font-family: var(--mono); font-size: 10px; color: var(--accent); }
.paper-expand-body { max-height: 0; overflow: hidden; transition: max-height 0.45s ease; }
.paper-card.open .paper-expand-body { max-height: 400px; }
.paper-expand-inner { padding: 0 20px 18px; }
.paper-abstract { font-size: 13px; color: var(--text-mid); line-height: 1.65; margin-bottom: 12px; }
.paper-impl { font-family: var(--mono); font-size: 11px; color: var(--accent); margin-bottom: 4px; }
.paper-impl-detail { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.paper-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

/* ══════════════════════════════════════
   SECTION 9: LAWS (Teal)
══════════════════════════════════════ */
#sec-laws { --accent:#2DD4BF; --accent-rgb:45,212,191; --accent2:#5EEAD4; --accent-dim:rgba(45,212,191,0.08); --accent-glow:rgba(45,212,191,0.25); }

.laws-filter { display: flex; gap: 8px; margin: 24px 0; flex-wrap: wrap; }
.lf-btn {
  padding: 6px 16px; border-radius: 100px; border: 1px solid var(--border-dim);
  background: transparent; font-family: var(--mono); font-size: 10px;
  color: var(--text-dim); cursor: none; transition: all 0.2s; letter-spacing: 0.06em;
}
.lf-btn:hover { border-color: var(--accent); color: var(--accent); }
.lf-btn.active { background: var(--accent-dim); border-color: rgba(var(--accent-rgb),0.4); color: var(--accent); }

.laws-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 10px; }
.law-card {
  background: var(--glass); border: 1px solid var(--border-dim);
  border-radius: 10px; padding: 18px; transition: all 0.25s; cursor: default;
}
.law-card:hover { border-color: rgba(var(--accent-rgb),0.3); background: rgba(11,16,32,0.8); transform: translateY(-1px); }
.law-card.hidden { display: none; }
.law-n { font-family: var(--mono); font-size: 9px; color: var(--text-dim); letter-spacing: 0.12em; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.law-dot { width: 5px; height: 5px; border-radius: 50%; }
.law-title { font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--text-bright); margin-bottom: 7px; }
.law-desc { font-size: 12px; color: var(--text-dim); line-height: 1.6; }

/* ══════════════════════════════════════
   SECTION 10: METRICS (Purple)
══════════════════════════════════════ */
#sec-metrics { --accent:#A855F7; --accent-rgb:168,85,247; --accent2:#C084FC; --accent-dim:rgba(168,85,247,0.08); --accent-glow:rgba(168,85,247,0.25); }

.metrics-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 32px; }
.metric-card {
  background: var(--glass); border: 1px solid var(--border-dim);
  border-radius: 12px; padding: 28px 20px; text-align: center;
  position: relative; overflow: hidden; transition: all 0.25s;
}
.metric-card::after {
  content:''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--m-color, var(--accent));
}
.metric-card:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb),0.25); box-shadow: 0 20px 50px rgba(var(--accent-rgb),0.08); }
.metric-val { font-family: var(--display); font-size: 44px; font-weight: 700; line-height: 1; margin-bottom: 10px; color: var(--m-color, var(--accent)); text-shadow: 0 0 20px rgba(var(--accent-rgb),0.4); }
.metric-label { font-size: 13px; color: var(--text-mid); margin-bottom: 6px; font-weight: 400; }
.metric-sub { font-family: var(--mono); font-size: 10px; color: var(--text-dim); }
.block-chip { display: inline-block; margin-top: 10px; font-family: var(--mono); font-size: 9px; padding: 3px 9px; border-radius: 100px; background: rgba(248,113,113,0.1); color: #F87171; border: 1px solid rgba(248,113,113,0.25); }

.india-benchmark {
  margin-top: 20px; padding: 28px 32px;
  background: linear-gradient(135deg, rgba(245,158,11,0.08) 0%, rgba(168,85,247,0.08) 100%);
  border: 1px solid rgba(245,158,11,0.2); border-radius: 12px; text-align: center;
}
.ibm-title { font-family: var(--display); font-size: clamp(22px,3.5vw,40px); font-weight: 700; color: var(--text-bright); margin-bottom: 10px; }
.ibm-title em { font-style: normal; color: #F59E0B; text-shadow: 0 0 20px rgba(245,158,11,0.4); }
.ibm-sub { font-size: 14px; color: var(--text-mid); max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* ══════════════════════════════════════
   FOOTER BAR (inside last section)
══════════════════════════════════════ */
.footer-bar {
  margin-top: 40px; padding: 24px 0; border-top: 1px solid var(--border-dim);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: gap;
}
.fb-brand { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--text-mid); }
.fb-brand em { font-style: normal; color: #FF9933; }
.fb-info { font-family: var(--mono); font-size: 10px; color: var(--text-dim); letter-spacing: 0.06em; }

/* Ingestion */
#sec-ingestion { --accent:#FB923C; --accent-rgb:251,146,60; --accent2:#FDBA74; --accent-dim:rgba(251,146,60,0.08); --accent-glow:rgba(251,146,60,0.25); }
/* Query */
#sec-query { --accent:#60A5FA; --accent-rgb:96,165,250; --accent2:#93C5FD; --accent-dim:rgba(96,165,250,0.08); --accent-glow:rgba(96,165,250,0.25); }

/* Progress bar at bottom */
.sec-progress {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
  height: 2px; background: var(--border-dim);
}
.sec-progress-bar {
  height: 100%; background: var(--accent); transition: width 0.4s ease, background 0.4s;
}

/* Section counter */
.sec-counter {
  position: fixed; right: 28px; top: 50%; transform: translateY(-50%);
  z-index: 800; display: flex; flex-direction: column; gap: 6px; align-items: center;
}
.sc-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border-mid); cursor: none; transition: all 0.3s;
}
.sc-dot.active { background: var(--accent); box-shadow: 0 0 8px var(--accent); width: 8px; height: 8px; }
.sc-dot:hover { background: var(--text-mid); }

@media (max-width: 900px) {
  .hero-grid-cols { grid-template-columns: 1fr; min-height: auto; }
  .hero-terminal { display: none; }
  .arch-three { grid-template-columns: 1fr 1fr; }
  .ld-layout { grid-template-columns: 1fr; }
  .bugs-layout { grid-template-columns: 1fr; }
  .research-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2,1fr); }
  .lg-layout { grid-template-columns: 1fr; }
  .sec-counter { display: none; }
  .cond-edges { grid-template-columns: 1fr; }
}