/* ========== Theme ========== */
:root {
  --bg: #0f1117;
  --surface: #161b22;
  --surface-2: #1e2530;
  --text: #ffffff;
  --muted: #aab2c0;
  --primary: #00e0ff;
  --primary-600: #00b8cc;
  --accent: #00ffa3;
  --discord: #5865F2;
  --discord-600: #404EED;
  --card-border: rgba(255, 255, 255, 0.08);
  --glass: rgba(22, 27, 34, 0.6);
  --glass-strong: rgba(22, 27, 34, 0.8);
  --shadow-1: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 12px 32px rgba(0, 0, 0, 0.45);
  
  /* Gaming-specific colors */
  --gaming-red: #ff4757;
  --gaming-orange: #ffa502;
  --gaming-purple: #a55eea;
  --gaming-pink: #fd79a8;
  --gaming-yellow: #feca57;
  --gaming-cyan: #48dbfb;
  --gaming-green: #1dd1a1;
  
  /* Gaming effects */
  --neon-glow: 0 0 20px rgba(0, 224, 255, 0.5);
  --neon-glow-strong: 0 0 30px rgba(0, 224, 255, 0.8);
  --gaming-shadow: 0 8px 32px rgba(0, 224, 255, 0.2);
  --gaming-border: 2px solid rgba(0, 224, 255, 0.3);
}

/* ========== Base ========== */
* { 
  box-sizing: border-box; 
}

html {
  perspective: 1000px;
  transform-style: preserve-3d;
}

body {
  transform-style: preserve-3d;
}
html, body { height: 100%; }
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text);
  background: linear-gradient(180deg, #10151d 0%, var(--bg) 30%);
  position: relative;
  overflow-x: hidden;
}

/* Rich Aurora Background Layers */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(0, 224, 255, 0.18), transparent 60%),
    radial-gradient(1000px 500px at 110% 10%, rgba(0, 255, 163, 0.15), transparent 60%),
    radial-gradient(800px 400px at 50% 50%, rgba(0, 224, 255, 0.08), transparent 50%);
  animation: aurora-float 20s ease-in-out infinite, aurora-pulse 8s ease-in-out infinite;
  filter: blur(1px);
}

body::after {
  background: 
    radial-gradient(800px 400px at 80% -20%, rgba(0, 224, 255, 0.12), transparent 50%),
    radial-gradient(600px 300px at 20% 80%, rgba(0, 255, 163, 0.10), transparent 50%),
    radial-gradient(1000px 500px at 90% 90%, rgba(0, 224, 255, 0.06), transparent 60%);
  animation: aurora-float 25s ease-in-out infinite reverse, aurora-pulse 12s ease-in-out infinite reverse;
  filter: blur(2px);
}

/* Additional aurora layer for more complexity */
body {
  position: relative;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(600px 300px at 30% 70%, rgba(0, 255, 163, 0.08), transparent 50%),
    radial-gradient(400px 200px at 70% 30%, rgba(0, 224, 255, 0.06), transparent 50%);
  pointer-events: none;
  z-index: -2;
  animation: aurora-drift 35s ease-in-out infinite, aurora-breathe 15s ease-in-out infinite;
  filter: blur(3px);
}

/* Floating particles for extra richness */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(2px 2px at 20% 30%, rgba(0, 224, 255, 0.8), transparent 50%),
    radial-gradient(2px 2px at 80% 20%, rgba(0, 255, 163, 0.6), transparent 50%),
    radial-gradient(1px 1px at 40% 70%, rgba(0, 224, 255, 0.4), transparent 50%),
    radial-gradient(1px 1px at 60% 80%, rgba(0, 255, 163, 0.5), transparent 50%),
    radial-gradient(2px 2px at 90% 60%, rgba(0, 224, 255, 0.7), transparent 50%),
    radial-gradient(1px 1px at 10% 90%, rgba(0, 255, 163, 0.3), transparent 50%);
  pointer-events: none;
  z-index: -3;
  animation: particles-float 60s linear infinite;
}

