:root {
  --bg: #070a0f;
  --bg-surface: #0d1117;
  --bg-card: rgba(15, 20, 30, 0.7);
  --accent-primary: #7c3aed;
  --accent-green: #22c55e;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-yellow: #eab308;
  --accent-orange: #f97316;
  --text: #f0f4f8;
  --text-muted: #8b9db7;
  --text-dim: #4a5e78;
  --border: rgba(255, 255, 255, 0.06);
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

/* ========================================
   FOOD ORBS (background particles)
======================================== */
.food-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.food-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, white 0%, var(--orb-color) 40%, transparent 70%);
  box-shadow: 0 0 12px var(--orb-glow), 0 0 4px var(--orb-color);
  opacity: 0;
  animation: orbFloat linear infinite;
}

@keyframes orbFloat {
  0%   { opacity: 0; transform: translateY(0) scale(0.3); }
  10%  { opacity: 0.8; transform: translateY(-30px) scale(1); }
  50%  { opacity: 0.5; transform: translateY(-200px) scale(0.8); }
  90%  { opacity: 0.3; transform: translateY(-400px) scale(0.5); }
  100% { opacity: 0; transform: translateY(-500px) scale(0.2); }
}

/* ========================================
   NAVIGATION
======================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 4%;
  transition: all 0.4s ease;
  background: transparent;
}

nav.scrolled {
  background: rgba(7, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 4%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-icon {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.5));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s;
}

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

.nav-play {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-pink)) !important;
  color: white !important;
  padding: 0.5rem 1.5rem !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  transition: transform 0.3s, box-shadow 0.3s !important;
}

.nav-play::after {
  display: none !important;
}

.nav-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 600;
}

.hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.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-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 499;
  background: rgba(7, 10, 15, 0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  transition: color 0.3s;
}

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

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ========================================
   HERO
======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 4% 4rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(6, 182, 212, 0.08) 40%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseGlow 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.7; }
}

.hero-rays {
  position: absolute;
  width: 700px;
  height: 700px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  opacity: 0.06;
  animation: rotateRays 60s linear infinite;
  pointer-events: none;
}

@keyframes rotateRays {
  from { transform: translate(-50%, -55%) rotate(0deg); }
  to { transform: translate(-50%, -55%) rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-icon {
  width: 18px;
  height: 18px;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 1.5rem;
}

.hero-line {
  display: block;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.hero-line.accent {
  display: flex;
  gap: 0;
  font-size: clamp(4rem, 14vw, 10rem);
  letter-spacing: 6px;
  filter: drop-shadow(0 0 50px rgba(124, 58, 237, 0.25));
}

.letter {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-pink) 40%,
    var(--accent-orange) 70%,
    var(--accent-yellow) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateY(60px) scale(0.5) rotateX(40deg);
  animation:
    letterReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    letterShimmer 4s ease-in-out infinite;
  animation-delay:
    calc(var(--i) * 0.08s),
    calc(1s + var(--i) * 0.15s);
}

@keyframes letterReveal {
  0%   { opacity: 0; transform: translateY(60px) scale(0.5) rotateX(40deg); filter: blur(8px); }
  60%  { opacity: 1; transform: translateY(-8px) scale(1.05) rotateX(0deg); filter: blur(0); }
  80%  { transform: translateY(3px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotateX(0deg); filter: blur(0); }
}

@keyframes letterShimmer {
  0%, 100% { background-position: 0% 50%; filter: brightness(1); }
  25%      { filter: brightness(1.3); }
  50%      { background-position: 100% 50%; filter: brightness(1); }
  75%      { filter: brightness(1.15); }
}

.letter:hover {
  animation: letterBounce 0.5s ease;
  filter: brightness(1.4) drop-shadow(0 0 20px rgba(124, 58, 237, 0.6));
}

@keyframes letterBounce {
  0%   { transform: translateY(0) scale(1); }
  30%  { transform: translateY(-15px) scale(1.15); }
  50%  { transform: translateY(-10px) scale(1.1) rotate(-3deg); }
  70%  { transform: translateY(-12px) scale(1.12) rotate(2deg); }
  100% { transform: translateY(0) scale(1) rotate(0deg); }
}

/* Tagline words */
.hero-line.small {
  display: flex;
  gap: clamp(0.5rem, 2vw, 1.2rem);
  font-size: clamp(1rem, 3vw, 2rem);
  letter-spacing: 4px;
  font-weight: 500;
  margin-top: 0.5rem;
}

