/* ══════════════════════════════════════════════════════════════════
   Zoology Master — Premium Landing Page CSS
   2026 Design System · Green (#10b981) & Teal (#06b6d4) Brand Theme
   Full Dark + Light Theme Support
   THERABApps
══════════════════════════════════════════════════════════════════ */

/* ─── DARK THEME TOKENS (default) ──────────────────────────────── */
:root {
  color-scheme: dark;
  /* Backgrounds */
  --bg-primary: #020f0a;
  --bg-secondary: #071a10;
  --bg-card: rgba(16, 185, 129, 0.05);
  --bg-card-solid: #0d1f16;
  --bg-glass: rgba(2, 15, 10, 0.88);
  --bg-icon: rgba(16, 185, 129, 0.12);
  --bg-icon-neutral: rgba(255, 255, 255, 0.06);
  --bg-input: rgba(255, 255, 255, 0.04);
  --bg-sidebar: rgba(0, 0, 0, 0.25);
  /* Section-specific backgrounds */
  --bg-phone-screen: #010d07;
  --bg-stats-section: #041408;
  --bg-footer: #010d07;
  --bg-dl-screen: #010d07;

  /* Borders */
  --border: rgba(16, 185, 129, 0.14);
  --border-glow: rgba(16, 185, 129, 0.50);
  --border-subtle: rgba(255, 255, 255, 0.07);

  /* Text */
  --text-primary: #f0fdf4;
  --text-secondary: #a7c4b5;
  --text-muted: #5a8c72;
  --text-on-accent: #ffffff;

  /* Accents */
  --accent-green: #10b981;
  --accent-teal: #06b6d4;
  --accent-lime: #84cc16;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --grad-hero: linear-gradient(135deg, #020f0a 0%, #071a10 60%, #020f0a 100%);
  --grad-download: linear-gradient(135deg, #041408 0%, #071a10 50%, #041408 100%);
  --grad-stats: linear-gradient(135deg, #041408, #071a10);

  /* Shadows */
  --shadow-glow: 0 0 60px rgba(16, 185, 129, 0.20);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.55);
  --shadow-float: 0 8px 24px rgba(0, 0, 0, 0.40);
  --shadow-nav: 0 4px 24px rgba(0, 0, 0, 0.40);
  --shadow-phone: 0 40px 80px rgba(16, 185, 129, 0.25);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow-download: 0 12px 48px rgba(16, 185, 129, 0.28);

  /* Theme-preview palette (dark) */
  --tp-bg: #020f0a;
  --tp-sidebar-bg: rgba(255, 255, 255, 0.03);
  --tp-sidebar-border: rgba(255, 255, 255, 0.05);
  --tp-nav-color: rgba(255, 255, 255, 0.40);
  --tp-card-bg: rgba(255, 255, 255, 0.04);
  --tp-card-border: rgba(255, 255, 255, 0.06);
  --tp-card-title: #f0fdf4;
  --tp-card-sub: rgba(255, 255, 255, 0.35);
  --tp-title-color: rgba(255, 255, 255, 0.50);
  --tp-header-bg: rgba(255, 255, 255, 0.05);
  --tp-header-border: rgba(255, 255, 255, 0.05);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── LIGHT THEME TOKENS ────────────────────────────────────────── */
[data-theme="light"] {
  color-scheme: light;
  /* Backgrounds */
  --bg-primary: #f0fdf4;
  --bg-secondary: #dcfce7;
  --bg-card: rgba(16, 185, 129, 0.06);
  --bg-card-solid: #ffffff;
  --bg-glass: rgba(240, 253, 244, 0.95);
  --bg-icon: rgba(16, 185, 129, 0.10);
  --bg-icon-neutral: rgba(0, 0, 0, 0.05);
  --bg-input: rgba(0, 0, 0, 0.04);
  --bg-sidebar: rgba(255, 255, 255, 0.70);
  /* Section-specific backgrounds */
  --bg-phone-screen: #e8f5e9;
  --bg-stats-section: #bbf7d0;
  --bg-footer: #d1fae5;
  --bg-dl-screen: #e8f5e9;

  /* Borders */
  --border: rgba(16, 185, 129, 0.22);
  --border-glow: rgba(16, 185, 129, 0.50);
  --border-subtle: rgba(0, 0, 0, 0.09);

  /* Text */
  --text-primary: #052e16;
  --text-secondary: #166534;
  --text-muted: #4b7a60;
  --text-on-accent: #ffffff;

  /* Accents */
  --accent-green: #059669;
  --accent-teal: #0891b2;
  --accent-lime: #65a30d;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #059669 0%, #0891b2 100%);
  --grad-hero: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 60%, #f0fdf4 100%);
  --grad-download: linear-gradient(135deg, #bbf7d0 0%, #a7f3d0 50%, #bbf7d0 100%);
  --grad-stats: linear-gradient(135deg, #bbf7d0, #d1fae5);

  /* Shadows */
  --shadow-glow: 0 0 60px rgba(16, 185, 129, 0.20);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.10);
  --shadow-float: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-nav: 0 2px 16px rgba(0, 0, 0, 0.12);
  --shadow-phone: 0 30px 60px rgba(16, 185, 129, 0.22);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.80);
  --shadow-download: 0 8px 32px rgba(16, 185, 129, 0.22);

  /* Theme-preview palette (light) */
  --tp-bg: #f0fdf4;
  --tp-sidebar-bg: rgba(0, 0, 0, 0.03);
  --tp-sidebar-border: rgba(0, 0, 0, 0.06);
  --tp-nav-color: rgba(0, 0, 0, 0.40);
  --tp-card-bg: rgba(0, 0, 0, 0.03);
  --tp-card-border: rgba(0, 0, 0, 0.07);
  --tp-card-title: #052e16;
  --tp-card-sub: rgba(0, 0, 0, 0.38);
  --tp-title-color: rgba(0, 0, 0, 0.45);
  --tp-header-bg: rgba(0, 0, 0, 0.04);
  --tp-header-border: rgba(0, 0, 0, 0.06);
}

/* ─── RESET & BASE ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Google Sans', 'Noto Sans Tamil', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

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

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

/* ─── SCREEN READER ONLY ────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── SCROLL PROGRESS ───────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-primary);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ══════════════════════════════════════════════════════════════════
   PRELOADER
══════════════════════════════════════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.preloader-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: preloaderBounce 0.8s ease-in-out infinite alternate;
}

.preloader-bar {
  width: 200px;
  height: 4px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 auto 0.75rem;
}

.preloader-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  animation: preloaderFill 1.8s ease-in-out forwards;
}

.preloader-text {
  color: var(--text-secondary);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

@keyframes preloaderBounce {
  from {
    transform: translateY(0) scale(1);
  }

  to {
    transform: translateY(-12px) scale(1.1);
  }
}

@keyframes preloaderFill {
  0% {
    width: 0%;
  }

  60% {
    width: 80%;
  }

  100% {
    width: 100%;
  }
}

/* ══════════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-nav);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.nav-logo-icon {
  font-size: 1.5rem;
}

.logo-accent {
  color: var(--accent-green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-link.active {
  color: var(--accent-green);
}

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

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-icon-neutral);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--bg-icon);
  color: var(--accent-green);
  border-color: var(--border);
}

.btn-nav-download {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: var(--grad-primary);
  color: var(--text-on-accent);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition-bounce);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.30);
}

.btn-nav-download:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.40);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

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

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ══════════════════════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #10b981, transparent);
  top: -200px;
  right: -100px;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #06b6d4, transparent);
  bottom: -100px;
  left: -100px;
  animation: blobFloat 10s ease-in-out infinite reverse;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #84cc16, transparent);
  top: 40%;
  left: 30%;
  animation: blobFloat 12s ease-in-out infinite 2s;
}

@keyframes blobFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -20px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 30px) scale(0.95);
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* DNA Helix */
.dna-helix {
  position: absolute;
  right: 8%;
  top: 10%;
  width: 40px;
  height: 300px;
  opacity: 0.15;
}

.dna-strand {
  position: absolute;
  width: 100%;
  height: 100%;
  border-left: 2px dashed var(--accent-green);
  border-radius: 50%;
}

.strand-1 {
  transform: rotateY(0deg);
  animation: dnaSpin 4s linear infinite;
}

.strand-2 {
  transform: rotateY(60deg);
  animation: dnaSpin 4s linear infinite reverse;
}

@keyframes dnaSpin {
  from {
    transform: rotateY(0deg) skewX(0deg);
  }

  to {
    transform: rotateY(360deg) skewX(10deg);
  }
}

/* Animal silhouettes */
.animal-silhouettes {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.silhouette {
  position: absolute;
  font-size: 2rem;
  opacity: 0.06;
  animation: silhouetteDrift 15s ease-in-out infinite;
}

.s1 {
  top: 15%;
  left: 5%;
  animation-delay: 0s;
  font-size: 2.5rem;
}

.s2 {
  top: 70%;
  left: 2%;
  animation-delay: 2s;
  font-size: 3rem;
}

.s3 {
  top: 30%;
  right: 5%;
  animation-delay: 4s;
}

.s4 {
  bottom: 20%;
  right: 8%;
  animation-delay: 1s;
  font-size: 2.5rem;
}

.s5 {
  top: 55%;
  left: 15%;
  animation-delay: 3s;
}

.s6 {
  top: 80%;
  right: 20%;
  animation-delay: 5s;
}

@keyframes silhouetteDrift {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* Bio particles */
.bio-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bio-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-green);
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }

  10% {
    opacity: 0.6;
    transform: translateY(-20px) scale(1);
  }

  90% {
    opacity: 0.3;
  }

  100% {
    opacity: 0;
    transform: translateY(-120px) scale(0.3);
  }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-green);
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

.hero-heading {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-line-1 {
  display: block;
  color: var(--text-primary);
}

.hero-line-2 {
  display: block;
  color: var(--text-primary);
}

.hero-line-3 {
  display: block;
  color: var(--text-primary);
}

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

.gradient-text-bio {
  background: linear-gradient(135deg, #84cc16, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

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

.stat-val {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-green);
}

.stat-lbl {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  background: var(--grad-primary);
  color: var(--text-on-accent);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition-bounce);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  background: var(--bg-card);
}

.btn-secondary:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  transform: translateY(-2px);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.trust-item i {
  color: var(--accent-green);
}

.trust-sep {
  color: var(--border-subtle);
}

/* ── Phone Mockup ─────────────────────────────────────────────── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup-wrapper {
  position: relative;
  width: 300px;
}

.phone-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.20), transparent 70%);
  border-radius: 50%;
  animation: glowPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.phone-mockup {
  width: 280px;
  background: var(--bg-card-solid);
  border-radius: 44px;
  padding: 14px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-phone);
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

.phone-notch {
  width: 80px;
  height: 22px;
  background: var(--bg-primary);
  border-radius: 0 0 14px 14px;
  margin: 0 auto 10px;
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-phone-screen);
}

/* App screen content */
.app-screen {
  padding: 14px 12px;
  font-size: 0.7rem;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.app-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-logo-mini {
  font-size: 1.1rem;
}

.app-title-mini {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-green);
}

.app-subtitle-mini {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.app-header-right {
  display: flex;
  gap: 6px;
}

.app-icon-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--bg-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

.app-continue-card {
  background: var(--bg-icon);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-bottom: 10px;
}

.continue-label {
  font-size: 0.58rem;
  color: var(--accent-teal);
  font-weight: 600;
  margin-bottom: 2px;
}

.continue-topic {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
}

.continue-sub {
  font-size: 0.58rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.continue-bar {
  height: 3px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 3px;
}

.continue-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
}

.continue-pct {
  font-size: 0.58rem;
  color: var(--accent-green);
  font-weight: 600;
}

.app-quick-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.quick-btn {
  flex: 1;
  background: var(--bg-icon);
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  text-align: center;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.quick-btn span {
  font-size: 0.55rem;
  color: var(--text-secondary);
}

.app-section-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.app-topic-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.app-topic-item {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-icon-neutral);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
}

.topic-icon {
  font-size: 0.9rem;
}

.topic-info {
  flex: 1;
}

.topic-name {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-primary);
}

.topic-meta {
  font-size: 0.55rem;
  color: var(--text-muted);
}

.topic-arrow {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.app-bottom-nav {
  display: flex;
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
  gap: 4px;
}

.app-nav-item {
  flex: 1;
  text-align: center;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: 0.5;
}

.app-nav-item.active {
  opacity: 1;
}

.app-nav-item span {
  font-size: 0.52rem;
  color: var(--accent-green);
}

.app-nav-item.active span {
  color: var(--accent-green);
}

/* Floating cards */
.float-card {
  position: absolute;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-float);
  min-width: 150px;
  z-index: 2;
}

.fc-1 {
  top: 0px;
  left: -90px;
  animation: floatCard 4s ease-in-out infinite;
}

.fc-2 {
  top: 80px;
  right: -80px;
  animation: floatCard 5s ease-in-out infinite 0.5s;
}

.fc-3 {
  top: 200px;
  left: -80px;
  animation: floatCard 4.5s ease-in-out infinite 1s;
}

.fc-4 {
  bottom: 80px;
  right: -75px;
  animation: floatCard 5.5s ease-in-out infinite 1.5s;
}

.fc-5 {
  bottom: 10px;
  left: -70px;
  animation: floatCard 4s ease-in-out infinite 0.8s;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.fc-icon {
  font-size: 1.4rem;
}

.fc-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

/* Scroll down */
.scroll-down {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  z-index: 1;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-icon {
  width: 28px;
  height: 44px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--accent-green);
  border-radius: var(--radius-full);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* ══════════════════════════════════════════════════════════════════
   SECTION SHARED STYLES
══════════════════════════════════════════════════════════════════ */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-icon);
  border: 1px solid var(--border);
  color: var(--accent-green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════════════════════════════════ */
.about-section {
  background: var(--bg-secondary);
}

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

.about-para {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-highlights {
  margin: 24px 0 32px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.highlight-item i {
  color: var(--accent-green);
  font-size: 1rem;
}

.about-cards-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
}

.value-card:hover {
  border-color: var(--border);
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}

.vc-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.vc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.vc-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════════
   SUBJECTS SECTION
══════════════════════════════════════════════════════════════════ */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.subject-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-bounce);
  cursor: pointer;
}

.subject-card:hover,
.subject-card:focus {
  border-color: var(--border);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  outline: none;
}

.subject-card:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 4px;
}

.subject-card-inner {
  padding: 28px 24px;
}

.subject-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.subject-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.subject-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.subject-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.subject-topics span {
  padding: 4px 10px;
  background: var(--bg-icon);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  color: var(--accent-green);
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════════
   CLASSIFICATION SECTION
══════════════════════════════════════════════════════════════════ */
.classification-section {
  background: var(--bg-secondary);
}

/* Taxonomy Tree */
.taxonomy-tree {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 48px;
}

.taxon-root {
  text-align: center;
  margin-bottom: 32px;
}

.taxon-node {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-icon);
}

.root-node {
  background: var(--bg-icon);
  border-color: var(--border-glow);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.taxon-icon {
  font-size: 1.6rem;
}

.taxon-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.taxon-branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.taxon-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.branch-node {
  width: 100%;
}

.featured-branch {
  border-color: var(--accent-green);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.12);
}

.taxon-leaves {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.taxon-leaf {
  padding: 6px 14px;
  background: var(--bg-icon-neutral);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.taxon-leaf:hover {
  background: var(--bg-icon);
  border-color: var(--border);
  color: var(--accent-green);
}

/* Phyla Grid */
.phyla-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.phyla-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition-bounce);
  cursor: pointer;
}

.phyla-card:hover,
.phyla-card:focus {
  border-color: var(--border);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  outline: none;
}

.phyla-card:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 4px;
}

.featured-phyla {
  background: var(--bg-icon);
  border-color: var(--border);
}

.phyla-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.phyla-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.phyla-card p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.phyla-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-icon);
  color: var(--accent-teal);
  font-size: 0.68rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

