/* =========================================================================
   NEXUS AI OS — OFFICIAL LANDING PAGE DESIGN SYSTEM
   Exact Matching Palette & Aesthetic from NEXUS Core Application
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300..800;1,9..40,300..800&family=JetBrains+Mono:ital,wght@0,300..800;1,300..800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* Exact NEXUS Colors */
  --bg: #06070b;
  --bg-deep: #030407;
  --surface: #0e1018;
  --surface-hover: #161824;
  --surface-glass: rgba(14, 16, 24, 0.72);
  --glass-card: linear-gradient(140deg, rgba(21, 21, 29, 0.88), rgba(13, 14, 21, 0.94));
  
  --border: rgba(255, 255, 255, 0.055);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-active: rgba(164, 138, 246, 0.45);
  --border-glow: rgba(0, 245, 255, 0.35);

  --text: #e8e7ef;
  --text-pure: #ffffff;
  --muted: #858591;
  --quiet: #565664;
  
  --energy: #9585f0;
  --energy-bright: #c3b5ff;
  --energy-glow: rgba(149, 133, 240, 0.3);
  
  --cyan: #00f5ff;
  --cyan-bright: #67e8f9;
  --cyan-glow: rgba(0, 245, 255, 0.35);
  
  --amber: #d1ad75;
  --amber-bright: #fbbf24;
  --emerald: #92bba8;
  --emerald-bright: #34d399;
  --danger: #f43f5e;

  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Manrope', var(--font);
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  
  --shadow-card: 0 16px 50px rgba(0, 0, 0, 0.55);
  --shadow-energy: 0 0 35px rgba(149, 133, 240, 0.25);
  --shadow-cyan: 0 0 35px rgba(0, 245, 255, 0.25);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

::selection {
  background: rgba(149, 133, 240, 0.3);
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #06070b;
}

::-webkit-scrollbar-thumb {
  background: rgba(149, 133, 240, 0.28);
  border-radius: 9999px;
  border: 1px solid rgba(6, 7, 11, 0.9);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(195, 181, 255, 0.6);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(149, 133, 240, 0.28) #06070b;
}

/* Background Atmosphere mimicking Neural World */
.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.atmosphere-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 50% 12%, rgba(149, 133, 240, 0.1) 0%, transparent 60%),
    radial-gradient(circle at 85% 35%, rgba(0, 245, 255, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 15% 75%, rgba(209, 173, 117, 0.05) 0%, transparent 50%),
    var(--bg);
}