.tagword {
  opacity: 0;
  transform: translateY(20px);
  animation: tagReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(0.8s + var(--t) * 0.2s);
}

.tagword:nth-child(1) { color: var(--accent-green); }
.tagword:nth-child(2) { color: var(--accent-orange); }
.tagword:nth-child(3) { color: var(--accent-pink); }

@keyframes tagReveal {
  0%   { opacity: 0; transform: translateY(20px) scale(0.9); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Play Button */
.btn-play {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px;
  border-radius: 60px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-pink), var(--accent-orange));
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-play:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.4);
}

.btn-play-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.5rem;
  border-radius: 57px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: background 0.3s;
}

.btn-play:hover .btn-play-inner {
  background: transparent;
}

.btn-play.large {
  padding: 4px;
}

.btn-play.large .btn-play-inner {
  padding: 1.1rem 3rem;
  font-size: 1.25rem;
}

.btn-secondary {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border: 1px solid var(--border);
  border-radius: 60px;
  transition: all 0.3s;
}

.btn-secondary:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-icon {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.stat div {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.stat strong {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
}

.stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

/* ========================================
   ANIMATED SNAKES
======================================== */
.snakes-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.snake {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* --- Shared segment styles --- */
.snake-head,
.snake-body {
  position: absolute;
  border-radius: 50%;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.snake-head {
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eye {
  position: absolute;
  width: 35%;
  height: 35%;
  background: white;
  border-radius: 50%;
  top: 18%;
  box-shadow: inset 2px 1px 0 1px #111;
}

.eye.left { left: 12%; }
.eye.right { right: 12%; }

/* ========================
   SNAKE 1: Purple/Pink
======================== */
.snake-1 .snake-head {
  width: 32px; height: 32px;
  background: radial-gradient(circle at 40% 35%, #f0abfc, #c026d3 60%, #7c3aed);
  box-shadow: 0 0 20px rgba(192,38,211,0.6), 0 0 40px rgba(124,58,237,0.3);
  animation: snake1Path 14s ease-in-out infinite;
}

.snake-1 .snake-body {
  width: 24px; height: 24px;
  background: radial-gradient(circle at 40% 35%, #e879f9, #a855f7 60%, #7c3aed);
  animation: snake1Path 14s ease-in-out infinite;
}

.snake-1 .b1  { animation-delay: 0.10s; opacity: 0.95; box-shadow: 0 0 14px rgba(168,85,247,0.5); }
.snake-1 .b2  { animation-delay: 0.20s; opacity: 0.90; box-shadow: 0 0 12px rgba(168,85,247,0.4); }
.snake-1 .b3  { animation-delay: 0.30s; opacity: 0.85; box-shadow: 0 0 10px rgba(168,85,247,0.35); width: 22px; height: 22px; }
.snake-1 .b4  { animation-delay: 0.40s; opacity: 0.78; box-shadow: 0 0 10px rgba(168,85,247,0.3); width: 22px; height: 22px; }
.snake-1 .b5  { animation-delay: 0.50s; opacity: 0.70; box-shadow: 0 0 8px rgba(168,85,247,0.25); width: 20px; height: 20px; }
.snake-1 .b6  { animation-delay: 0.60s; opacity: 0.60; box-shadow: 0 0 8px rgba(168,85,247,0.2); width: 20px; height: 20px; }
.snake-1 .b7  { animation-delay: 0.70s; opacity: 0.48; box-shadow: 0 0 6px rgba(168,85,247,0.15); width: 18px; height: 18px; }
.snake-1 .b8  { animation-delay: 0.80s; opacity: 0.36; box-shadow: 0 0 6px rgba(168,85,247,0.1); width: 16px; height: 16px; }
.snake-1 .b9  { animation-delay: 0.90s; opacity: 0.24; width: 14px; height: 14px; }
.snake-1 .b10 { animation-delay: 1.00s; opacity: 0.14; width: 10px; height: 10px; }

@keyframes snake1Path {
  0%   { left: -5%;  top: 75%; }
  15%  { left: 12%;  top: 60%; }
  30%  { left: 28%;  top: 78%; }
  45%  { left: 45%;  top: 55%; }
  60%  { left: 62%;  top: 72%; }
  75%  { left: 78%;  top: 52%; }
  90%  { left: 93%;  top: 68%; }
  100% { left: 108%; top: 58%; }
}

/* ========================
   SNAKE 2: Cyan/Blue
======================== */
.snake-2 .snake-head {
  width: 28px; height: 28px;
  background: radial-gradient(circle at 40% 35%, #a5f3fc, #06b6d4 60%, #0284c7);
  box-shadow: 0 0 18px rgba(6,182,212,0.6), 0 0 35px rgba(2,132,199,0.3);
  animation: snake2Path 18s ease-in-out infinite;
}

.snake-2 .snake-body {
  width: 20px; height: 20px;
  background: radial-gradient(circle at 40% 35%, #67e8f9, #22d3ee 60%, #0891b2);
  animation: snake2Path 18s ease-in-out infinite;
}

.snake-2 .b1 { animation-delay: 0.10s; opacity: 0.92; box-shadow: 0 0 12px rgba(6,182,212,0.45); }
.snake-2 .b2 { animation-delay: 0.20s; opacity: 0.84; box-shadow: 0 0 10px rgba(6,182,212,0.35); }
.snake-2 .b3 { animation-delay: 0.30s; opacity: 0.74; box-shadow: 0 0 8px rgba(6,182,212,0.3); width: 18px; height: 18px; }
.snake-2 .b4 { animation-delay: 0.40s; opacity: 0.62; box-shadow: 0 0 8px rgba(6,182,212,0.25); width: 18px; height: 18px; }
.snake-2 .b5 { animation-delay: 0.50s; opacity: 0.50; box-shadow: 0 0 6px rgba(6,182,212,0.2); width: 16px; height: 16px; }
.snake-2 .b6 { animation-delay: 0.60s; opacity: 0.38; box-shadow: 0 0 6px rgba(6,182,212,0.15); width: 14px; height: 14px; }
.snake-2 .b7 { animation-delay: 0.70s; opacity: 0.26; width: 12px; height: 12px; }
.snake-2 .b8 { animation-delay: 0.80s; opacity: 0.14; width: 10px; height: 10px; }

@keyframes snake2Path {
  0%   { right: -5%;  top: 18%; left: auto; }
  12%  { right: 8%;   top: 30%; left: auto; }
  25%  { right: 22%;  top: 15%; left: auto; }
  37%  { right: 38%;  top: 32%; left: auto; }
  50%  { right: 52%;  top: 12%; left: auto; }
  62%  { right: 65%;  top: 28%; left: auto; }
  75%  { right: 78%;  top: 10%; left: auto; }
  87%  { right: 90%;  top: 25%; left: auto; }
  100% { right: 108%; top: 18%; left: auto; }
}

/* ========================
   SNAKE 3: Orange/Yellow (largest)
======================== */
.snake-3 .snake-head {
  width: 38px; height: 38px;
  background: radial-gradient(circle at 40% 35%, #fde68a, #f59e0b 50%, #ea580c);
  box-shadow: 0 0 22px rgba(245,158,11,0.6), 0 0 45px rgba(234,88,12,0.3);
  animation: snake3Path 20s ease-in-out infinite;
}

.snake-3 .snake-body {
  width: 28px; height: 28px;
  background: radial-gradient(circle at 40% 35%, #fcd34d, #f97316 60%, #ea580c);
  animation: snake3Path 20s ease-in-out infinite;
}

.snake-3 .b1  { animation-delay: 0.09s; opacity: 0.95; box-shadow: 0 0 16px rgba(249,115,22,0.5); }
.snake-3 .b2  { animation-delay: 0.18s; opacity: 0.90; box-shadow: 0 0 14px rgba(249,115,22,0.45); }
.snake-3 .b3  { animation-delay: 0.27s; opacity: 0.85; box-shadow: 0 0 12px rgba(249,115,22,0.4); width: 26px; height: 26px; }
.snake-3 .b4  { animation-delay: 0.36s; opacity: 0.78; box-shadow: 0 0 10px rgba(249,115,22,0.35); width: 26px; height: 26px; }
.snake-3 .b5  { animation-delay: 0.45s; opacity: 0.70; box-shadow: 0 0 10px rgba(249,115,22,0.3); width: 24px; height: 24px; }
.snake-3 .b6  { animation-delay: 0.54s; opacity: 0.62; box-shadow: 0 0 8px rgba(249,115,22,0.25); width: 24px; height: 24px; }
.snake-3 .b7  { animation-delay: 0.63s; opacity: 0.52; box-shadow: 0 0 8px rgba(249,115,22,0.2); width: 22px; height: 22px; }
.snake-3 .b8  { animation-delay: 0.72s; opacity: 0.42; box-shadow: 0 0 6px rgba(249,115,22,0.15); width: 20px; height: 20px; }
.snake-3 .b9  { animation-delay: 0.81s; opacity: 0.32; width: 18px; height: 18px; }
.snake-3 .b10 { animation-delay: 0.90s; opacity: 0.24; width: 16px; height: 16px; }
.snake-3 .b11 { animation-delay: 0.99s; opacity: 0.16; width: 12px; height: 12px; }
.snake-3 .b12 { animation-delay: 1.08s; opacity: 0.08; width: 8px; height: 8px; }

@keyframes snake3Path {
  0%   { left: -6%;  top: 40%; }
  10%  { left: 5%;   top: 50%; }
  20%  { left: 16%;  top: 35%; }
  30%  { left: 28%;  top: 48%; }
  40%  { left: 40%;  top: 32%; }
  50%  { left: 52%;  top: 46%; }
  60%  { left: 64%;  top: 30%; }
  70%  { left: 75%;  top: 44%; }
  80%  { left: 86%;  top: 28%; }
  90%  { left: 96%;  top: 42%; }
  100% { left: 110%; top: 36%; }
}

@media (max-width: 768px) {
  .snakes-container { display: none; }
}

/* ========================================
   TRAIL MARQUEE
======================================== */
.trail-marquee {
  position: relative;
  padding: 1.5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.trail-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.trail-item img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.08);
}

.trail-item span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ========================================
   SECTIONS COMMON
======================================== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.section-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ========================================
   FEATURES
======================================== */
.features {
  padding: 6rem 4%;
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0;
  transform: translateY(40px);
  position: relative;
  overflow: hidden;
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--card-accent, var(--accent-primary)), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.feature-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all 0.3s;
}

.feature-card:hover .feature-icon-wrap {
  background: rgba(124, 58, 237, 0.15);
  transform: scale(1.08);
}

.feature-icon-wrap img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========================================
   SKINS SHOWCASE
======================================== */
.skins {
  padding: 6rem 4%;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.skins-showcase {
  display: flex;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0.5rem 4%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.skins-showcase::-webkit-scrollbar {
  display: none;
}

.skin-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s ease;
  cursor: default;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  min-width: 110px;
  flex-shrink: 0;
}

.skin-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.skin-card:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(124, 58, 237, 0.1);
}

.skin-preview {
  width: 90px;
  height: 90px;
  position: relative;
  transition: transform 0.3s;
}

.skin-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  transition: filter 0.3s;
}

.skin-card:hover .skin-preview {
  transform: scale(1.1) rotate(-5deg);
}

.skin-card:hover .skin-preview img {
  filter: drop-shadow(0 6px 20px rgba(124, 58, 237, 0.4));
}

.skin-card span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- All skins label --- */
.all-skins-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.skins-cta-icon {
  width: 24px;
  height: 24px;
}

.all-skins-label span {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-primary);
}

/* --- Scrolling all 24 heads --- */
.all-skins-scroll {
  overflow: hidden;
  margin-bottom: 2.5rem;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.all-skins-track {
  display: flex;
  gap: 1rem;
  animation: skinsScroll 40s linear infinite;
  width: max-content;
}

.all-skins-track img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.4));
  transition: transform 0.3s, filter 0.3s;
  cursor: default;
}

.all-skins-track img:hover {
  transform: scale(1.3);
  filter: drop-shadow(0 6px 16px rgba(124, 58, 237, 0.4));
  z-index: 2;
}

@keyframes skinsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- Trail colors row --- */
.trails-section {
  margin-top: 0.5rem;
}

.trails-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.trail-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.trail-card img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.08);
  transition: transform 0.3s, border-color 0.3s;
}

.trail-card:hover img {
  transform: scale(1.15);
  border-color: rgba(255,255,255,0.2);
}

.trail-card span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   HOW TO PLAY
======================================== */
.howto {
  padding: 6rem 4%;
  position: relative;
  z-index: 1;
}

.steps {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.step.visible {
  opacity: 1;
  transform: translateX(0);
}

.step-num {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.step-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.step-connector {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
  margin: 0.5rem 0 0.5rem 25px;
  opacity: 0.3;
}

/* ========================================
   CTA SECTION
======================================== */
.cta-section {
  position: relative;
  padding: 6rem 4%;
  text-align: center;
  overflow: hidden;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.cta-rays {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.04;
  animation: rotateRays 60s linear infinite;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.cta-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-trophy {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 8px 25px rgba(234, 179, 8, 0.3));
  animation: trophyBounce 3s ease-in-out infinite;
}

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

.cta-content h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-content h2 span {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-pink), var(--accent-orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ========================================
   FOOTER
======================================== */
footer {
  padding: 3rem 4%;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-icon {
  width: 24px;
  height: 24px;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
}

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

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

/* ========================================
   GAME OVERLAY
======================================== */
#game-wrapper {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  z-index: 10000;
  background: #000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#game-wrapper.active {
  display: flex;
  opacity: 1;
}

.game-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  z-index: 10001;
  pointer-events: none;
}

.game-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.close-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  pointer-events: auto;
  backdrop-filter: blur(10px);
}

.close-btn:hover {
  background: rgba(239, 68, 68, 0.8);
  border-color: rgba(239, 68, 68, 1);
  transform: rotate(90deg) scale(1.1);
}

/* Unity Overrides */
#unity-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw !important;
  width: 100dvw !important;
  height: 100vh !important;
  height: 100dvh !important;
  overflow: hidden;
  background: #000;
}

#unity-canvas {
  width: 100% !important;
  height: 100% !important;
}

#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

#unity-loading-text {
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#unity-progress-bar-empty {
  width: 240px;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-pink));
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
  transition: width 0.25s;
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  z-index: 10002;
  display: none;
}