.featured-tag {
  color: var(--accent-green);
}

/* ══════════════════════════════════════════════════════════════════
   PHYSIOLOGY SECTION
══════════════════════════════════════════════════════════════════ */
.physiology-section {
  background: var(--bg-primary);
}

.physiology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.physio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition-bounce);
  cursor: pointer;
}

.physio-card:hover,
.physio-card:focus {
  border-color: var(--border);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  outline: none;
}

.physio-card:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 4px;
}

.physio-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.physio-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.physio-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.physio-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.physio-flow span {
  padding: 4px 10px;
  background: var(--bg-icon);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  color: var(--accent-teal);
  font-weight: 600;
}

.physio-flow i {
  color: var(--text-muted);
  font-size: 0.7rem;
}

/* ══════════════════════════════════════════════════════════════════
   ECOLOGY SECTION
══════════════════════════════════════════════════════════════════ */
.ecology-section {
  background: var(--bg-secondary);
}

.ecology-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

/* Food Chain */
.food-chain-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.fc-title-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.food-chain {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.fc-level {
  width: 100%;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.fc-level:hover {
  border-color: var(--border);
  transform: translateX(4px);
}

.fc-level.sun {
  background: rgba(250, 204, 21, 0.08);
  border-color: rgba(250, 204, 21, 0.15);
}

.fc-level.producers {
  background: rgba(132, 204, 22, 0.08);
  border-color: rgba(132, 204, 22, 0.15);
}

.fc-level.primary {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.15);
}

.fc-level.secondary {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.15);
}

