/* ============================================
   NEXONIXUNIN — DESERT GOLD FUTURE
   Social Casino Design System
   ============================================ */

/* --- VARIABLES --- */
:root {
  --bg-primary: #020202;
  --bg-secondary: #0c0f14;
  --bg-sand: rgba(255, 215, 0, 0.05);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  --bg-glass-border: rgba(255, 255, 255, 0.08);

  --gold-1: #facc15;
  --gold-2: #eab308;
  --gold-gradient: linear-gradient(135deg, #facc15, #eab308);
  --sunset-gradient: linear-gradient(135deg, #f59e0b, #ef4444);
  --purple-gradient: linear-gradient(135deg, #7c3aed, #a855f7);
  --luxury-gradient: linear-gradient(135deg, #facc15, #7c3aed, #ef4444);

  --glow-gold: rgba(250, 204, 21, 0.45);
  --glow-red: rgba(239, 68, 68, 0.35);
  --glow-purple: rgba(124, 58, 237, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --text-gold: #facc15;

  --font-display: 'Cinzel', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

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

  --max-width: 1280px;
  --section-gap: 120px;
  --header-height: 72px;
  --side-nav-width: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-height);
}

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

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

ul {
  list-style: none;
}

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

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

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

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

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

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

/* --- CURSOR GLOW --- */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

.cursor-glow.active {
  opacity: 1;
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
  background: rgba(2, 2, 2, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-glass-border);
}

.header-solid {
  background: rgba(2, 2, 2, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-glass-border);
}

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

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

.logo-icon {
  position: relative;
}

.logo-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-gold) 0%, transparent 70%);
  opacity: 0.4;
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- SIDE NAV --- */
.side-nav {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: none;
}

.side-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 10px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.side-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.side-nav-item::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 60px;
  padding: 6px 14px;
  background: rgba(12, 15, 20, 0.95);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.25s ease;
  pointer-events: none;
  backdrop-filter: blur(12px);
}

.side-nav-item:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.side-nav-item:hover {
  color: var(--gold-1);
  transform: translateY(-3px);
  background: rgba(250, 204, 21, 0.08);
  box-shadow: 0 4px 20px rgba(250, 204, 21, 0.15);
}

.side-nav-item.active {
  color: var(--bg-primary);
  background: var(--gold-gradient);
  box-shadow: 0 4px 20px var(--glow-gold);
}

/* --- MOBILE NAV --- */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(2, 2, 2, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--bg-glass-border);
  padding: 8px 16px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

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

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
}

.mobile-nav-item.active {
  color: var(--gold-1);
}

.mobile-nav-item:hover {
  color: var(--gold-1);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--gold-gradient);
  color: #020202;
  font-weight: 700;
  border: none;
}

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

.btn-glow {
  animation: btnGlow 3s ease-in-out infinite;
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(250, 204, 21, 0.2); }
  50% { box-shadow: 0 4px 30px rgba(250, 204, 21, 0.4); }
}

.btn-ghost {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(250, 204, 21, 0.2);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-small {
  padding: 8px 18px;
  font-size: 0.82rem;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  backdrop-filter: blur(12px);
  color: var(--text-secondary);
}

.btn-icon:hover {
  color: var(--gold-1);
  border-color: rgba(250, 204, 21, 0.3);
  background: rgba(250, 204, 21, 0.08);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg-layers {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-layer {
  position: absolute;
  inset: 0;
}

.hero-layer-stars {
  background:
    radial-gradient(1px 1px at 20% 15%, rgba(250, 204, 21, 0.6), transparent),
    radial-gradient(1px 1px at 40% 35%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 60% 20%, rgba(250, 204, 21, 0.5), transparent),
    radial-gradient(1px 1px at 80% 40%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 10% 60%, rgba(250, 204, 21, 0.4), transparent),
    radial-gradient(1px 1px at 90% 10%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 50% 80%, rgba(250, 204, 21, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 30% 70%, rgba(168, 85, 247, 0.3), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 15% 90%, rgba(250, 204, 21, 0.4), transparent);
  animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.hero-layer-pyramids {
  background:
    linear-gradient(transparent 50%, var(--bg-primary) 100%),
    linear-gradient(170deg, transparent 45%, rgba(250, 204, 21, 0.02) 45%, rgba(250, 204, 21, 0.04) 55%, transparent 55%),
    linear-gradient(190deg, transparent 40%, rgba(250, 204, 21, 0.015) 40%, rgba(250, 204, 21, 0.03) 52%, transparent 52%);
}

.hero-layer-sand {
  background: linear-gradient(to top, rgba(250, 204, 21, 0.06) 0%, transparent 30%);
}

.hero-light-rays {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 200%;
  height: 100%;
  transform: translateX(-50%);
  background:
    conic-gradient(from 180deg at 50% 0%,
      transparent 0deg,
      rgba(250, 204, 21, 0.03) 15deg,
      transparent 30deg,
      transparent 60deg,
      rgba(250, 204, 21, 0.02) 75deg,
      transparent 90deg,
      transparent 150deg,
      rgba(250, 204, 21, 0.03) 165deg,
      transparent 180deg,
      transparent 210deg,
      rgba(250, 204, 21, 0.02) 225deg,
      transparent 240deg,
      transparent 300deg,
      rgba(250, 204, 21, 0.03) 315deg,
      transparent 330deg
    );
  animation: lightRays 20s linear infinite;
}

@keyframes lightRays {
  0% { transform: translateX(-50%) rotate(0deg); }
  100% { transform: translateX(-50%) rotate(360deg); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold-1);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s ease-in-out infinite;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid rgba(250, 204, 21, 0.15);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold-1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero-title-accent {
  background: var(--luxury-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 6s ease-in-out infinite;
}

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

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

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

.hero-legal {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-1), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; height: 40px; }
  50% { opacity: 1; height: 60px; }
}

/* --- PAGE HERO (sub-pages) --- */
.page-hero {
  position: relative;
  padding: calc(var(--header-height) + 80px) 0 80px;
  overflow: hidden;
  text-align: center;
}

.page-hero-small {
  padding-bottom: 60px;
}

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

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin: 16px 0;
  line-height: 1.15;
}

.page-hero-content > p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* --- SECTION HEADER --- */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-1);
  margin-bottom: 12px;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.12);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

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

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- GAME SECTION --- */
.game-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(250, 204, 21, 0.04) 0%, transparent 60%),
    var(--bg-primary);
}

