/* =============================================
   WINDIPLAYPORTAL — ROYAL EGYPT TECH DESIGN SYSTEM
   ============================================= */

/* === VARIABLES === */
:root {
  --bg-primary: #06040a;
  --bg-secondary: #0f0a1a;
  --bg-section: #1a132b;
  --gold-1: #d4af37;
  --gold-2: #facc15;
  --gold-3: #fde68a;
  --gold-gradient: linear-gradient(135deg, #d4af37, #facc15, #fde68a);
  --gold-glow: rgba(212, 175, 55, 0.45);
  --gold-glow-soft: rgba(212, 175, 55, 0.15);
  --blue-gradient: linear-gradient(135deg, #0ea5e9, #38bdf8);
  --purple-gradient: linear-gradient(135deg, #7c3aed, #a78bfa);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-blur: 18px;
  --glass-border: rgba(255, 215, 0, 0.15);
  --text-primary: #fefce8;
  --text-secondary: #e9d5ff;
  --text-muted: #6b7280;
  --max-width: 1320px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 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.7;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-3); }

ul { list-style: none; }

::selection {
  background: rgba(212, 175, 55, 0.3);
  color: var(--text-primary);
}

/* === PARTICLES CONTAINER === */
#particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

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

@keyframes floatParticle {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

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

/* === SECTION HEADERS === */
.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-tag {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  opacity: 0.85;
}

/* =============================================
   HEADER — PYRAMID NAV BAR
   ============================================= */
.pyramid-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.pyramid-nav.scrolled {
  background: rgba(6, 4, 10, 0.92);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  padding: 10px 0;
}

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

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}

.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(254, 252, 232, 0.7);
  letter-spacing: 0.5px;
  position: relative;
  padding: 8px 0;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-2);
  -webkit-text-fill-color: initial;
}

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

/* Pyramid Logo */
.pyramid-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 40px;
  flex-shrink: 0;
  cursor: pointer;
}

.pyramid-shape {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pyramid-inner {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.pyramid-icon {
  font-size: 2rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px var(--gold-glow));
  animation: pyramidPulse 3s infinite ease-in-out;
}

@keyframes pyramidPulse {
  0%, 100% { filter: drop-shadow(0 0 12px var(--gold-glow)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 24px var(--gold-glow)) drop-shadow(0 0 40px rgba(212,175,55,0.2)); transform: scale(1.05); }
}

.pyramid-glow {
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 3s infinite ease-in-out;
  z-index: 1;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.15); }
}

.pyramid-shimmer {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: conic-gradient(from 0deg, transparent, var(--gold-1), transparent, var(--gold-2), transparent);
  border-radius: 50%;
  animation: shimmerRotate 6s linear infinite;
  opacity: 0.3;
  z-index: 0;
}

@keyframes shimmerRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.brand-name {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 4px;
}

/* Play Now Nav Button */
.btn-play-nav {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: var(--radius);
  background: var(--gold-gradient);
  color: #06040a;
  -webkit-text-fill-color: #06040a;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

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

.btn-play-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--gold-glow);
  color: #06040a;
  -webkit-text-fill-color: #06040a;
}

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

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

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gold-2);
  border-radius: 2px;
  transition: var(--transition);
}

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

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(6, 4, 10, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 0;
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: width 0.3s ease;
}

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

.mobile-cta {
  margin-top: 20px;
  font-size: 1rem;
}