#unity-footer { display: none; }

/* ========================================
   SCROLL ANIMATION DELAYS
======================================== */
.feature-card:nth-child(1) { transition-delay: 0s; }
.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.2s; }
.feature-card:nth-child(4) { transition-delay: 0.3s; }
.feature-card:nth-child(5) { transition-delay: 0.4s; }
.feature-card:nth-child(6) { transition-delay: 0.5s; }

.skin-card:nth-child(1) { transition-delay: 0s; }
.skin-card:nth-child(2) { transition-delay: 0.04s; }
.skin-card:nth-child(3) { transition-delay: 0.08s; }
.skin-card:nth-child(4) { transition-delay: 0.12s; }
.skin-card:nth-child(5) { transition-delay: 0.16s; }
.skin-card:nth-child(6) { transition-delay: 0.2s; }
.skin-card:nth-child(7) { transition-delay: 0.24s; }
.skin-card:nth-child(8) { transition-delay: 0.28s; }

.step:nth-child(1) { transition-delay: 0s; }
.step:nth-child(3) { transition-delay: 0.15s; }
.step:nth-child(5) { transition-delay: 0.3s; }
.step:nth-child(7) { transition-delay: 0.45s; }

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 7rem 5% 4rem;
    min-height: auto;
  }

  .hero-stats {
    gap: 1.2rem;
  }

  .stat-divider {
    display: none;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .skins-showcase {
    gap: 0.6rem;
    justify-content: flex-start;
    padding: 0.5rem 5%;
  }

  .skin-card {
    min-width: 90px;
    padding: 0.6rem 0.5rem;
  }

  .skin-preview {
    width: 58px;
    height: 58px;
  }

  .skin-card span {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
  }

  .all-skins-track img {
    width: 48px;
    height: 48px;
  }

  .trails-row {
    gap: 0.6rem;
  }

  .trail-card img {
    width: 36px;
    height: 36px;
  }

  .trail-card span {
    font-size: 0.6rem;
  }

  .step {
    gap: 1rem;
  }

  .step-num {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .step-connector {
    margin-left: 21px;
  }

  .hero-line.small {
    letter-spacing: 2px;
    gap: 0.4rem;
  }

  .snakes-container {
    display: none;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 0.75rem 4%;
  }

  .nav-brand span {
    font-size: 1rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.3rem 1rem;
  }

  .btn-play-inner {
    padding: 0.75rem 1.8rem;
    font-size: 1rem;
  }

  .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .features, .skins, .howto, .cta-section {
    padding: 4rem 5%;
  }
}

/* ========================================
   SELECTION & SCROLLBAR
======================================== */
::selection {
  background: rgba(124, 58, 237, 0.4);
  color: white;
}

::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.5);
}

