:root {
  --color-bg: #f2f8fb;
  --color-surface: #ffffff;
  --color-surface-alt: rgba(255, 255, 255, 0.72);
  --color-text: #0e2740;
  --color-muted: #456072;
  --color-accent: #1e9bd7;
  --color-accent-strong: #116a9a;
  --color-highlight: #74e0dd;
  --color-navy: #0a1f2e;
  --color-cyan: #00d4ff;
  --color-turquoise: #40e0d0;
  --gap-xs: 0.5rem;
  --gap-sm: 0.75rem;
  --gap-md: 1rem;
  --gap-lg: 1.5rem;
  --gap-xl: 2rem;
  --shadow-soft: 0 16px 40px rgba(14, 39, 64, 0.12);
  --shadow-hover: 0 20px 48px rgba(14, 39, 64, 0.18);
  --shadow-glow: 0 0 20px rgba(30, 155, 215, 0.3), 0 0 40px rgba(116, 224, 221, 0.2);
  --shadow-depth-1: 0 4px 12px rgba(14, 39, 64, 0.08);
  --shadow-depth-2: 0 8px 24px rgba(14, 39, 64, 0.12);
  --shadow-depth-3: 0 16px 40px rgba(14, 39, 64, 0.16);
  --shadow-depth-4: 0 24px 56px rgba(14, 39, 64, 0.2);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --animation-float-distance: 4px;
  --animation-float-duration: 3s;
  --animation-tilt-max: 5deg;
  --animation-lift-distance: 10px;
  --animation-scale-hover: 1.02;
  --animation-scale-button: 1.05;
  --animation-glow-intensity: 0.4;
  --animation-transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --animation-transition-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --animation-transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  background-image: radial-gradient(140% 90% at 10% 10%, rgba(116, 224, 221, 0.28), transparent 60%), radial-gradient(120% 80% at 90% 0%, rgba(30, 155, 215, 0.18), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 40%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.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;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  padding: 12px 24px;
  background: var(--color-accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-depth-3);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--color-highlight);
  outline-offset: 3px;
}

main {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 0 0 100px;
}

main > section:first-of-type {
  margin-top: 0;
}

main > section:last-of-type {
  margin-bottom: 0;
}

.container {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography enhancements - gradient text utility */
.text-gradient {
  background: linear-gradient(120deg, var(--color-accent), var(--color-highlight), var(--color-turquoise));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 3s ease infinite;
}

@media (prefers-reduced-motion: reduce) {
  .text-gradient {
    animation: none;
  }
}
/* Enhanced link styles with animated underlines - only for content links */
main a:not(.button):not(.tile):not(.topic-card):not(.support-card):not(.primary-nav a) {
  position: relative;
  text-decoration: none;
  color: var(--color-accent-strong);
  transition: color 0.3s var(--animation-transition-smooth);
}

main a:not(.button):not(.tile):not(.topic-card):not(.support-card):not(.primary-nav a)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-highlight));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--animation-transition-smooth);
}

main a:not(.button):not(.tile):not(.topic-card):not(.support-card):not(.primary-nav a):hover::after,
main a:not(.button):not(.tile):not(.topic-card):not(.support-card):not(.primary-nav a):focus-visible::after {
  transform: scaleX(1);
  transform-origin: right;
}

/* Scroll animations */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* Floating animation - smooth up/down motion */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(calc(var(--animation-float-distance) * -1));
  }
}
/* Glow pulse animation */
@keyframes glow-pulse {
  0%, 100% {
    box-shadow: var(--shadow-glow);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 30px rgba(30, 155, 215, 0.5), 0 0 60px rgba(116, 224, 221, 0.3);
    opacity: 0.9;
  }
}
/* Ripple effect for buttons */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}
/* Text reveal - slide in from bottom with fade */
@keyframes text-reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Spring bounce animation */
@keyframes spring-bounce {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
/* Gradient shift animation */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
/* Icon scale and glow */
@keyframes icon-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}
.scroll-animate {
  opacity: 0;
  transition: opacity 0.6s var(--animation-transition-smooth), transform 0.6s var(--animation-transition-smooth);
}

.scroll-animate--fade-up {
  transform: translateY(30px);
}

.scroll-animate--fade-in {
  transform: none;
}

.scroll-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delays for grid items */
.scroll-animate--delay-1 {
  transition-delay: 0.1s;
}

.scroll-animate--delay-2 {
  transition-delay: 0.2s;
}

.scroll-animate--delay-3 {
  transition-delay: 0.3s;
}

/* Reusable animation utility classes */
.animate-float {
  animation: float var(--animation-float-duration) ease-in-out infinite;
}

.animate-glow {
  animation: glow-pulse 2s ease-in-out infinite;
}

.animate-spring {
  animation: spring-bounce 0.6s var(--animation-transition-spring) forwards;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .scroll-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .animate-float,
  .animate-glow,
  .animate-spring {
    animation: none;
  }
  /* Disable all animations when reduced motion is preferred */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* Keep essential transitions but make them instant */
  .button,
  .tile,
  .info-card,
  .feature-card {
    transition: none !important;
  }
}
/* Header - Premium Enhanced Design */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border-bottom: 2px solid rgba(30, 155, 215, 0.12);
  box-shadow: 0 2px 20px rgba(14, 39, 64, 0.08), 0 4px 8px rgba(30, 155, 215, 0.06), 0 8px 24px rgba(116, 224, 221, 0.08);
  transition: all 0.3s var(--animation-transition-smooth);
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--color-highlight) 20%, var(--color-accent) 50%, var(--color-highlight) 80%, transparent 100%);
  opacity: 0.4;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 155, 215, 0.04) 0%, rgba(116, 224, 221, 0.06) 50%, rgba(30, 155, 215, 0.04) 100%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: 1rem 0;
  position: relative;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.875rem, 2vw, 1.125rem);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: all 0.4s var(--animation-transition-spring);
  padding: 0.625rem 0.75rem;
  border-radius: 16px;
  margin-left: -0.75rem;
}

.brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 155, 215, 0.06), rgba(116, 224, 221, 0.08));
  border-radius: 16px;
  opacity: 0;
  transition: all 0.4s var(--animation-transition-spring);
  box-shadow: 0 4px 12px rgba(30, 155, 215, 0.15);
}

.brand:hover::before {
  opacity: 1;
}

.brand:hover .brand__mark {
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 12px 32px rgba(30, 155, 215, 0.35), 0 6px 16px rgba(116, 224, 221, 0.25), 0 0 0 4px rgba(255, 255, 255, 0.8), inset 0 2px 8px rgba(255, 255, 255, 0.3);
}

.brand:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 14px;
}

.brand__mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-cyan) 50%, var(--color-highlight) 100%);
  background-size: 200% 200%;
  box-shadow: 0 6px 20px rgba(30, 155, 215, 0.35), 0 3px 10px rgba(14, 39, 64, 0.15), inset 0 2px 6px rgba(255, 255, 255, 0.5), inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  flex-shrink: 0;
  transition: all 0.5s var(--animation-transition-spring);
  overflow: hidden;
  animation: gentle-pulse 4s ease-in-out infinite;
}

@keyframes gentle-pulse {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.brand__mark::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 3px;
  position: relative;
  z-index: 1;
}

.brand__title {
  font-weight: 800;
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 1.1;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent-strong) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.brand__tagline {
  font-size: clamp(0.8rem, 1.6vw, 0.9rem);
  color: var(--color-accent);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font: inherit;
  border: 2px solid rgba(30, 155, 215, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
  color: var(--color-accent-strong);
  border-radius: 14px;
  padding: 0.875rem 1.25rem;
  cursor: pointer;
  position: relative;
  transition: all 0.3s var(--animation-transition-spring);
  box-shadow: 0 4px 12px rgba(14, 39, 64, 0.08), 0 2px 6px rgba(30, 155, 215, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  font-weight: 700;
}

.nav-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 155, 215, 0.1) 0%, rgba(116, 224, 221, 0.15) 50%, rgba(30, 155, 215, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-toggle:hover::before {
  opacity: 1;
}

.nav-toggle:hover {
  border-color: rgba(30, 155, 215, 0.4);
  color: var(--color-accent);
  box-shadow: 0 6px 16px rgba(14, 39, 64, 0.12), 0 3px 8px rgba(30, 155, 215, 0.15), 0 0 0 1px rgba(116, 224, 221, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-2px) scale(1.02);
}

.nav-toggle:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
  outline: 3px solid var(--color-highlight);
  outline-offset: 2px;
}

.nav-toggle:active {
  transform: scale(0.96) translateY(0);
  box-shadow: 0 2px 6px rgba(14, 39, 64, 0.08), 0 4px 12px rgba(14, 39, 64, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.nav-toggle[aria-expanded=true] {
  background: linear-gradient(135deg, rgba(30, 155, 215, 0.15) 0%, rgba(116, 224, 221, 0.2) 100%);
  border-color: rgba(30, 155, 215, 0.4);
  color: var(--color-accent);
  box-shadow: 0 6px 16px rgba(14, 39, 64, 0.12), 0 3px 8px rgba(30, 155, 215, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.nav-toggle__icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2.5px;
  border-radius: 3px;
  background: currentColor;
  transition: all 0.3s var(--animation-transition-spring);
  box-shadow: 0 1px 2px rgba(14, 39, 64, 0.2);
}

.nav-toggle[aria-expanded=true] .nav-toggle__icon .nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded=true] .nav-toggle__icon .nav-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.5);
}

.nav-toggle[aria-expanded=true] .nav-toggle__icon .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle__label {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Mobile Navigation Dropdown - Enhanced */
.primary-nav {
  position: absolute;
  top: calc(100% + 20px);
  right: 20px;
  left: 20px;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 1rem;
  padding: 1.25rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 2px solid rgba(30, 155, 215, 0.2);
  box-shadow: 0 16px 48px rgba(14, 39, 64, 0.18), 0 8px 24px rgba(14, 39, 64, 0.12), 0 4px 12px rgba(30, 155, 215, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  text-align: left;
  z-index: 50;
  opacity: 0;
  transform: translateY(-16px) scale(0.94);
  transition: opacity 0.4s var(--animation-transition-spring), transform 0.4s var(--animation-transition-spring), display 0s 0.4s;
  pointer-events: none;
  overflow: hidden;
}

.primary-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 155, 215, 0.02) 0%, rgba(116, 224, 221, 0.04) 100%);
  pointer-events: none;
  z-index: -1;
}

.primary-nav.is-open {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.4s var(--animation-transition-spring), transform 0.4s var(--animation-transition-spring);
  pointer-events: auto;
  animation: slideInDown 0.4s var(--animation-transition-spring);
}

