/* ==========================================================================
   ACADEMIA.AI - MODERN DESIGN SYSTEM & CORE STYLES
   Optima Academi x Jawara Education Center Design System
   Palette: Dark Obsidian, Brand Coral, Electric Violet & Cyan Glow
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #07090e;
  --bg-card: rgba(15, 20, 32, 0.75);
  --bg-card-hover: rgba(22, 30, 48, 0.85);
  --bg-surface: #0f1422;
  --bg-surface-elevated: #161c2e;
  
  /* Brand & Accent Colors */
  --brand-coral: #e0694d;
  --brand-coral-glow: rgba(224, 105, 77, 0.35);
  --violet-glow: #8b5cf6;
  --violet-glow-alpha: rgba(139, 92, 246, 0.25);
  --cyan-accent: #06b6d4;
  --cyan-alpha: rgba(6, 182, 212, 0.2);
  --emerald-accent: #10b981;
  --amber-accent: #f59e0b;

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-gradient: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  --brand-gradient: linear-gradient(135deg, #e0694d 0%, #f59e0b 50%, #8b5cf6 100%);
  --cyan-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  
  /* Borders & Glassmorphism */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(224, 105, 77, 0.4);
  --glass-blur: blur(16px);
  --glass-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.65);
  --glow-shadow: 0 0 35px -5px var(--brand-coral-glow);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout & Spacing */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Smoothness */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(224, 105, 77, 0.45);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Ambient Background Lights & Grid */
.background-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  will-change: transform;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-primary {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(224, 105, 77, 0.28) 0%, transparent 70%);
  top: -120px;
  right: -100px;
}

.orb-secondary {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, transparent 70%);
  top: 30%;
  left: -200px;
  animation-duration: 22s;
}

