:root {
  --bg-dark: #0B0A0F;
  --primary-violet: #7C3AED;
  --primary-green: #22C55E;
  --text-white: #F8FAFC;
  --text-grey: #94A3B8;
  --glass-bg: rgba(124, 58, 237, 0.05);
  --glass-border: rgba(124, 58, 237, 0.2);
  --glass-hover: rgba(124, 58, 237, 0.15);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --space-desktop: 120px;
  --space-tablet: 80px;
  --space-mobile: 60px;
}

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

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

body {
  background-color: var(--bg-dark);
  color: var(--text-grey);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(34px, 5vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 48px); }
h3 { font-size: clamp(24px, 3vw, 36px); }

p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

a {
  color: var(--text-white);
  text-decoration: none;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.text-violet { color: var(--primary-violet); }
.text-green { color: var(--primary-green); }

.section-padding {
  padding: var(--space-desktop) 0;
}

@media (max-width: 1024px) {
  .section-padding { padding: var(--space-tablet) 0; }
}

@media (max-width: 768px) {
  .section-padding { padding: var(--space-mobile) 0; }
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: box-shadow 0.4s ease, background 0.4s ease;
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--glass-hover);
}

.glass-card.violet-glow:hover {
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.2);
}

.glass-card.green-glow:hover {
  box-shadow: 0 10px 40px rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--primary-violet);
  color: var(--text-white);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
  background: #6d28d9;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 2px solid var(--primary-violet);
}

.btn-secondary:hover {
  background: rgba(124, 58, 237, 0.1);
  box-shadow: inset 0 0 10px rgba(124, 58, 237, 0.3);
}

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #0B0A0F, #2a105c, #0B0A0F);
  color: var(--text-white);
  text-align: center;
  padding: 8px 0;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
}

.logo svg {
  width: 32px;
  height: 32px;
  fill: var(--primary-violet);
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.6));
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-violet);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--primary-violet);
}

.nav-links a:hover {
  color: #c4b5fd;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 992px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-menu-btn { display: block; }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/images/hero-witch-flying-moon.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  opacity: 0.6;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%);
  z-index: 2;
}

.fog-container {
  position: absolute;
  width: 200%;
  height: 100%;
  top: 0;
  left: -50%;
  z-index: 3;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.01" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.05"/></svg>');
  animation: fog-pan 60s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

.particles {
  position: absolute;
  inset: 0;
  z-index: 4;
  background-image: radial-gradient(var(--primary-violet) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.05;
  animation: float 20s linear infinite;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding-top: 80px;
}

.hero h1 {
  text-shadow: 0 4px 20px rgba(0,0,0,0.8), 0 0 40px rgba(124, 58, 237, 0.4);
  margin-bottom: 1.5rem;
  animation: fade-up 1s ease-out;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  margin-bottom: 2.5rem;
  animation: fade-up 1s ease-out 0.2s both;
}

.hero .btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: fade-up 1s ease-out 0.4s both;
}

@media (max-width: 600px) {
  .hero .btn-group { flex-direction: column; }
}

/* Featured Game Section */
.game-section {
  position: relative;
  background: var(--bg-dark);
}

.game-wrapper {
  margin-top: 3rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--primary-violet);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.15);
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
}

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

/* About / Lore Section */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .split-section { grid-template-columns: 1fr; }
}

.img-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.1);
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--primary-violet);
}

.feature-icon svg { width: 30px; height: 30px; fill: currentColor; }

/* Stats */
.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 4rem 0;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.05) 0%, transparent 70%);
}

@media (max-width: 768px) {
  .stats-container { grid-template-columns: repeat(2, 1fr); }
}

.stat-number {
  font-size: 3rem;
  font-family: var(--font-heading);
  color: var(--text-white);
  text-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
  margin-bottom: 0.5rem;
}

.stat-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
  color: var(--primary-green);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 300px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.5s ease;
}

.gallery-item:hover img {
  filter: brightness(1.2);
}

.gi-1 { grid-column: span 8; }
.gi-2 { grid-column: span 4; }
.gi-3 { grid-column: span 4; }
.gi-4 { grid-column: span 8; }

@media (max-width: 768px) {
  .gallery-item { grid-column: span 12 !important; }
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 3rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--glass-border);
  padding: 1.5rem 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-grey);
  margin-top: 0;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  margin-top: 1rem;
}

.faq-icon {
  color: var(--primary-violet);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.blog-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-dark);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.blog-card:hover {
  border-color: var(--primary-violet);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.1);
}

.blog-img {
  height: 200px;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  font-size: 0.875rem;
  color: var(--primary-green);
  margin-bottom: 0.5rem;
  display: block;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Contact & Newsletter */
.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-white);
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-violet);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
  background: rgba(124, 58, 237, 0.05);
}

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

.newsletter-box {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(34, 197, 94, 0.05));
  border-radius: 20px;
  padding: 4rem 2rem;
  text-align: center;
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.newsletter-form {
  max-width: 500px;
  margin: 2rem auto 0;
  display: flex;
  gap: 1rem;
}

@media (max-width: 600px) {
  .newsletter-form { flex-direction: column; }
}

/* Footer */
.footer {
  background: #050408;
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-col h4 {
  color: var(--text-white);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-violet);
}

.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-grey); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary-violet); padding-left: 5px; }

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary-violet);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.875rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background: rgba(11, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--primary-violet);
  border-radius: 12px;
  padding: 1.5rem;
  z-index: 9999;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8), 0 0 20px rgba(124, 58, 237, 0.3);
  transition: bottom 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-banner.show { bottom: 24px; }

.cookie-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }

/* Animations */
@keyframes float {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-20px) translateX(10px); }
  100% { transform: translateY(0) translateX(0); }
}

@keyframes fog-pan {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

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

/* Page specific content */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}
.legal-content h1 { margin-bottom: 2rem; color: var(--primary-violet); }
.legal-content h2 { margin-top: 2rem; margin-bottom: 1rem; font-size: 1.5rem; }
.legal-content p { margin-bottom: 1rem; }