/* ============================================
   FUNGRIDAVENUE - ZEN ENERGY UI
   Zen Kungfu Arena Design System
   ============================================ */

/* --- ROOT VARIABLES --- */
:root {
  --bg-primary: #0a0f14;
  --bg-secondary: #111827;
  --bg-surface: #1f2937;
  --bg-glass: rgba(255,255,255,0.04);
  --border-glass: rgba(255,255,255,0.08);
  --border-glass-hover: rgba(255,255,255,0.15);

  --gold-start: #f59e0b;
  --gold-end: #fbbf24;
  --gold-gradient: linear-gradient(135deg, #f59e0b, #fbbf24);
  --gold-glow: rgba(245,158,11,0.45);

  --red-start: #ef4444;
  --red-end: #f87171;
  --red-gradient: linear-gradient(135deg, #ef4444, #f87171);
  --red-glow: rgba(239,68,68,0.4);

  --blue-start: #3b82f6;
  --blue-end: #60a5fa;
  --blue-gradient: linear-gradient(135deg, #3b82f6, #60a5fa);
  --blue-glow: rgba(59,130,246,0.35);

  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #6b7280;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --max-width: 1280px;

  --space-desktop: 120px;
  --space-tablet: 80px;
  --space-mobile: 60px;

  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

ul, ol {
  list-style: none;
}

/* --- GRAIN OVERLAY --- */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(images/%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* --- CURSOR GLOW --- */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
}

body:hover .cursor-glow {
  opacity: 0.15;
}

/* --- LAYOUT --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 800px;
}

/* ============================================
   HEADER — BLADE CUT NAV
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.5s var(--transition-smooth);
}

.header.scrolled {
  background: rgba(10, 15, 20, 0.95);
  backdrop-filter: blur(20px);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.5s var(--transition-smooth);
}

.header.scrolled .header-inner {
  padding: 12px 24px;
}

.header-blade {
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 60%);
  transition: all 0.5s var(--transition-smooth);
}

.header.scrolled .header-blade {
  background: rgba(10, 15, 20, 0.95);
  backdrop-filter: blur(20px);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  position: relative;
  z-index: 2;
}

.logo-icon {
  font-size: 28px;
}

.logo-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--text-primary);
}

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

/* Desktop Nav */
.nav-desktop {
  display: flex;
  gap: 40px;
}

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 0;
  transition: color 0.3s var(--transition-smooth);
  letter-spacing: 0.5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: width 0.4s var(--transition-smooth);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  text-shadow: 0 0 20px var(--gold-glow);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Header CTA */
.btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--gold-gradient);
  color: #0a0f14;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-lg);
  letter-spacing: 0.5px;
  transition: all 0.3s var(--transition-smooth);
  overflow: hidden;
}

.btn-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px var(--gold-glow);
}

.cta-flame {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  animation: flamePulse 2s infinite;
}

.btn-cta:hover .cta-flame {
  opacity: 1;
}

@keyframes flamePulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
}

.header-cta {
  z-index: 2;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--transition-smooth);
}

/* ============================================
   MOBILE NAV
   ============================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  visibility: hidden;
}

.mobile-nav.open {
  pointer-events: all;
  visibility: visible;
}

.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  opacity: 0;
  transition: opacity 0.4s var(--transition-smooth);
  backdrop-filter: blur(4px);
}

.mobile-nav.open .mobile-nav-overlay {
  opacity: 1;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-glass);
  transform: translateX(100%);
  transition: transform 0.5s var(--transition-smooth);
  padding: 80px 32px 32px;
}

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

.mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 32px;
  color: var(--text-secondary);
  transition: color 0.3s;
}

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

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-link {
  display: block;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--transition-smooth);
}

.mobile-link:hover,
.mobile-link.active {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.mobile-link.active {
  border-left: 3px solid var(--gold-start);
}

.mobile-cta {
  margin-top: 16px;
  text-align: center;
  justify-content: center;
}

/* ============================================
   HERO — DOJO CINEMATIC
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(245,158,11,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(239,68,68,0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(59,130,246,0.04) 0%, transparent 70%),
    var(--bg-primary);
}

/* Fog */
.hero-fog {
  position: absolute;
  width: 150%;
  height: 100%;
  opacity: 0.15;
}

.hero-fog-1 {
  top: 20%;
  left: -25%;
  background: radial-gradient(ellipse, rgba(245,158,11,0.2) 0%, transparent 70%);
  animation: fogDrift1 20s infinite ease-in-out;
}

.hero-fog-2 {
  bottom: 10%;
  right: -25%;
  background: radial-gradient(ellipse, rgba(59,130,246,0.15) 0%, transparent 70%);
  animation: fogDrift2 25s infinite ease-in-out;
}

@keyframes fogDrift1 {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(5%) translateY(-3%); }
}

