/* =========================================================
   STUDYSPIDER NOTES HUB — MAIN PORTAL STYLESHEET
   Design System & Modern Glassmorphism Aesthetic
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  /* Brand Palette */
  --primary: #c65d0a;
  --primary-hover: #b45309;
  --primary-light: #fff7ed;
  --primary-glow: rgba(198, 93, 10, 0.25);
  
  --secondary: #0f172a;
  --secondary-soft: #1e293b;
  --secondary-muted: #334155;

  /* Accent Colors */
  --emerald: #059669;
  --emerald-light: #ecfdf5;
  --emerald-border: #a7f3d0;
  
  --blue: #2563eb;
  --blue-light: #eff6ff;
  --blue-border: #bfdbfe;

  --purple: #7c3aed;
  --purple-light: #f5f3ff;
  --purple-border: #ddd6fe;

  --amber: #d97706;
  --amber-light: #fffbeb;
  --amber-border: #fde68a;

  /* Neutral Surface */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  
  --text-main: #0f172a;
  --text-body: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;

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

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(198, 93, 10, 0.2);

  /* Layout */
  --container-max: 1240px;
  --header-height: 74px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   BASE & RESET
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Subtle decorative mesh gradient background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: 
    radial-gradient(at 0% 0%, rgba(198, 93, 10, 0.07) 0px, transparent 55%),
    radial-gradient(at 100% 0%, rgba(37, 99, 235, 0.05) 0px, transparent 55%),
    radial-gradient(at 50% 50%, rgba(5, 150, 105, 0.03) 0px, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 1;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.nav-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--secondary);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ea580c 0%, #c65d0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(198, 93, 10, 0.3);
  flex-shrink: 0;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
  transition: var(--transition);
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.06);
}

.brand-name span {
  color: var(--primary);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(198, 93, 10, 0.2);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

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

.nav-item {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-body);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-item:hover {
  color: var(--primary);
}

.nav-item.external-link {
  color: var(--text-muted);
}

.nav-item.external-link:hover {
  color: var(--secondary);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #ea580c 0%, #c65d0a 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(198, 93, 10, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f97316 0%, #d97706 100%);
  box-shadow: 0 6px 18px rgba(198, 93, 10, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--secondary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--border-medium);
  background: #f8fafc;
}

.mobile-menu-btn {
  display: none;
  font-size: 24px;
  color: var(--secondary);
  padding: 6px;
  border-radius: var(--radius-sm);
}

/* =========================================================
   HERO SECTION
   ========================================================= */

.hero-section {
  padding: 64px 0 48px;
  text-align: center;
  position: relative;
}

.announcement-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary-soft);
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease;
}

.announcement-pill .pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--secondary);
  max-width: 900px;
  margin: 0 auto 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #ea580c 0%, #c65d0a 60%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-body);
  max-width: 760px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* =========================================================
   SEARCH & FILTERS
   ========================================================= */

.search-box-wrapper {
  max-width: 680px;
  margin: 0 auto 28px;
  position: relative;
}

.search-bar {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 6px 14px 6px 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 8px 32px var(--primary-glow);
  transform: translateY(-1px);
}

.search-icon {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-right: 12px;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--text-main);
  background: transparent;
  font-family: inherit;
}

.search-input::placeholder {
  color: var(--text-light);
}

.search-shortcut {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
}

/* Category Filter Chips */
.category-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-chip {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  background: #ffffff;
  color: var(--text-body);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.filter-chip:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(198, 93, 10, 0.3);
}

.filter-chip.active {
  background: var(--secondary);
  color: #ffffff;
  border-color: var(--secondary);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.filter-chip .chip-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.08);
}

.filter-chip.active .chip-count {
  background: rgba(255, 255, 255, 0.2);
}

/* Quick Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 32px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.stat-item {
  text-align: center;
  border-right: 1px solid var(--border-subtle);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-number.accent {
  color: var(--primary);
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =========================================================
   FEATURED SHOWCASE CARD (HSBTE LEET)
   ========================================================= */

.featured-section {
  padding: 40px 0 60px;
}

.section-label-header {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.section-badge-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-badge {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(198, 93, 10, 0.2);
}

.section-badge-title h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.5px;
}

.featured-card {
  position: relative;
  background: #ffffff;
  border: 2px solid rgba(198, 93, 10, 0.3);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: 0 16px 36px rgba(198, 93, 10, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: var(--transition);
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #ea580c 0%, #f97316 50%, #d97706 100%);
}

.featured-card:hover {
  box-shadow: 0 20px 45px rgba(198, 93, 10, 0.12), 0 8px 16px rgba(0, 0, 0, 0.05);
  border-color: var(--primary);
}

.featured-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.featured-identity {
  display: flex;
  gap: 18px;
  align-items: center;
}

.featured-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #ea580c 0%, #c65d0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(198, 93, 10, 0.3);
  flex-shrink: 0;
}