/* Gaming-themed decorative elements */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    /* Circuit board patterns */
    linear-gradient(90deg, transparent 49%, rgba(0, 224, 255, 0.1) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(0, 224, 255, 0.1) 50%, transparent 51%),
    /* Gaming grid overlay */
    repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(0, 224, 255, 0.03) 2px, rgba(0, 224, 255, 0.03) 4px),
    /* Hexagonal patterns */
    radial-gradient(circle at 25% 25%, rgba(0, 255, 163, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(0, 224, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -4;
  animation: gaming-patterns 120s linear infinite;
}

@keyframes gaming-patterns {
  0% { 
    transform: translateX(0px) translateY(0px) rotate(0deg);
  }
  100% { 
    transform: translateX(-100px) translateY(-50px) rotate(360deg);
  }
}

@keyframes particles-float {
  0% { 
    transform: translateY(0px) translateX(0px);
  }
  25% { 
    transform: translateY(-20px) translateX(10px);
  }
  50% { 
    transform: translateY(-40px) translateX(-5px);
  }
  75% { 
    transform: translateY(-20px) translateX(15px);
  }
  100% { 
    transform: translateY(0px) translateX(0px);
  }
}

@keyframes aurora-float {
  0% { 
    transform: translateX(-8%) translateY(-8%) rotate(0deg) scale(1);
    opacity: 0.7;
  }
  20% { 
    transform: translateX(5%) translateY(-12%) rotate(3deg) scale(1.05);
    opacity: 1;
  }
  40% { 
    transform: translateX(-3%) translateY(-5%) rotate(-2deg) scale(0.95);
    opacity: 0.8;
  }
  60% { 
    transform: translateX(8%) translateY(-10%) rotate(1deg) scale(1.02);
    opacity: 0.9;
  }
  80% { 
    transform: translateX(-5%) translateY(-7%) rotate(-1deg) scale(0.98);
    opacity: 0.85;
  }
  100% { 
    transform: translateX(-8%) translateY(-8%) rotate(0deg) scale(1);
    opacity: 0.7;
  }
}

@keyframes aurora-pulse {
  0%, 100% { 
    opacity: 0.6;
    transform: scale(1);
  }
  50% { 
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes aurora-drift {
  0% { 
    transform: translateX(-10%) translateY(-5%) rotate(0deg);
  }
  25% { 
    transform: translateX(5%) translateY(-15%) rotate(5deg);
  }
  50% { 
    transform: translateX(-5%) translateY(-8%) rotate(-3deg);
  }
  75% { 
    transform: translateX(10%) translateY(-12%) rotate(2deg);
  }
  100% { 
    transform: translateX(-10%) translateY(-5%) rotate(0deg);
  }
}

@keyframes aurora-breathe {
  0%, 100% { 
    opacity: 0.4;
    transform: scale(0.9);
  }
  50% { 
    opacity: 0.8;
    transform: scale(1.1);
  }
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

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

/* Gaming-themed text selection */
::selection {
  background: rgba(0, 224, 255, 0.3);
  color: #fff;
  text-shadow: 0 0 5px rgba(0, 224, 255, 0.8);
}

::-moz-selection {
  background: rgba(0, 224, 255, 0.3);
  color: #fff;
  text-shadow: 0 0 5px rgba(0, 224, 255, 0.8);
}

/* Focus states */
button:focus, a:focus, input:focus, select:focus, textarea:focus { outline: none; }
.focus-ring { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 10px; }

/* ========== Navbar ========== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(140%) blur(10px);
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.9), rgba(15, 15, 15, 0.7));
  border-bottom: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
}

.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: 
    radial-gradient(400px 200px at 50% 0%, rgba(0, 224, 255, 0.08), transparent 80%),
    radial-gradient(300px 150px at 30% 100%, rgba(0, 255, 163, 0.05), transparent 70%);
  pointer-events: none;
  animation: navbar-aurora 35s ease-in-out infinite, navbar-pulse 10s ease-in-out infinite;
}

.navbar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: 
    radial-gradient(250px 125px at 70% 50%, rgba(0, 224, 255, 0.03), transparent 60%),
    radial-gradient(200px 100px at 20% 80%, rgba(0, 255, 163, 0.02), transparent 50%);
  pointer-events: none;
  animation: navbar-drift 45s ease-in-out infinite reverse, navbar-breathe 15s ease-in-out infinite;
}

@keyframes navbar-aurora {
  0% { 
    transform: translateX(-2%) translateY(-1%) scale(1) rotate(0deg);
    opacity: 0.2;
  }
  25% { 
    transform: translateX(3%) translateY(-2%) scale(1.02) rotate(1deg);
    opacity: 0.5;
  }
  50% { 
    transform: translateX(-1%) translateY(-3%) scale(0.98) rotate(-1deg);
    opacity: 0.4;
  }
  75% { 
    transform: translateX(2%) translateY(-1%) scale(1.01) rotate(0.5deg);
    opacity: 0.6;
  }
  100% { 
    transform: translateX(-2%) translateY(-1%) scale(1) rotate(0deg);
    opacity: 0.2;
  }
}

@keyframes navbar-pulse {
  0%, 100% { 
    opacity: 0.2;
    transform: scale(1);
  }
  50% { 
    opacity: 0.4;
    transform: scale(1.03);
  }
}

@keyframes navbar-drift {
  0% { 
    transform: translateX(-3%) translateY(-2%) rotate(0deg);
  }
  33% { 
    transform: translateX(2%) translateY(-4%) rotate(2deg);
  }
  66% { 
    transform: translateX(-1%) translateY(-3%) rotate(-1deg);
  }
  100% { 
    transform: translateX(-3%) translateY(-2%) rotate(0deg);
  }
}

@keyframes navbar-breathe {
  0%, 100% { 
    opacity: 0.1;
    transform: scale(0.95);
  }
  50% { 
    opacity: 0.3;
    transform: scale(1.05);
  }
}
.nav-container { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 2rem; }
.nav-logo { 
  display: flex; 
  align-items: center; 
  font-size: 1.5rem; 
  font-weight: 700; 
  gap: 0.5rem; 
  color: inherit;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.nav-logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 224, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.nav-logo:hover::before {
  left: 100%;
}

.nav-logo:hover {
  transform: scale(1.05);
  text-shadow: 0 0 10px rgba(0, 224, 255, 0.3);
}

.brand-logo { 
  width: 28px; 
  height: 28px; 
  border-radius: 6px; 
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  transition: all 0.3s ease;
  animation: logo-float 4s ease-in-out infinite;
}

.nav-logo:hover .brand-logo {
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 0 20px rgba(0, 224, 255, 0.4);
  filter: drop-shadow(0 0 8px rgba(0, 224, 255, 0.6));
}

@keyframes logo-float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg);
  }
  25% { 
    transform: translateY(-2px) rotate(2deg);
  }
  50% { 
    transform: translateY(-1px) rotate(0deg);
  }
  75% { 
    transform: translateY(-3px) rotate(-2deg);
  }
}
.nav-menu { display: flex; gap: 2rem; }
.nav-link { 
  font-weight: 500; 
  color: var(--muted); 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 224, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.nav-link:hover {
  color: var(--primary);
  transform: translateY(-2px);
  text-shadow: 0 0 8px rgba(0, 224, 255, 0.5);
  background: rgba(0, 224, 255, 0.05);
  box-shadow: 0 4px 15px rgba(0, 224, 255, 0.2);
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:active {
  transform: translateY(0px) scale(0.95);
  transition: all 0.1s ease;
}

.nav-link.active { 
  color: #fff; 
  position: relative;
  background: rgba(0, 224, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 224, 255, 0.3);
  animation: nav-glow 2s ease-in-out infinite;
}

.nav-link.active::after { 
  content: ""; 
  position: absolute; 
  left: 0; 
  right: 0; 
  bottom: -8px; 
  height: 2px; 
  background: linear-gradient(90deg, var(--primary), var(--accent)); 
  border-radius: 2px;
  animation: nav-underline 3s ease-in-out infinite;
}

.nav-link:focus-visible { 
  outline: 2px solid var(--primary); 
  outline-offset: 4px; 
  border-radius: 8px;
  animation: nav-focus 0.3s ease-out;
}

@keyframes nav-glow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.3);
  }
  50% { 
    box-shadow: 0 0 30px rgba(0, 224, 255, 0.5);
  }
}

@keyframes nav-underline {
  0%, 100% { 
    transform: scaleX(1);
    opacity: 1;
  }
  50% { 
    transform: scaleX(1.1);
    opacity: 0.8;
  }
}

@keyframes nav-focus {
  0% { 
    transform: scale(1);
  }
  50% { 
    transform: scale(1.05);
  }
  100% { 
    transform: scale(1);
  }
}
.nav-toggle { 
  display: none; 
  flex-direction: column; 
  gap: 5px; 
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 224, 255, 0.1), rgba(0, 255, 163, 0.1));
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.nav-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 224, 255, 0.3);
}

.nav-toggle.active {
  animation: toggle-pulse 1s ease-in-out infinite;
}

.bar { 
  width: 25px; 
  height: 3px; 
  background: #fff; 
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-toggle:hover .bar {
  background: var(--primary);
  box-shadow: 0 0 8px rgba(0, 224, 255, 0.5);
}

.nav-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: var(--primary);
}

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.nav-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: var(--primary);
}

@keyframes toggle-pulse {
  0%, 100% { 
    box-shadow: 0 0 15px rgba(0, 224, 255, 0.3);
  }
  50% { 
    box-shadow: 0 0 25px rgba(0, 224, 255, 0.5);
  }
}

/* Backdrop for mobile nav */
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
  display: none; z-index: 90;
}
.nav-backdrop.active { display: block; }

/* ========== Hero ========== */
.hero {
  padding: 5rem 0 3rem 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 20% 20%, rgba(0, 224, 255, 0.18), transparent 60%),
              radial-gradient(600px 300px at 80% 10%, rgba(0, 255, 163, 0.15), transparent 60%),
              radial-gradient(400px 200px at 50% 50%, rgba(0, 224, 255, 0.08), transparent 50%);
  filter: blur(20px);
  pointer-events: none;
  animation: hero-aurora 18s ease-in-out infinite, hero-pulse 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 60% 60%, rgba(0, 224, 255, 0.12), transparent 50%),
              radial-gradient(300px 150px at 40% 80%, rgba(0, 255, 163, 0.10), transparent 50%),
              radial-gradient(500px 250px at 70% 30%, rgba(0, 224, 255, 0.06), transparent 60%);
  filter: blur(15px);
  pointer-events: none;
  animation: hero-aurora 22s ease-in-out infinite reverse, hero-pulse 8s ease-in-out infinite reverse;
}

/* Additional hero aurora layer */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(300px 150px at 30% 70%, rgba(0, 255, 163, 0.08), transparent 50%),
    radial-gradient(200px 100px at 70% 40%, rgba(0, 224, 255, 0.06), transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: hero-drift 28s ease-in-out infinite, hero-breathe 10s ease-in-out infinite;
  filter: blur(25px);
}

@keyframes hero-aurora {
  0% { 
    transform: translateX(-5%) translateY(-5%) rotate(0deg) scale(1);
    opacity: 0.6;
  }
  25% { 
    transform: translateX(8%) translateY(-10%) rotate(4deg) scale(1.08);
    opacity: 1;
  }
  50% { 
    transform: translateX(-3%) translateY(-8%) rotate(-2deg) scale(0.92);
    opacity: 0.7;
  }
  75% { 
    transform: translateX(5%) translateY(-12%) rotate(2deg) scale(1.05);
    opacity: 0.9;
  }
  100% { 
    transform: translateX(-5%) translateY(-5%) rotate(0deg) scale(1);
    opacity: 0.6;
  }
}

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

@keyframes hero-drift {
  0% { 
    transform: translateX(-8%) translateY(-3%) rotate(0deg);
  }
  33% { 
    transform: translateX(6%) translateY(-12%) rotate(6deg);
  }
  66% { 
    transform: translateX(-4%) translateY(-8%) rotate(-4deg);
  }
  100% { 
    transform: translateX(-8%) translateY(-3%) rotate(0deg);
  }
}

@keyframes hero-breathe {
  0%, 100% { 
    opacity: 0.3;
    transform: scale(0.85);
  }
  50% { 
    opacity: 0.7;
    transform: scale(1.2);
  }
}
.hero-container { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 2rem; 
  flex-wrap: wrap; 
  gap: 2rem;
  perspective: 1000px;
}

.hero-content { 
  max-width: 600px;
  animation: hero-content-float 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

.hero-title { 
  font-size: 3.2rem; 
  font-weight: 800; 
  margin: 0; 
  letter-spacing: 0.5px;
  animation: hero-title-glow 4s ease-in-out infinite;
  transform: translateZ(20px);
}

.gradient-text { 
  background: linear-gradient(90deg, var(--primary), var(--accent)); 
  background-clip: text; 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 8s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(0, 224, 255, 0.3));
}

.hero-tagline { 
  font-size: 1.35rem; 
  font-weight: 600; 
  margin: 0.75rem 0 1.5rem 0; 
  color: var(--muted);
  animation: hero-tagline-slide 5s ease-in-out infinite;
  transform: translateZ(10px);
}

.hero-description { 
  font-size: 1.05rem; 
  margin-bottom: 2rem; 
  color: #dbe3f0;
  animation: hero-description-fade 7s ease-in-out infinite;
  transform: translateZ(5px);
}

.hero-buttons { 
  display: flex; 
  gap: 1rem; 
  flex-wrap: wrap;
  transform-style: preserve-3d;
}

@keyframes hero-content-float {
  0%, 100% { 
    transform: translateY(0px) rotateX(0deg) rotateY(0deg);
  }
  25% { 
    transform: translateY(-5px) rotateX(2deg) rotateY(-1deg);
  }
  50% { 
    transform: translateY(-2px) rotateX(-1deg) rotateY(1deg);
  }
  75% { 
    transform: translateY(-8px) rotateX(1deg) rotateY(-2deg);
  }
}

@keyframes hero-title-glow {
  0%, 100% { 
    text-shadow: 0 0 20px rgba(0, 224, 255, 0.3);
  }
  50% { 
    text-shadow: 0 0 30px rgba(0, 224, 255, 0.6);
  }
}

@keyframes gradient-shift {
  0%, 100% { 
    background-position: 0% 50%;
  }
  50% { 
    background-position: 100% 50%;
  }
}

@keyframes hero-tagline-slide {
  0%, 100% { 
    transform: translateX(0px) translateZ(10px);
  }
  50% { 
    transform: translateX(5px) translateZ(15px);
  }
}

@keyframes hero-description-fade {
  0%, 100% { 
    opacity: 0.8;
    transform: translateZ(5px);
  }
  50% { 
    opacity: 1;
    transform: translateZ(10px);
  }
}

/* Buttons */
.btn {
  padding: 0.85rem 1.6rem; 
  border: none; 
  border-radius: 14px; 
  font-size: 1rem; 
  font-weight: 700; 
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px) rotateX(5deg) rotateY(-2deg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.btn:active { 
  transform: translateY(1px) scale(0.98) rotateX(2deg);
  transition: all 0.1s ease;
}

.btn-primary { 
  background: var(--primary); 
  color: #0a1018;
  animation: btn-primary-glow 3s ease-in-out infinite;
}

.btn-primary:hover { 
  background: var(--primary-600); 
  box-shadow: 0 15px 35px rgba(0, 224, 255, 0.4);
  transform: translateY(-3px) rotateX(8deg) rotateY(-3deg);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  animation: btn-secondary-pulse 4s ease-in-out infinite;
}

.btn-secondary:hover {
  background: var(--primary);
  color: #0a1018;
  box-shadow: 0 15px 35px rgba(0, 224, 255, 0.3);
  transform: translateY(-3px) rotateX(5deg) rotateY(2deg);
}

@keyframes btn-primary-glow {
  0%, 100% { 
    box-shadow: 0 8px 20px rgba(0, 224, 255, 0.2);
  }
  50% { 
    box-shadow: 0 8px 25px rgba(0, 224, 255, 0.4);
  }
}

@keyframes btn-secondary-pulse {
  0%, 100% { 
    border-color: var(--primary);
    box-shadow: 0 0 0 rgba(0, 224, 255, 0);
  }
  50% { 
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.3);
  }
}
.btn-secondary { background: var(--surface); color: #fff; border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: #0a1018; }
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { background: var(--discord-600); }
.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* Phone mock */
.hero-image { 
  flex: 1; 
  display: flex; 
  justify-content: center; 
  align-items: center;
  perspective: 1000px;
  transform-style: preserve-3d;
  animation: hero-image-float 8s ease-in-out infinite;
}

.phone-mockup { 
  width: 250px; 
  height: 500px; 
  background: var(--surface); 
  border-radius: 40px; 
  box-shadow: var(--shadow-2); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  position: relative; 
  border: 1px solid var(--card-border);
  transform-style: preserve-3d;
  animation: phone-3d-rotate 10s ease-in-out infinite;
  transition: all 0.3s ease;
}

.phone-mockup:hover {
  transform: rotateY(15deg) rotateX(5deg) scale(1.05);
  box-shadow: 0 25px 50px rgba(0, 224, 255, 0.2);
}

@keyframes hero-image-float {
  0%, 100% { 
    transform: translateY(0px) rotateY(0deg) rotateX(0deg);
  }
  25% { 
    transform: translateY(-10px) rotateY(5deg) rotateX(2deg);
  }
  50% { 
    transform: translateY(-5px) rotateY(-3deg) rotateX(-1deg);
  }
  75% { 
    transform: translateY(-15px) rotateY(8deg) rotateX(3deg);
  }
}

@keyframes phone-3d-rotate {
  0%, 100% { 
    transform: rotateY(0deg) rotateX(0deg) translateZ(0px);
  }
  25% { 
    transform: rotateY(5deg) rotateX(2deg) translateZ(10px);
  }
  50% { 
    transform: rotateY(-3deg) rotateX(-1deg) translateZ(5px);
  }
  75% { 
    transform: rotateY(8deg) rotateX(3deg) translateZ(15px);
  }
}
.phone-screen { width: 220px; height: 470px; background: #0f141b; border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; }
.app-preview { flex: 1; display: flex; flex-direction: column; }
.app-header { display: flex; align-items: center; gap: .5rem; padding: 1rem; background: var(--surface-2); border-bottom: 1px solid var(--card-border); }
.app-icon { font-size: 1.5rem; }
.app-title { font-weight: 700; font-size: 1.1rem; }
.app-content { flex: 1; display: flex; flex-direction: column; gap: .5rem; padding: 1rem; }
.chat-bubble { background: var(--surface-2); padding: .55rem 1rem; border-radius: 16px; align-self: flex-start; max-width: 80%; border: 1px solid var(--card-border); }

/* ========== Sections ========== */
.features { 
  padding: 4rem 0; 
  position: relative;
  overflow: hidden;
}

/* Gaming section dividers */
.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  border-radius: 2px;
  box-shadow: var(--neon-glow);
  animation: divider-pulse 3s ease-in-out infinite;
}

.features::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gaming-purple), var(--gaming-pink), transparent);
  border-radius: 2px;
  box-shadow: 0 0 15px rgba(165, 94, 234, 0.5);
  animation: divider-pulse 3s ease-in-out infinite reverse;
}