@keyframes fogDrift2 {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(-4%) translateY(2%); }
}

/* Light rays */
.hero-rays {
  position: absolute;
  top: -20%;
  left: 40%;
  width: 200px;
  height: 140%;
  background: linear-gradient(180deg, rgba(245,158,11,0.06) 0%, transparent 80%);
  transform: rotate(15deg);
  animation: rayPulse 8s infinite ease-in-out;
}

@keyframes rayPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* Particles */
.hero-particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold-start);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat var(--duration) var(--delay) infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  20% { opacity: 0.6; }
  80% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold-start);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(42px, 8vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

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

.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Energy wave */
.hero-energy-wave {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(245,158,11,0.1);
  animation: energyWave 4s infinite ease-out;
  pointer-events: none;
}

@keyframes energyWave {
  0% { transform: translateX(-50%) scale(0.5); opacity: 0.5; }
  100% { transform: translateX(-50%) scale(1.5); opacity: 0; }
}

/* Hero legal */
.hero-legal {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  max-width: 600px;
  z-index: 2;
}

.hero-legal p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.3; }
  50% { transform: rotate(45deg) translateY(8px); opacity: 1; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gold-gradient);
  color: #0a0f14;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-lg);
  letter-spacing: 0.5px;
  transition: all 0.3s var(--transition-smooth);
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px var(--gold-glow);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--transition-smooth);
}

.btn-primary:hover .btn-glow {
  transform: translateX(100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--bg-glass);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  transition: all 0.3s var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

.btn-xl {
  padding: 20px 48px;
  font-size: 18px;
}

.btn-full {
  width: 100%;
}

/* ============================================
   SECTION SYSTEM
   ============================================ */
.section-divider {
  position: relative;
  height: 2px;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0 24px;
}

.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-glow), transparent);
  animation: glowSweep 3s infinite;
}

.divider-glow-red {
  background: linear-gradient(90deg, transparent, var(--red-glow), transparent);
}

.divider-glow-blue {
  background: linear-gradient(90deg, transparent, var(--blue-glow), transparent);
}

@keyframes glowSweep {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

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

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold-start);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

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

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

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

/* ============================================
   GAME SECTION — ARENA CORE
   ============================================ */
.game-preview {
  padding: var(--space-desktop) 0;
}

.game-stage {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  box-shadow:
    0 0 60px rgba(245,158,11,0.08),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.game-stage-border {
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-xl) + 2px);
  background: var(--gold-gradient);
  opacity: 0.3;
  z-index: 0;
  animation: borderPulse 3s infinite;
}

@keyframes borderPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.5; }
}

.game-stage:hover .game-stage-border {
  opacity: 0.6;
}

.game-frame-wrap {
  position: relative;
  z-index: 1;
  background: #000;
  aspect-ratio: 16/9;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.game-controls {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
}

.btn-game-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s var(--transition-smooth);
}

.btn-game-control:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  border-color: var(--gold-start);
  box-shadow: 0 0 20px var(--gold-glow);
  transform: translateY(-2px);
}

.btn-game-control:active {
  transform: translateY(0) scale(0.97);
}

/* Game Full Page */
.game-full {
  padding: 40px 0 var(--space-desktop);
}

.game-stage-full .game-frame-wrap {
  aspect-ratio: auto;
  height: 70vh;
  min-height: 400px;
}

.game-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.game-info-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(20px);
}

.game-info-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.game-info-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.game-feature-list,
.game-how-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.game-feature-list li,
.game-how-list li {
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.game-feature-list li::before {
  content: '⚡';
  position: absolute;
  left: 0;
  font-size: 12px;
}

.game-how-list {
  list-style: decimal;
  padding-left: 20px;
}

.game-how-list li {
  padding-left: 8px;
}

.game-how-list li::before {
  display: none;
}

.game-disclaimer {
  margin-top: 40px;
  padding: 20px 24px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-md);
  text-align: center;
}

.game-disclaimer p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ============================================
   FEATURES — SKILL CARDS
   ============================================ */
.features {
  padding: var(--space-desktop) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.skill-card {
  position: relative;
  padding: 40px 32px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  transition: all 0.5s var(--transition-smooth);
  transform: translateY(var(--card-offset, 0));
  overflow: hidden;
}

.skill-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.skill-glow-gold {
  background: radial-gradient(circle at center, var(--gold-glow) 0%, transparent 60%);
}

.skill-glow-red {
  background: radial-gradient(circle at center, var(--red-glow) 0%, transparent 60%);
}

.skill-glow-blue {
  background: radial-gradient(circle at center, var(--blue-glow) 0%, transparent 60%);
}

.skill-card:hover {
  transform: translateY(calc(var(--card-offset, 0) - 8px)) rotate(1deg);
  border-color: var(--border-glass-hover);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.skill-card:hover .skill-card-glow {
  opacity: 0.15;
}

.skill-icon {
  font-size: 40px;
  margin-bottom: 20px;
  display: block;
}

.skill-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.skill-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: var(--space-desktop) 0;
}

.cta-block {
  position: relative;
  text-align: center;
  padding: 80px 40px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(245,158,11,0.1) 0%, transparent 60%),
    var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.cta-energy-lines {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(245,158,11,0.03) 60px, rgba(245,158,11,0.03) 61px);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

/* ============================================
   PAGE HEROES
   ============================================ */
.page-hero {
  position: relative;
  padding: 180px 0 80px;
  overflow: hidden;
}

.page-hero-sm {
  padding: 160px 0 60px;
}

.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(245,158,11,0.06) 0%, transparent 60%),
    var(--bg-primary);
}