.featured-title-area h3 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.featured-title-area p {
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 500;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.status-tag.live {
  background: var(--emerald-light);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}

.status-tag.live .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulseGreen 2s infinite;
}

.featured-desc {
  font-size: 15.5px;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 950px;
}

/* 4 Streams Grid inside Featured */
.streams-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.stream-card {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: var(--transition);
}

.stream-card:hover {
  background: #ffffff;
  border-color: rgba(198, 93, 10, 0.35);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

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

.stream-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: #e2e8f0;
  color: #334155;
}

.stream-card h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 6px;
}

.stream-topics-preview {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Topic Jump Pills */
.quick-topics-label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.quick-topics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary-soft);
  transition: var(--transition);
}

.topic-pill:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(198, 93, 10, 0.3);
  transform: translateY(-1px);
}

.featured-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.featured-cta-main {
  font-size: 15.5px;
  padding: 13px 26px;
  font-weight: 700;
  border-radius: var(--radius-md);
}

.meta-stats-text {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* =========================================================
   ALL EXAMS CATALOG
   ========================================================= */

.catalog-section {
  padding: 40px 0 80px;
}

.catalog-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 40px;
}

.catalog-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}

.catalog-header p {
  color: var(--text-body);
  font-size: 15.5px;
}

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

.exam-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.exam-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-medium);
  transform: translateY(-3px);
}

.exam-card.featured-card-small {
  border: 2px solid rgba(198, 93, 10, 0.35);
  box-shadow: 0 8px 24px rgba(198, 93, 10, 0.08);
}

.exam-card.featured-card-small:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(198, 93, 10, 0.16);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.icon-orange {
  background: var(--primary-light);
  color: var(--primary);
}

.icon-blue {
  background: var(--blue-light);
  color: var(--blue);
}

.icon-purple {
  background: var(--purple-light);
  color: var(--purple);
}

.icon-emerald {
  background: var(--emerald-light);
  color: var(--emerald);
}

.icon-amber {
  background: var(--amber-light);
  color: var(--amber);
}

.card-category-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 9px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
}

.exam-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.exam-short-desc {
  font-size: 13.5px;
  color: var(--text-body);
  margin-bottom: 18px;
  line-height: 1.5;
  flex: 1;
}

.exam-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.meta-pill {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f8fafc;
  color: #64748b;
  border: 1px solid var(--border-subtle);
}

.card-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-action-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--transition);
}

.card-action-btn.active {
  background: var(--primary);
  color: #ffffff;
}

.card-action-btn.active:hover {
  background: var(--primary-hover);
}

.card-action-btn.secondary {
  background: #f8fafc;
  color: var(--secondary-soft);
  border: 1px solid var(--border-subtle);
}

.card-action-btn.secondary:hover {
  background: #ffffff;
  border-color: var(--border-medium);
}

.status-badge-compact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.status-badge-compact.live {
  background: var(--emerald-light);
  color: var(--emerald);
}

.status-badge-compact.curating {
  background: var(--amber-light);
  color: var(--amber);
}

.status-badge-compact.planned {
  background: #f1f5f9;
  color: #64748b;
}

/* =========================================================
   WHY STUDYSPIDER (FEATURES)
   ========================================================= */

.features-section {
  padding: 60px 0 80px;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.features-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.features-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}

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

.feature-box {
  padding: 28px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.feature-box:hover {
  background: #ffffff;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--border-medium);
}

.feature-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.feature-box h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.55;
}

/* =========================================================
   ECOSYSTEM BANNER
   ========================================================= */

.ecosystem-section {
  padding: 60px 0;
}

.ecosystem-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.ecosystem-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(198, 93, 10, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ecosystem-info h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.ecosystem-info p {
  color: #94a3b8;
  font-size: 15px;
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.ecosystem-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.eco-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

.eco-btn-orange {
  background: #ea580c;
  color: #ffffff;
}

.eco-btn-orange:hover {
  background: #f97316;
  transform: translateY(-2px);
}

.eco-btn-outline {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.eco-btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 32px;
}

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

.footer-brand h4 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--secondary);
  margin-bottom: 16px;
}

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

.footer-col a {
  font-size: 13.5px;
  color: var(--text-muted);
  transition: var(--transition);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* =========================================================
   ANIMATIONS & KEYFRAMES
   ========================================================= */

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================= */

@media (max-width: 1024px) {
  .exams-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .streams-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-secondary {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .featured-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .featured-card {
    padding: 24px 20px;
  }
  .streams-grid {
    grid-template-columns: 1fr;
  }
  .exams-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .ecosystem-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

#mobileNavDrawer.open {
  right: 0 !important;
}

#mobileNavOverlay.open {
  display: block !important;
}