.game-container {
  max-width: 1000px;
  margin: 0 auto;
}

.game-frame-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 3px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.3), rgba(124, 58, 237, 0.2), rgba(239, 68, 68, 0.2), rgba(250, 204, 21, 0.3));
  background-size: 300% 300%;
  animation: borderGlow 6s ease-in-out infinite;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s;
}

.game-frame-wrapper:hover {
  box-shadow: 0 20px 60px rgba(250, 204, 21, 0.15), 0 0 80px rgba(250, 204, 21, 0.05);
}

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

.game-border-glow {
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-xl) + 2px);
  background: var(--luxury-gradient);
  background-size: 300% 300%;
  animation: borderGlow 6s ease-in-out infinite;
  filter: blur(12px);
  opacity: 0.25;
  z-index: -1;
}

.game-frame {
  position: relative;
  background: var(--bg-secondary);
  border-radius: calc(var(--radius-xl) - 2px);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.game-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  position: relative;
  z-index: 2;
}

.game-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 3;
  background: var(--bg-secondary);
  transition: opacity 0.5s ease, visibility 0.5s;
}

.game-loading.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.game-loading-icon {
  animation: loadingBounce 1.5s ease-in-out infinite;
}

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

.game-loading-bar {
  width: 200px;
  height: 3px;
  background: var(--bg-glass);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.game-loading-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
  animation: loadingFill 2s ease-in-out;
  width: 100%;
}

@keyframes loadingFill {
  0% { width: 0; }
  100% { width: 100%; }
}

.game-loading p {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.game-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

/* --- FEATURES --- */
.features-section {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(250, 204, 21, 0.03) 0%, transparent 50%),
    var(--bg-primary);
}

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

.features-grid-small {
  margin-top: 40px;
}

.feature-card {
  position: relative;
  padding: 36px 28px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.06), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

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