@keyframes slideInDown {
  0% {
    opacity: 0;
    transform: translateY(-16px) scale(0.95);
  }
  60% {
    transform: translateY(2px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* Mobile Menu Backdrop */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 39, 64, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--animation-transition-smooth);
}

.nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Navigation Links - Premium Enhanced */
.primary-nav a {
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  padding: 1rem 1.5rem;
  transition: all 0.3s var(--animation-transition-spring);
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  border-radius: 14px;
  background: transparent;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-12px);
  animation: none;
  border: 2px solid transparent;
  letter-spacing: 0.01em;
}

.primary-nav.is-open a {
  animation: slideInRight 0.4s var(--animation-transition-smooth) forwards;
}

.primary-nav.is-open a:nth-child(1) {
  animation-delay: 0.05s;
}

.primary-nav.is-open a:nth-child(2) {
  animation-delay: 0.1s;
}

.primary-nav.is-open a:nth-child(3) {
  animation-delay: 0.15s;
}

.primary-nav.is-open a:nth-child(4) {
  animation-delay: 0.2s;
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(-12px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
.primary-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 155, 215, 0.15) 0%, rgba(116, 224, 221, 0.22) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 14px;
}

.primary-nav a:hover::before {
  opacity: 1;
}

.primary-nav a:hover {
  color: var(--color-accent);
  transform: translateX(6px) scale(1.02);
  border-color: rgba(30, 155, 215, 0.3);
  box-shadow: 0 6px 16px rgba(30, 155, 215, 0.2), 0 2px 8px rgba(116, 224, 221, 0.15);
}

.primary-nav a:focus-visible {
  color: var(--color-accent);
  outline: 3px solid var(--color-highlight);
  outline-offset: 2px;
  background: rgba(30, 155, 215, 0.1);
  border-color: rgba(30, 155, 215, 0.3);
}

/* Active state - premium prominent */
.primary-nav a.active {
  color: var(--color-accent);
  font-weight: 700;
  position: relative;
  border-color: rgba(30, 155, 215, 0.35);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(116, 224, 221, 0.15) 100%);
  box-shadow: 0 4px 12px rgba(30, 155, 215, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.primary-nav a.active::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(30, 155, 215, 0.2) 0%, rgba(116, 224, 221, 0.28) 100%);
}

.primary-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 32px;
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-cyan) 50%, var(--color-highlight) 100%);
  border-radius: 0 6px 6px 0;
  box-shadow: 0 0 16px rgba(30, 155, 215, 0.6), 0 0 8px rgba(116, 224, 221, 0.4);
}

/* Hero */
.hero {
  position: relative;
  padding: 120px 0 110px;
  overflow: hidden;
  isolation: isolate;
}

/* Soft fade at bottom for smooth transition */
.hero::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.95));
  pointer-events: none;
  z-index: 1;
}

/* Parallax background - will be controlled by JavaScript */
.hero__background {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(14, 39, 64, 0.78), rgba(14, 39, 64, 0.35)), url("../assets/Banner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  transform: translateZ(0); /* GPU acceleration */
}

/* Animated gradient mesh overlay */
.hero__background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 30%, rgba(0, 212, 255, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 80% 70%, rgba(116, 224, 221, 0.2) 0%, transparent 50%), radial-gradient(ellipse at 50% 50%, rgba(30, 155, 215, 0.1) 0%, transparent 60%);
  background-size: 200% 200%;
  animation: gradient-shift 15s ease infinite;
  pointer-events: none;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero__text {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--color-surface);
  /* Multi-layer text shadows for depth */
  text-shadow: 0 2px 4px rgba(6, 31, 48, 0.3), 0 4px 8px rgba(6, 31, 48, 0.25), 0 8px 16px rgba(6, 31, 48, 0.2), 0 18px 40px rgba(6, 31, 48, 0.35);
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.05;
  /* Enhanced text shadow with ocean color tints */
  text-shadow: 0 2px 4px rgba(6, 31, 48, 0.4), 0 4px 8px rgba(30, 155, 215, 0.2), 0 8px 16px rgba(6, 31, 48, 0.3), 0 18px 40px rgba(6, 31, 48, 0.4);
  animation: text-reveal 0.8s var(--animation-transition-smooth) backwards;
}

.hero__lead {
  margin: 0;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero .button--primary {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.hero--subpage {
  padding: 96px 0 80px;
  background: color-mix(in srgb, var(--color-surface) 94%, rgba(30, 155, 215, 0.08));
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 6%, transparent);
  isolation: isolate;
}

.hero--subpage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(140% 110% at 12% 18%, rgba(116, 224, 221, 0.26), transparent 70%), radial-gradient(120% 120% at 88% 0%, rgba(30, 155, 215, 0.22), transparent 65%);
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

.hero--subpage .hero__content {
  gap: 24px;
}

.hero--subpage .hero__text {
  color: var(--color-text);
  text-shadow: none;
  max-width: 560px;
}

.hero__badge {
  align-self: flex-start;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  /* Advanced glassmorphism with multi-layer backdrop blur */
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: var(--color-text);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(255, 255, 255, 0.3) inset, 0 0 20px rgba(30, 155, 215, 0.1);
  margin-top: 24px;
  position: relative;
  /* Floating animation */
  animation: float var(--animation-float-duration) ease-in-out infinite;
  animation-delay: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
  .hero__badge {
    animation: none;
  }
  .hero h1 {
    animation: none;
  }
  .hero__background::after {
    animation: none;
  }
  .button--primary {
    animation: none;
  }
}
.badge__play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-highlight));
  border: none;
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 10px 24px rgba(14, 39, 64, 0.25);
  margin-top: auto;
  margin-bottom: auto;
}