/* =============================================
   HERO SECTION — PHARAOH PORTAL
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(212,175,55,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 30% 70%, rgba(124,58,237,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 30%, rgba(14,165,233,0.04) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.hero-rays {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(212,175,55,0.03) 10deg,
    transparent 20deg,
    transparent 40deg,
    rgba(212,175,55,0.03) 50deg,
    transparent 60deg,
    transparent 80deg,
    rgba(212,175,55,0.03) 90deg,
    transparent 100deg,
    transparent 120deg,
    rgba(212,175,55,0.03) 130deg,
    transparent 140deg,
    transparent 160deg,
    rgba(212,175,55,0.03) 170deg,
    transparent 180deg,
    transparent 200deg,
    rgba(212,175,55,0.03) 210deg,
    transparent 220deg,
    transparent 240deg,
    rgba(212,175,55,0.03) 250deg,
    transparent 260deg,
    transparent 280deg,
    rgba(212,175,55,0.03) 290deg,
    transparent 300deg,
    transparent 320deg,
    rgba(212,175,55,0.03) 330deg,
    transparent 340deg
  );
  animation: raysRotate 30s linear infinite;
}

@keyframes raysRotate {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

.hero-fog {
  position: absolute;
  width: 100%;
  height: 40%;
  opacity: 0.3;
}

.hero-fog-1 {
  bottom: 0;
  background: linear-gradient(to top, rgba(26,19,43,0.8) 0%, transparent 100%);
  animation: fogDrift 12s ease-in-out infinite alternate;
}

.hero-fog-2 {
  bottom: 5%;
  background: linear-gradient(to top, rgba(15,10,26,0.6) 0%, transparent 100%);
  animation: fogDrift 16s ease-in-out infinite alternate-reverse;
}

@keyframes fogDrift {
  0% { transform: translateX(-3%); }
  100% { transform: translateX(3%); }
}

.hero-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(254,252,232,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 50%, rgba(254,252,232,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 10%, rgba(254,252,232,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 40%, rgba(254,252,232,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 15%, rgba(254,252,232,0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 15% 70%, rgba(212,175,55,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 80%, rgba(254,252,232,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 85%, rgba(254,252,232,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 65% 65%, rgba(212,175,55,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 35%, rgba(254,252,232,0.5) 0%, transparent 100%);
  animation: starsTwinkle 6s ease-in-out infinite alternate;
}

@keyframes starsTwinkle {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

.hero-sand {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, rgba(212,175,55,0.03) 0%, transparent 100%);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 32px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0;
  animation: fadeInUp 0.8s 0.2s forwards;
}

.badge-icon {
  font-size: 1.2rem;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeInUp 0.8s 0.4s forwards;
}

.title-line {
  display: block;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 600;
}

.title-highlight {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 20px var(--gold-glow));
}

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

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.8s 0.8s forwards;
}

.hero-legal {
  opacity: 0;
  animation: fadeInUp 0.8s 1s forwards;
}

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

/* Hero Hieroglyphs */
.hero-hieroglyphs {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hieroglyph {
  position: absolute;
  font-size: 2rem;
  opacity: 0.06;
  color: var(--gold-2);
  animation: floatHiero 10s ease-in-out infinite;
}

.h1 { top: 15%; left: 8%; animation-delay: 0s; font-size: 2.5rem; }
.h2 { top: 25%; right: 10%; animation-delay: 1.5s; font-size: 1.8rem; }
.h3 { top: 60%; left: 5%; animation-delay: 3s; font-size: 2.2rem; }
.h4 { top: 70%; right: 8%; animation-delay: 4.5s; font-size: 2rem; }
.h5 { top: 40%; left: 12%; animation-delay: 2s; font-size: 1.6rem; }
.h6 { top: 50%; right: 15%; animation-delay: 5s; font-size: 2.4rem; }

@keyframes floatHiero {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(3deg); }
  66% { transform: translateY(10px) rotate(-2deg); }
}

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

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
}

.btn-text { position: relative; z-index: 2; }

.btn-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  z-index: 1;
  transition: left 0.6s ease;
}

.btn:hover .btn-shimmer { left: 100%; }

.btn-gold {
  background: var(--gold-gradient);
  color: #06040a;
  -webkit-text-fill-color: #06040a;
  box-shadow: 0 4px 20px rgba(212,175,55,0.25);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px var(--gold-glow);
  color: #06040a;
  -webkit-text-fill-color: #06040a;
}

.btn-gold:active {
  transform: translateY(-1px);
}

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

.btn-glass:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--gold-1);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212,175,55,0.15);
  color: var(--text-primary);
  -webkit-text-fill-color: var(--text-primary);
}