.atmosphere-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 10%, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 10%, #000 50%, transparent 100%);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Glass Surface Utility */
.glass {
  background: var(--glass-card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* =========================================================================
   ROUNDED FLOATING TOP NAVIGATION BAR (Exact Matching NEXUS Island)
   ========================================================================= */
.topbar-wrapper {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 1rem;
}

.topbar {
  pointer-events: auto;
  width: auto;
  max-width: min(1140px, 94vw);
  height: 56px;
  padding: 0 1.25rem 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-radius: 9999px;
  background: rgba(14, 16, 24, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 
    0 16px 40px -10px rgba(0, 0, 0, 0.75),
    0 0 25px rgba(149, 133, 240, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.topbar.is-scrolled {
  background: rgba(10, 11, 18, 0.92);
  border-color: rgba(149, 133, 240, 0.35);
  box-shadow: 
    0 20px 48px -10px rgba(0, 0, 0, 0.85),
    0 0 35px rgba(149, 133, 240, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: scale(0.985);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--energy-bright);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(149, 133, 240, 0.25), rgba(0, 245, 255, 0.15));
  border: 1px solid rgba(149, 133, 240, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(149, 133, 240, 0.3);
  position: relative;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 17px;
  height: 17px;
  color: var(--energy-bright);
}

.brand-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #ded9fa;
}

.badge-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(149, 133, 240, 0.12);
  color: var(--energy-bright);
  border: 1px solid rgba(149, 133, 240, 0.3);
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.main-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 6px 14px;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.main-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.main-nav a.active {
  color: #ffffff;
  background: rgba(149, 133, 240, 0.18);
  border: 1px solid rgba(149, 133, 240, 0.35);
  box-shadow: 0 0 12px rgba(149, 133, 240, 0.15);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(149, 133, 240, 0.25), rgba(0, 245, 255, 0.15));
  border: 1px solid rgba(149, 133, 240, 0.45);
  color: var(--energy-bright);
  box-shadow: 0 0 20px rgba(149, 133, 240, 0.18);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: linear-gradient(135deg, rgba(149, 133, 240, 0.38), rgba(0, 245, 255, 0.28));
  border-color: var(--energy-bright);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(149, 133, 240, 0.3);
}

/* Mouse spotlight glow on interactive cards */
.agent-card, .model-card, .doc-step-card, .download-card, .command-hud-box, .narrative-block, .founder-card {
  position: relative;
  overflow: hidden;
}

.agent-card::before, .model-card::before, .doc-step-card::before, .download-card::before, .command-hud-box::before, .narrative-block::before, .founder-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(450px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(149, 133, 240, 0.12), transparent 75%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.agent-card:hover::before, .model-card:hover::before, .doc-step-card:hover::before, .download-card:hover::before, .command-hud-box:hover::before, .narrative-block:hover::before, .founder-card:hover::before {
  opacity: 1;
}

/* Coming soon badges & disabled styling */
.badge-coming-soon {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(209, 173, 117, 0.14);
  color: var(--amber-bright);
  border: 1px solid rgba(209, 173, 117, 0.35);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.download-btn.disabled {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--quiet) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Control Buttons (NEXUS style) */
.control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 550;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.control-primary {
  background: linear-gradient(135deg, #7c62ca, #4c3d88);
  color: #f5f2ff;
  border-color: rgba(195, 181, 255, 0.3);
  box-shadow: 0 4px 20px rgba(124, 98, 202, 0.35);
}

.control-primary:hover {
  background: linear-gradient(135deg, #9175e2, #5a49a1);
  box-shadow: 0 6px 28px rgba(124, 98, 202, 0.5);
  transform: translateY(-1px);
}

.control-secondary {
  background: rgba(14, 16, 24, 0.85);
  border-color: var(--border-strong);
  color: var(--text);
}

.control-secondary:hover {
  background: rgba(22, 24, 36, 0.95);
  border-color: rgba(195, 181, 255, 0.3);
}

/* Eyebrow Label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow svg {
  color: var(--energy);
}

/* Hero Section */
.hero {
  position: relative;
  z-index: 10;
  padding: 7.5rem 0 5.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 1.25rem 0;
  color: #ffffff;
}

.hero h1 span.gradient {
  background: linear-gradient(120deg, #ffffff 10%, #c3b5ff 55%, #00f5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: 1.08rem;
  color: #a4a2b3;
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 2.5rem;
}

.stat-box {
  padding: 12px 14px;
  background: rgba(14, 16, 24, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
}

.stat-val-energy { color: var(--energy-bright); }
.stat-val-cyan { color: var(--cyan); }
.stat-val-amber { color: var(--amber); }
.stat-val-emerald { color: var(--emerald); }

.stat-label {
  font-size: 11px;
  color: var(--quiet);
  margin-top: 2px;
}

/* 3D Neural Canvas Container */
.neural-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at center, rgba(149, 133, 240, 0.08) 0%, rgba(6, 7, 11, 0.96) 80%);
  border: 1px solid rgba(149, 133, 240, 0.25);
  box-shadow: 0 0 50px rgba(149, 133, 240, 0.15);
  overflow: hidden;
}

.hud-overlay {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  pointer-events: none;
  z-index: 10;
}

.hud-top-left { top: 16px; left: 16px; display: flex; align-items: center; gap: 7px; color: var(--energy-bright); }
.hud-top-right { top: 16px; right: 16px; }
.hud-bottom-left { bottom: 16px; left: 16px; color: var(--quiet); }
.hud-bottom-right { bottom: 16px; right: 16px; color: var(--cyan); }

#neural-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin: 0.8rem 0 0.8rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1rem;
}

/* Interactive Command HUD Preview (Mockup of real NEXUS Bot Command Bar) */
.command-demo-section {
  position: relative;
  z-index: 10;
  padding: 4rem 0;
}

.command-hud-box {
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: var(--glass-card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
}

.command-input-surface {
  height: 54px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: var(--radius-sm);
  background: rgba(6, 7, 11, 0.7);
  border: 1px solid var(--border-active);
  box-shadow: 0 0 25px rgba(149, 133, 240, 0.12);
  margin-bottom: 1.5rem;
}

.command-input-surface svg {
  color: var(--energy-bright);
}

.command-input-surface span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #ffffff;
  flex: 1;
}

.command-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 245, 255, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(0, 245, 255, 0.3);
}

.hud-route-trace {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  overflow-x: auto;
}

.trace-step {
  color: var(--energy-bright);
  font-weight: 500;
  white-space: nowrap;
}

.trace-arrow {
  color: var(--quiet);
}

.hud-result-box {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: rgba(6, 7, 11, 0.6);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  color: #ccd0db;
}

/* Agents Grid */
.agents-section {
  position: relative;
  z-index: 10;
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.agent-category-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 2.5rem;
}

.category-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-pill:hover,
.category-pill.active {
  background: rgba(149, 133, 240, 0.18);
  border-color: var(--energy);
  color: #ffffff;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.agent-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--glass-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.agent-card:hover {
  border-color: rgba(149, 133, 240, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.agent-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.agent-emblem-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(149, 133, 240, 0.1);
  border: 1px solid rgba(149, 133, 240, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--energy-bright);
}

.agent-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.agent-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.agent-caps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cap-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--quiet);
  border: 1px solid var(--border);
}

/* AI Models Section */
.models-section {
  position: relative;
  z-index: 10;
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

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

.model-card {
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: var(--glass-card);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.2s ease;
}

.model-card:hover {
  border-color: rgba(0, 245, 255, 0.35);
  box-shadow: var(--shadow-cyan);
}

.model-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.model-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  margin-bottom: 12px;
}

.model-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* Work Examples Section */
.work-examples-section {
  position: relative;
  z-index: 10;
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.work-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2.5rem;
}

.work-tab-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: rgba(14, 16, 24, 0.7);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.work-tab-btn.active {
  background: var(--energy);
  color: #06070b;
  font-weight: 700;
  border-color: var(--energy);
}

.work-showcase-box {
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  background: var(--glass-card);
  border: 1px solid var(--border-strong);
}

.work-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.work-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
}

.work-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--emerald);
  display: flex;
  align-items: center;
  gap: 6px;
}

.work-content-body {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  color: #d1d5db;
  white-space: pre-wrap;
  background: rgba(6, 7, 11, 0.7);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  padding: 3rem 0;
  font-size: 13px;
  color: var(--quiet);
  position: relative;
  z-index: 10;
}

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

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a:hover {
  color: var(--energy-bright);
}

.sys-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--emerald);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
  .models-grid { grid-template-columns: repeat(2, 1fr); }
  .founder-grid { grid-template-columns: 1fr !important; }
  .docs-layout { grid-template-columns: 1fr !important; }
  .docs-sidebar { display: none; }
}