.badge__play svg {
  width: 26px;
  height: 26px;
  display: block;
}

.badge__play:hover,
.badge__play:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.badge__play:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.hero__badge audio {
  display: none;
}

.badge__label {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.badge__detail {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button--primary {
  color: #ffffff;
  background: linear-gradient(120deg, var(--color-accent), var(--color-highlight), var(--color-turquoise));
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
  box-shadow: 0 12px 30px rgba(14, 39, 64, 0.24), 0 0 20px rgba(30, 155, 215, 0.3);
  position: relative;
  overflow: hidden;
}

/* Ripple effect container */
.button--primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.button--primary:active::before {
  width: 300px;
  height: 300px;
}

.button--secondary {
  color: var(--color-accent-strong);
  background: color-mix(in srgb, var(--color-surface) 88%, var(--color-accent) 12%);
  border-color: color-mix(in srgb, var(--color-accent) 28%, transparent);
  box-shadow: 0 12px 30px rgba(14, 39, 64, 0.16);
}

.button--ghost {
  color: var(--color-accent-strong);
  background: color-mix(in srgb, var(--color-surface) 92%, var(--color-accent) 8%);
  border-color: color-mix(in srgb, var(--color-accent) 24%, transparent);
  box-shadow: 0 10px 26px rgba(14, 39, 64, 0.12);
}

.button--primary:hover,
.button--primary:focus-visible {
  transform: translateY(-2px) scale(var(--animation-scale-button));
  box-shadow: var(--shadow-hover), 0 0 30px rgba(30, 155, 215, 0.4), 0 0 60px rgba(116, 224, 221, 0.2);
}

.button--secondary:hover,
.button--secondary:focus-visible,
.button--ghost:hover,
.button--ghost:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: color-mix(in srgb, var(--color-surface) 82%, var(--color-accent) 18%);
  border-color: color-mix(in srgb, var(--color-accent) 44%, transparent);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: color-mix(in srgb, var(--color-surface) 78%, var(--color-accent) 22%);
  border-color: color-mix(in srgb, var(--color-accent) 42%, transparent);
}

.hero .button--ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 8px 20px rgba(14, 39, 64, 0.24);
  box-shadow: 0 12px 30px rgba(14, 39, 64, 0.24);
}

.hero .button--ghost:hover,
.hero .button--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.8);
}

/* Gateway section */
.gateway {
  position: relative;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin-bottom: 36px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  /* Enhanced section headers with text reveal */
  animation: text-reveal 0.8s var(--animation-transition-smooth) backwards;
}

@media (prefers-reduced-motion: reduce) {
  .section-header h2 {
    animation: none;
  }
  .tile::after {
    animation: none;
  }
}
.section-header p {
  margin: 0;
  color: var(--color-muted);
  max-width: 640px;
}

.tile-grid {
  display: grid;
  gap: 24px;
}

.tile {
  display: block;
  text-decoration: none;
  background: var(--color-surface);
  color: inherit;
  padding: 32px;
  border-radius: var(--radius-lg);
  /* Multi-layer shadows for depth */
  box-shadow: var(--shadow-depth-1), var(--shadow-depth-2), var(--shadow-depth-3);
  transition: transform 0.3s var(--animation-transition-smooth), box-shadow 0.3s var(--animation-transition-smooth), background 0.3s var(--animation-transition-smooth);
  position: relative;
  overflow: hidden;
  /* Simplified - no 3D tilt for main content */
  will-change: transform;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Animated gradient mesh background */
  background: radial-gradient(circle at 80% 0%, rgba(30, 155, 215, 0.1), transparent 55%);
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.3s var(--animation-transition-smooth);
}

.tile:hover::after {
  opacity: 1;
}

.tile--education::after {
  background: radial-gradient(circle at 80% 0%, rgba(116, 224, 221, 0.18), transparent 60%);
}

.tile--games::after {
  background: radial-gradient(circle at 75% 0%, rgba(30, 155, 215, 0.22), transparent 65%);
}

.tile:hover,
.tile:focus-visible {
  /* Simplified hover: lift and glow - no scale, no 3D tilt */
  transform: translateY(calc(var(--animation-lift-distance) * -1));
  box-shadow: var(--shadow-depth-2), var(--shadow-depth-3), var(--shadow-depth-4), 0 0 30px rgba(30, 155, 215, 0.2), 0 0 60px rgba(116, 224, 221, 0.1);
}

/* Simplified hover for tiles - no 3D tilt */
.tile__icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(30, 155, 215, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-strong);
  margin-bottom: 20px;
  transition: transform 0.3s var(--animation-transition-smooth), box-shadow 0.3s var(--animation-transition-smooth);
}

.tile:hover .tile__icon {
  transform: scale(1.15);
  box-shadow: 0 8px 20px rgba(30, 155, 215, 0.25);
}

.tile--education .tile__icon {
  background: rgba(116, 224, 221, 0.18);
}

.tile h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.tile p {
  margin: 0 0 20px;
  color: var(--color-muted);
  font-size: 0.98rem;
}

.tile__cta {
  font-weight: 600;
  color: var(--color-accent-strong);
}

.tile[aria-disabled=true] {
  pointer-events: none;
  opacity: 0.65;
}

/* Echolocation lesson block */
.section-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent-strong);
}

.feature-band {
  display: grid;
  gap: 36px;
  align-items: start;
}