.btn-sm { padding: 10px 20px; font-size: 0.8rem; }
.btn-lg { padding: 20px 48px; font-size: 1rem; }
.btn-full { width: 100%; }

/* =============================================
   GAME SECTION — THE GOLDEN CHAMBER
   ============================================= */
.game-section {
  padding: 120px 0;
  position: relative;
  background:
    radial-gradient(ellipse 80% 50% at 50% 50%, rgba(212,175,55,0.04) 0%, transparent 60%),
    var(--bg-secondary);
}

.game-frame-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.game-frame-border {
  position: relative;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 60px rgba(212,175,55,0.08),
    0 20px 60px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,215,0,0.1);
  animation: frameGlow 4s ease-in-out infinite;
  transition: var(--transition-slow);
}

.game-frame-border:hover {
  box-shadow:
    0 0 80px rgba(212,175,55,0.15),
    0 30px 80px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,215,0,0.15);
  transform: translateY(-4px);
}

@keyframes frameGlow {
  0%, 100% { border-color: rgba(255,215,0,0.15); }
  50% { border-color: rgba(255,215,0,0.3); }
}

/* Frame Corners */
.frame-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  z-index: 3;
}

.frame-corner::before, .frame-corner::after {
  content: '';
  position: absolute;
  background: var(--gold-gradient);
}

.frame-tl { top: -2px; left: -2px; }
.frame-tl::before { top: 0; left: 0; width: 24px; height: 3px; }
.frame-tl::after { top: 0; left: 0; width: 3px; height: 24px; }

.frame-tr { top: -2px; right: -2px; }
.frame-tr::before { top: 0; right: 0; width: 24px; height: 3px; }
.frame-tr::after { top: 0; right: 0; width: 3px; height: 24px; }

.frame-bl { bottom: -2px; left: -2px; }
.frame-bl::before { bottom: 0; left: 0; width: 24px; height: 3px; }
.frame-bl::after { bottom: 0; left: 0; width: 3px; height: 24px; }

.frame-br { bottom: -2px; right: -2px; }
.frame-br::before { bottom: 0; right: 0; width: 24px; height: 3px; }
.frame-br::after { bottom: 0; right: 0; width: 3px; height: 24px; }

.game-iframe-container {
  position: relative;
  width: 100%;
  padding-top: 62.5%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}

.game-iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-sm);
}

.game-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

/* =============================================
   FEATURES — ANCIENT POWERS
   ============================================= */
.features {
  padding: 120px 0;
  position: relative;
  background:
    radial-gradient(ellipse 60% 40% at 20% 50%, rgba(124,58,237,0.04) 0%, transparent 50%),
    var(--bg-primary);
}

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

.feature-card {
  grid-column: span 4;
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,215,0,0.3);
  box-shadow: 0 20px 60px rgba(212,175,55,0.1), 0 0 40px rgba(212,175,55,0.05);
}

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

.feature-card-wide {
  grid-column: span 7;
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--gold-glow-soft) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

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

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}

.card-title {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  opacity: 0.85;
}

.card-pattern {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255,215,0,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.card-pattern::before {
  content: '';
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(255,215,0,0.03);
  border-radius: 50%;
}

/* =============================================
   SOCIAL PROOF / STATS
   ============================================= */
.social-proof {
  padding: 80px 0;
  position: relative;
}

.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 48px 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 140px;
}

.stat-number {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--glass-border), transparent);
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  padding: 80px 0 120px;
}

.cta-card {
  position: relative;
  padding: 80px 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(212,175,55,0.08) 0%, transparent 60%),
    var(--bg-section);
  border: 1px solid var(--glass-border);
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 180deg, transparent, rgba(212,175,55,0.03), transparent);
  animation: raysRotate 20s linear infinite;
}

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

.cta-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  opacity: 0.85;
}

.cta-legal {
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 0;
}

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

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,215,0,0.08);
}

.footer-brand {
  max-width: 360px;
}

