/* ============================================================
   RACHNA AI — blueprint mission-control brutalism
   ============================================================ */

:root {
  --bg-primary: #0D1117;
  --bg-secondary: #161B22;
  --bg-elevated: #21262D;
  --accent-amber: #F5A623;
  --accent-amber-deep: #E8871A;
  --accent-teal: #2DD4BF;
  --accent-red: #EF4444;
  --text-primary: #F0F6FC;
  --text-secondary: #8B949E;
  --border: #30363D;
  --font-display: 'Sora', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-hindi: 'Noto Sans Devanagari', sans-serif;
  --pad-x: clamp(20px, 5vw, 72px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.has-gsap { scroll-behavior: auto; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-amber); color: #0D1117; }

.mono { font-family: var(--font-mono); }
.dim { color: var(--text-secondary); }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -100%;
  pointer-events: none; z-index: 9000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0,0); } 25% { transform: translate(-2%,1%); }
  50% { transform: translate(1%,-2%); } 75% { transform: translate(-1%,2%); }
  100% { transform: translate(2%,-1%); }
}

/* ---------- cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9500;
  border-radius: 50%;
  display: none;
}
.cursor-dot, .cursor-ring { opacity: 0; }
body.cursor-live .cursor-dot, body.cursor-live .cursor-ring { opacity: 1; }
.cursor-dot { width: 6px; height: 6px; background: var(--accent-amber); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(245, 166, 35, 0.5);
  transition: width .25s ease, height .25s ease, border-color .25s ease, opacity .3s ease;
}
.cursor-ring.is-hover { width: 56px; height: 56px; border-color: var(--accent-teal); }
@media (pointer: fine) {
  .cursor-dot, .cursor-ring { display: block; }
}

/* ---------- pulse dot ---------- */
.pulse-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-teal); position: relative; flex: none;
}
.pulse-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--accent-teal);
  animation: pulse-ring 2s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  80%, 100% { transform: scale(3.2); opacity: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; padding: 14px 26px;
  border: 1px solid transparent;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
  position: relative;
}
.btn-lg { padding: 18px 34px; font-size: 14px; }
.btn-amber {
  background: var(--accent-amber); color: #0D1117;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.btn-amber:hover { background: var(--text-primary); transform: translateY(-2px); }
.btn-ghost {
  border-color: var(--border); color: var(--text-primary);
}
.btn-ghost:hover { border-color: var(--accent-teal); color: var(--accent-teal); transform: translateY(-2px); }
.btn-arrow { transition: transform .25s ease; }
.btn-ghost:hover .btn-arrow { transform: translateY(3px); }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
}
.preloader-grid {
  position: absolute; inset: 0; opacity: 0.35;
  background-image:
    linear-gradient(rgba(48,54,61,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48,54,61,0.5) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.preloader-inner { position: relative; width: min(420px, 84vw); }
.preloader-glyph {
  font-family: var(--font-hindi); font-weight: 700;
  font-size: clamp(64px, 12vw, 110px);
  color: var(--accent-amber); line-height: 1;
  margin-bottom: 28px;
}
.preloader-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono); margin-bottom: 10px;
}
.preloader-label { font-size: 11px; letter-spacing: 0.22em; color: var(--text-secondary); }
.preloader-count { font-size: 15px; color: var(--accent-teal); }
.preloader-bar { height: 2px; background: var(--border); overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 0%; background: var(--accent-amber); }
.preloader-boots {
  margin-top: 22px; font-family: var(--font-mono); font-size: 11px;
  color: var(--text-secondary); min-height: 64px; line-height: 1.9;
  letter-spacing: 0.04em;
}
.preloader-boots .ok { color: var(--accent-teal); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 8000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad-x);
  transition: background .35s ease, border-color .35s ease, padding .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(13, 17, 23, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  padding-top: 12px; padding-bottom: 12px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text-primary);
}
.nav-logo-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--accent-amber); color: #0D1117;
  font-family: var(--font-hindi); font-weight: 700; font-size: 20px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}