/* ========================================
   ROTATE DEVICE PROMPT
======================================== */
#rotate-prompt {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 100;
  background: #070a0f;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
}

.rotate-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem;
  max-width: 320px;
}

.rotate-icon {
  width: 72px;
  height: 72px;
  color: var(--accent-primary);
  animation: rotatePhone 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.4));
}

.rotate-arrow {
  width: 36px;
  height: 36px;
  color: var(--accent-pink);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes rotatePhone {
  0%, 100% { transform: rotate(0deg); }
  30%, 70% { transform: rotate(90deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

#rotate-prompt p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

#rotate-prompt strong {
  color: var(--text);
  font-size: 1.2rem;
  display: block;
  margin-top: 0.25rem;
}

/* --- CSS-only portrait/landscape handling (mobile) --- */
@media (max-width: 1024px) and (orientation: portrait) {
  #game-wrapper.active #rotate-prompt {
    display: flex !important;
  }

  #game-wrapper.active #unity-container {
    visibility: hidden !important;
  }
}

@media (max-width: 1024px) and (orientation: landscape) {
  #game-wrapper.active #rotate-prompt {
    display: none !important;
  }

  #game-wrapper.active #unity-container {
    visibility: visible !important;
  }
}

/* ========================================
   MOBILE GAME IMPROVEMENTS
======================================== */
#unity-canvas {
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.unity-mobile {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
  background: #000;
}

.unity-mobile #unity-canvas {
  width: 100% !important;
  height: 100% !important;
}

#game-wrapper.active .game-header {
  z-index: 10001;
}

@media (max-width: 768px) {
  .game-header {
    padding: 0.5rem 1rem;
  }

  .game-logo {
    font-size: 0.9rem;
  }

  .game-logo img {
    width: 22px !important;
    height: 22px !important;
  }

  .close-btn {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
}

/* Install hint banner */
.install-hint {
  display: none;
  align-items: center;
  gap: 0.35rem;
  background: rgba(124, 58, 237, 0.85);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  pointer-events: auto;
  white-space: nowrap;
  font-family: var(--font);
}

.install-hint svg {
  flex-shrink: 0;
  vertical-align: middle;
}

.install-hint strong {
  font-weight: 700;
}

.install-hint-close {
  background: none;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 0.2rem;
  margin-left: 0.3rem;
  opacity: 0.7;
}

.install-hint-close:hover {
  opacity: 1;
}

@media (max-width: 1024px) and (orientation: landscape) {
  .game-header {
    padding: 0.2rem 0.5rem;
    justify-content: flex-end;
  }

  .game-logo {
    display: none;
  }

  .install-hint.show {
    display: flex;
  }

  .close-btn {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
}
