/* ==========================================================================
   AcadmyAI Ecosystem Hub — Design System & Mobile Ergonomic Styles
   Legal Entity: Acadmiyum Technologies OPC Private Limited
   ========================================================================== */

:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-darker: #020617;
  --glass-bg: rgba(30, 41, 59, 0.75);
  --glass-border: rgba(99, 102, 241, 0.25);
  --glass-border-hover: rgba(236, 72, 153, 0.5);
  
  --color-indigo: #6366f1;
  --color-purple: #a855f7;
  --color-pink: #ec4899;
  --color-emerald: #10b981;
  --color-amber: #f59e0b;
  --color-cyan: #06b6d4;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-glow: 0 0 40px -10px rgba(99, 102, 241, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
}

/* Neural Background Canvas */
#neural-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.content-wrapper {
  position: relative;
  z-index: 1;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 800;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-indigo), var(--color-purple), var(--color-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-emerald {
  background: linear-gradient(135deg, #34d399, #10b981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-cyan {
  background: linear-gradient(135deg, #38bdf8, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Container */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation Header */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: 80px;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.4rem;
}

.brand-logo svg {
  width: 36px;
  height: 36px;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link:hover {
  color: var(--text-main);
}

.badge {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-live {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-beta {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.badge-soon {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--color-indigo), var(--color-purple), var(--color-pink));
  color: white;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 30px rgba(236, 72, 153, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-indigo);
}

/* Mobile Navigation Drawer */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(25px);
  z-index: 200;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: right 0.4s ease;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-close-btn {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.8rem;
  cursor: pointer;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

/* Hero Section */
.hero {
  padding-top: 150px;
  padding-bottom: 80px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-indigo);
  margin-bottom: 24px;
  max-width: 100%;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  max-width: 900px;
  margin: 0 auto 24px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 40px;
}

/* Quick Topic Search Launcher */
.quick-launcher {
  max-width: 680px;
  margin: 0 auto 48px;
  padding: 8px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.launcher-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 1.05rem;
  padding: 12px 16px;
  font-family: var(--font-body);
}

.launcher-input::placeholder {
  color: var(--text-dim);
}

/* Stats Counter Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.stat-card {
  padding: 24px;
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--font-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* Divisions Section */
.section {
  padding: 90px 0;
  scroll-margin-top: 90px;
}

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

.section-tag {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: block;
}

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

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

/* Division Cards */
.featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  padding: 48px;
  align-items: center;
  margin-bottom: 40px;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.action-btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0 32px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.feature-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.2);
  color: var(--color-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.preview-box {
  background: var(--bg-darker);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

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

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

/* Code Snippet Box */
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.code-content {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #a5b4fc;
  line-height: 1.7;
  overflow-x: auto;
}

/* Footer Section */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 80px 0 40px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-muted);
  margin: 16px 0 24px;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-title {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-indigo);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.legal-name {
  color: var(--text-muted);
  font-weight: 700;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #34d399;
  font-weight: 600;
  font-size: 0.8rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

/* Sticky Mobile Launcher */
.sticky-mobile-bar {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 90;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Ergonomic Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-title { font-size: 2.8rem; }
  .featured-card { grid-template-columns: 1fr; gap: 32px; padding: 36px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  /* Prevent Sticky Bottom Bar from obscuring content */
  body {
    padding-bottom: 95px !important;
  }

  .container {
    padding: 0 16px;
  }

  .nav-links, .nav-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 50px;
  }

  .hero-pill {
    flex-direction: column;
    gap: 4px;
    padding: 10px 16px;
    width: fit-content;
    max-width: 90%;
    margin: 0 auto 20px;
    font-size: 0.78rem;
    text-align: center;
    line-height: 1.4;
  }

  .hero-pill-sep {
    display: none;
  }

  .hero-title {
    font-size: 2.0rem;
    line-height: 1.25;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    margin-bottom: 32px;
  }

  /* Mobile Quick Topic Search Form */
  .quick-launcher {
    flex-direction: column;
    padding: 12px;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin-bottom: 36px;
  }

  .launcher-input {
    width: 100%;
    min-height: 48px;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 0.95rem;
    padding: 10px 14px;
  }

  .quick-launcher .btn-primary {
    width: 100%;
    min-height: 48px;
    font-size: 0.95rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 32px;
  }

  .stat-card {
    padding: 16px 12px !important;
  }

  .stat-number {
    font-size: 1.6rem;
  }

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

  .section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

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

  .section-desc {
    font-size: 0.95rem;
  }

  .glass-card {
    padding: 24px 18px !important;
    border-radius: 20px;
  }

  .featured-card {
    padding: 24px 16px !important;
    gap: 24px;
  }

  .card-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .card-header-row .btn-secondary {
    width: 100%;
  }

  .action-btn-row {
    flex-direction: column;
    gap: 12px;
  }

  .action-btn-row .btn-primary,
  .action-btn-row .btn-secondary {
    width: 100%;
    text-align: center;
  }

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

  .preview-box {
    padding: 16px;
  }

  .code-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .code-content {
    font-size: 0.78rem;
    line-height: 1.6;
  }

  .footer {
    padding: 60px 0 30px;
    margin-top: 40px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .sticky-mobile-bar {
    display: block;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }

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