@media (max-width: 768px) {
  .topbar { padding: 0 1rem; }
  .main-nav { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .agents-grid { grid-template-columns: 1fr; }
  .models-grid { grid-template-columns: 1fr; }
  .download-cards-grid { grid-template-columns: 1fr !important; }
}

/* =========================================================================
   STANDALONE PAGES: ABOUT, DOCS, CAPABILITIES, DOWNLOAD
   ========================================================================= */

/* Hero banner for subpages */
.subpage-hero {
  position: relative;
  z-index: 10;
  padding: 8rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at 50% 0%, rgba(149, 133, 240, 0.08) 0%, transparent 70%);
}

.subpage-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin: 1rem 0;
}

.subpage-hero p.lead {
  font-size: 1.1rem;
  color: #a4a2b3;
  max-width: 720px;
  line-height: 1.7;
}

/* Founder Karthik Feature Card */
.founder-section {
  position: relative;
  z-index: 10;
  padding: 5rem 0;
}

.founder-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.founder-card {
  background: var(--glass-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  text-align: center;
  position: sticky;
  top: 96px;
}

.founder-avatar-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
}

.founder-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #1c1d2e, #0e1018);
  border: 2px solid var(--energy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(149, 133, 240, 0.35);
  overflow: hidden;
}

.founder-avatar svg {
  width: 70px;
  height: 70px;
  color: var(--energy-bright);
}

.founder-orbit {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 245, 255, 0.35);
  animation: rotateOrbit 18s linear infinite;
}

@keyframes rotateOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.founder-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.founder-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--energy-bright);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.founder-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 1.25rem;
}