.fc-level.top {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.15);
}

.fc-level.decomposers {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.15);
}

.fc-emoji {
  font-size: 1.4rem;
}

.fc-lname {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.fc-lsub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.fc-arrow {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Ecology topics */
.ecology-topics {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eco-topic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
  cursor: pointer;
}

.eco-topic-card:hover,
.eco-topic-card:focus {
  border-color: var(--border);
  transform: translateX(6px);
  box-shadow: var(--shadow-card);
  outline: none;
}

.eco-topic-card:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 4px;
}

.eco-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.eco-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.eco-info p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════════
   QUIZ SECTION
══════════════════════════════════════════════════════════════════ */
.quiz-section {
  background: var(--bg-primary);
}

.quiz-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Quiz UI */
.quiz-card-ui {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.quiz-header-ui {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.quiz-topic-tag {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-icon);
  color: var(--accent-green);
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--border);
}

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

.quiz-progress-text strong {
  color: var(--text-primary);
}

.quiz-progress-bar-wrap {
  height: 4px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 20px;
}

.quiz-progress-bar-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.quiz-question-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-icon-neutral);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.quiz-option:hover,
.quiz-option:focus {
  border-color: var(--border);
  color: var(--text-primary);
  background: var(--bg-card);
  outline: none;
}

.quiz-option:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