/* Feature band with media (image instead of card) */
.feature-band--with-media {
  grid-template-columns: 1fr;
  gap: 32px;
}

.feature-band__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 620px;
}

.feature-band .section-header {
  margin-bottom: 0;
}

.feature-band__lead {
  margin: 0;
  color: var(--color-muted);
  font-size: 1rem;
  max-width: 540px;
}

.feature-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.feature-card {
  --feature-accent: var(--color-accent);
  position: relative;
  display: grid;
  gap: 18px;
  padding: 32px;
  border-radius: var(--radius-lg);
  /* Premium glassmorphism */
  background: color-mix(in srgb, var(--color-surface) 85%, var(--feature-accent) 4%);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid color-mix(in srgb, var(--feature-accent) 25%, transparent);
  /* Multi-layer shadows */
  box-shadow: var(--shadow-depth-2), var(--shadow-depth-3), 0 28px 48px rgba(14, 39, 64, 0.12);
  overflow: hidden;
  /* Simplified - no 3D tilt for main content cards */
  will-change: transform;
  transition: transform 0.3s var(--animation-transition-smooth), box-shadow 0.3s var(--animation-transition-smooth);
}

.feature-card:hover {
  /* Subtle lift and glow - no 3D tilt, no scale */
  transform: translateY(calc(var(--animation-lift-distance) * -1));
  box-shadow: var(--shadow-depth-3), var(--shadow-depth-4), 0 0 30px color-mix(in srgb, var(--feature-accent) 30%, transparent), 0 0 60px color-mix(in srgb, var(--feature-accent) 15%, transparent);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 18%, color-mix(in srgb, var(--feature-accent) 30%, transparent) 0%, transparent 60%), radial-gradient(circle at 20% 100%, color-mix(in srgb, var(--feature-accent) 18%, transparent) 0%, transparent 70%);
  opacity: 0.85;
  pointer-events: none;
}

.feature-card h3 {
  margin: 0;
  font-size: 1.18rem;
  color: color-mix(in srgb, var(--feature-accent) 45%, var(--color-text) 55%);
}

.feature-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  color: color-mix(in srgb, var(--color-text) 75%, transparent);
  font-size: 1rem;
}

.feature-card__list li {
  position: relative;
  padding-left: 28px;
}

.feature-card__list li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), color-mix(in srgb, var(--feature-accent) 70%, transparent));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--feature-accent) 30%, transparent);
}

.feature-card--echolocation {
  --feature-accent: var(--color-highlight);
}

.feature-card--anatomy {
  --feature-accent: var(--color-accent);
}

.feature-card--anatomy::after {
  background: radial-gradient(circle at 80% 18%, color-mix(in srgb, var(--feature-accent) 28%, transparent) 0%, transparent 60%);
}

.feature-card--environment {
  --feature-accent: var(--color-accent-strong);
}

.feature-card--environment::after {
  background: radial-gradient(circle at 82% 22%, color-mix(in srgb, var(--feature-accent) 30%, transparent) 0%, transparent 58%);
}

.feature-card--environment .feature-card__list li::before {
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #ffffff 45%, color-mix(in srgb, var(--feature-accent) 65%, transparent) 75%);
}

.echolocation,
.sensory-anatomy,
.environmental-challenges {
  padding: 64px 0 56px;
}

.echolocation {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(116, 224, 221, 0.12));
}

/* Sensory anatomy */
.sensory-anatomy {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(30, 155, 215, 0.08));
}

/* Reversed layout - image left, text right */
.feature-band--reversed {
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .feature-band--reversed {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
  }
  .feature-band--reversed .feature-media {
    order: -1;
  }
}
/* Environmental challenges */
.environmental-challenges {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(14, 39, 64, 0.08));
  padding: 0;
}

.environmental-challenges .feature-band {
  padding: 64px 0;
}

/* Full-width impact section with quote/statistic */
.impact-section {
  background: linear-gradient(135deg, var(--color-navy), var(--color-accent-strong));
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.impact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(116, 224, 221, 0.15), transparent 50%), radial-gradient(circle at 80% 50%, rgba(30, 155, 215, 0.1), transparent 50%);
  pointer-events: none;
}

.impact-quote {
  margin: 0;
  text-align: center;
  color: var(--color-surface);
  position: relative;
  z-index: 1;
}

.impact-quote__stat {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 24px;
  text-shadow: 0 4px 20px rgba(6, 31, 48, 0.4);
  color: var(--color-highlight);
}

.impact-quote__context {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
  margin: 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

/* Facts section */
.facts {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(116, 224, 221, 0.15));
  padding: 72px 0;
}

.facts__grid {
  display: grid;
  gap: 24px;
}

.info-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 28px;
  /* Multi-layer shadows */
  box-shadow: var(--shadow-depth-1), var(--shadow-depth-2), var(--shadow-depth-3);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s var(--animation-transition-smooth), box-shadow 0.3s var(--animation-transition-smooth);
  position: relative;
  overflow: hidden;
  /* 3D perspective for tilt - keep for playful facts section */
  transform-style: preserve-3d;
  will-change: transform;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-highlight));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.info-card:hover::before,
.info-card:focus-within::before {
  opacity: 1;
}

.info-card:hover,
.info-card:focus-within {
  /* Enhanced hover: lift, scale, glow - keep 3D tilt for playful section */
  transform: translateY(calc(var(--animation-lift-distance) * -1)) scale(var(--animation-scale-hover));
  box-shadow: var(--shadow-depth-2), var(--shadow-depth-3), var(--shadow-depth-4), 0 0 30px rgba(30, 155, 215, 0.2), 0 0 60px rgba(116, 224, 221, 0.1);
}

