/* ==========================================================================
   Bloom Haven - CSS Landing Page Design System
   ========================================================================== */

/* --- CSS Custom Variables (Design Tokens) --- */
:root {
  --color-bg-deep: #00100f;       /* Dark atmospheric forest green */
  --color-bg-dark: #001f1d;       /* Slightly lighter container green */
  --color-primary: #00ffcc;      /* Neon magical green glow */
  --color-secondary: #00b388;    /* Soothing sage green */
  --color-accent: #ffcc00;       /* Mystical gold accent */
  --color-text-light: #ffffff;
  --color-text-muted: #a3c2c0;   /* Muted teal-gray text */
  --font-title: 'Cinzel', serif;
  --font-body: 'Outfit', sans-serif;
  --font-stats: 'Fredoka', sans-serif;
  
  --wooden-gradient: linear-gradient(to bottom, #8B5A2B, #5C3A21);
  --wooden-border: 3px solid #3d2516;
  --wooden-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg-deep);
  color: var(--color-text-light);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

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

/* --- Layout Panels & Glassmorphism --- */
.glass-panel {
  background: rgba(0, 31, 29, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 255, 204, 0.1);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
  border-color: rgba(0, 255, 204, 0.2);
  box-shadow: 0 20px 50px rgba(0, 255, 204, 0.05);
}

/* --- Typography Utilities --- */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.section-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  letter-spacing: 4px;
  margin-bottom: 12px;
  text-shadow: 0 4px 15px rgba(0, 255, 204, 0.2);
}

.section-subtitle {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
  font-size: 1.1rem;
}

/* --- Floating Particles Background --- */
.particle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(2px);
  animation: float-up linear infinite;
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.25;
  }
  90% {
    opacity: 0.25;
  }
  100% {
    transform: translateY(-10vh) translateX(50px);
    opacity: 0;
  }
}

/* --- Buttons System --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 14px 28px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  text-transform: uppercase;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-bg-deep);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 255, 204, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* Wooden Button (Mirroring the game's UI) */
.btn-wooden {
  background: var(--wooden-gradient);
  border: var(--wooden-border);
  box-shadow: var(--wooden-shadow), inset 0 2px 0 rgba(255, 255, 255, 0.2);
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  border-radius: 12px;
}

.btn-wooden:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.3);
  filter: brightness(1.1);
}

.btn-wooden:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.8rem;
  border-radius: 8px;
}

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

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* --- Header & Navigation --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 16, 15, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 255, 204, 0.08);
  padding: 16px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 8px rgba(0, 255, 204, 0.3));
}

.logo-text {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 2px;
  color: var(--color-text-light);
}

.logo-sub {
  color: var(--color-primary);
  font-weight: 400;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

.main-nav a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  z-index: 10;
  background: radial-gradient(circle at 80% 20%, rgba(0, 255, 204, 0.08) 0%, transparent 50%);
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 70%, var(--color-bg-deep) 100%);
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.hero-badge {
  display: inline-block;
  background: rgba(0, 255, 204, 0.08);
  border: 1px solid rgba(0, 255, 204, 0.2);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 8px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 3.8rem;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 24px;
}

.hero-description {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Phone Mockup Screen */
.phone-mockup {
  position: relative;
  width: 300px;
  height: 610px;
  margin: 0 auto;
  border: 12px solid #1f2d2b;
  border-radius: 40px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8), 0 0 40px rgba(0, 255, 204, 0.05);
  background: #000;
}

.screen-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
}

.screen-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.phone-mockup:hover .screen-image {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 16, 15, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.play-pulse-btn {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg-deep);
  font-size: 1.6rem;
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.6);
  position: relative;
  transition: all 0.3s ease;
}

.play-pulse-btn::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

.play-pulse-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(0, 255, 204, 0.8);
}