.quiz-option.correct {
  border-color: var(--accent-green);
  background: rgba(16, 185, 129, 0.10);
  color: var(--text-primary);
}

.quiz-option.correct i {
  color: var(--accent-green);
  margin-left: auto;
}

.opt-letter {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-green);
  flex-shrink: 0;
}

.quiz-option.correct .opt-letter {
  background: var(--accent-green);
  color: #fff;
}

.quiz-explanation {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-icon);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.quiz-explanation i {
  color: var(--accent-green);
  margin-top: 2px;
  flex-shrink: 0;
}

.quiz-actions {
  text-align: right;
}

.btn-quiz-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: var(--grad-primary);
  color: var(--text-on-accent);
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition-bounce);
  cursor: pointer;
}

.btn-quiz-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.30);
}

/* Quiz features */
.quiz-feat-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.quiz-feat-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.quiz-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.qf-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-icon);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  flex-shrink: 0;
}

.qf-info strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.qf-info span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Score preview */
.quiz-score-preview {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.score-circle {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.score-circle svg {
  width: 100%;
  height: 100%;
}

.score-val {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-green);
}

.score-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.sr-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.correct-dot {
  background: var(--accent-green);
}

.wrong-dot {
  background: #ef4444;
}

.score-row i {
  color: #f59e0b;
}

/* ══════════════════════════════════════════════════════════════════
   AUDIENCE SECTION
══════════════════════════════════════════════════════════════════ */
.audience-section {
  background: var(--bg-secondary);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition-bounce);
  cursor: pointer;
}

