/* 
=========================================================
  CSS ARCHITECTURE - ADVENTURE PATCHOR (AURORA LUX)
=========================================================
  1. Variables
  2. Reset & Base
  3. Typography
  4. Layout
  5. Components
  6. Animations
  7. Utilities
  8. Responsive
=========================================================
*/

/* --- 1. VARIABLES --- */
:root {
  /* Colors */
  --bg-primary: #06070c;
  --bg-secondary: #0f1220;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --surface-border: rgba(255, 255, 255, 0.08);
  
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-inverse: #ffffff;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #7c3aed, #06b6d4);
  --gradient-secondary: linear-gradient(135deg, #a78bfa, #22d3ee);
  --glow-accent: rgba(124, 58, 237, 0.6);
  
  /* Typography */
  --font-main: 'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif;
  --fs-hero: clamp(3rem, 6vw, 5.5rem);
  --fs-h2: clamp(2rem, 4vw, 3.5rem);
  --fs-h3: clamp(1.5rem, 3vw, 2rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  
  /* Spacing */
  --container-max: 1320px;
  --game-container-max: 1280px;
  --section-gap-desktop: 110px;
  --section-gap-tablet: 80px;
  --section-gap-mobile: 60px;
  --space-sm: 24px;
  --space-md: 32px;
  --space-lg: 48px;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

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

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

/* Accessibility */
:focus-visible {
  outline: 2px solid #06b6d4;
  outline-offset: 4px;
}

/* --- 3. TYPOGRAPHY --- */
h1 {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
}

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

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

/* --- 4. LAYOUT --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
}

section {
  padding: var(--section-gap-desktop) 0;
  position: relative;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

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

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

/* --- 5. COMPONENTS --- */
/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition-smooth);
}

.header.scrolled {
  background: rgba(6, 7, 12, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--surface-border);
  padding: 12px 0;
}

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

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo::before {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

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

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

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

.mobile-toggle {
  display: none;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 101;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  position: absolute;
  transition: var(--transition-smooth);
}

.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 9px; }
.mobile-toggle span:nth-child(3) { bottom: 0; }

.mobile-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-inverse);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px var(--glow-accent);
}

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

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  transform: translateY(-3px);
}

/* Glass Panels / Cards */
.glass-panel {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  transform: translateY(-6px);
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
  position: relative;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  background: var(--bg-primary);
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  width: 150vw;
  height: 150vh;
  top: -25%;
  left: -25%;
  background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 40%);
  animation: gradientShift 12s infinite alternate ease-in-out;
}

.hero-content {
  max-width: 600px;
}

.disclaimer-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: var(--fs-small);
  color: var(--text-secondary);
  margin-top: var(--space-md);
}

.hero-visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  opacity: 0.8;
  mix-blend-mode: luminosity;
  transition: var(--transition-smooth);
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg-primary) 0%, transparent 100%);
}

/* Game Experience Section */
.game-section {
  padding: 120px 0;
  position: relative;
}

.game-container {
  max-width: var(--game-container-max);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.4);
  padding: 24px;
  backdrop-filter: blur(20px);
  transition: var(--transition-smooth);
  position: relative;
}

.game-container::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-lg) + 1px);
  background: var(--gradient-primary);
  z-index: -1;
  opacity: 0.3;
  filter: blur(8px);
  transition: var(--transition-smooth);
}

.game-container:hover {
  transform: scale(1.01);
}

.game-container:hover::before {
  opacity: 0.6;
  filter: blur(12px);
}

.game-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: var(--radius-md);
  background: #000;
}

/* Features */
.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  color: #06b6d4;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

/* Content Pages (Legal, RG, Contact) */
.page-header {
  padding-top: 160px;
  padding-bottom: 80px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(124, 58, 237, 0.1), transparent);
}

.content-block {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
}

.content-block h2, .content-block h3 {
  margin-top: var(--space-lg);
  color: var(--text-primary);
}

.content-block ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

/* Forms */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition-fast);
}

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

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  padding: 80px 0 40px;
  border-top: 1px solid var(--surface-border);
}

.footer-col h4 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

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

.footer-links a {
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

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

.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--surface-border);
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

/* --- 6. ANIMATIONS --- */
@keyframes gradientShift {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.1) translate(2%, 2%); }
  100% { transform: scale(1) translate(-2%, -2%); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

/* --- 7. UTILITIES --- */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* --- 8. RESPONSIVE --- */
@media (max-width: 1024px) {
  section { padding: var(--section-gap-tablet) 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .game-container { padding: 16px; width: 95%; }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding-top: 120px;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    margin-bottom: var(--space-lg);
  }
  
  .hero .flex {
    justify-content: center;
  }
  
  .hero-visual {
    min-height: 300px;
  }
  .hero-visual::after {
    background: linear-gradient(to top, var(--bg-primary) 0%, transparent 100%);
  }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 100px 32px;
    transition: right 0.4s ease;
    border-left: 1px solid var(--surface-border);
    box-shadow: -20px 0 40px rgba(0,0,0,0.5);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-sm); }
  section { padding: var(--section-gap-mobile) 0; }
  .game-container { width: 100%; padding: 8px; border-radius: var(--radius-md); }
  .btn { width: 100%; }
  .hero .flex { flex-direction: column; gap: 16px; }
  .grid-4 { grid-template-columns: 1fr; }
}

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