/* 3D tilt effect - controlled by JavaScript (only for facts section) */
.info-card[data-tilt] {
  transition: transform 0.1s ease-out;
}

.info-card:nth-child(1) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(116, 224, 221, 0.08));
}

.info-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(30, 155, 215, 0.08));
}

.info-card:nth-child(3) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(17, 106, 154, 0.06));
}

.info-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(30, 155, 215, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-strong);
  transition: transform 0.2s ease, background 0.2s ease;
}

.info-card:nth-child(1) .info-card__icon {
  background: rgba(116, 224, 221, 0.18);
  color: color-mix(in srgb, var(--color-highlight) 80%, var(--color-accent-strong) 20%);
}

.info-card:nth-child(2) .info-card__icon {
  background: rgba(30, 155, 215, 0.16);
  color: var(--color-accent);
}

.info-card:nth-child(3) .info-card__icon {
  background: rgba(17, 106, 154, 0.14);
  color: var(--color-accent-strong);
}

.info-card:hover .info-card__icon {
  transform: scale(1.15);
  box-shadow: 0 8px 20px rgba(30, 155, 215, 0.25);
}

.info-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.info-card p {
  margin: 0;
  color: var(--color-muted);
}

/* ============================================
   LEARN PAGE - Comprehensive Styling
   Following Design System Standards
   ============================================ */
/* ============================================
   LEARN HERO SECTION
   ============================================ */
.learn-hero {
  position: relative;
  padding: 96px 0 80px;
  background: color-mix(in srgb, var(--color-surface) 94%, rgba(30, 155, 215, 0.08));
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 6%, transparent);
  isolation: isolate;
  overflow: hidden;
}

/* Animated gradient background overlay */
.learn-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(140% 110% at 12% 18%, rgba(116, 224, 221, 0.26), transparent 70%), radial-gradient(120% 120% at 88% 0%, rgba(30, 155, 215, 0.22), transparent 65%);
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

.learn-hero__inner {
  position: relative;
}

.learn-hero__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
}

.learn-hero__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--color-accent-strong);
}

.learn-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.8vw, 3rem);
  line-height: 1.08;
  font-weight: 700;
  color: var(--color-text);
}

.learn-hero__lead {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--color-muted);
  max-width: 580px;
}

.learn-hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
}

.learn-hero__primary {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.learn-hero__microcopy {
  margin: 0;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--color-muted) 80%, transparent);
  font-weight: 500;
}

/* ============================================
   TOPICS SECTION
   ============================================ */
.topics {
  padding: 0;
}

.topics__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
  margin-bottom: 48px;
}

.topics__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--color-accent-strong);
}

.topics__intro h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  font-weight: 700;
}

.topics__intro p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ============================================
   TOPIC GRID
   ============================================ */
.topic-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ============================================
   TOPIC CARDS - Premium Design
   ============================================ */
.topic-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  background: var(--color-surface);
  /* Multi-layer shadows for depth */
  box-shadow: var(--shadow-depth-1), var(--shadow-depth-2);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--animation-transition-smooth), box-shadow 0.3s var(--animation-transition-smooth);
  cursor: default;
  position: relative;
  overflow: hidden;
}

/* Subtle gradient overlay on cards */
.topic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(30, 155, 215, 0.04), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--animation-transition-smooth);
}

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

/* Premium hover state with lift and glow */
.topic-card:hover,
.topic-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-depth-2), var(--shadow-depth-3), var(--shadow-depth-4), 0 0 20px rgba(30, 155, 215, 0.15), 0 0 40px rgba(116, 224, 221, 0.1);
}

/* ============================================
   TOPIC CARD FIGURE - Gradient Illustrations
   ============================================ */
.topic-card__figure {
  position: relative;
  border-radius: var(--radius-md);
  padding: 24px;
  background: linear-gradient(135deg, rgba(30, 155, 215, 0.18), rgba(116, 224, 221, 0.32));
  color: var(--color-accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3/2;
  overflow: hidden;
}

/* Varied gradient backgrounds for visual interest */
.topic-card:nth-of-type(2) .topic-card__figure {
  background: linear-gradient(135deg, rgba(17, 106, 154, 0.2), rgba(116, 224, 221, 0.28));
}

.topic-card:nth-of-type(3) .topic-card__figure {
  background: linear-gradient(135deg, rgba(30, 155, 215, 0.14), rgba(116, 224, 221, 0.36));
}

.topic-card:nth-of-type(4) .topic-card__figure {
  background: linear-gradient(135deg, rgba(64, 224, 208, 0.22), rgba(30, 155, 215, 0.26));
}

.topic-card:nth-of-type(5) .topic-card__figure {
  background: linear-gradient(135deg, rgba(116, 224, 221, 0.24), rgba(17, 106, 154, 0.3));
}

.topic-card__figure svg {
  width: 100%;
  max-width: 120px;
  height: auto;
}

/* ============================================
   TOPIC CARD BADGE
   ============================================ */
.topic-card__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-accent-strong);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(14, 39, 64, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  z-index: 1;
}

/* ============================================
   TOPIC CARD BODY
   ============================================ */
.topic-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.topic-card__body h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--color-text);
}

.topic-card__body > p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

/* ============================================
   TOPIC CARD BENEFITS LIST
   ============================================ */
