/* ============================================================
   RunSafeTonight.com — Master Stylesheet
   Dark Mode First | Mobile First | All Breakpoints
   ============================================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Core palette */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #222240;
  --bg-glass: rgba(26, 26, 46, 0.7);
  --bg-overlay: rgba(10, 10, 15, 0.85);

  /* Accent colors */
  --accent-primary: #00d4ff;
  --accent-secondary: #7b2ff7;
  --accent-warm: #ff6b35;
  --accent-green: #00e676;
  --accent-gold: #ffd700;
  --accent-rose: #ff4081;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
  --gradient-accent: linear-gradient(135deg, #00d4ff, #7b2ff7);
  --gradient-warm: linear-gradient(135deg, #ff6b35, #ff4081);
  --gradient-card: linear-gradient(145deg, #1a1a2e, #16213e);
  --gradient-glow: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.15) 0%, transparent 70%);

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #b0b0cc;
  --text-muted: #6e6e8a;
  --text-accent: #00d4ff;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(0, 212, 255, 0.3);
  --border-glow: rgba(0, 212, 255, 0.5);

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Typography scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;
  --text-8xl: 6rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.2);
  --shadow-glow-strong: 0 0 60px rgba(0, 212, 255, 0.3);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Container */
  --container-max: 1400px;
  --container-narrow: 900px;

  /* Header */
  --header-height: 70px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a:hover {
  color: #33ddff;
}

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

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

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

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

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

.glow-text {
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.2);
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 0.5s; }

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

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

/* Desktop Nav */
.main-nav {
  display: none;
  align-items: center;
  gap: var(--space-xl);
}

.main-nav a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width var(--transition-base);
}

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

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

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.lang-switch a {
  padding: 6px 12px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  text-transform: uppercase;
}

.lang-switch a.active {
  background: var(--gradient-accent);
  color: var(--bg-primary);
}

.lang-switch a:hover:not(.active) {
  color: var(--text-primary);
}

/* Mobile hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile navigation overlay */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: var(--space-2xl) var(--space-lg);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
}

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

.mobile-nav a {
  display: block;
  padding: var(--space-md) 0;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.mobile-nav a:hover {
  color: var(--text-primary);
  padding-left: var(--space-md);
}

.mobile-nav .mobile-nav-cta {
  margin-top: var(--space-2xl);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-accent);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
  color: var(--bg-primary);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-accent);
}

.btn--secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.btn--warm {
  background: var(--gradient-warm);
  color: white;
}

.btn--warm:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
  color: white;
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 20px;
}

.btn--ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn--lg {
  padding: 18px 36px;
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
}

.btn--sm {
  padding: 10px 20px;
  font-size: var(--text-sm);
}

.btn--icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* Ripple effect */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* --- Section Styles --- */
.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section--hero {
  padding-top: calc(var(--header-height) + var(--space-4xl));
  padding-bottom: var(--space-5xl);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 16px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* --- Hero Section --- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: brightness(0.6);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 15, 0.3) 0%, rgba(10, 10, 15, 0.7) 50%, var(--bg-primary) 100%);
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 20px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  color: var(--accent-primary);
  margin-bottom: var(--space-xl);
  animation: pulse-border 3s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(0, 212, 255, 0.2); }
  50% { border-color: rgba(0, 212, 255, 0.5); }
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-lg);
}

.hero-title .highlight {
  display: block;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-subtle);
}

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

.hero-stat-number {
  font-size: var(--text-3xl);
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* Animated runner silhouette */
.hero-runner {
  position: absolute;
  bottom: 10%;
  right: -5%;
  width: 300px;
  height: 300px;
  opacity: 0.06;
  z-index: 0;
}

/* Floating particles */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-primary);
  border-radius: var(--radius-full);
  opacity: 0;
  animation: float-particle 8s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 7s; }
.particle:nth-child(2) { left: 30%; top: 60%; animation-delay: 1s; animation-duration: 9s; }
.particle:nth-child(3) { left: 50%; top: 30%; animation-delay: 2s; animation-duration: 6s; }
.particle:nth-child(4) { left: 70%; top: 70%; animation-delay: 3s; animation-duration: 8s; }
.particle:nth-child(5) { left: 85%; top: 40%; animation-delay: 0.5s; animation-duration: 10s; }
.particle:nth-child(6) { left: 20%; top: 80%; animation-delay: 2.5s; animation-duration: 7.5s; }
.particle:nth-child(7) { left: 60%; top: 15%; animation-delay: 1.5s; animation-duration: 8.5s; }
.particle:nth-child(8) { left: 90%; top: 55%; animation-delay: 3.5s; animation-duration: 6.5s; }

@keyframes float-particle {
  0%, 100% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
  10% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.3;
    transform: translateY(-80px) scale(1.5);
  }
  90% {
    opacity: 0.6;
  }
}

/* --- Tonight's Conditions Module --- */
.conditions-module {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.conditions-module::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
}

.conditions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.conditions-title {
  font-size: var(--text-xl);
  font-weight: 700;
}

.conditions-live {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--accent-green);
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.condition-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
}