.orb-accent {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, transparent 70%);
  bottom: 10%;
  right: 5%;
  animation-duration: 26s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.2) 80%);
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, -20px) scale(0.95); }
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.glass-panel:hover {
  border-color: var(--border-highlight);
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR
   ========================================================================== */
.top-announcement {
  background: linear-gradient(90deg, rgba(224, 105, 77, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border-bottom: 1px solid rgba(224, 105, 77, 0.25);
  padding: 0.55rem 0;
  font-size: 0.85rem;
  position: relative;
  z-index: 100;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: center;
}

.badge-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(224, 105, 77, 0.2);
  color: #ff9d85;
  border: 1px solid rgba(224, 105, 77, 0.4);
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

@keyframes pulseLight {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.announcement-text strong {
  color: #fff;
  font-weight: 600;
}

.announcement-link {
  color: #ffb8a6;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.announcement-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 9, 14, 0.82);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.logo-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .logo-symbol {
  transform: rotate(5deg) scale(1.05);
}

.logo-text {
  font-family: var(--font-heading);
  color: #fff;
}

.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.35rem 0;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--brand-coral);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.65rem 1.35rem;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-primary {
  background: linear-gradient(135deg, #e0694d 0%, #d95a3b 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 18px rgba(224, 105, 77, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ea775c 0%, #e0694d 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(224, 105, 77, 0.5);
}

.glow-btn {
  position: relative;
  overflow: hidden;
}

.glow-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(30deg);
  opacity: 0;
  transition: opacity 0.3s;
}

.glow-btn:hover::after {
  opacity: 1;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-highlight);
  color: #fff;
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(15, 20, 34, 0.6);
  color: #ffffff;
  border: 1px solid var(--border-subtle);
  backdrop-filter: var(--glass-blur);
}

.btn-glass:hover {
  background: rgba(25, 34, 55, 0.8);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.btn-outline-sm {
  background: transparent;
  color: #ff9d85;
  border: 1px solid rgba(224, 105, 77, 0.4);
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-outline-sm:hover {
  background: rgba(224, 105, 77, 0.15);
  color: #fff;
}

.btn-block {
  width: 100%;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  z-index: 10;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(224, 105, 77, 0.1);
  border: 1px solid rgba(224, 105, 77, 0.3);
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffb19e;
  margin-bottom: 1.4rem;
}

.hero-tag .badge-icon {
  font-size: 0.9rem;
}

.hero-title {
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.4rem;
  letter-spacing: -0.035em;
}

.text-highlight {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.2rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-endorsement {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 2px solid var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-left: -10px;
  color: var(--text-primary);
  font-weight: 700;
}

.avatar-circle:first-child {
  margin-left: 0;
  background: rgba(224, 105, 77, 0.25);
}

.endorsement-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.endorsement-text strong {
  color: #fff;
}

/* Hero Visual Card */
.hero-visual {
  position: relative;
}

.hero-preview-card {
  padding: 1.5rem;
  position: relative;
  background: rgba(14, 18, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), var(--glow-shadow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.2rem;
}

.window-controls {
  display: flex;
  gap: 6px;
}

.ctrl {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.ctrl.close { background: #ff5f56; }
.ctrl.min { background: #ffbd2e; }
.ctrl.max { background: #27c93f; }

.model-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #e2e8f0;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.optima-sparkle {
  color: var(--brand-coral);
}

.latency-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--emerald-accent);
  font-family: var(--font-mono);
}

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

.chat-viewport {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 1.2rem;
}

.chat-bubble {
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  font-size: 0.92rem;
}

.bubble-sender {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.student-bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  align-self: flex-start;
  width: 95%;
}

.student-bubble .bubble-sender {
  color: #94a3b8;
}

.tutor-bubble {
  background: linear-gradient(145deg, rgba(22, 28, 48, 0.9) 0%, rgba(16, 21, 36, 0.9) 100%);
  border: 1px solid rgba(224, 105, 77, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.tutor-bubble .bubble-sender {
  color: #ff9d85;
}

.thinking-tag {
  font-size: 0.7rem;
  background: rgba(224, 105, 77, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  color: #ffbdae;
  font-family: var(--font-mono);
}

.tutor-code-card {
  background: #090c14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin: 0.7rem 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #cbd5e1;
}

.tutor-code-card .code-title {
  color: #ff9d85;
  font-weight: 600;
  font-size: 0.75rem;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.bubble-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.pill-action {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  color: #cbd5e1;
}

.preview-footer {
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-subtle);
}

.pulse-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.radar-ping {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-coral);
  box-shadow: 0 0 8px var(--brand-coral);
}

/* ==========================================================================
   METRICS & TRACTION SECTION
   ========================================================================== */
.section {
  padding: 5rem 0;
  position: relative;
  z-index: 10;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.text-center {
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-coral);
  margin-bottom: 0.7rem;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

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

.metric-card {
  padding: 2rem 1.6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-coral), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

.metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 105, 77, 0.3);
}

.metric-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
}

.metric-label {
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.3rem;
}

.metric-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   3-TIER ECOSYSTEM SECTION (The Moat & Ground-up Architecture)
   ========================================================================== */
.ecosystem-section {
  background: linear-gradient(180deg, transparent 0%, rgba(14, 19, 32, 0.4) 50%, transparent 100%);
}

.ecosystem-flow-card {
  padding: 2.5rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 17, 28, 0.85);
}

.flow-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.flow-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}

.ecosystem-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  position: relative;
}

.pillar-card {
  padding: 2rem 1.6rem;
  border-radius: var(--radius-md);
  background: rgba(20, 26, 42, 0.6);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
}

.pillar-card.highlight-live {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 20, 32, 0.8) 100%);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.2);
}

.pillar-card.highlight-wip {
  background: linear-gradient(180deg, rgba(224, 105, 77, 0.08) 0%, rgba(15, 20, 32, 0.8) 100%);
  border-color: rgba(224, 105, 77, 0.4);
  box-shadow: 0 10px 30px -10px rgba(224, 105, 77, 0.2);
}

.pillar-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.status-live { color: #34d399; }
.status-wip { color: #f59e0b; }
.status-active { color: #38bdf8; }

.pillar-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.pillar-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.pillar-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.4rem;
}

.pillar-feature-list {
  list-style: none;
  font-size: 0.84rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.pillar-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pillar-feature-list li span.check {
  color: var(--brand-coral);
  font-weight: 700;
}

/* ==========================================================================
   INTERACTIVE TUTOR DEMO (OPTIMA AI Socratic PLAYGROUND)
   ========================================================================== */
.tutor-demo-section {
  position: relative;
}

.demo-playground-wrapper {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 620px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
}

.demo-sidebar {
  background: rgba(12, 16, 26, 0.95);
  border-right: 1px solid var(--border-subtle);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.scenario-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.scenario-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-highlight);
  color: #fff;
}

.scenario-btn.active {
  background: rgba(224, 105, 77, 0.15);
  border-color: rgba(224, 105, 77, 0.5);
  color: #ffffff;
}

.scenario-icon {
  font-size: 1.3rem;
}

.scenario-meta {
  display: flex;
  flex-direction: column;
}

.scenario-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

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

.scenario-btn.active .scenario-desc {
  color: #ff9d85;
}

.sidebar-box {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.box-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.box-text {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.tech-pill {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: rgba(224, 105, 77, 0.2);
  color: #ffb19e;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
}

/* Console Area */
.demo-console {
  display: flex;
  flex-direction: column;
  background: rgba(10, 13, 22, 0.92);
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.6rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(14, 19, 32, 0.6);
}

.console-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #e2e8f0;
}

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

.btn-icon {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  transition: var(--transition-fast);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.console-messages {
  flex: 1;
  padding: 1.6rem;
  overflow-y: auto;
  max-height: 440px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.tutor-msg {
  background: rgba(20, 26, 44, 0.8);
  border: 1px solid rgba(224, 105, 77, 0.3);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  position: relative;
}

.tutor-msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.tutor-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ff9d85;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tutor-badge {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: rgba(224, 105, 77, 0.15);
  color: #ffaa95;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.tutor-msg-body {
  font-size: 0.94rem;
  color: #e2e8f0;
  line-height: 1.65;
}

.tutor-msg-body p {
  color: #e2e8f0;
  margin-bottom: 0.6rem;
}

.tutor-callout {
  background: rgba(7, 10, 17, 0.9);
  border-left: 3px solid var(--brand-coral);
  padding: 0.8rem 1rem;
  border-radius: 4px;
  margin: 0.8rem 0;
  font-size: 0.88rem;
  color: #f1f5f9;
}

.user-msg {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  align-self: flex-end;
  max-width: 80%;
  font-size: 0.92rem;
}

.user-msg-header {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

/* Console Input Bar */
.console-input-area {
  padding: 1.2rem 1.6rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(14, 19, 32, 0.7);
}

.chat-form {
  display: flex;
  gap: 0.75rem;
  position: relative;
}

.chat-form input {
  flex: 1;
  background: rgba(7, 9, 14, 0.9);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.2rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.chat-form input:focus {
  outline: none;
  border-color: var(--brand-coral);
  box-shadow: 0 0 0 3px rgba(224, 105, 77, 0.2);
}

.btn-send {
  background: var(--brand-coral);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  padding: 0 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.btn-send:hover {
  background: #ea775c;
  transform: translateY(-2px);
}

.input-hints {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.quick-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  border-radius: 99px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.quick-chip:hover {
  background: rgba(224, 105, 77, 0.18);
  border-color: rgba(224, 105, 77, 0.4);
  color: #fff;
}

/* ==========================================================================
   TECH ARCHITECTURE SHOWCASE (Tailored for Optima AI Architecture)
   ========================================================================== */
.architecture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-bottom: 3.5rem;
}

.arch-card {
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
}

.arch-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.arch-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.arch-card p {
  font-size: 0.92rem;
  margin-bottom: 1.4rem;
  line-height: 1.6;
}

.arch-checklist {
  list-style: none;
  font-size: 0.84rem;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: auto;
}

.arch-checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Pipeline Flow */
.pipeline-card {
  padding: 2.5rem;
}

.pipeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.pipeline-header h4 {
  font-size: 1.25rem;
}

.pipeline-tag {
  background: rgba(224, 105, 77, 0.15);
  color: #ff9d85;
  border: 1px solid rgba(224, 105, 77, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pipeline-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.2fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.flow-step {
  background: rgba(20, 26, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.1rem;
  text-align: center;
}

.flow-step.highlight-step {
  background: linear-gradient(145deg, rgba(224, 105, 77, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border-color: rgba(224, 105, 77, 0.5);
  box-shadow: 0 8px 30px rgba(224, 105, 77, 0.2);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-coral);
  margin-bottom: 0.4rem;
}

.step-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: #fff;
}

.step-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.flow-arrow {
  color: var(--text-muted);
  font-size: 1.5rem;
  font-weight: bold;
}

/* ==========================================================================
   OFFLINE BIMBEL & GROUND VALIDATION SECTION
   ========================================================================== */
.o2o-section {
  position: relative;
}

.o2o-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.o2o-text h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 1.2rem;
}

.o2o-text p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.o2o-keypoints {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.keypoint-item {
  display: flex;
  gap: 1rem;
}

.keypoint-icon {
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.keypoint-content h4 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.keypoint-content p {
  font-size: 0.88rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.o2o-visual-card {
  padding: 2.2rem;
  position: relative;
}

.o2o-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
}

.o2o-quote {
  font-size: 1.15rem;
  font-style: italic;
  color: #f1f5f9;
  line-height: 1.6;
  margin-bottom: 1.4rem;
  border-left: 3px solid var(--brand-coral);
  padding-left: 1rem;
}

.student-tag-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.student-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  font-size: 0.75rem;
  color: #cbd5e1;
}

/* ==========================================================================
   FOUNDER & VISION SECTION
   ========================================================================== */
.founder-section {
  background: linear-gradient(180deg, transparent 0%, rgba(14, 18, 30, 0.5) 100%);
}

.founder-card {
  padding: 2.4rem;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 2.5rem;
  align-items: center;
}

.founder-portrait {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portrait-frame {
  width: 135px;
  height: 135px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(224, 105, 77, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
  border: 3px solid var(--brand-coral);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.9rem;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(224, 105, 77, 0.35), 0 0 15px rgba(139, 92, 246, 0.2);
  position: relative;
  flex-shrink: 0;
}

.founder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform var(--transition-smooth);
}

.portrait-frame:hover .founder-img {
  transform: scale(1.06);
}

.avatar-circle.avatar-photo {
  padding: 0;
  overflow: hidden;
  border-color: var(--brand-coral);
  flex-shrink: 0;
}

.avatar-circle.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.founder-badge-age {
  display: inline-block;
  background: rgba(224, 105, 77, 0.2);
  color: #ff9d85;
  border: 1px solid rgba(224, 105, 77, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
}

.founder-info h3 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.founder-role {
  font-size: 1rem;
  color: var(--brand-coral);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.founder-bio {
  font-size: 1.02rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.founder-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.4rem;
}

.f-stat-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-heading);
}

.f-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CALL TO ACTION & PITCH DECK SECTION
   ========================================================================== */
.cta-box {
  padding: 4.5rem 2rem;
  background: linear-gradient(145deg, rgba(22, 29, 48, 0.85) 0%, rgba(14, 18, 30, 0.85) 100%);
  border: 1px solid rgba(224, 105, 77, 0.35);
  box-shadow: 0 25px 70px -15px rgba(224, 105, 77, 0.2);
  border-radius: var(--radius-xl);
  max-width: 900px;
  margin: 0 auto;
}

.cta-badge {
  display: inline-block;
  background: rgba(224, 105, 77, 0.15);
  color: #ff9d85;
  border: 1px solid rgba(224, 105, 77, 0.4);
  padding: 0.3rem 0.9rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.4rem;
}

.cta-title {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  margin-bottom: 1.2rem;
}

.cta-subtitle {
  font-size: 1.08rem;
  max-width: 650px;
  margin: 0 auto 2.4rem;
  color: var(--text-secondary);
}

.cta-button-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cta-footer-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #04060a;
  padding: 4.5rem 0 2.5rem;
  position: relative;
  z-index: 10;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 320px;
  margin-bottom: 1.4rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-column h4 {
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
  color: #fff;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-column a {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.footer-column a:hover {
  color: #fff;
  padding-left: 3px;
}

/* ==========================================================================
   MODAL WINDOW & TOAST
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: #0f1422;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: #fff;
}

.modal-header {
  margin-bottom: 1.6rem;
}

.modal-header h3 {
  font-size: 1.45rem;
  margin: 0.6rem 0 0.3rem;
}

.modal-header p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(7, 9, 14, 0.9);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-coral);
  box-shadow: 0 0 0 3px rgba(224, 105, 77, 0.2);
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #101726;
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1100;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
}

.toast-notification.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--emerald-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.toast-message {
  font-size: 0.88rem;
  color: #f1f5f9;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-tag {
    margin: 0 auto 1.4rem;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .hero-endorsement {
    justify-content: center;
  }

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

  .ecosystem-pillars-grid {
    grid-template-columns: 1fr;
  }

  .demo-playground-wrapper {
    grid-template-columns: 1fr;
  }

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

  .pipeline-flow {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .flow-arrow {
    transform: rotate(90deg);
    margin: 0.2rem auto;
  }

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

  .founder-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

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

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: rgba(7, 9, 14, 0.98);
    flex-direction: column;
    padding: 2rem;
    gap: 1.4rem;
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-120%);
    transition: transform var(--transition-fast);
    z-index: 80;
  }

  .nav-menu.mobile-open {
    transform: translateY(0);
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-actions .btn-sm {
    display: none;
  }

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

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

  .toast-notification {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
}