.page-hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.page-hero-title {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.page-hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================
   CONTENT SECTIONS (About, Legal, etc.)
   ============================================ */
.content-section {
  padding: 0 0 var(--space-desktop);
}

.content-grid {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.content-block {
  max-width: 800px;
}

.content-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 900;
  margin-bottom: 20px;
}

.content-block p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 16px;
}

.content-block p:last-child {
  margin-bottom: 0;
}

.content-block strong {
  color: var(--text-primary);
}

.content-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.content-list li {
  color: var(--text-secondary);
  padding-left: 28px;
  position: relative;
  line-height: 1.7;
}

.content-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold-start);
}

.content-cta {
  text-align: center;
  margin-top: 48px;
}

/* Philosophy grid */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.philosophy-item {
  padding: 28px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  transition: all 0.3s var(--transition-smooth);
}

.philosophy-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-glass-hover);
}

.philosophy-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
}

.philosophy-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.philosophy-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-method {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
}

.contact-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.contact-method h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-method p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Form */
.contact-form-wrap {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(20px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.form-input {
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s var(--transition-smooth);
  outline: none;
}

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

.form-input:focus {
  border-color: var(--gold-start);
  box-shadow: 0 0 20px rgba(245,158,11,0.15);
  background: rgba(255,255,255,0.05);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.form-success h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-secondary);
}

/* ============================================
   LEGAL SECTIONS
   ============================================ */
.legal-section {
  padding-bottom: var(--space-desktop);
}

.legal-content {
  line-height: 1.8;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 800;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 15px;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content ul {
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.7;
}

.legal-content a {
  color: var(--gold-start);
  text-decoration: underline;
  text-decoration-color: rgba(245,158,11,0.3);
  transition: text-decoration-color 0.3s;
}

.legal-content a:hover {
  text-decoration-color: var(--gold-start);
}

.responsible-hero-block {
  padding: 32px;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}

.responsible-intro {
  font-size: 17px !important;
  color: var(--text-primary) !important;
  line-height: 1.8;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s var(--transition-smooth);
}

.modal.open {
  pointer-events: all;
  visibility: visible;
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 540px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s var(--transition-bounce);
}

.modal.open .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  color: var(--text-muted);
  transition: color 0.3s;
  line-height: 1;
}

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

.modal-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 28px;
}

.how-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-glass);
}

.how-step:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-gradient);
  color: #0a0f14;
  font-weight: 900;
  font-size: 15px;
  border-radius: 12px;
}

.how-step h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.how-step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  padding: 80px 0 40px;
  background: var(--bg-secondary);
  margin-top: 0;
}

.footer-blade {
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: var(--bg-secondary);
  clip-path: polygon(3% 0, 97% 40%, 100% 100%, 0 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-link {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color 0.3s var(--transition-smooth);
}

.footer-link:hover {
  color: var(--gold-start);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-copy p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Fade in */
.animate-fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s var(--transition-smooth) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s var(--transition-smooth);
}

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

.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.15s; }
.stagger-3 { transition-delay: 0.25s; }
.stagger-4 { transition-delay: 0.35s; }

/* Light sweep */
@keyframes lightSweep {
  0% { transform: translateX(-100%) rotate(15deg); }
  100% { transform: translateX(200%) rotate(15deg); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .features-grid {
    gap: 20px;
  }

  .game-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --space-desktop: 80px;
  }

  .nav-desktop {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    padding: 140px 24px 80px;
    min-height: 100svh;
  }

  .hero-title {
    font-size: clamp(36px, 10vw, 56px);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .skill-card {
    transform: none !important;
  }

  .skill-card:hover {
    transform: translateY(-4px) !important;
  }

  .game-stage-full .game-frame-wrap {
    height: 50vh;
    min-height: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-block {
    padding: 60px 24px;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .contact-form-wrap {
    padding: 28px;
  }

  .game-controls {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  :root {
    --space-desktop: 60px;
  }

  .hero-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 28px;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 15px;
  }

  .btn-xl {
    padding: 16px 32px;
    font-size: 16px;
  }

  .modal-content {
    padding: 28px;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}