.topic-card__benefits {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: color-mix(in srgb, var(--color-text) 85%, transparent);
  font-size: 0.95rem;
  line-height: 1.5;
}

.topic-card__benefits li {
  padding-left: 4px;
}

/* ============================================
   TOPIC CARD META (Duration & Status)
   ============================================ */
.topic-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--color-muted) 90%, transparent);
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--color-text) 6%, transparent);
}

.topic-card__duration {
  font-weight: 500;
}

.topic-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topic-card__status svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent-strong);
}

.topic-card__status span {
  font-size: 0.9rem;
}

/* ============================================
   TOPIC CARD CTA BUTTON
   ============================================ */
.topic-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--color-accent-strong);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: fit-content;
  margin-top: 4px;
  box-shadow: 0 8px 20px rgba(17, 106, 154, 0.24);
}

.topic-card__cta:hover,
.topic-card__cta:focus-visible {
  transform: translateY(-2px);
  background: var(--color-accent);
  box-shadow: 0 12px 28px rgba(17, 106, 154, 0.32), 0 0 20px rgba(30, 155, 215, 0.2);
}

/* ============================================
   TOPICS EMPTY STATE
   ============================================ */
.topics__empty {
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px dashed color-mix(in srgb, var(--color-text) 16%, transparent);
  background: color-mix(in srgb, var(--color-surface) 70%, transparent);
  color: var(--color-muted);
  text-align: center;
  font-size: 0.98rem;
}

/* ============================================
   LEARN PATH SECTION
   ============================================ */
.learn-path {
  padding: 0;
}

.learn-path__inner {
  display: grid;
  gap: 32px;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
  background: linear-gradient(135deg, rgba(116, 224, 221, 0.14), rgba(30, 155, 215, 0.12));
  box-shadow: var(--shadow-depth-1), var(--shadow-depth-2);
  position: relative;
  overflow: hidden;
}

/* Subtle animated gradient overlay */
.learn-path__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(116, 224, 221, 0.15), transparent 60%);
  pointer-events: none;
  opacity: 0.8;
}

.learn-path__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.learn-path__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--color-accent-strong);
}

.learn-path__header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  font-weight: 700;
}

.learn-path__header p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ============================================
   LEARN PATH STEPS
   ============================================ */
.learn-path__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.learn-path__steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(17, 106, 154, 0.2);
  box-shadow: 0 8px 20px rgba(14, 39, 64, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.learn-path__steps li:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(14, 39, 64, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.learn-path__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-accent) 15%, white 85%);
  color: var(--color-accent-strong);
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(30, 155, 215, 0.2);
}

.learn-path__step-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}

.learn-path__step-desc {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ============================================
   LEARN PATH SUMMARY
   ============================================ */
.learn-path__summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(14, 39, 64, 0.1);
  position: relative;
  z-index: 1;
}

.learn-path__time {
  margin: 0;
  font-weight: 600;
  color: var(--color-accent-strong);
  font-size: 1rem;
}

.learn-path__meter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.learn-path__meter-track {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-text) 10%, transparent);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.learn-path__meter-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-highlight));
  transition: width 0.6s var(--animation-transition-smooth);
}

.learn-path__meter-caption {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* ============================================
   LEARN SUPPORT SECTION
   ============================================ */
.learn-support {
  padding: 0;
}

.learn-support__inner {
  display: grid;
  gap: 36px;
}

.learn-support__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}

.learn-support__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--color-accent-strong);
}

.learn-support__header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  font-weight: 700;
}

.learn-support__header p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ============================================
   SUPPORT CARDS GRID
   ============================================ */
.learn-support__grid {
  display: grid;
  gap: 24px;
}

.support-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  background: var(--color-surface);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--animation-transition-smooth), box-shadow 0.3s var(--animation-transition-smooth);
  box-shadow: var(--shadow-depth-1), var(--shadow-depth-2);
  position: relative;
  overflow: hidden;
}

/* Subtle gradient overlay */
.support-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(30, 155, 215, 0.04), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--animation-transition-smooth);
}

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

.support-card:hover,
.support-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-depth-2), var(--shadow-depth-3), 0 0 20px rgba(30, 155, 215, 0.12);
}

.support-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(30, 155, 215, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-strong);
  flex-shrink: 0;
  transition: transform 0.3s var(--animation-transition-smooth), box-shadow 0.3s var(--animation-transition-smooth);
}

.support-card:hover .support-card__icon {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(30, 155, 215, 0.2);
}

.support-card__icon svg {
  width: 32px;
  height: 32px;
}

.support-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-card__body h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
}

.support-card__body p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

/* ============================================
   LEARN CREDIBILITY SECTION
   ============================================ */
.learn-credibility {
  padding: 0;
}

.learn-credibility__inner {
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  box-shadow: var(--shadow-depth-2), var(--shadow-depth-3);
}

.learn-credibility__stat {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--color-accent-strong);
  line-height: 1.3;
}

.learn-credibility__quote {
  margin: 0;
  font-style: italic;
  color: var(--color-muted);
  line-height: 1.6;
  font-size: 1rem;
}

.learn-credibility__quote span {
  display: block;
  font-style: normal;
  margin-top: 8px;
  color: color-mix(in srgb, var(--color-text) 75%, transparent);
  font-size: 0.95rem;
  font-weight: 500;
}