.audience-card:hover,
.audience-card:focus {
  border-color: var(--border);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  outline: none;
}

.audience-card:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 4px;
}

.audience-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.audience-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.audience-list {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.audience-list li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-left: 14px;
  position: relative;
}

.audience-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════════
   FEATURES SECTION
══════════════════════════════════════════════════════════════════ */
.features-section {
  background: var(--bg-primary);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition-bounce);
  cursor: pointer;
}

.feature-card:hover,
.feature-card:focus {
  border-color: var(--border);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  outline: none;
}

.feature-card:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 4px;
}

.feat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-icon);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feat-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feat-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════════
   PROGRESS SECTION
══════════════════════════════════════════════════════════════════ */
.progress-section {
  background: var(--bg-secondary);
}

.progress-dashboard {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.prog-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  min-width: 160px;
  flex: 1;
  transition: var(--transition-bounce);
  cursor: pointer;
}

.prog-stat-card:hover,
.prog-stat-card:focus {
  border-color: var(--border);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  outline: none;
}

.prog-stat-card:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 4px;
}

.prog-ring-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
}

.prog-ring {
  width: 100%;
  height: 100%;
}

.prog-val {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.prog-number-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}

.prog-big {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.prog-unit {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.prog-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ══════════════════════════════════════════════════════════════════
   JOURNEY SECTION
══════════════════════════════════════════════════════════════════ */
.journey-section {
  background: var(--bg-primary);
}

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

.journey-step {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition-bounce);
  position: relative;
  cursor: pointer;
}

.journey-step:hover,
.journey-step:focus {
  border-color: var(--border);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  outline: none;
}

.journey-step:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 4px;
}

.step-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--border-subtle);
  line-height: 1;
  margin-bottom: 8px;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-connector {
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 2px;
  background: var(--border);
  z-index: 1;
}

.journey-step:last-child .step-connector {
  display: none;
}

/* ══════════════════════════════════════════════════════════════════
   STATS SECTION
══════════════════════════════════════════════════════════════════ */
.stats-section {
  background: var(--grad-stats);
  padding: 80px 0;
}

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

.stat-card-big {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  transition: var(--transition-bounce);
  cursor: pointer;
}

.stat-card-big:hover,
.stat-card-big:focus {
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  outline: none;
}

.stat-card-big:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 4px;
}

.stat-icon-big {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.stat-num-big {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent-green);
  display: inline;
}

.stat-suffix {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-teal);
}

.stat-lbl-big {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ══════════════════════════════════════════════════════════════════
   THEME SHOWCASE SECTION
══════════════════════════════════════════════════════════════════ */
.theme-section {
  background: var(--bg-secondary);
}

.theme-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.theme-toggle-row {
  display: flex;
  gap: 12px;
}

.theme-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.theme-pill:hover {
  border-color: var(--border);
  color: var(--text-primary);
}

.theme-pill.active {
  background: var(--bg-icon);
  border-color: var(--border);
  color: var(--accent-green);
}

.theme-preview {
  width: 100%;
  max-width: 800px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: opacity 0.3s ease;
}

.theme-preview.hidden {
  display: none;
}

/* Header bar (the traffic-light row) */
.tp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--tp-header-bg);
  border-bottom: 1px solid var(--tp-header-border);
}

.tp-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.tp-dot.red {
  background: #ef4444;
}

.tp-dot.yellow {
  background: #f59e0b;
}

.tp-dot.green {
  background: #10b981;
}

.tp-title {
  font-size: 0.78rem;
  color: var(--tp-title-color);
  margin-left: 8px;
}

/* Content area */
.tp-content {
  display: flex;
  min-height: 260px;
  background: var(--tp-bg);
}