.feature-card:hover {
  transform: translateY(-6px) perspective(800px) rotateX(2deg) rotateY(-1deg);
  border-color: rgba(250, 204, 21, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(250, 204, 21, 0.05);
}

.feature-card-large {
  grid-column: span 3;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}

.feature-card-large .feature-decoration {
  display: none;
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  position: relative;
}

.feature-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover .feature-icon::after {
  opacity: 0.5;
  animation: iconGlow 2s ease-in-out infinite;
}

@keyframes iconGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.feature-icon-gold {
  background: rgba(250, 204, 21, 0.1);
  color: var(--gold-1);
  border: 1px solid rgba(250, 204, 21, 0.15);
}

.feature-icon-gold::after {
  background: radial-gradient(circle, var(--glow-gold) 0%, transparent 70%);
}

.feature-icon-purple {
  background: rgba(124, 58, 237, 0.1);
  color: #a855f7;
  border: 1px solid rgba(124, 58, 237, 0.15);
}

.feature-icon-purple::after {
  background: radial-gradient(circle, var(--glow-purple) 0%, transparent 70%);
}

.feature-icon-red {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.feature-icon-red::after {
  background: radial-gradient(circle, var(--glow-red) 0%, transparent 70%);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-card-large .feature-icon {
  margin-bottom: 0;
}

/* --- ABOUT --- */
.about-section {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(250, 204, 21, 0.03) 0%, transparent 50%),
    var(--bg-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content .section-tag {
  margin-bottom: 16px;
}

.about-content .section-title {
  margin-bottom: 24px;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-card-stack {
  position: relative;
  width: 280px;
  height: 340px;
}

.about-card {
  position: absolute;
  width: 220px;
  border-radius: var(--radius-xl);
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  backdrop-filter: blur(16px);
  padding: 28px 24px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.about-card-inner span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.about-card-1 {
  top: 0;
  left: 0;
  z-index: 3;
  border-color: rgba(250, 204, 21, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  transform: rotate(-3deg);
}

.about-card-1:hover {
  transform: rotate(0) translateY(-8px);
}

.about-card-2 {
  top: 60px;
  right: 0;
  z-index: 2;
  border-color: rgba(124, 58, 237, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transform: rotate(4deg);
}

.about-card-2:hover {
  transform: rotate(0) translateY(-8px);
}

.about-card-3 {
  bottom: 0;
  left: 20px;
  z-index: 1;
  border-color: rgba(239, 68, 68, 0.15);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  transform: rotate(-1deg);
}

.about-card-3:hover {
  transform: rotate(0) translateY(-8px);
}

/* --- CONTACT --- */
.contact-section {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(124, 58, 237, 0.04) 0%, transparent 50%),
    var(--bg-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

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

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  padding: 14px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(250, 204, 21, 0.3);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

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

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

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

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  border-color: rgba(250, 204, 21, 0.15);
  transform: translateX(4px);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.1);
  border-radius: var(--radius-md);
  color: var(--gold-1);
  flex-shrink: 0;
}

.contact-info-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-info-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.contact-disclaimer {
  padding: 20px 24px;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.12);
  border-radius: var(--radius-lg);
  margin-top: 8px;
}

.contact-disclaimer p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- MODAL --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--bg-glass-border);
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all 0.3s;
}

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

.modal-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.how-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.how-step-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-gradient);
  color: var(--bg-primary);
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.how-step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

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

.modal-legal {
  padding: 16px 28px 24px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* --- LEGAL SECTION --- */
.legal-section {
  padding-top: 60px;
}

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

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

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

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

.legal-content ul {
  margin: 12px 0 20px 0;
  padding-left: 24px;
}

.legal-content ul li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  position: relative;
  list-style: none;
  padding-left: 20px;
}

.legal-content ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold-1);
}

.legal-content a {
  color: var(--gold-1);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  opacity: 0.8;
}

.responsible-banner {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 28px;
  background: var(--bg-glass);
  border: 1px solid rgba(250, 204, 21, 0.12);
  border-radius: var(--radius-xl);
  margin-bottom: 40px;
}

.responsible-banner h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.responsible-banner p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* --- CONTENT BLOCKS (about page) --- */
.content-block {
  margin-bottom: 60px;
}

.content-block h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 20px;
}

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

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--bg-glass-border);
  padding: 80px 0 40px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(250, 204, 21, 0.02) 0%, transparent 60%),
    var(--bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--bg-glass-border);
}

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

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 300px;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

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

.footer-links ul li a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: var(--gold-1);
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-legal {
  font-size: 0.75rem !important;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 16px !important;
}

.footer-links-inline {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.footer-links-inline a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-links-inline a:hover {
  color: var(--gold-1);
}

/* --- ANIMATIONS --- */
.anim-fade-in {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

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

.anim-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger children */
.features-grid .anim-scroll:nth-child(1) { transition-delay: 0s; }
.features-grid .anim-scroll:nth-child(2) { transition-delay: 0.1s; }
.features-grid .anim-scroll:nth-child(3) { transition-delay: 0.2s; }
.features-grid .anim-scroll:nth-child(4) { transition-delay: 0.3s; }
.features-grid .anim-scroll:nth-child(5) { transition-delay: 0.4s; }
.features-grid .anim-scroll:nth-child(6) { transition-delay: 0.5s; }
.features-grid .anim-scroll:nth-child(7) { transition-delay: 0.6s; }

/* Shimmer effect */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* --- RESPONSIVE --- */
@media (min-width: 1100px) {
  .side-nav {
    display: block;
  }

  .mobile-nav {
    display: none;
  }

  body {
    padding-left: 0;
  }
}

@media (max-width: 1099px) {
  .side-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }

  body {
    padding-bottom: 72px;
  }
}

@media (max-width: 1024px) {
  :root {
    --section-gap: 80px;
  }

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

  .feature-card-large {
    grid-column: span 2;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    order: -1;
  }

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

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 60px;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

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

  .hero-ctas .btn {
    width: 100%;
    max-width: 300px;
  }

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

  .feature-card-large {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

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

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

  .footer-brand {
    grid-column: span 1;
  }

  .about-stats {
    gap: 24px;
  }

  .about-card-stack {
    width: 240px;
    height: 300px;
  }

  .about-card {
    width: 190px;
    padding: 20px;
  }

  .game-frame {
    aspect-ratio: 4 / 3;
  }

  .responsible-banner {
    flex-direction: column;
    text-align: center;
  }

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

  .hero-scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 16px;
  }

  .container {
    padding: 0 16px;
  }

  .btn-large {
    padding: 14px 28px;
    font-size: 0.92rem;
  }

  .feature-card {
    padding: 28px 20px;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 6px 16px;
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .page-hero-title {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }
}

/* --- UTILITIES --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(250, 204, 21, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(250, 204, 21, 0.35);
}

/* Selection */
::selection {
  background: rgba(250, 204, 21, 0.25);
  color: var(--text-primary);
}