.play-icon {
  margin-left: 4px;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Mockup Leaf Items */
.mockup-leaf {
  position: absolute;
  font-size: 2.2rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  pointer-events: none;
}

.leaf-1 {
  top: 100px;
  left: -50px;
}

.leaf-2 {
  bottom: 120px;
  right: -50px;
}

/* Animations */
.animate-float {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-sway {
  animation: sway 6s ease-in-out infinite;
}

@keyframes sway {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-8px); }
}

.animate-sway-reverse {
  animation: sway-rev 6s ease-in-out infinite;
}

@keyframes sway-rev {
  0%, 100% { transform: rotate(5deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(8px); }
}

/* --- Features Section --- */
.features-section {
  padding: 100px 0;
  position: relative;
}

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

.feature-card {
  padding: 40px 32px;
  text-align: center;
}

.feature-icon-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.feature-icon-wrapper img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper img {
  transform: scale(1.15) rotate(5deg);
}

.feature-card h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  color: var(--color-text-light);
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 300;
}

.gem-glow { box-shadow: inset 0 0 20px rgba(0, 153, 255, 0.2), 0 5px 15px rgba(0, 153, 255, 0.1); }
.essence-glow { box-shadow: inset 0 0 20px rgba(0, 255, 120, 0.2), 0 5px 15px rgba(0, 255, 120, 0.1); }
.storm-glow { box-shadow: inset 0 0 20px rgba(255, 180, 0, 0.2), 0 5px 15px rgba(255, 180, 0, 0.1); }

/* --- Interactive Merge Simulator Section --- */
.simulator-section {
  padding: 100px 0;
  background: radial-gradient(circle at 20% 80%, rgba(0, 255, 204, 0.04) 0%, transparent 40%);
}

.simulator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 40px;
  align-items: center;
}

.simulator-board-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Board HUD */
.board-hud {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 24px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 800;
  letter-spacing: 1px;
}

.hud-val {
  font-family: var(--font-stats);
  color: var(--color-accent);
  font-size: 1.15rem;
  font-weight: bold;
}

/* 4x4 Grid Board */
.merge-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 8px;
  width: 340px;
  height: 340px;
  background: #1d2b27;
  border: var(--wooden-border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  margin-bottom: 24px;
}

.board-cell {
  background: rgba(0, 16, 15, 0.5);
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.board-cell.drag-over {
  background: rgba(0, 255, 204, 0.08);
  border-color: var(--color-primary);
}

/* Draggable Items */
.merge-item {
  width: 90%;
  height: 90%;
  object-fit: contain;
  user-select: none;
  cursor: grab;
  animation: spawn-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.merge-item:active {
  cursor: grabbing;
}

@keyframes spawn-pop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.merge-effect {
  animation: merge-bounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes merge-bounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Board Controls */
.board-controls {
  display: flex;
  gap: 16px;
}

.simulator-info h3 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.simulator-info p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  font-weight: 300;
  margin-bottom: 30px;
}

.tier-list-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: 16px;
  border-radius: 16px;
  margin-bottom: 30px;
}

.tier-item-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.tier-item-mini img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 6px;
}

.tier-item-mini span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
}

.tier-item-mini-arrow {
  color: var(--color-primary);
  font-weight: bold;
}

.demo-instructions {
  background: rgba(0, 255, 204, 0.03);
  border-left: 3px solid var(--color-primary);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-radius: 0 12px 12px 0;
}

.demo-instructions strong {
  color: var(--color-text-light);
}

/* --- Biomes Section with Restoration Slider --- */
.biomes-section {
  padding: 100px 0;
}

.biome-toggles {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.biome-toggle-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.biome-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-light);
}

.biome-toggle-btn.active {
  background: rgba(0, 255, 204, 0.08);
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.1);
}

/* Slider comparison */
.slider-comparison-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 500px;
  margin: 0 auto;
  border: var(--wooden-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.7);
  user-select: none;
}

.slider-comparison-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%; /* Initial split at 50% */
  height: 100%;
  overflow: hidden;
  z-index: 2;
}