.condition-card:hover {
  background: rgba(0, 212, 255, 0.05);
  border-color: var(--border-accent);
}

.condition-icon {
  font-size: 28px;
  margin-bottom: var(--space-sm);
}

.condition-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.condition-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.conditions-verdict {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: var(--radius-md);
  text-align: center;
}

.verdict-label {
  font-size: var(--text-sm);
  color: var(--accent-green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.verdict-text {
  font-size: var(--text-lg);
  font-weight: 600;
}

/* --- Community Pulse --- */
.community-pulse {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.community-pulse::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-warm);
}

.pulse-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.pulse-stat {
  text-align: center;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.pulse-stat-icon {
  font-size: 24px;
  margin-bottom: var(--space-sm);
}

.pulse-stat-number {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-xs);
}

.pulse-stat-number.animated {
  transition: all 0.6s ease;
}

.pulse-stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.pulse-feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.pulse-feed-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}

.pulse-feed-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

.pulse-feed-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.pulse-feed-dot.green { background: var(--accent-green); }
.pulse-feed-dot.blue { background: var(--accent-primary); }
.pulse-feed-dot.gold { background: var(--accent-gold); }
.pulse-feed-dot.rose { background: var(--accent-rose); }

.pulse-feed-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.pulse-feed-text strong {
  color: var(--text-primary);
}

.pulse-feed-time {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-left: auto;
  flex-shrink: 0;
}

/* --- Environment Cards --- */
.env-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.env-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: all var(--transition-base);
}

.env-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.env-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.env-card:hover img {
  transform: scale(1.08);
}

.env-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.9) 0%, rgba(10, 10, 15, 0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl);
}

.env-card-icon {
  font-size: 28px;
  margin-bottom: var(--space-sm);
}

.env-card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.env-card-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.env-card-arrow {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-base);
}

.env-card:hover .env-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* --- Strategy Cards --- */
.strategy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.strategy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.strategy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  transition: all var(--transition-base);
}

.strategy-card:nth-child(1)::before { background: var(--accent-primary); }
.strategy-card:nth-child(2)::before { background: var(--accent-secondary); }
.strategy-card:nth-child(3)::before { background: var(--accent-warm); }
.strategy-card:nth-child(4)::before { background: var(--accent-green); }
.strategy-card:nth-child(5)::before { background: var(--accent-gold); }

.strategy-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
}

.strategy-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--space-lg);
}

.strategy-card:nth-child(1) .strategy-card-icon { background: rgba(0, 212, 255, 0.1); }
.strategy-card:nth-child(2) .strategy-card-icon { background: rgba(123, 47, 247, 0.1); }
.strategy-card:nth-child(3) .strategy-card-icon { background: rgba(255, 107, 53, 0.1); }
.strategy-card:nth-child(4) .strategy-card-icon { background: rgba(0, 230, 118, 0.1); }
.strategy-card:nth-child(5) .strategy-card-icon { background: rgba(255, 215, 0, 0.1); }

.strategy-card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.strategy-card-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
}

.strategy-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.strategy-tag {
  padding: 4px 12px;
  font-size: var(--text-xs);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* --- Content Database Grid --- */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.content-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.content-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
}

.content-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.content-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.content-card:hover .content-card-image img {
  transform: scale(1.05);
}

.content-card-body {
  padding: var(--space-xl);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.content-card-category {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: var(--space-sm);
}

.content-card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.content-card-excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

.content-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* --- Night Route Builder --- */
.route-builder {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.route-builder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
}

.route-builder-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.form-select,
.form-input {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.form-select:focus,
.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23b0b0cc' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* Range slider */
.form-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
}

.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-accent);
  cursor: pointer;
  box-shadow: var(--shadow-glow);
}

.form-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
  border: none;
}

/* --- Night Crew CTA --- */
.nightcrew-section {
  background: var(--gradient-card);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.nightcrew-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(123, 47, 247, 0.08) 0%, transparent 50%);
  animation: rotate-glow 30s linear infinite;
}

@keyframes rotate-glow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

.nightcrew-title {
  font-size: var(--text-4xl);
  font-weight: 900;
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.nightcrew-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

.nightcrew-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  text-align: left;
}

.nightcrew-benefit {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.nightcrew-benefit-icon {
  color: var(--accent-primary);
  font-size: 18px;
  flex-shrink: 0;
}

.nightcrew-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 500px;
  margin: 0 auto;
}

.nightcrew-form input {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.nightcrew-form input::placeholder {
  color: var(--text-muted);
}

.nightcrew-form input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand-logo {
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.footer-brand-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col-title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

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

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-subtle);
}

.footer-bottom-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transition: all var(--transition-fast);
  font-size: 18px;
}

.footer-social a:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-primary);
}

/* --- Guides Hub / Database --- */
.guides-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.filter-btn {
  padding: 8px 20px;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-primary);
  border-color: var(--border-accent);
}

/* --- City Pages --- */
.city-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.city-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/2;
  transition: all var(--transition-base);
  cursor: pointer;
}

.city-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.city-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.city-card:hover img {
  transform: scale(1.08);
}