@keyframes divider-pulse {
  0%, 100% { 
    opacity: 0.6;
    transform: translateX(-50%) scaleX(1);
  }
  50% { 
    opacity: 1;
    transform: translateX(-50%) scaleX(1.2);
  }
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: 
    radial-gradient(800px 400px at 50% 20%, rgba(0, 224, 255, 0.05), transparent 70%),
    radial-gradient(600px 300px at 30% 80%, rgba(0, 255, 163, 0.04), transparent 60%);
  pointer-events: none;
  animation: features-aurora 30s ease-in-out infinite, features-pulse 12s ease-in-out infinite;
}

.features::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: 
    radial-gradient(500px 250px at 70% 40%, rgba(0, 224, 255, 0.03), transparent 50%),
    radial-gradient(400px 200px at 20% 60%, rgba(0, 255, 163, 0.02), transparent 50%);
  pointer-events: none;
  animation: features-drift 40s ease-in-out infinite reverse, features-breathe 18s ease-in-out infinite;
}

@keyframes features-aurora {
  0% { 
    transform: translateY(-3%) translateX(-2%) scale(1) rotate(0deg);
    opacity: 0.4;
  }
  25% { 
    transform: translateY(2%) translateX(3%) scale(1.03) rotate(2deg);
    opacity: 0.7;
  }
  50% { 
    transform: translateY(-1%) translateX(-1%) scale(0.98) rotate(-1deg);
    opacity: 0.6;
  }
  75% { 
    transform: translateY(3%) translateX(-3%) scale(1.02) rotate(1deg);
    opacity: 0.8;
  }
  100% { 
    transform: translateY(-3%) translateX(-2%) scale(1) rotate(0deg);
    opacity: 0.4;
  }
}

