/* ==========================================================================
   AI Brain Startup — Ultra-HD 4K Cross-Browser Design System & Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Color Tokens & Vendor Prefixes
   -------------------------------------------------------------------------- */
:root {
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Color Palette */
  --bg-dark: #070913;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.35);

  /* Brand Accents */
  --cyan: #00f0ff;
  --purple: #7000ff;
  --emerald: #10b981;
  --blue: #3b82f6;

  /* Typography Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Spacing & Sizes */
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Global Reset & Base Styles (Cross-Browser Compatible)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
}

/* Visually Hidden Accessibility Utility */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   3. Typography & Badges
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, #38bdf8 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-text {
  color: var(--cyan);
}

.highlight {
  color: var(--cyan);
}

.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   4. Buttons & Glassmorphic UI Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #030712;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 240, 255, 0.45);
}

.btn-glow {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  color: #fff;
  box-shadow: 0 0 25px rgba(112, 0, 255, 0.4);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.6);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-large {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

/* Glassmorphism Card Style - Cross Browser GPU Optimized */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: var(--transition-smooth);
  will-change: transform;
  contain: content;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.22) 0%, rgba(112, 0, 255, 0.06) 50%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card:hover {
  border-color: rgba(0, 240, 255, 0.55);
  transform: translateY(-4px) scale(1.008);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45), 0 0 30px rgba(0, 240, 255, 0.25);
}

/* --------------------------------------------------------------------------
   4B. Ambient 3D Holographic AGI Floating Orbs & HUD Matrix
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 1;
  animation: floatOrb 14s infinite alternate ease-in-out;
}

.orb-cyan {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.8) 0%, rgba(0, 180, 216, 0.2) 70%, transparent 100%);
  top: -12%;
  left: -8%;
}

.orb-purple {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(112, 0, 255, 0.8) 0%, rgba(147, 51, 234, 0.2) 70%, transparent 100%);
  bottom: -15%;
  right: -8%;
  animation-delay: -7s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, 45px) scale(1.18); }
  100% { transform: translate(-35px, 80px) scale(0.88); }
}

.agi-hud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  max-width: 960px;
  margin: 16px auto 30px auto;
  padding: 0 16px;
  position: relative;
  z-index: 10;
}

.hud-stat-card {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08) 0%, rgba(10, 20, 42, 0.85) 100%);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.08), inset 0 0 10px rgba(0, 240, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all 0.3s ease;
}

.hud-stat-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 6px 25px rgba(0, 240, 255, 0.3), inset 0 0 14px rgba(0, 240, 255, 0.15);
  transform: translateY(-2px);
}

.hud-stat-val {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
  line-height: 1.1;
}

.hud-stat-label {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hud-status-badge {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--emerald);
  display: flex;
  align-items: center;
  gap: 4px;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.12);
}

/* --------------------------------------------------------------------------
   5. Navigation Bar & Mobile Drawer
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 12, 24, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.12);
  transition: var(--transition-smooth);
}

.nav-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.1rem;
  font-family: var(--font-heading);
  font-weight: 800;
}

.logo-icon {
  font-size: 1.2rem;
}

.system-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Pani Color (Water Glass Aqua Container) for Menu Bar */
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.14) 0%, rgba(0, 180, 216, 0.08) 50%, rgba(10, 25, 50, 0.5) 100%);
  border: 1px solid rgba(0, 240, 255, 0.4);
  padding: 6px 22px;
  border-radius: 30px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.18), inset 0 0 15px rgba(0, 240, 255, 0.12);
  transition: all 0.3s ease;
}

.nav-links:hover {
  border-color: rgba(0, 240, 255, 0.7);
  box-shadow: 0 8px 38px rgba(0, 240, 255, 0.3), inset 0 0 20px rgba(0, 240, 255, 0.2);
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 14px;
  transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(0, 240, 255, 0.22);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.9);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.nav-actions {
  display: flex;
  align-items: center;
}

.mobile-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  height: 38px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #070913;
  font-size: 0.85rem;
  font-weight: 800;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  z-index: 10001;
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.5);
  transition: var(--transition-fast);
}

.mobile-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 28px rgba(0, 242, 254, 0.8);
}

.btn-back-nav {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px !important;
  height: 38px !important;
  box-sizing: border-box !important;
  background: var(--cyan) !important;
  color: #070913 !important;
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  border: none !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
  transition: var(--transition-fast);
}

.btn-back-nav:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.7);
}