.nav-logo-text {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.16em;
}
.nav-logo-text em { font-style: normal; color: var(--accent-amber); }
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none;
  color: var(--text-secondary);
  transition: color .25s ease;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--accent-amber);
  transition: width .3s ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-status {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--accent-teal);
}
.nav-cta { padding: 11px 20px; font-size: 11px; }
.nav-burger {
  display: none; flex-direction: column; gap: 7px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav-burger span {
  display: block; width: 26px; height: 2px; background: var(--text-primary);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 7500;
  background: rgba(13, 17, 23, 0.97);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad-x);
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu-links a {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 9vw, 52px);
  color: var(--text-primary); text-decoration: none;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  transform: translateY(24px); opacity: 0;
  transition: transform .5s ease, opacity .5s ease, color .25s ease;
}
.mobile-menu.is-open .mobile-menu-links a { transform: translateY(0); opacity: 1; }
.mobile-menu-links a:nth-child(1) { transition-delay: .05s; }
.mobile-menu-links a:nth-child(2) { transition-delay: .1s; }
.mobile-menu-links a:nth-child(3) { transition-delay: .15s; }
.mobile-menu-links a:nth-child(4) { transition-delay: .2s; }
.mobile-menu-links a:nth-child(5) { transition-delay: .25s; }
.mobile-menu-links a:hover { color: var(--accent-amber); }
.mobile-menu-cta { color: var(--accent-amber) !important; }
.mobile-menu-foot {
  position: absolute; bottom: 32px; left: var(--pad-x);
  font-size: 10px; letter-spacing: 0.2em; color: var(--text-secondary);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--pad-x) 90px;
  overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(98deg, rgba(13,17,23,0.88) 0%, rgba(13,17,23,0.55) 38%, transparent 68%),
    radial-gradient(ellipse 90% 70% at 30% 45%, transparent 30%, rgba(13,17,23,0.85) 100%),
    linear-gradient(180deg, rgba(13,17,23,0.55) 0%, transparent 25%, transparent 60%, var(--bg-primary) 100%);
}
.hero-devanagari {
  position: absolute; right: -2vw; top: 50%; transform: translateY(-52%);
  font-family: var(--font-hindi); font-weight: 700;
  font-size: clamp(200px, 38vw, 560px); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 166, 35, 0.14);
  pointer-events: none; user-select: none;
}
.hero-content { position: relative; max-width: 1060px; }
.hero-overline {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 34px;
}
.hero-overline-tag {
  font-size: 11px; letter-spacing: 0.24em; color: var(--accent-amber);
}
.hero-overline-tag.dim { color: var(--text-secondary); }
.hero-overline-sep { width: 48px; height: 1px; background: var(--border); }
.hero-title {
  font-weight: 700;
  font-size: clamp(44px, 8.4vw, 116px);
  line-height: 1.02; letter-spacing: -0.03em;
  margin-bottom: 34px;
}
.hero-line { display: block; overflow: hidden; }
.hero-title em, .cta-title em {
  font-style: normal; color: var(--accent-amber); position: relative;
}
.hero-sub {
  max-width: 560px; font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.75; color: var(--text-secondary);
  margin-bottom: 42px;
}
.hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats {
  display: flex; gap: clamp(28px, 4.5vw, 64px); flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 28px;
  max-width: 820px;
}
.hero-stat { display: flex; flex-direction: column; gap: 6px; }
.hero-stat-num { font-size: clamp(18px, 2.2vw, 26px); font-weight: 700; color: var(--text-primary); }
.hero-stat-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-secondary);
}
.hero-ticker {
  position: absolute; left: var(--pad-x); right: var(--pad-x); bottom: 24px;
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-amber);
  background: rgba(22, 27, 34, 0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 12px 18px;
  overflow: hidden;
}
.hero-ticker-label { font-size: 10px; letter-spacing: 0.22em; color: var(--accent-teal); flex: none; }
.hero-ticker-text {
  font-size: 12px; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-coords {
  position: absolute; right: var(--pad-x); top: 110px;
  font-size: 10px; letter-spacing: 0.18em; color: var(--text-secondary);
  writing-mode: vertical-rl; opacity: 0.65;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  overflow: hidden; padding: 18px 0;
  position: relative; z-index: 2;
}
.marquee-track {
  display: flex; align-items: center; gap: 38px;
  width: max-content; will-change: transform;
}
.marquee-track span {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.22em;
  color: var(--text-secondary); white-space: nowrap;
}
.marquee-track i { color: var(--accent-amber); font-style: normal; font-size: 10px; }

/* ============================================================
   SECTIONS — shared
   ============================================================ */
section { position: relative; }
.section-head {
  display: flex; align-items: center; gap: 22px;
  padding: 0 var(--pad-x); margin-bottom: clamp(36px, 6vh, 64px);
}
.section-index {
  font-size: 11px; letter-spacing: 0.26em; color: var(--accent-amber);
  flex: none;
}
.section-rule { flex: 1; height: 1px; background: var(--border); }
.section-title {
  font-weight: 700; letter-spacing: -0.025em;
  font-size: clamp(34px, 5.2vw, 68px); line-height: 1.06;
}
.title-line { display: inline-block; }
.section-sub {
  color: var(--text-secondary); line-height: 1.75;
  font-size: clamp(14px, 1.5vw, 17px);
  max-width: 520px; margin-top: 22px;
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto { padding: clamp(90px, 14vh, 160px) 0; }
.manifesto-text {
  padding: 0 var(--pad-x);
  max-width: 1180px;
  font-size: clamp(26px, 4.4vw, 56px);
  font-weight: 400; line-height: 1.32; letter-spacing: -0.02em;
}
.manifesto-text em { font-style: normal; color: var(--accent-amber); font-weight: 600; }
.manifesto-text .word { opacity: 0.14; }
.manifesto-foot {
  padding: 0 var(--pad-x); margin-top: 48px;
  font-size: 11px; letter-spacing: 0.22em;
}

/* ============================================================
   AGENTS
   ============================================================ */
.agents { padding: clamp(70px, 10vh, 120px) 0; background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.agents-intro {
  padding: 0 var(--pad-x); margin-bottom: clamp(44px, 7vh, 80px);
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; flex-wrap: wrap;
}
.agents-grid {
  padding: 0 var(--pad-x);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  margin: 0 var(--pad-x);
  padding: 0;
}
.agent-card {
  background: var(--bg-primary);
  padding: 30px 26px 26px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  transition: background .3s ease;
  min-height: 320px;
}
.agent-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent-amber);
  transform: scaleY(0); transform-origin: top;
  transition: transform .35s ease;
}
.agent-card:hover { background: var(--bg-elevated); }
.agent-card:hover::before { transform: scaleY(1); }
.agent-card.is-alert::before { background: var(--accent-red); transform: scaleY(1); }
.agent-card-top { display: flex; justify-content: space-between; align-items: center; }
.agent-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; letter-spacing: 0.18em;
}
.agent-status i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.st-active { color: var(--accent-teal); } .st-active i { background: var(--accent-teal); box-shadow: 0 0 8px var(--accent-teal); animation: blink 2.4s ease infinite; }
.st-alert { color: var(--accent-red); } .st-alert i { background: var(--accent-red); box-shadow: 0 0 8px var(--accent-red); animation: blink 0.9s ease infinite; }
.st-standby { color: var(--accent-amber); } .st-standby i { background: var(--accent-amber); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.agent-id { font-size: 10px; letter-spacing: 0.16em; color: var(--text-secondary); }
.agent-name { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.agent-role { font-size: 10px; letter-spacing: 0.2em; color: var(--accent-amber); }
.agent-desc { font-size: 13.5px; line-height: 1.7; color: var(--text-secondary); flex: 1; }
.agent-action {
  font-size: 11px; line-height: 1.6; color: var(--text-primary);
  border-top: 1px dashed var(--border); padding-top: 14px;
}
.agent-card.is-new .agent-id { color: var(--accent-teal); }

/* ============================================================
   CONSOLE
   ============================================================ */
.console { padding: clamp(90px, 13vh, 150px) 0; }
.console-layout {
  display: grid; grid-template-columns: minmax(300px, 0.85fr) 1.15fr;
  gap: clamp(36px, 5vw, 72px);
  padding: 0 var(--pad-x);
  align-items: start;
}
.console-points { list-style: none; margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.console-points li {
  display: flex; gap: 12px; align-items: baseline;
  font-size: 14.5px; color: var(--text-secondary);
}
.console-points .mono { color: var(--accent-amber); font-size: 12px; }
.console-window {
  border: 1px solid var(--border); background: #0A0E14;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.console-titlebar {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}
.console-dots { display: flex; gap: 7px; }
.console-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-elevated); border: 1px solid var(--border); }
.console-dots i:first-child { background: var(--accent-red); border-color: var(--accent-red); }
.console-title-text { font-size: 11px; color: var(--text-secondary); letter-spacing: 0.08em; flex: 1; }
.console-live { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 0.2em; color: var(--accent-teal); }
.console-feed {
  padding: 18px 16px; height: 420px; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  font-family: var(--font-mono);
  mask-image: linear-gradient(180deg, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 75%, transparent 100%);
}
.feed-line {
  display: grid; grid-template-columns: 86px 52px 1fr; gap: 12px;
  font-size: 11.5px; line-height: 1.65;
  border-left: 2px solid var(--accent-amber);
  padding-left: 12px;
}
.feed-line.sev-alert { border-left-color: var(--accent-red); }
.feed-line.sev-ok { border-left-color: var(--accent-teal); }
.feed-agent { color: var(--accent-amber); font-weight: 700; }
.feed-line.sev-alert .feed-agent { color: var(--accent-red); }
.feed-line.sev-ok .feed-agent { color: var(--accent-teal); }
.feed-time { color: var(--text-secondary); }
.feed-msg { color: var(--text-secondary); }
.feed-msg b { color: var(--text-primary); font-weight: 500; }
.feed-tag {
  display: inline-block; margin-left: 8px; padding: 1px 7px;
  font-size: 9px; letter-spacing: 0.14em;
  border: 1px solid var(--border); color: var(--accent-teal);
}

/* ============================================================
   MODULES — pinned horizontal rail
   ============================================================ */
.modules { background: var(--bg-primary); }
.modules-pin {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; overflow: hidden;
  padding: clamp(70px, 9vh, 110px) 0 60px;
}
.modules-header {
  padding-right: var(--pad-x);
  display: flex; flex-direction: column;
  margin-bottom: clamp(30px, 5vh, 54px);
}
.modules-title { padding: 0 var(--pad-x); }
.modules-progress {
  padding: 0 var(--pad-x); margin-top: 18px;
  font-size: 12px; letter-spacing: 0.3em; color: var(--text-secondary);
}
.modules-progress #modulesCount { color: var(--accent-amber); }
.modules-track {
  display: flex; gap: 22px;
  padding: 0 var(--pad-x);
  width: max-content; will-change: transform;
}
.module-card {
  width: clamp(310px, 30vw, 420px); flex: none;
  border: 1px solid var(--border); background: var(--bg-secondary);
  padding: 34px 30px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  transition: border-color .3s ease, transform .3s ease;
}
.module-card:hover { border-color: var(--accent-amber); transform: translateY(-6px); }
.module-card.is-new { border-color: rgba(45, 212, 191, 0.45); }
.module-badge {
  position: absolute; top: 0; right: 0;
  background: var(--accent-teal); color: #0D1117;
  font-size: 9px; font-weight: 700; letter-spacing: 0.22em;
  padding: 5px 12px;
}
.module-num {
  font-size: 13px; color: var(--accent-amber); letter-spacing: 0.2em;
}
.module-icon { font-size: 30px; line-height: 1; }
.module-name { font-size: 27px; font-weight: 700; letter-spacing: -0.01em; }
.module-tag { font-size: 10px; letter-spacing: 0.2em; color: var(--accent-teal); }
.module-desc { font-size: 13.5px; line-height: 1.7; color: var(--text-secondary); flex: 1; }
.module-feats { list-style: none; display: flex; flex-direction: column; gap: 9px; border-top: 1px dashed var(--border); padding-top: 16px; }
.module-feats li {
  font-size: 11px; letter-spacing: 0.06em; color: var(--text-secondary);
  padding-left: 16px; position: relative;
}
.module-feats li::before {
  content: '+'; position: absolute; left: 0; color: var(--accent-amber);
}

/* ============================================================
   NUMBERS
   ============================================================ */
.numbers {
  padding: clamp(90px, 13vh, 150px) 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.numbers-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  margin: 0 var(--pad-x); border: 1px solid var(--border);
}
.number-block {
  background: var(--bg-secondary); padding: 44px 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.number-val {
  font-size: clamp(40px, 4.6vw, 62px); font-weight: 700;
  color: var(--accent-amber); line-height: 1;
  display: flex; align-items: baseline; gap: 10px;
  white-space: nowrap;
}
.number-unit { font-size: 18px; color: var(--text-secondary); font-weight: 400; }
.number-label { font-size: 13px; line-height: 1.65; color: var(--text-secondary); max-width: 240px; }

/* ============================================================
   FIELD
   ============================================================ */
.field { padding: clamp(90px, 13vh, 150px) 0; }
.field-intro { padding: 0 var(--pad-x); margin-bottom: clamp(44px, 7vh, 76px); }
.field-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; padding: 0 var(--pad-x);
}
.field-card {
  border: 1px solid var(--border); background: var(--bg-secondary);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .3s ease, background .3s ease;
  position: relative; overflow: hidden;
}
.field-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-teal));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.field-card:hover { border-color: var(--accent-amber); background: var(--bg-elevated); }
.field-card:hover::after { transform: scaleX(1); }
.field-card-wide { grid-column: span 2; }
.field-kicker { font-size: 10px; letter-spacing: 0.24em; color: var(--accent-amber); }
.field-name { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.field-desc { font-size: 13.5px; line-height: 1.7; color: var(--text-secondary); }
.field-sms {
  margin-top: 14px; border: 1px solid var(--border);
  border-left: 3px solid var(--accent-red);
  background: var(--bg-primary); padding: 16px 18px;
  max-width: 480px;
}
.field-sms-meta { font-size: 9.5px; letter-spacing: 0.18em; color: var(--text-secondary); display: block; margin-bottom: 10px; }
.field-sms-text { font-family: var(--font-hindi); font-size: 16px; line-height: 1.7; color: var(--text-primary); }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  padding: clamp(120px, 18vh, 220px) var(--pad-x);
  position: relative; overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(245, 166, 35, 0.12), transparent 70%),
    var(--bg-primary);
}
.cta-devanagari {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-hindi); font-weight: 700;
  font-size: clamp(260px, 48vw, 720px); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 166, 35, 0.08);
  pointer-events: none; user-select: none;
}
.cta-inner { position: relative; max-width: 1100px; margin: 0 auto; }
.cta-kicker { font-size: 11px; letter-spacing: 0.26em; color: var(--accent-teal); margin-bottom: 30px; }
.cta-title {
  font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(36px, 6vw, 76px); line-height: 1.05;
  margin-bottom: 46px;
}
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta-note { font-size: 11px; letter-spacing: 0.18em; color: var(--text-secondary); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); background: var(--bg-secondary); }
.footer-top {
  display: flex; justify-content: space-between; gap: 48px;
  padding: clamp(48px, 7vh, 80px) var(--pad-x);
  flex-wrap: wrap;
}
.footer-brand { display: flex; gap: 18px; align-items: flex-start; }
.footer-glyph {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--accent-amber); color: #0D1117;
  font-family: var(--font-hindi); font-weight: 700; font-size: 28px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.footer-name { font-weight: 700; letter-spacing: 0.18em; font-size: 15px; margin-bottom: 8px; }