@keyframes features-pulse {
  0%, 100% { 
    opacity: 0.3;
    transform: scale(1);
  }
  50% { 
    opacity: 0.6;
    transform: scale(1.05);
  }
}

@keyframes features-drift {
  0% { 
    transform: translateX(-5%) translateY(-2%) rotate(0deg);
  }
  33% { 
    transform: translateX(3%) translateY(-8%) rotate(3deg);
  }
  66% { 
    transform: translateX(-2%) translateY(-5%) rotate(-2deg);
  }
  100% { 
    transform: translateX(-5%) translateY(-2%) rotate(0deg);
  }
}

@keyframes features-breathe {
  0%, 100% { 
    opacity: 0.2;
    transform: scale(0.9);
  }
  50% { 
    opacity: 0.5;
    transform: scale(1.1);
  }
}
.section-title { 
  font-size: 2.1rem; 
  font-weight: 800; 
  text-align: center; 
  margin-bottom: 2.2rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gaming-red), var(--gaming-orange), var(--gaming-yellow));
  border-radius: 2px;
  box-shadow: 0 0 15px rgba(255, 71, 87, 0.5);
  animation: title-underline 4s ease-in-out infinite;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--gaming-cyan), var(--gaming-green));
  border-radius: 1px;
  box-shadow: 0 0 10px rgba(72, 219, 251, 0.5);
  animation: title-underline 4s ease-in-out infinite reverse;
}