/* Sidebar */
.tp-sidebar {
  width: 140px;
  flex-shrink: 0;
  padding: 16px;
  background: var(--tp-sidebar-bg);
  border-right: 1px solid var(--tp-sidebar-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tp-nav-item {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--tp-nav-color);
  transition: var(--transition);
}

.active-nav {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
}

/* Main content */
.tp-main {
  flex: 1;
  padding: 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-content: flex-start;
}

.tp-card {
  background: var(--tp-card-bg);
  border: 1px solid var(--tp-card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  min-width: 180px;
  flex: 1;
}

.tp-card-tag {
  font-size: 0.62rem;
  color: var(--accent-teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.tp-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--tp-card-title);
  margin-bottom: 4px;
}

.tp-card-sub {
  font-size: 0.72rem;
  color: var(--tp-card-sub);
  margin-bottom: 10px;
}

.tp-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  font-size: 0.65rem;
  font-weight: 600;
}

/* ── Legacy class aliases kept for HTML compatibility ─────────── */
/* Dark variants — no-ops since tokens already handle it */
.dark-content {
  /* uses var(--tp-bg) via .tp-content */
}

.light-content {
  /* uses var(--tp-bg) via .tp-content */
}

.dark-card {
  /* uses var(--tp-card-*) via .tp-card */
}

.light-card {
  /* uses var(--tp-card-*) via .tp-card */
}

.light-header {
  /* uses var(--tp-header-*) via .tp-header */
}

.light-sidebar {
  /* uses var(--tp-sidebar-*) via .tp-sidebar */
}

.light-nav {
  /* uses var(--tp-nav-color) via .tp-nav-item */
}

.light-tag {
  color: var(--accent-teal);
}

.light-text {
  color: var(--tp-card-title);
}

.light-sub {
  color: var(--tp-card-sub);
}

.light-badge {
  background: rgba(16, 185, 129, 0.10);
  color: var(--accent-green);
}

.light-title {
  color: var(--tp-title-color);
}

/* ══════════════════════════════════════════════════════════════════
   OFFLINE SECTION
══════════════════════════════════════════════════════════════════ */
.offline-section {
  background: var(--bg-primary);
  padding: 60px 0;
}

.offline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.offline-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.offline-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.offline-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 28px;
}

.offline-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.of-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-icon);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.of-item i {
  color: var(--accent-green);
}

/* ══════════════════════════════════════════════════════════════════
   DOWNLOAD SECTION
══════════════════════════════════════════════════════════════════ */
.download-section {
  position: relative;
  overflow: hidden;
  background: var(--grad-download);
  padding: 120px 0;
}

.download-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.dl-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.dl-b1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent);
  top: -150px;
  right: -100px;
}

.dl-b2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12), transparent);
  bottom: -100px;
  left: -80px;
}

.dl-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.download-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.dl-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-icon);
  border: 1px solid var(--border);
  color: var(--accent-green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.download-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.download-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.download-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-download-big {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: var(--radius-lg);
  background: var(--grad-primary);
  color: var(--text-on-accent);
  font-weight: 700;
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-download);
}

.btn-download-big:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 20px 60px rgba(16, 185, 129, 0.40);
}

.btn-dl-icon {
  font-size: 1.8rem;
}

.btn-dl-sub {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.btn-dl-main {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
}

.btn-secondary-dl {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--bg-card);
  transition: var(--transition);
}

.btn-secondary-dl:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  transform: translateY(-2px);
}

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

/* Download phone */
.download-visual {
  display: flex;
  justify-content: center;
}

.dl-phone-wrap {
  position: relative;
  width: 240px;
}

.dl-phone-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse, rgba(16, 185, 129, 0.20), transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
}

.dl-phone {
  width: 220px;
  background: var(--bg-card-solid);
  border-radius: 40px;
  padding: 12px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-phone);
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

.dl-notch {
  width: 60px;
  height: 16px;
  background: var(--bg-primary);
  border-radius: 0 0 10px 10px;
  margin: 0 auto 8px;
}

.dl-screen {
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-dl-screen);
  padding: 16px;
}

.dl-app {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl-app-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-green);
}

.dl-app-hero {
  text-align: center;
  padding: 12px 0;
}

.dl-animal-emojis {
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.dl-tagline-mini {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
}

.dl-app-stats {
  display: flex;
  gap: 8px;
  justify-content: center;
}

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

.dl-sval {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-green);
}

.dl-slbl {
  display: block;
  font-size: 0.55rem;
  color: var(--text-muted);
}

.dl-cta-mini {
  text-align: center;
  background: var(--grad-primary);
  color: var(--text-on-accent);
  padding: 8px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
  position: relative;
}

.footer-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-icon), transparent);
  pointer-events: none;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-logo-icon {
  font-size: 1.4rem;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-gplay {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-icon);
  border: 1px solid var(--border);
  transition: var(--transition);
  margin-bottom: 16px;
}

.footer-gplay:hover {
  border-color: var(--accent-green);
  background: var(--bg-card);
}

.footer-gplay i {
  font-size: 1.3rem;
  color: var(--accent-green);
}