.image-before img {
  width: 900px; /* Lock width to match container max-width */
  max-width: none;
}

/* Overlay to make withered land look gray/dying */
.grayscale-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(50, 40, 30, 0.4);
  backdrop-filter: grayscale(1) contrast(1.1) brightness(0.7);
  -webkit-backdrop-filter: grayscale(1) contrast(1.1) brightness(0.7);
  pointer-events: none;
}

.image-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.label {
  position: absolute;
  bottom: 24px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 4px;
  z-index: 10;
}

.label-before {
  left: 24px;
  background: #ff4d4d;
  color: #fff;
}

.label-after {
  right: 24px;
  background: var(--color-primary);
  color: var(--color-bg-deep);
}

/* Slider Drag Handle */
.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--color-primary);
  z-index: 5;
  cursor: ew-resize;
  box-shadow: 0 0 10px var(--color-primary);
}

.handle-line {
  width: 100%;
  height: 100%;
}

.handle-center-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: var(--wooden-gradient);
  border: var(--wooden-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.1s ease;
}

.slider-handle:hover .handle-center-dot {
  transform: translate(-50%, -50%) scale(1.1);
}

.handle-arrow-left,
.handle-arrow-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
}

.handle-arrow-left { left: -14px; }
.handle-arrow-right { right: -14px; }

/* --- Codex Section --- */
.codex-section {
  padding: 100px 0;
}

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

.codex-card {
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.codex-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-secondary);
  transition: background 0.3s ease;
}

.codex-card:hover::before {
  background: var(--color-primary);
}

.codex-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 16px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.codex-card:hover .codex-img {
  transform: translateY(-5px) scale(1.1);
}

.codex-card h4 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.codex-tier {
  font-family: var(--font-stats);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.codex-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 300;
}

/* --- Download Section --- */
.download-section {
  padding: 100px 0;
}

.download-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  padding: 60px 80px;
  gap: 40px;
}

.download-content h2 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.download-content p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 32px;
}

.download-links {
  display: flex;
}

.wooden-play-btn-img {
  height: 54px;
  border-radius: 12px;
  box-shadow: var(--wooden-shadow);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.wooden-play-btn-img:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.1);
}

.download-image img {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 15px 35px rgba(0, 255, 204, 0.4));
}

/* --- Footer --- */
.main-footer {
  background: #000c0b;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-info {
  max-width: 400px;
}

.footer-logo {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 6px rgba(0, 255, 204, 0.2));
}

.footer-tagline {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
  font-style: italic;
}

.footer-links h4 {
  font-family: var(--font-title);
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--color-text-light);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

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

.footer-copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 24px;
}

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

/* --- Video Modal Player --- */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none; /* Controlled by JS */
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  background: var(--color-bg-dark);
  border: 1px solid rgba(0, 255, 204, 0.2);
  border-radius: 20px;
  width: 90%;
  max-width: 650px;
  overflow: hidden;
  z-index: 10;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
  animation: modal-enter 0.3s ease;
}

@keyframes modal-enter {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--color-text-light);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 20;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--color-primary);
}

.modal-video-fallback {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.video-container {
  display: flex;
  flex-direction: column;
}

.modal-text {
  padding: 24px;
}

.modal-text h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .hero-container {
    gap: 40px;
  }
}

@media (max-width: 991px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
  
  .simulator-wrapper {
    grid-template-columns: 1fr;
  }
  
  .download-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px;
  }
  
  .download-links {
    justify-content: center;
  }
  
  .main-nav {
    display: none; /* Hide nav links on tablets/phones, fallback simplified */
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .slider-comparison-container {
    height: 350px;
  }
  
  .slider-comparison-container img {
    width: 100%;
  }
  
  .image-before img {
    width: 720px; /* Lock fallback for smaller screens */
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .merge-board {
    width: 280px;
    height: 280px;
  }
  .slider-comparison-container {
    height: 250px;
  }
}