@keyframes title-underline {
  0%, 100% { 
    opacity: 0.7;
    transform: translateX(-50%) scaleX(1);
  }
  50% { 
    opacity: 1;
    transform: translateX(-50%) scaleX(1.3);
  }
}

/* Anchor offset for sticky navbar */
section { scroll-margin-top: 90px; }

.features-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 2rem;
  perspective: 1000px;
}

.feature-card { 
  background: var(--glass); 
  padding: 2rem; 
  border-radius: 18px; 
  border: 1px solid var(--card-border); 
  text-align: center; 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  box-shadow: var(--shadow-1); 
  position: relative; 
  overflow: hidden;
  transform-style: preserve-3d;
  animation: feature-card-float 6s ease-in-out infinite;
}

.feature-card:nth-child(1) { animation-delay: 0s; }
.feature-card:nth-child(2) { animation-delay: 1s; }
.feature-card:nth-child(3) { animation-delay: 2s; }
.feature-card:nth-child(4) { animation-delay: 3s; }
.feature-card:nth-child(5) { animation-delay: 4s; }
.feature-card:nth-child(6) { animation-delay: 5s; }
.feature-card::after { 
  content: ''; 
  position: absolute; 
  inset: -1px; 
  background: linear-gradient(45deg, transparent, rgba(0,224,255,0.05), transparent); 
  pointer-events: none; 
}

/* Gaming corner decorations */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(45deg, var(--primary), transparent);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  opacity: 0.6;
  animation: corner-glow 4s ease-in-out infinite;
}

.feature-card .corner-br {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(45deg, transparent, var(--accent));
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  opacity: 0.6;
  animation: corner-glow 4s ease-in-out infinite reverse;
}

@keyframes corner-glow {
  0%, 100% { 
    opacity: 0.4;
    filter: brightness(1);
  }
  50% { 
    opacity: 0.8;
    filter: brightness(1.5);
  }
}
.feature-card:hover { 
  transform: translateY(-10px) rotateX(5deg) rotateY(-5deg) scale(1.05); 
  box-shadow: 0 20px 40px rgba(0, 224, 255, 0.2); 
  border-color: rgba(0, 224, 255, 0.4);
}