.mobile-toggle-icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* Mobile Navigation Side Drawer (Right Sidebar) */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  display: block !important;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(7, 9, 19, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid rgba(0, 240, 255, 0.3);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.85);
  z-index: 10005;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-nav-drawer.active {
  right: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: flex !important;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
}

.drawer-title {
  font-size: 1.1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--cyan);
}

.btn-close-drawer {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-close-drawer:hover {
  background: rgba(255, 0, 80, 0.2);
  color: #ff4757;
  border-color: #ff4757;
}

.mobile-nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-fast);
}

.mobile-nav-link:hover, .mobile-nav-link:focus {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   6. Hero Section & 3D Neural Canvas
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 85px 24px 40px 24px;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-bg-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  max-width: 100vw;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.16) 0%, rgba(112, 0, 255, 0.1) 50%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  overflow: hidden;
}

.hero-container {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  box-sizing: border-box;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.18);
  padding: 4px 10px;
  border-radius: 14px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.brain-pill {
  background: rgba(0, 240, 255, 0.1) !important;
  border: 1px solid rgba(0, 240, 255, 0.35) !important;
  color: var(--cyan) !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.swarm-pill {
  background: rgba(112, 0, 255, 0.12) !important;
  border: 1px solid rgba(112, 0, 255, 0.35) !important;
  color: #a855f7 !important;
  box-shadow: 0 0 12px rgba(112, 0, 255, 0.15);
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.btn-hero-compact {
  padding: 8px 18px !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  height: 38px !important;
  white-space: nowrap !important;
}

.trust-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}

.waitlist-avatars {
  display: flex;
  align-items: center;
}

.waitlist-avatars .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
  margin-left: -8px;
}