.footer-pyramid {
  font-size: 2rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.footer-brand-name {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 14px;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-links-group {
  display: flex;
  gap: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-heading {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--gold-2);
}

.footer-legal-bar {
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,215,0,0.08);
}

.footer-legal-bar p {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(6, 4, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--bg-section);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 48px 40px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.modal-close:hover { color: var(--gold-2); }

.modal-title {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 32px;
}

.modal-body { }

.modal-step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #06040a;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-step h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.modal-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.modal-disclaimer {
  margin-top: 32px;
  padding: 20px;
  background: rgba(212,175,55,0.05);
  border: 1px solid rgba(212,175,55,0.1);
  border-radius: var(--radius-sm);
}

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

/* =============================================
   INNER PAGES
   ============================================= */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(212,175,55,0.06) 0%, transparent 60%),
    var(--bg-primary);
}

.page-hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  margin-top: 16px;
}

.page-hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.85;
}

.content-section {
  padding: 80px 0 120px;
}

.content-grid {
  max-width: 800px;
  margin: 0 auto;
}

.content-block {
  margin-bottom: 60px;
}

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

.content-block h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,215,0,0.1);
}

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

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

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

.value-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
}

.value-item:hover {
  border-color: rgba(255,215,0,0.3);
  transform: translateY(-4px);
}

.value-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.value-item h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.value-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

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

.contact-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: rgba(255,215,0,0.25);
}

.contact-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 12px;
}

.contact-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 4px;
}

.contact-card a {
  font-size: 0.9rem;
  color: var(--gold-2);
}

/* Contact Form */
.contact-form-wrapper {
  position: relative;
}

.contact-form {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.contact-form h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,215,0,0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 40px;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold-1);
  box-shadow: 0 0 20px rgba(212,175,55,0.1);
}

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

.form-note {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.form-note a { color: var(--gold-2); }

/* Form Success */
.form-success {
  background: var(--glass-bg);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
}

.success-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 20px;
}

.form-success h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.form-success p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =============================================
   LEGAL PAGES
   ============================================= */
.legal-document {
  max-width: 800px;
  margin: 0 auto;
}

.legal-document h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,215,0,0.08);
}

.legal-document h2:first-child { margin-top: 0; }

.legal-document h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-document p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-document ul {
  margin: 14px 0 14px 24px;
  list-style: none;
}

.legal-document ul li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}

.legal-document ul li::before {
  content: '☥';
  position: absolute;
  left: 0;
  color: var(--gold-1);
  font-size: 0.8rem;
}

.legal-document a {
  color: var(--gold-2);
}

.legal-document a:hover {
  color: var(--gold-3);
  text-decoration: underline;
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

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

  .feature-card,
  .feature-card-large,
  .feature-card-wide {
    grid-column: span 1;
  }

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

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

@media (max-width: 768px) {
  .nav-left, .nav-right { display: none; }

  .mobile-toggle { display: flex; }

  .mobile-menu { display: flex; }

  .nav-container {
    justify-content: space-between;
  }

  .pyramid-logo { margin: 0; }

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

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

  .game-section, .features, .cta-section { padding: 80px 0; }

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

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

  .feature-card,
  .feature-card-large,
  .feature-card-wide {
    grid-column: span 1;
  }

  .stats-bar {
    flex-direction: column;
    gap: 28px;
    padding: 36px 24px;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links-group { flex-wrap: wrap; gap: 40px; }

  .game-frame-border { padding: 12px; }

  .game-controls { flex-direction: column; align-items: center; }

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

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

  .hero-hieroglyphs { display: none; }

  .modal-card { padding: 36px 24px; }

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

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; gap: 14px; }
  .hero-cta .btn { width: 100%; }

  .brand-name { font-size: 0.55rem; letter-spacing: 2px; }

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

/* =============================================
   GOLD SHIMMER UTILITY
   ============================================= */
@keyframes goldShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer-text {
  background: linear-gradient(90deg, var(--gold-1) 0%, var(--gold-3) 25%, var(--gold-1) 50%, var(--gold-3) 75%, var(--gold-1) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 3s linear infinite;
}

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

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

::-webkit-scrollbar-thumb {
  background: rgba(212,175,55,0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(212,175,55,0.4);
}