.fp-sub {
  display: block;
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.fp-main {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-by {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-by strong {
  color: var(--accent-green);
}

.footer-col-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.footer-links a:hover {
  color: var(--accent-green);
  transform: translateX(4px);
  display: inline-block;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
}

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

.footer-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 500px;
  text-align: right;
}

/* ══════════════════════════════════════════════════════════════════
   LIGHT THEME OVERRIDES — component-specific fixes
══════════════════════════════════════════════════════════════════ */

/* Stat label in hero needs readable color */
[data-theme="light"] .stat-lbl {
  color: var(--text-muted);
}

[data-theme="light"] .trust-sep {
  color: var(--border-subtle);
}

/* Phone mockup inner elements */
[data-theme="light"] .phone-notch {
  background: var(--bg-secondary);
}

[data-theme="light"] .app-topic-item {
  background: var(--bg-icon-neutral);
}

[data-theme="light"] .app-nav-item span {
  color: var(--accent-green);
}

[data-theme="light"] .quick-btn {
  background: var(--bg-icon);
}

[data-theme="light"] .app-icon-btn {
  background: var(--bg-icon);
}

/* Food chain level rows — keep colored tints but ensure text stays readable */
[data-theme="light"] .fc-level.sun {
  background: rgba(234, 179, 8, 0.10);
  border-color: rgba(234, 179, 8, 0.20);
}

[data-theme="light"] .fc-level.producers {
  background: rgba(101, 163, 13, 0.10);
  border-color: rgba(101, 163, 13, 0.20);
}

[data-theme="light"] .fc-level.primary {
  background: rgba(5, 150, 105, 0.10);
  border-color: rgba(5, 150, 105, 0.20);
}

[data-theme="light"] .fc-level.secondary {
  background: rgba(8, 145, 178, 0.10);
  border-color: rgba(8, 145, 178, 0.20);
}

[data-theme="light"] .fc-level.top {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.18);
}

[data-theme="light"] .fc-level.decomposers {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.18);
}

[data-theme="light"] .fc-lname {
  color: var(--text-primary);
}

[data-theme="light"] .fc-lsub {
  color: var(--text-muted);
}

/* Quiz correct/wrong options */
[data-theme="light"] .quiz-option.correct {
  background: rgba(5, 150, 105, 0.10);
  border-color: var(--accent-green);
}

[data-theme="light"] .quiz-option:not(.correct):not(.wrong-selected) {
  background: var(--bg-icon-neutral);
  color: var(--text-secondary);
}

/* Score dots */
[data-theme="light"] .correct-dot {
  background: var(--accent-green);
}

[data-theme="light"] .wrong-dot {
  background: #dc2626;
}

/* Download section text */
[data-theme="light"] .download-title {
  color: var(--text-primary);
}

[data-theme="light"] .download-desc {
  color: var(--text-secondary);
}

[data-theme="light"] .download-tagline {
  color: var(--text-muted);
}

[data-theme="light"] .dl-app-header {
  color: var(--accent-green);
}

[data-theme="light"] .dl-tagline-mini {
  color: var(--text-muted);
}

[data-theme="light"] .dl-slbl {
  color: var(--text-muted);
}

[data-theme="light"] .dl-phone-glow {
  background: radial-gradient(ellipse, rgba(5, 150, 105, 0.15), transparent 70%);
}

/* Footer text */
[data-theme="light"] .footer-tagline {
  color: var(--text-muted);
}

[data-theme="light"] .footer-copy {
  color: var(--text-muted);
}

[data-theme="light"] .footer-note {
  color: var(--text-muted);
}

[data-theme="light"] .footer-links a {
  color: var(--text-muted);
}

[data-theme="light"] .fp-sub {
  color: var(--text-muted);
}

[data-theme="light"] .footer-by {
  color: var(--text-muted);
}

/* Step number in journey section */
[data-theme="light"] .step-number {
  color: rgba(0, 0, 0, 0.12);
}

/* Taxonomy */
[data-theme="light"] .taxon-leaf {
  color: var(--text-secondary);
}

[data-theme="light"] .taxon-sub {
  color: var(--text-muted);
}

/* Section backgrounds stay themed */
[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(5, 150, 105, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 150, 105, 0.05) 1px, transparent 1px);
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
    padding-top: 100px;
  }

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

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    justify-content: center;
  }

  .fc-1,
  .fc-3,
  .fc-5 {
    left: -40px;
  }

  .fc-2,
  .fc-4 {
    right: -40px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .journey-steps {
    grid-template-columns: 1fr 1fr;
  }

  .step-connector {
    display: none;
  }

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

@media (max-width: 900px) {
  .ecology-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .quiz-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .download-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .download-cta {
    justify-content: center;
  }

  .taxon-branches {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 4px;
    z-index: 999;
  }

  .nav-link {
    padding: 10px 16px;
    border-radius: var(--radius-md);
  }
}

@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }

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

  .hero-container {
    padding: 80px 24px 60px;
  }

  .hero-heading {
    font-size: 2.2rem;
  }

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

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

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

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

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

  .journey-steps {
    grid-template-columns: 1fr;
  }

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

  .progress-dashboard {
    flex-direction: column;
  }

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

  .footer-note {
    text-align: left;
  }

  .phone-mockup-wrapper {
    width: 260px;
  }

  .phone-mockup {
    width: 240px;
  }

  .fc-1,
  .fc-2,
  .fc-3,
  .fc-4,
  .fc-5 {
    display: none;
  }

  .taxonomy-tree {
    padding: 24px 16px;
  }

  .offline-card {
    padding: 32px 20px;
  }
}