.waitlist-avatars .avatar:first-child { margin-left: 0; }
.avatar-1 { background: #3b82f6; }
.avatar-2 { background: #8b5cf6; }
.avatar-3 { background: #ec4899; }
.avatar-4 { background: #10b981; }

.trust-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--cyan);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 35px;
  background: var(--border-glass);
}

/* 3D Canvas Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.canvas-wrapper {
  position: relative;
  width: clamp(280px, 42vw, 480px);
  height: clamp(280px, 42vw, 480px);
  max-width: 92vw;
  max-height: 92vw;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

#neuralCanvas {
  width: 100%;
  height: 100%;
}

.canvas-overlay-tag {
  position: absolute;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  z-index: 5;
}

.canvas-overlay-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot.green { background: var(--emerald); }
.dot.cyan { background: var(--cyan); }
.dot.purple { background: var(--purple); }

.tag-agents { top: 10px; right: 0; }
.tag-memory { bottom: 15px; left: 0; }

/* --------------------------------------------------------------------------
   7. Cloud Integration Section (.cloud-grid)
   -------------------------------------------------------------------------- */
.cloud-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.cloud-logo-pill {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 12px;
}

.cloud-tech-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.tech-tag {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
}

.cloud-estimator-box {
  max-width: 900px;
  margin: 0 auto;
}

.estimator-header {
  margin-bottom: 24px;
  text-align: center;
}

.estimator-header h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.estimator-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.estimator-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bar-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.bar-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  overflow: hidden;
}

/* Interactive Memory Calculator Widget */
.calc-card {
  max-width: 900px;
  margin: 0 auto;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.calc-group {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-group label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.calc-slider {
  width: 100%;
  accent-color: var(--cyan);
  cursor: pointer;
}

.calc-val-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  align-self: flex-end;
}

.calc-results {
  background: rgba(2, 4, 10, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.res-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.res-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.res-value {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.red-text { color: #ef4444; }
.green-text { color: var(--emerald); }

/* FAQ Section (AEO & GEO Optimization) */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.faq-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--cyan);
}

.faq-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. Section Layouts & Agent Components
   -------------------------------------------------------------------------- */
.section {
  padding: 100px 24px;
}

.section-dark {
  background: rgba(4, 6, 14, 0.6);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.section-container {
  max-width: 1380px;
  margin: 0 auto;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.glass-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.glass-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Agent Tabs */
.agent-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.agent-tab {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.agent-tab:hover, .agent-tab.active {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--cyan);
  color: #fff;
}

.agent-display-box {
  min-height: 340px;
}

.agent-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.agent-content[hidden] {
  display: none !important;
}

.agent-features {
  list-style: none;
  margin-top: 16px;
}

.agent-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.check {
  color: var(--emerald);
  font-weight: 700;
}

.agent-terminal {
  background: #02040a;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.terminal-header {
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.term-dot.red { background: #ef4444; }
.term-dot.yellow { background: #f59e0b; }
.term-dot.green { background: #10b981; }

.term-title {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-left: auto;
}

.terminal-body {
  padding: 16px;
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.terminal-body pre,
.terminal-body code {
  white-space: pre;
  max-width: 100%;
  display: block;
}

.code-preview-card {
  overflow: hidden;
}

.code-keyword { color: var(--purple); font-weight: 700; }
.code-string { color: var(--cyan); }
.code-comment { color: var(--text-dim); }
.code-success { color: var(--emerald); font-weight: 600; }

/* Interactive Demo Box */
.demo-box {
  max-width: 820px;
  margin: 0 auto;
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 20px;
}

.demo-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-indicator {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
}

.demo-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.demo-badge {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.demo-chat {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  max-height: 300px;
  overflow-y: auto;
}

.chat-bubble {
  display: flex;
  gap: 12px;
  max-width: 85%;
}

.chat-bubble.user-bubble {
  margin-left: auto;
  flex-direction: row-reverse;
}

.avatar-mini {
  width: 32px;
  height: 32px;
  background: rgba(0, 240, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.bubble-text {
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  border: 1px solid var(--border-glass);
}

.chat-bubble.user-bubble .bubble-text {
  background: rgba(112, 0, 255, 0.15);
  border-color: rgba(112, 0, 255, 0.3);
}

.demo-suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.suggest-btn {
  font-size: 0.78rem;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.suggest-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.demo-input-row {
  display: flex;
  gap: 10px;
}

.demo-input {
  flex: 1;
  background: rgba(2, 4, 10, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  outline: none;
}

.demo-input:focus {
  border-color: var(--cyan);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--border-glass);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-dot {
  position: absolute;
  left: -30px;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--text-dim);
}

.timeline-dot.active {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.timeline-phase {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 6px;
  display: block;
}

/* Founder & Trust Section */
.founder-card {
  max-width: 980px;
  margin: 0 auto;
}

.founder-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.founder-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.founder-name {
  font-size: 2rem;
  margin-bottom: 14px;
}

.founder-bio {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.founder-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.link-glow {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.founder-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-badge-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-left: 1px solid var(--border-glass);
  padding-left: 30px;
}

.badge-icon-large {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.trust-badge-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.trust-badge-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* CTA & Waitlist */
.cta-card {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.cta-subtitle {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.form-input, .form-select {
  width: 100%;
  background: rgba(2, 4, 10, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--text-main);
  outline: none;
}

.form-input:focus, .form-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.form-reassurance {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.form-toast {
  margin-top: 16px;
  padding: 12px 18px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   9. Footer & Legal Modals
   -------------------------------------------------------------------------- */
.footer {
  background: #020308;
  border-top: 1px solid var(--border-glass);
  padding: 60px 24px 30px 24px;
}

.footer-container {
  max-width: 1380px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 12px 0 16px 0;
  max-width: 320px;
}

.footer-contact-info p {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-modal-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
}

.footer-modal-btn:hover {
  color: var(--cyan);
}

.trust-indicator {
  font-size: 0.75rem;
  color: var(--emerald);
  font-weight: 600;
}

/* Footer Copyright */
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.msme-footer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 153, 51, 0.05);
  border: 1px solid rgba(255, 153, 51, 0.28);
  padding: 3px 14px;
  border-radius: 16px;
  font-size: 0.71rem;
  color: var(--text-muted);
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  flex-wrap: wrap;
  margin: 0 auto 6px auto;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .msme-footer-badge {
    padding: 3px 10px;
    font-size: 0.64rem;
    line-height: 1.35;
    border-radius: 10px;
    text-align: center;
    justify-content: center;
  }
}

/* Contact Page Custom Cards & Hub Styles */
.contact-action-card {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  border-radius: 12px;
}

.contact-action-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.15);
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-action-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-heading);
}

.contact-action-sub {
  font-size: 0.78rem;
  color: var(--cyan);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-detail-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 600;
}

.detail-value {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 600;
}

/* Documentation Page Responsive Grid */
.docs-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 90px;
}

@media (max-width: 900px) {
  .docs-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .docs-sidebar {
    position: static !important;
    margin-bottom: 16px;
  }
}

/* Collapsible Code Accordion for Mobile & Desktop */
.code-accordion {
  background: rgba(7, 9, 19, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 12px;
  margin-bottom: 20px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.code-accordion[open] {
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.12);
}

.code-summary {
  padding: 14px 18px;
  background: rgba(0, 240, 255, 0.06);
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
}

.code-summary::-webkit-details-marker {
  display: none;
}

.code-summary:hover {
  background: rgba(0, 240, 255, 0.12);
}

.code-summary-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 12px;
}

.code-content {
  padding: 14px 16px;
  background: rgba(5, 7, 15, 0.95);
  border-top: 1px solid rgba(0, 240, 255, 0.15);
  overflow-x: auto;
  max-width: 100%;
}

.code-content pre, .code-content code, .terminal-body code {
  white-space: pre-wrap !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

/* Docs Page Mobile Optimizations & Back Button */
.btn-back-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-back-nav:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--cyan);
  color: #fff;
}

.docs-card {
  padding: 28px;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.docs-mobile-index {
  display: none;
}

.benchmarks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
}

@media (max-width: 900px) {
  .docs-sidebar {
    display: none !important;
  }
  .docs-mobile-index {
    display: block !important;
    background: rgba(7, 9, 19, 0.9);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
  }
  .docs-index-summary {
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cyan);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 240, 255, 0.06);
    user-select: none;
  }
  .docs-index-links {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    border-top: 1px solid rgba(0, 240, 255, 0.15);
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  .docs-main-section {
    padding-top: 64px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  .section-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .section-header {
    margin-bottom: 16px !important;
    text-align: center !important;
  }
  .section-title {
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
    margin-top: 4px !important;
  }
  .section-subtitle {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }
  .section-badge {
    font-size: 0.65rem !important;
    padding: 3px 8px !important;
  }
  .docs-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .docs-content-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .docs-card, .docs-mobile-index {
    padding: 12px 10px !important;
    border-radius: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
  .docs-card h2 {
    font-size: 1.05rem !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
  }
  .docs-card p {
    font-size: 0.78rem !important;
    line-height: 1.42 !important;
    margin-bottom: 10px !important;
  }
  .code-summary {
    padding: 8px 10px !important;
    font-size: 0.78rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .code-summary-badge {
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
    white-space: nowrap !important;
  }
  .code-accordion {
    margin-top: 8px !important;
    margin-bottom: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .code-content {
    padding: 8px 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
  }
  .terminal-body {
    padding: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
  }
  .code-content pre, .code-content code, .terminal-body code {
    font-size: 0.70rem !important;
    line-height: 1.35 !important;
    white-space: pre-wrap !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
  }
  .benchmarks-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .benchmarks-grid div {
    padding: 12px 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .benchmarks-grid div > div:first-child {
    font-size: 1.3rem !important;
  }
  .brand-logo .logo-text {
    font-size: 0.88rem !important;
  }
  .btn-back-nav {
    font-size: 0.7rem !important;
    padding: 3px 8px !important;
  }
}

/* --------------------------------------------------------------------------
   10. Cross-Browser & Mobile Responsiveness Breakpoints
   -------------------------------------------------------------------------- */

/* Intermediate Laptops & Split-Screen Desktop Windows (1025px to 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
  .nav-links {
    gap: 14px;
  }
  .nav-link {
    font-size: 0.82rem;
  }
  .btn-glow {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
}

/* Mobile Navigation & Right Side Drawer Layout (< 1024px) */
@media (max-width: 1024px) {
  .nav-container {
    padding: 10px 16px;
  }

  .nav-links {
    display: none !important;
  }

  .mobile-toggle {
    display: inline-flex !important;
  }

  .mobile-toggle-icon {
    font-size: 1.1rem;
    line-height: 1;
  }
}

@media (max-width: 1150px) {
  .hero-container {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .hero-visual {
    order: 1; /* 3D Neural Sphere on TOP in mobile view */
    width: 100%;
    margin: 0 auto;
  }

  .hero-content {
    order: 2; /* Title, Description & Buttons BELOW 3D Sphere in mobile view */
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-description {
    margin: 0 auto 32px auto;
  }

  .hero-actions, .trust-strip, .hero-stats {
    justify-content: center;
  }

  .cloud-grid, .grid-4, .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .founder-grid {
    grid-template-columns: 1fr;
  }

  .trust-badge-box {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border-glass);
    padding-top: 24px;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Mobile Devices & Split Windows (max-width: 768px) */
@media (max-width: 768px) {
  /* ── Scroll Margin for Sticky Navbar ── */
  section, .section {
    scroll-margin-top: 70px;
    padding: 40px 16px;
  }

  /* ── Navbar ── */
  .nav-container {
    padding: 8px 14px;
  }

  .brand-logo {
    font-size: 1.05rem;
  }

  .nav-actions {
    display: none !important;
  }

  /* ── Hero Section — Natural height flow ── */
  .hero-section {
    min-height: auto !important;
    height: auto !important;
    padding: 75px 16px 40px 16px;
    overflow: hidden;
  }

  .hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    text-align: center;
  }

  /* ── AGI HUD Grid Mobile Sizing ── */
  .agi-hud-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 16px auto 24px auto;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .hud-stat-card {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .hud-stat-val {
    font-size: 1.45rem;
  }

  .hud-stat-label {
    font-size: 0.68rem;
  }

  .hud-status-badge {
    font-size: 0.6rem;
  }

  /* Sphere comes FIRST on mobile */
  .hero-visual {
    order: -1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 4px;
  }

  .hero-content {
    order: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* ── Badge row ── */
  .badge-row {
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }

  .badge-pill {
    padding: 4px 10px;
    font-size: 0.68rem;
    margin-bottom: 0;
  }

  /* ── Hero text ── */
  .hero-title {
    font-size: clamp(1.65rem, 6.5vw, 2.1rem);
    line-height: 1.18;
    margin-bottom: 12px;
    text-align: center;
  }

  .hero-description {
    font-size: 0.88rem;
    margin-bottom: 20px;
    line-height: 1.5;
    max-width: 98%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* ── Buttons — full width stacked ── */
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 16px auto;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
  }

  /* ── 3D sphere canvas ── */
  .canvas-wrapper {
    width: clamp(200px, 58vw, 260px);
    height: clamp(200px, 58vw, 260px);
    margin: 0 auto;
  }

  .canvas-overlay-tag {
    font-size: 0.6rem;
    padding: 3px 7px;
  }

  .canvas-badge {
    font-size: 0.58rem;
    padding: 2px 6px;
  }

  /* ── Hero stats ── */
  .hero-stats {
    gap: 14px;
    padding-top: 16px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .stat-value {
    font-size: 1.35rem;
  }

  .stat-label {
    font-size: 0.72rem;
  }

  /* ── Section headers ── */
  .section-header {
    margin-bottom: 24px;
  }

  .section-title {
    font-size: 1.35rem;
    margin-bottom: 8px;
  }

  .section-subtitle {
    font-size: 0.85rem;
    line-height: 1.45;
  }

  .glass-card {
    padding: 18px 14px;
    border-radius: 12px;
  }

  /* ── Grids → single column ── */
  .cloud-grid, .grid-4, .grid-3, .faq-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .agent-content {
    grid-template-columns: 1fr;
  }

  /* ── SDK Code Preview — clean scrollable box ── */
  .code-preview-card {
    overflow: hidden;
    border-radius: 12px;
    width: 100%;
  }

  .terminal-header {
    padding: 10px 14px;
  }

  .terminal-body {
    padding: 12px 14px;
    font-size: 0.74rem;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,240,255,0.3) transparent;
  }

  .terminal-body code {
    white-space: pre;
    display: inline-block;
    min-width: max-content;
  }

  /* ── GCP Architecture visual ── */
  .gcp-arch-visual {
    padding: 16px 12px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .gcp-arch-header h3 {
    font-size: 1.05rem;
  }

  .gcp-flow-grid {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .gcp-flow-node {
    padding: 12px 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .gcp-flow-arrow {
    transform: rotate(90deg);
    font-size: 1.1rem;
    margin: 2px 0;
  }

  .node-title {
    font-size: 0.88rem;
  }

  .node-desc {
    font-size: 0.74rem;
  }

  /* ── Calculator ── */
  .calc-card {
    padding: 18px 14px;
  }

  /* ── Demo section ── */
  .demo-box {
    width: 100%;
    padding: 16px 12px;
  }

  .demo-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .demo-title {
    font-size: 0.9rem;
  }

  .demo-badge {
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  .demo-suggestions {
    flex-direction: column;
    gap: 6px;
  }

  .suggest-btn {
    width: 100%;
    text-align: left;
    font-size: 0.76rem;
    padding: 7px 12px;
    border-radius: 8px;
  }

  .demo-input-row {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .demo-input {
    width: 100%;
    box-sizing: border-box;
    font-size: 0.82rem;
  }

  .demo-input-row .btn {
    width: 100%;
    justify-content: center;
  }

  /* ── Agent grid ── */
  .agent-cards-grid {
    grid-template-columns: 1fr;
  }

  /* ── Waitlist / CTA ── */
  .waitlist-form {
    flex-direction: column;
    gap: 10px;
  }

  .waitlist-input {
    width: 100%;
    text-align: left;
    box-sizing: border-box;
  }

  .waitlist-form .btn {
    width: 100%;
    justify-content: center;
  }

  /* ── Footer ── */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* ── Modal ── */
  .modal-box {
    padding: 20px 16px;
    max-height: 90vh;
  }
}

/* ════════════════════════════════════════════════
   Small phones (≤ 390px) — iPhone SE, Galaxy A series
   ════════════════════════════════════════════════ */
@media (max-width: 390px) {
  .hero-section {
    padding: 60px 12px 20px 12px;
  }

  .hero-title {
    font-size: 1.55rem;
  }

  .hero-description {
    font-size: 0.82rem;
  }

  .canvas-wrapper {
    width: clamp(170px, 62vw, 230px);
    height: clamp(170px, 62vw, 230px);
  }

  .hero-actions .btn {
    font-size: 0.78rem;
    padding: 10px 14px;
  }

  .section {
    padding: 30px 12px;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .glass-card {
    padding: 14px 12px;
  }

  .terminal-body {
    font-size: 0.68rem;
    padding: 10px 12px;
  }

  .badge-pill {
    font-size: 0.62rem;
    padding: 3px 8px;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .agi-hud-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 8px;
  }

  .hud-stat-val {
    font-size: 1.3rem;
  }

  .btn-large {
    padding: 10px 14px;
    font-size: 0.8rem;
  }
}

/* GCP Badge & Architecture Pipeline */
.badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.gcp-pill {
  background: rgba(66, 133, 244, 0.12) !important;
  border: 1px solid rgba(66, 133, 244, 0.35) !important;
  color: #4285f4 !important;
}

.gcp-icon {
  color: #4285f4;
}

.gcp-arch-visual {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid rgba(66, 133, 244, 0.25);
  background: radial-gradient(circle at 50% 0%, rgba(66, 133, 244, 0.08) 0%, rgba(7, 9, 19, 0.8) 100%);
  border-radius: var(--radius-lg);
}

.gcp-arch-header {
  text-align: center;
  margin-bottom: 20px;
}

.gcp-arch-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #4285f4;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.gcp-arch-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-main);
}

.gcp-flow-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gcp-flow-node {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.gcp-flow-node:hover {
  transform: translateY(-3px);
  border-color: rgba(66, 133, 244, 0.4);
}

.node-badge {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.node-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 3px;
}

.node-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.highlight-gcp .node-title { color: #4285f4; }
.highlight-gemini .node-title { color: #a855f7; }
.highlight-storage .node-title { color: #00f0ff; }

.gcp-flow-arrow {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.1rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .gcp-flow-grid {
    flex-direction: column;
  }
  .gcp-flow-arrow {
    transform: rotate(90deg);
    margin: 2px 0;
  }
  .gcp-flow-node {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Modal Popup Styles */
.footer-modal-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-modal-btn:hover {
  color: var(--cyan);
}

.modal-backdrop {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 9, 19, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.active {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.modal-box {
  width: 100%;
  max-width: 580px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid var(--border-cyan);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-cyan);
  animation: modalSlideUp 0.3s ease forwards;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: 1.4rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 0, 85, 0.2);
  color: #ff0055;
}

.modal-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: inline-block;
}

.modal-header h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-main);
  margin-bottom: 16px;
}

.modal-body {
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  padding: 16px 0;
  margin-bottom: 20px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .modal-box {
    padding: 20px 14px;
    max-height: 90vh;
    border-radius: var(--radius-md);
  }

  .modal-header h2 {
    font-size: 1.1rem;
  }

  .modal-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .modal-footer div {
    width: 100%;
    justify-content: center;
  }

  .modal-footer .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .agent-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .agent-tabs::-webkit-scrollbar {
    display: none;
  }

  .agent-tab {
    flex-shrink: 0;
    font-size: 0.8rem;
    padding: 8px 14px;
  }
}

/* Accessibility Focus Ring Styles & Reduced Motion Support */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cyan) !important;
  outline-offset: 3px !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