.learn-credibility__about {
  margin: 0;
  color: color-mix(in srgb, var(--color-text) 90%, transparent);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   UTILITY: HIDDEN ATTRIBUTE
   ============================================ */
[hidden] {
  display: none !important;
}

/* ============================================
   REDUCED MOTION PREFERENCES
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .learn-path__inner::before,
  .topic-card::before,
  .support-card::before {
    animation: none;
  }
  .topic-card,
  .support-card,
  .learn-path__steps li {
    transition: none;
  }
}
/* Footer */
.site-footer {
  padding: 16px 0 16px 0;
  background: var(--color-surface);
  border-top: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  color: var(--color-muted);
}

.footer__link {
  color: var(--color-accent-strong);
  text-decoration: none;
  font-weight: 600;
}

.footer__link:hover,
.footer__link:focus-visible {
  text-decoration: underline;
}

.footer__tagline {
  margin: 0;
}

/* Media components for images and illustrations */
.feature-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-depth-2), var(--shadow-depth-3);
  transition: transform 0.3s var(--animation-transition-smooth), box-shadow 0.3s var(--animation-transition-smooth);
}

.feature-media__image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(30, 155, 215, 0.1), rgba(116, 224, 221, 0.15));
  overflow: hidden;
}

.feature-media__image svg,
.feature-media__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--animation-transition-smooth);
}

/* Ken Burns effect - subtle zoom on hover */
.feature-media:hover .feature-media__image svg,
.feature-media:hover .feature-media__image img {
  transform: scale(1.05);
}

.feature-media:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-depth-3), var(--shadow-depth-4), 0 0 20px rgba(30, 155, 215, 0.15);
}

.feature-media__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(14, 39, 64, 0.85), transparent);
  color: var(--color-surface);
  font-size: 0.9rem;
  margin: 0;
  text-align: center;
}

/* Echolocation specific styling */
.feature-media__image--echolocation {
  background: linear-gradient(135deg, rgba(30, 155, 215, 0.15), rgba(116, 224, 221, 0.2));
}

/* Anatomy diagram specific styling */
.feature-media__image--anatomy {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(30, 155, 215, 0.08));
  min-height: 350px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .feature-media__image svg,
  .feature-media__image img {
    transition: none;
  }
  .feature-media:hover .feature-media__image svg,
  .feature-media:hover .feature-media__image img {
    transform: none;
  }
}
/* Responsive */
@media (min-width: 640px) {
  .nav-toggle {
    display: none;
  }
  .nav-backdrop {
    display: none;
  }
  .primary-nav {
    position: static;
    display: inline-flex !important;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    border: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    box-shadow: none;
    width: auto;
    opacity: 1;
    transform: none;
    transition: none;
    pointer-events: auto;
    overflow: visible;
    animation: none;
  }
  .primary-nav::before {
    display: none;
  }
  .primary-nav a {
    padding: 0.625rem 1.15rem;
    white-space: nowrap;
    border-radius: 10px;
    font-weight: 500;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .primary-nav a.active::after {
    left: 50%;
    top: auto;
    bottom: 4px;
    transform: translateX(-50%) translateY(0);
    width: 28px;
    height: 3px;
    border-radius: 3px 3px 0 0;
  }
  .primary-nav a.active::before {
    opacity: 1;
  }
  .learn-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  }
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .learn-path__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .learn-path__header {
    grid-column: 1/2;
  }
  .learn-path__steps {
    grid-column: 1/-1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .learn-path__steps li {
    height: 100%;
  }
  .learn-path__summary {
    grid-column: 2/3;
    align-self: end;
  }
  .learn-support__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero__content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .hero__badge {
    margin-top: 40px;
  }
  .tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .anatomy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .challenge-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .learn-support__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .learn-path__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
  .learn-path__steps {
    grid-column: 1/-1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  /* Updated layouts - feature-band handles its own grid now */
  .echolocation-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .anatomy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .echolocation .mini-reflection,
  .sensory-anatomy .mini-reflection,
  .environmental-challenges .mini-reflection,
  .echolocation .quick-facts,
  .sensory-anatomy .quick-facts,
  .environmental-challenges .quick-facts {
    margin-top: 0;
  }
  .feature-band {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    align-items: stretch;
    gap: 52px;
  }
  /* Media layouts - two columns on desktop */
  .feature-band--with-media {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .feature-band--reversed {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
  }
  .feature-band__copy {
    justify-content: center;
  }
  .feature-card {
    align-self: center;
  }
  .feature-media {
    align-self: center;
  }
}
@media (max-width: 639px) {
  body {
    background-attachment: scroll;
  }
  .site-header {
    position: static;
  }
  .header__inner {
    min-height: 64px;
    padding: var(--gap-sm) 0;
  }
  .brand__mark {
    width: 48px;
    height: 48px;
  }
  .brand__mark::after {
    inset: 12px;
  }
  .brand__title {
    font-size: 1.1rem;
  }
  .brand__tagline {
    display: none;
  }
  .brand {
    gap: var(--gap-sm);
  }
  .hero {
    padding: 96px 0 80px;
  }
  .hero__content {
    display: flex;
    flex-direction: column;
  }
  .hero__text {
    order: 1;
  }
  .hero__actions {
    order: 2;
  }
  .hero__badge {
    grid-template-columns: 1fr;
    text-align: left;
    margin-top: 32px;
    order: 3;
  }
  .learn-hero {
    padding: 110px 0 60px;
  }
  .topic-card {
    padding: 24px;
  }
  .support-card {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .button,
  .tile,
  .info-card {
    transition: none !important;
  }
}