.footer-tag { font-size: 10px; letter-spacing: 0.18em; color: var(--text-secondary); }
.footer-cols { display: flex; gap: clamp(40px, 6vw, 90px); flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-head { font-size: 10px; letter-spacing: 0.24em; color: var(--accent-amber); margin-bottom: 6px; }
.footer-col a {
  color: var(--text-secondary); text-decoration: none; font-size: 13.5px;
  transition: color .25s ease;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px var(--pad-x);
  border-top: 1px solid var(--border);
  font-size: 10.5px; letter-spacing: 0.16em; color: var(--text-secondary);
  flex-wrap: wrap;
}
.footer-status { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-teal); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .console-layout { grid-template-columns: 1fr; }
}

@media (max-width: 1000px) {
  .nav-links, .nav-status, .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

@media (max-width: 820px) {
  .hero { padding-bottom: 130px; }
  .hero-coords { display: none; }
  .hero-devanagari { opacity: 0.55; }
  .hero-stats { gap: 24px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-card-wide { grid-column: span 1; }
  .agents-intro { flex-direction: column; align-items: flex-start; }

  /* modules become a vertical stack on mobile */
  .modules-pin { min-height: 0; padding: clamp(70px, 9vh, 110px) 0; }
  .modules-track {
    width: auto; flex-direction: column; align-items: stretch;
  }
  .module-card { width: 100%; }
  .modules-progress { display: none; }
}

@media (max-width: 560px) {
  .agents-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: 1fr; }
  .agent-card { min-height: 0; }
  .console-feed { height: 360px; }
  .feed-line { grid-template-columns: 76px 1fr; }
  .feed-time { display: none; }
  .hero-ticker { bottom: 16px; padding: 10px 14px; }
  .btn-lg { padding: 15px 24px; font-size: 12.5px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .grain { animation: none; }
}