@keyframes feature-card-float {
  0%, 100% { 
    transform: translateY(0px) rotateX(0deg) rotateY(0deg);
  }
  25% { 
    transform: translateY(-5px) rotateX(2deg) rotateY(-1deg);
  }
  50% { 
    transform: translateY(-2px) rotateX(-1deg) rotateY(1deg);
  }
  75% { 
    transform: translateY(-8px) rotateX(1deg) rotateY(-2deg);
  }
}
.feature-icon { 
  font-size: 2.5rem; 
  margin-bottom: 1rem; 
  color: var(--primary);
  animation: feature-icon-spin 8s linear infinite;
  transform-style: preserve-3d;
  display: inline-block;
}

.feature-card:hover .feature-icon {
  animation: feature-icon-hover 0.6s ease-out;
  transform: rotateY(360deg) scale(1.2);
  filter: drop-shadow(0 0 10px rgba(0, 224, 255, 0.5));
}

@keyframes feature-icon-spin {
  0% { 
    transform: rotateY(0deg) translateZ(0px);
  }
  100% { 
    transform: rotateY(360deg) translateZ(0px);
  }
}

@keyframes feature-icon-hover {
  0% { 
    transform: rotateY(0deg) scale(1);
  }
  50% { 
    transform: rotateY(180deg) scale(1.3);
  }
  100% { 
    transform: rotateY(360deg) scale(1.2);
  }
}

.screenshots { background: var(--surface); padding: 4rem 0; border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.screenshots-toolbar { display: flex; justify-content: center; margin: 0 auto 1.5rem; }
.pill-nav-container { display: flex; gap: 0.25rem; padding: 0.25rem; background: var(--surface-2); border-radius: 9999px; border: 1px solid var(--card-border); box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); transition: all 0.3s ease; }
.pill-nav-container:hover { box-shadow: inset 0 1px 3px rgba(0,0,0,0.15), 0 2px 8px rgba(0,224,255,0.1); }
.filter-chip { background: transparent; color: var(--muted); border: none; padding: 0.5rem 1rem; border-radius: 9999px; cursor: pointer; font-weight: 600; font-size: 0.9rem; transition: all 0.2s ease; position: relative; }
.filter-chip:hover { background: rgba(255,255,255,0.05); color: #dbe3f0; transform: translateY(-1px); }
.filter-chip.active { background: var(--glass); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.15); border: 1px solid rgba(0,224,255,0.3); }
.filter-chip:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.screenshots-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
  gap: 2rem; 
  justify-items: center;
  perspective: 1000px;
}

.screenshot-card { 
  background: var(--glass); 
  padding: 1.5rem; 
  border-radius: 18px; 
  border: 1px solid var(--card-border); 
  box-shadow: var(--shadow-1); 
  cursor: pointer; 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  animation: screenshot-card-float 8s ease-in-out infinite;
}

.screenshot-card:nth-child(1) { animation-delay: 0s; }
.screenshot-card:nth-child(2) { animation-delay: 1s; }
.screenshot-card:nth-child(3) { animation-delay: 2s; }
.screenshot-card:nth-child(4) { animation-delay: 3s; }
.screenshot-card:nth-child(5) { animation-delay: 4s; }
.screenshot-card:nth-child(6) { animation-delay: 5s; }
.screenshot-card:nth-child(7) { animation-delay: 6s; }
.screenshot-card:hover { 
  transform: translateY(-12px) rotateX(8deg) rotateY(-8deg) scale(1.08); 
  box-shadow: 0 25px 50px rgba(0, 224, 255, 0.3); 
  border-color: rgba(0, 224, 255, 0.5);
}

@keyframes screenshot-card-float {
  0%, 100% { 
    transform: translateY(0px) rotateX(0deg) rotateY(0deg);
  }
  25% { 
    transform: translateY(-3px) rotateX(2deg) rotateY(-1deg);
  }
  50% { 
    transform: translateY(-1px) rotateX(-1deg) rotateY(1deg);
  }
  75% { 
    transform: translateY(-5px) rotateX(1deg) rotateY(-2deg);
  }
}
.screenshot-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.screenshot-caption { 
  text-align: center; 
  margin-top: .9rem; 
  color: var(--muted); 
  font-weight: 600;
  position: relative;
  padding: 0.5rem;
  border-radius: 8px;
  background: rgba(0, 224, 255, 0.05);
  border: 1px solid rgba(0, 224, 255, 0.1);
  transition: all 0.3s ease;
}

.screenshot-caption::before {
  content: '▶';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 0.8rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.screenshot-card:hover .screenshot-caption {
  background: rgba(0, 224, 255, 0.1);
  border-color: rgba(0, 224, 255, 0.3);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 224, 255, 0.2);
}

.screenshot-card:hover .screenshot-caption::before {
  opacity: 1;
  left: -20px;
}
.phone-mockup-small { 
  width: 120px; 
  height: 240px; 
  background: var(--surface-2); 
  border-radius: 20px; 
  box-shadow: 0 4px 16px rgba(0,0,0,.25); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  position: relative; 
  margin: 0 auto; 
  border: 1px solid var(--card-border);
  transform-style: preserve-3d;
  transition: all 0.3s ease;
}

.screenshot-card:hover .phone-mockup-small {
  transform: rotateY(15deg) rotateX(5deg) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 224, 255, 0.3);
}
.phone-mockup-small { transition: transform 180ms ease; transform-style: preserve-3d; }
.phone-screen-small { width: 105px; height: 220px; background: #0f141b; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.screenshot-img-small { width: 100%; height: 100%; object-fit: cover; display: block; }
.screenshot-img-small.is-loading { 
  filter: blur(12px); 
  transform: scale(1.02);
  position: relative;
}

.screenshot-img-small.is-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border: 3px solid transparent;
  border-top: 3px solid var(--primary);
  border-right: 3px solid var(--accent);
  border-radius: 50%;
  animation: gaming-spinner 1s linear infinite;
  z-index: 1;
}