.city-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl);
}

.city-card-name {
  font-size: var(--text-xl);
  font-weight: 700;
}

.city-card-routes {
  font-size: var(--text-sm);
  color: var(--accent-primary);
  margin-top: var(--space-xs);
}

/* --- Pillar / Detail Pages --- */
.page-hero {
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 15, 0.5) 0%, var(--bg-primary) 100%);
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent-primary);
}

.breadcrumb-sep {
  color: var(--text-muted);
}

.page-title {
  font-size: var(--text-4xl);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.page-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.7;
}

/* Content sections for pillar pages */
.pillar-section {
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.pillar-section:last-child {
  border-bottom: none;
}

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.pillar-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
}

.pillar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pillar-text h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.pillar-text p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.pillar-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pillar-list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.pillar-list-icon {
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Accordion --- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.accordion-icon {
  transition: transform var(--transition-base);
  font-size: 14px;
  color: var(--text-muted);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.accordion-body-inner {
  padding: 0 var(--space-xl) var(--space-xl);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- Loading / Skeleton --- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255, 255, 255, 0.05) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: var(--space-md) var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
  color: var(--text-primary);
  z-index: 2000;
  transition: transform var(--transition-spring);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 20px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  color: var(--accent-primary);
}

/* --- Cookie / Banner --- */
.banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-lg);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.banner.show {
  transform: translateY(0);
}

.banner-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-align: center;
}

.banner-actions {
  display: flex;
  gap: var(--space-md);
}

/* =============================================================
   RESPONSIVE BREAKPOINTS
   Mobile First: 320px → 480px → 640px → 768px → 1024px → 1280px
   ============================================================= */

/* Small phones (320px+) — base styles above */

/* Large phones (480px+) */
@media (min-width: 480px) {
  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }

  .conditions-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nightcrew-form {
    flex-direction: row;
  }

  .nightcrew-form input {
    flex: 1;
  }
}

/* Tablets portrait (640px+) */
@media (min-width: 640px) {
  .section-title {
    font-size: var(--text-5xl);
  }

  .hero-title {
    font-size: var(--text-6xl);
  }

  .env-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .city-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

  .banner {
    flex-direction: row;
    justify-content: center;
  }
}

/* Tablets landscape / small desktops (768px+) */
@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .hero-title {
    font-size: var(--text-7xl);
  }

  .conditions-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pulse-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .strategy-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-title {
    font-size: var(--text-5xl);
  }
}

/* Desktops (1024px+) */
@media (min-width: 1024px) {
  .hero-title {
    font-size: var(--text-8xl);
  }

  .section {
    padding: var(--space-5xl) 0;
  }

  .env-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .strategy-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .content-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .conditions-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .city-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .nightcrew-section {
    padding: var(--space-5xl) var(--space-3xl);
  }

  .nightcrew-title {
    font-size: var(--text-5xl);
  }

  .page-title {
    font-size: var(--text-6xl);
  }
}

/* Large desktops (1280px+) */
@media (min-width: 1280px) {
  .container {
    padding: 0 var(--space-2xl);
  }

  .content-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Print Styles --- */
@media print {
  body {
    background: white;
    color: black;
  }

  .site-header,
  .mobile-nav,
  .back-to-top,
  .banner,
  .toast {
    display: none;
  }

  .section {
    padding: 1rem 0;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* --- Focus Styles (Accessibility) --- */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* --- Selection --- */
::selection {
  background: rgba(0, 212, 255, 0.3);
  color: var(--text-primary);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bg-card-hover);
}

/* --- Interactive Database Section --- */
.database-section {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-xl);
  border: 1px solid var(--border-subtle);
}

.database-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.database-cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  cursor: pointer;
  text-align: center;
}

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

.database-cat-icon {
  font-size: 36px;
  margin-bottom: var(--space-md);
}

.database-cat-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.database-cat-count {
  font-size: var(--text-sm);
  color: var(--accent-primary);
}

.database-cat-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

@media (min-width: 640px) {
  .database-categories {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .database-categories {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Testimonial / Quote --- */
.quote-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
}

.quote-card::before {
  content: '\201C';
  position: absolute;
  top: var(--space-lg);
  left: var(--space-xl);
  font-size: 60px;
  line-height: 1;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
}

.quote-text {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  padding-top: var(--space-xl);
}

.quote-author {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.quote-author strong {
  color: var(--text-primary);
}

/* --- Interactive Map Placeholder --- */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.map-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.map-placeholder-icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

/* --- Tabs --- */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-subtle);
  margin-bottom: var(--space-2xl);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab:hover {
  color: var(--text-primary);
}

.tab.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* --- Progress Bar --- */
.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 3px;
  transition: width 1s ease;
}

/* --- Stat Counter Section --- */
.stat-counters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  padding: var(--space-3xl) 0;
}

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

.stat-counter-value {
  font-size: var(--text-5xl);
  font-weight: 900;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-counter-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

@media (min-width: 768px) {
  .stat-counters {
    grid-template-columns: repeat(4, 1fr);
  }
}