.social-pill {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.social-pill:hover {
  border-color: var(--energy-bright);
  color: #ffffff;
  background: rgba(149, 133, 240, 0.15);
}

.founder-narrative {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.narrative-block {
  background: var(--glass-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.narrative-block h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.narrative-block p {
  color: #b3b1c2;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.narrative-block p:last-child {
  margin-bottom: 0;
}

.manifesto-quote {
  border-left: 3px solid var(--energy);
  padding: 1rem 1.5rem;
  background: rgba(149, 133, 240, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: #d6d3e8;
  margin: 1.25rem 0;
}

/* Documentation Layout */
.docs-page-section {
  position: relative;
  z-index: 10;
  padding: 3.5rem 0 5rem;
}

.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 96px;
  background: var(--glass-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
}

.sidebar-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--quiet);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
}

.sidebar-menu {
  list-style: none;
  margin-bottom: 1.5rem;
}

.sidebar-menu li a {
  display: block;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--muted);
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
  color: #ffffff;
  background: rgba(149, 133, 240, 0.12);
  color: var(--energy-bright);
}

.docs-main-content {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.doc-section {
  scroll-margin-top: 100px;
}

.doc-section-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1.75rem;
}

.doc-section-header h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.doc-step-card {
  background: var(--glass-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s ease;
}

.doc-step-card:hover {
  border-color: rgba(149, 133, 240, 0.3);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1rem;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(149, 133, 240, 0.18);
  border: 1px solid var(--energy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--energy-bright);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
}

.step-body {
  color: #b5b3c5;
  font-size: 14px;
  line-height: 1.8;
}

.step-body ol, .step-body ul {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

.step-body li {
  margin-bottom: 0.5rem;
}

.code-snippet-box {
  background: rgba(6, 7, 11, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  margin: 1rem 0;
  overflow: hidden;
}

.code-snippet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--quiet);
}

.code-snippet-body {
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: #93c5fd;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.alert-box {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.6;
  margin: 1.25rem 0;
}

.alert-amber {
  background: rgba(209, 173, 117, 0.1);
  border: 1px solid rgba(209, 173, 117, 0.3);
  color: #e6cb9a;
}

.alert-cyan {
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.3);
  color: #a5f3fc;
}

.alert-emerald {
  background: rgba(146, 187, 168, 0.1);
  border: 1px solid rgba(146, 187, 168, 0.3);
  color: #bbf7d0;
}

/* Download Cards Grid */
.download-section {
  position: relative;
  z-index: 10;
  padding: 4.5rem 0 6rem;
}

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

.download-card {
  background: var(--glass-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.download-card.featured {
  border-color: var(--energy);
  box-shadow: 0 0 40px rgba(149, 133, 240, 0.2);
}

.download-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--energy), #6d4bf5);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

.os-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: rgba(149, 133, 240, 0.1);
  border: 1px solid rgba(149, 133, 240, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--energy-bright);
}

.download-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.download-card p.os-version {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--quiet);
  margin-bottom: 1.5rem;
}

.specs-list {
  list-style: none;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  width: 100%;
  padding: 0 0.5rem;
}

.specs-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.specs-list svg {
  color: var(--emerald);
  flex-shrink: 0;
}

.download-btn {
  width: 100%;
  padding: 13px 0;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.download-btn.primary {
  background: linear-gradient(135deg, #7c62ca, #4c3d88);
  color: #ffffff;
  border: 1px solid rgba(195, 181, 255, 0.4);
  box-shadow: 0 4px 20px rgba(124, 98, 202, 0.35);
}

.download-btn.primary:hover {
  background: linear-gradient(135deg, #9175e2, #5a49a1);
  transform: translateY(-2px);
}

.download-btn.secondary {
  background: rgba(14, 16, 24, 0.8);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.download-btn.secondary:hover {
  background: rgba(22, 24, 36, 0.95);
  border-color: var(--energy-bright);
}

.checksum-panel {
  background: var(--glass-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.checksum-panel h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.checksum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
}

.checksum-row:last-child {
  border-bottom: none;
}

.checksum-platform {
  color: var(--muted);
}

.checksum-val {
  color: var(--cyan);
}

/* Capabilities Catalog */
.cap-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(14, 16, 24, 0.8);
  border: 1px solid var(--border-active);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.cap-search-bar input {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 14px;
  color: #ffffff;
  width: 100%;
}

.cap-search-bar input::placeholder {
  color: var(--quiet);
}

.cap-search-bar svg {
  color: var(--energy-bright);
}