@keyframes gaming-spinner {
  0% { 
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% { 
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.screenshot-img-small.loaded { filter: none; transform: none; transition: filter 220ms ease, transform 220ms ease; }
.app-preview-small { flex: 1; display: flex; flex-direction: column; }
.app-header-small { display: flex; align-items: center; gap: .3rem; padding: .5rem; background: var(--surface); border-bottom: 1px solid var(--card-border); }
.app-icon-small { font-size: 1rem; }
.app-title-small { font-weight: 700; font-size: .9rem; }
.app-content-small { flex: 1; display: flex; flex-direction: column; gap: .3rem; padding: .5rem; }
.chat-bubble-small, .profile-item-small, .tournament-item-small { background: var(--surface); padding: .3rem .7rem; border-radius: 12px; align-self: flex-start; max-width: 90%; font-size: .85rem; border: 1px solid var(--card-border); }
/* Mini home mock elements */
.home-mock-small { gap: .45rem; }
.toolbar-small { display: grid; grid-template-columns: 18px 1fr 22px; align-items: center; gap: .35rem; background: var(--surface); border: 1px solid var(--card-border); border-radius: 10px; height: 20px; padding: 0 .35rem; }
.brand-dot-small { width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.brand-text-small { height: 8px; border-radius: 4px; background: rgba(255,255,255,.35); }
.icons-small { display: flex; gap: 4px; justify-content: flex-end; }
.dot-small { width: 6px; height: 6px; border-radius: 2px; background: rgba(255,255,255,.45); }
.search-small { height: 16px; border-radius: 8px; background: rgba(0,224,255,.2); border: 1px solid rgba(0,224,255,.35); }
.stats-row-small { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; }
.stat-card-small { height: 24px; border-radius: 8px; background: var(--surface); border: 1px solid var(--card-border); }
.tabs-small { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; margin-top: .1rem; }
.tab-small { height: 6px; border-radius: 999px; background: rgba(255,255,255,.18); }
.tab-small.active { background: linear-gradient(90deg, var(--primary), var(--accent)); }
.post-card-small { background: var(--surface); border: 1px solid var(--card-border); border-radius: 10px; padding: .35rem; display: grid; gap: .3rem; }
.thumb-small { height: 70px; border-radius: 8px; background: radial-gradient(220px 60px at 50% 50%, rgba(0, 224, 255, 0.18), rgba(0,0,0,.2)); border: 1px solid var(--card-border); }
.bar-small { height: 6px; border-radius: 999px; background: rgba(255,255,255,.22); }
.bar-small.short { width: 60%; }
.bottom-nav-small { display: grid; grid-template-columns: repeat(5, 1fr); gap: .3rem; margin-top: .2rem; }
.nav-dot-small { height: 8px; border-radius: 4px; background: rgba(255,255,255,.2); }
.nav-dot-small.active { background: linear-gradient(135deg, var(--primary), var(--accent)); }

.faq { padding: 4rem 0; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { 
  background: var(--glass); 
  margin-bottom: 1rem; 
  border-radius: 14px; 
  border: 1px solid var(--card-border); 
  box-shadow: var(--shadow-1); 
  overflow: hidden;
  transform-style: preserve-3d;
  transition: all 0.3s ease;
  animation: faq-item-float 10s ease-in-out infinite;
}

.faq-item:nth-child(1) { animation-delay: 0s; }
.faq-item:nth-child(2) { animation-delay: 2s; }
.faq-item:nth-child(3) { animation-delay: 4s; }
.faq-item:nth-child(4) { animation-delay: 6s; }

.faq-item:hover {
  transform: translateY(-5px) rotateX(3deg) rotateY(-2deg);
  box-shadow: 0 15px 30px rgba(0, 224, 255, 0.2);
  border-color: rgba(0, 224, 255, 0.3);
}

@keyframes faq-item-float {
  0%, 100% { 
    transform: translateY(0px) rotateX(0deg) rotateY(0deg);
  }
  25% { 
    transform: translateY(-2px) rotateX(1deg) rotateY(-1deg);
  }
  50% { 
    transform: translateY(-1px) rotateX(-1deg) rotateY(1deg);
  }
  75% { 
    transform: translateY(-3px) rotateX(1deg) rotateY(-1deg);
  }
}
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; cursor: pointer; }
.faq-question h3 { margin: 0; font-size: 1.1rem; }
.faq-answer { padding: 0 1.25rem 1.25rem 1.25rem; display: none; color: #d2d9e6; }
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-question i { transition: transform .2s ease; }

.contact { background: var(--surface); padding: 4rem 0; border-top: 1px solid var(--card-border); }
.contact-content { display: flex; flex-wrap: wrap; gap: 2rem; max-width: 1000px; margin: 0 auto; }
.contact-info { flex: 1; min-width: 250px; }
.contact-form { flex: 2; min-width: 300px; }
.form-group { margin-bottom: 1.2rem; }
.form-group input, .form-group select, .form-group textarea { 
  width: 100%; 
  padding: .85rem 1rem; 
  border-radius: 12px; 
  border: 1px solid var(--card-border); 
  background: #0f141b; 
  color: #fff; 
  font-size: 1rem;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus { 
  outline: none; 
  border-color: rgba(0, 224, 255, 0.4); 
  box-shadow: 0 0 0 4px rgba(0, 224, 255, 0.12);
  transform: translateY(-2px) rotateX(2deg);
  background: rgba(0, 224, 255, 0.05);
}

.form-group input:hover, .form-group select:hover, .form-group textarea:hover {
  transform: translateY(-1px) rotateX(1deg);
  border-color: rgba(0, 224, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 224, 255, 0.1);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: rgba(0, 224, 255, 0.4); box-shadow: 0 0 0 4px rgba(0, 224, 255, 0.12); }

.footer { 
  background: var(--bg); 
  padding: 2rem 0 1rem 0; 
  border-top: 1px solid var(--card-border);
  position: relative;
  transform-style: preserve-3d;
  animation: footer-float 12s ease-in-out infinite;
}

@keyframes footer-float {
  0%, 100% { 
    transform: translateY(0px) rotateX(0deg);
  }
  50% { 
    transform: translateY(-3px) rotateX(1deg);
  }
}
.footer-content { display: flex; flex-wrap: wrap; gap: 2rem; max-width: 1200px; margin: 0 auto; justify-content: space-between; }
.footer-section { flex: 1; min-width: 200px; }
.footer-logo { display: flex; align-items: center; font-size: 1.3rem; font-weight: 800; gap: .5rem; margin-bottom: .5rem; }
.footer-bottom { text-align: center; margin-top: 2rem; font-size: .95rem; color: var(--muted); }
.social-links { display: flex; gap: 1rem; font-size: 1.5rem; justify-content: flex-start; }

/* Back to top */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--card-border);
  background: linear-gradient(180deg, var(--surface), var(--surface-2)); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-1); cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { box-shadow: var(--shadow-2); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; }
.lightbox.active { display: block; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px); }
.lightbox-inner { position: relative; z-index: 1; max-width: 980px; margin: 6vh auto; padding: 1rem; display: grid; grid-template-columns: 56px 1fr 56px; gap: 12px; align-items: center; }
.lightbox-content { background: var(--glass-strong); border: 1px solid var(--card-border); border-radius: 16px; box-shadow: var(--shadow-2); min-height: 520px; display: grid; place-items: center; overflow: hidden; }
.lightbox button { background: var(--glass); color: #fff; border: 1px solid var(--card-border); border-radius: 12px; height: 56px; width: 56px; display: grid; place-items: center; cursor: pointer; }
.lightbox button:hover { border-color: rgba(0,224,255,.35); }
.lightbox button:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.lightbox-close { position: absolute; top: -52px; right: 0; width: 44px !important; height: 44px !important; }

@media (max-width: 700px) {
  .lightbox-inner { grid-template-columns: 1fr; gap: 10px; }
  .lightbox-prev, .lightbox-next { display: none; }
  .lightbox-close { top: -50px; right: 0; }
}

/* Gaming-themed scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--surface);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 6px;
  border: 2px solid var(--surface);
  box-shadow: 0 0 10px rgba(0, 224, 255, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent), var(--primary));
  box-shadow: 0 0 15px rgba(0, 255, 163, 0.5);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--surface);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  
  /* Disable aurora animations for users who prefer reduced motion */
  body::before,
  body::after,
  .hero::before,
  .hero::after,
  .features::before {
    animation: none !important;
  }
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .hero-container { flex-direction: column; gap: 2rem; }
  .hero-image { margin-top: 1rem; }
}

@media (max-width: 700px) {
  .nav-menu { 
    display: none; 
    flex-direction: column; 
    gap: 1rem; 
    position: absolute; 
    top: 70px; 
    right: 2rem; 
    background: var(--glass-strong); 
    padding: 1rem 1.25rem; 
    border-radius: 12px; 
    box-shadow: 0 2px 18px rgba(0,0,0,.35); 
    border: 1px solid var(--card-border);
    transform: translateY(-10px) scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .nav-menu.active { 
    display: flex;
    transform: translateY(0) scale(1);
    opacity: 1;
    animation: menu-slide-in 0.3s ease-out;
  }
  
  .nav-menu.active .nav-link {
    animation: menu-item-fade-in 0.4s ease-out forwards;
    opacity: 0;
    transform: translateX(20px);
  }
  
  .nav-menu.active .nav-link:nth-child(1) { animation-delay: 0.1s; }
  .nav-menu.active .nav-link:nth-child(2) { animation-delay: 0.2s; }
  .nav-menu.active .nav-link:nth-child(3) { animation-delay: 0.3s; }
  .nav-menu.active .nav-link:nth-child(4) { animation-delay: 0.4s; }
  .nav-menu.active .nav-link:nth-child(5) { animation-delay: 0.5s; }
  
  @keyframes menu-slide-in {
    0% {
      transform: translateY(-10px) scale(0.95);
      opacity: 0;
    }
    100% {
      transform: translateY(0) scale(1);
      opacity: 1;
    }
  }
  
  @keyframes menu-item-fade-in {
    0% {
      opacity: 0;
      transform: translateX(20px);
    }
    100% {
      opacity: 1;
      transform: translateX(0);
    }
  }
  .nav-toggle { display: flex; }
  .hero-title { font-size: 2.25rem; }
  .section-title { font-size: 1.4rem; }
  .features-grid, .screenshots-grid { grid-template-columns: 1fr; }
  
  /* Pill Navigation Mobile Styles */
  .pill-nav-container { 
    flex-wrap: wrap; 
    gap: 0.2rem; 
    padding: 0.2rem; 
    max-width: 100%; 
  }
  .filter-chip { 
    padding: 0.4rem 0.8rem; 
    font-size: 0.85rem; 
    min-width: auto; 
  }
  
  /* Mobile Aurora Optimizations */
  body::before,
  body::after {
    background-size: 50% 50%;
    animation-duration: 50s;
  }
  
  .hero::before,
  .hero::after {
    background-size: 40% 40%;
    animation-duration: 40s;
  }
  
  .features::before,
  .features::after {
    background-size: 60% 60%;
    animation-duration: 60s;
  }
  
  .navbar::before,
  .navbar::after {
    background-size: 70% 70%;
    animation-duration: 70s;
  }
  
  /* Reduce particle animation on mobile */
  body::before {
    animation-duration: 90s;
  }
}