/* ── Zoology Master — Upgraded Loader v2 ── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@600;700;800&display=swap');
#preloader{position:fixed!important;inset:0!important;z-index:9999!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;background:radial-gradient(ellipse at 40% 50%,#030f06 0%,#020b04 55%,#010802 100%)!important;overflow:hidden!important;transition:opacity .65s ease,visibility .65s ease!important;}
#preloader.hidden{opacity:0!important;visibility:hidden!important;pointer-events:none!important;}
.zml-float{position:absolute;pointer-events:none;font-size:1.6rem;opacity:0;animation:zmlFloat 5s ease-in-out infinite;}
.zml-float:nth-child(1){top:12%;left:8%;animation-delay:0s;}.zml-float:nth-child(2){top:22%;right:10%;animation-delay:.9s;}
.zml-float:nth-child(3){bottom:18%;left:12%;animation-delay:1.8s;}.zml-float:nth-child(4){bottom:28%;right:7%;animation-delay:2.7s;}
@keyframes zmlFloat{0%{opacity:0;transform:translateY(15px);}25%{opacity:.6;}75%{opacity:.6;}100%{opacity:0;transform:translateY(-20px);}}
.zml-orb-1{position:absolute;border-radius:50%;pointer-events:none;width:500px;height:500px;background:radial-gradient(circle,rgba(22,163,74,.12) 0%,transparent 65%);top:-100px;right:-80px;animation:zmlOrb 6s ease-in-out infinite;}
.zml-orb-2{position:absolute;border-radius:50%;pointer-events:none;width:360px;height:360px;background:radial-gradient(circle,rgba(101,163,13,.08) 0%,transparent 65%);bottom:-80px;left:-60px;animation:zmlOrb 8s ease-in-out infinite reverse;}
@keyframes zmlOrb{0%,100%{transform:scale(1);}50%{transform:scale(1.1);}}
.preloader-inner{position:relative!important;z-index:2!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:1.3rem!important;}
.zml-ring{position:relative;width:110px;height:110px;}
.zml-ring::before{content:'';position:absolute;inset:0;border-radius:50%;border:3px solid transparent;border-top-color:#16a34a;border-left-color:rgba(22,163,74,.5);animation:zmlSpin 1.1s linear infinite;}
.zml-ring::after{content:'';position:absolute;inset:10px;border-radius:50%;border:2px solid transparent;border-bottom-color:#65a30d;border-right-color:rgba(101,163,13,.4);animation:zmlSpin 1.7s linear infinite reverse;}
@keyframes zmlSpin{to{transform:rotate(360deg);}}
.zml-icon-inner{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:2.5rem;animation:zmlBounce .65s cubic-bezier(.34,1.56,.64,1) both;}
@keyframes zmlBounce{from{transform:scale(0) rotate(-20deg);opacity:0;}to{transform:scale(1) rotate(0);opacity:1;}}
.preloader-icon{display:none!important;}
.preloader-text{font-family:'Space Grotesk',system-ui!important;font-size:1.75rem!important;font-weight:800!important;letter-spacing:-.03em!important;background:linear-gradient(135deg,#4ade80,#a3e635)!important;-webkit-background-clip:text!important;-webkit-text-fill-color:transparent!important;background-clip:text!important;margin:0!important;animation:zmlFadeUp .6s .3s ease both!important;}
.zml-chips{display:flex;gap:.6rem;flex-wrap:wrap;justify-content:center;animation:zmlFadeUp .6s .55s ease both;}
.zml-chip{background:rgba(22,163,74,.1);border:1px solid rgba(22,163,74,.22);border-radius:50px;padding:.28rem .8rem;font-size:.76rem;font-weight:600;color:#86efac;animation:zmlChip 2.5s ease-in-out infinite;}
.zml-chip:nth-child(2){animation-delay:.3s;background:rgba(59,130,246,.1);border-color:rgba(59,130,246,.22);color:#93c5fd;}
.zml-chip:nth-child(3){animation-delay:.6s;}
@keyframes zmlChip{0%,100%{transform:translateY(0);}50%{transform:translateY(-5px);}}
.preloader-bar{width:210px!important;height:4px!important;background:rgba(22,163,74,.12)!important;border-radius:50px!important;overflow:hidden!important;margin:0!important;}
.preloader-fill{height:100%!important;background:linear-gradient(90deg,#16a34a,#65a30d)!important;border-radius:50px!important;width:0%!important;transition:width .1s linear!important;box-shadow:0 0 10px rgba(22,163,74,.7)!important;}
@keyframes zmlFadeUp{from{opacity:0;transform:translateY(18px);}to{opacity:1;transform:translateY(0);}}
