@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Design System Colors */
  --bg-primary: #0B1220;
  --bg-secondary: #121C31;
  --bg-surface: #182540;
  --crystal-blue: #4CC9FF;
  --magic-purple: #8B5CF6;
  --treasure-gold: #E0B44C;
  --ancient-gold: #FFD56B;
  --text-primary: #F8FAFF;
  --text-secondary: #D1DAEE;
  --text-muted: #96A2BF;
  
  /* Layout & Typography */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --container-width: 1200px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Global Background FX */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 15% 50%, rgba(76, 201, 255, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--treasure-gold), var(--ancient-gold));
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(224, 180, 76, 0.3);
}

.btn-primary:hover, .btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 180, 76, 0.5);
}

.btn-secondary {
  background: rgba(24, 37, 64, 0.6);
  color: var(--crystal-blue);
  border: 1px solid var(--crystal-blue);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover, .btn-secondary:focus-visible {
  background: rgba(76, 201, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(76, 201, 255, 0.2);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--ancient-gold);
  text-shadow: 0 2px 10px rgba(224, 180, 76, 0.2);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(11, 18, 32, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(76, 201, 255, 0.1);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(11, 18, 32, 0.95);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

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

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

.logo-icon {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links a:hover, .nav-links a:focus-visible {
  color: var(--crystal-blue);
  text-shadow: 0 0 8px rgba(76, 201, 255, 0.4);
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 80px;
  background-image: url('assets/images/cinematic-dungeon-crystal-vault-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(11, 18, 32, 0.3) 0%, rgba(11, 18, 32, 0.9) 100%);
}

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

.hero h1 {
  font-size: 4rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.hero h1 span {
  color: var(--crystal-blue);
  display: block;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Game Section */
.game-section {
  padding: 6rem 0;
  background: var(--bg-primary);
  position: relative;
}

.game-wrapper {
  width: 75%;
  max-width: var(--container-width);
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(224, 180, 76, 0.3);
  box-shadow: 0 0 40px rgba(224, 180, 76, 0.15),
              inset 0 0 20px rgba(0,0,0,0.8);
  position: relative;
  background: #000;
}

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

/* Rewards Section */
.rewards-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(139, 92, 246, 0.1);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

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

.reward-card {
  background: var(--bg-surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: var(--transition);
}

.reward-card:hover, .reward-card:focus-within {
  transform: translateY(-8px);
  border-color: var(--crystal-blue);
  box-shadow: 0 10px 30px rgba(76, 201, 255, 0.15);
}

.reward-img-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.reward-img-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 50%;
  background: linear-gradient(to top, var(--bg-surface), transparent);
}

.reward-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.reward-card:hover .reward-img-wrapper img {
  transform: scale(1.05);
}

.reward-content {
  padding: 24px;
}

.reward-content h3 {
  font-size: 1.4rem;
  color: var(--ancient-gold);
  margin-bottom: 12px;
}

.reward-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Stats Section */
.stats-section {
  padding: 5rem 0;
  background: linear-gradient(to right, rgba(11, 18, 32, 0.9), rgba(24, 37, 64, 0.9)), url('assets/images/dark-stone-chamber-texture.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  padding: 20px;
  background: rgba(11, 18, 32, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(224, 180, 76, 0.1);
  backdrop-filter: blur(8px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--crystal-blue);
  margin-bottom: 8px;
  text-shadow: 0 0 15px rgba(76, 201, 255, 0.3);
}

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

/* About Short Section */
.about-short {
  padding: 6rem 0;
  background: var(--bg-primary);
  text-align: center;
}

.about-short .container {
  max-width: 800px;
}

.about-short p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* FAQ Section */
.faq-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  margin-bottom: 16px;
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.1);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  color: var(--crystal-blue);
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  content: '−';
  color: var(--treasure-gold);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 20px;
}

.faq-answer p {
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid rgba(224, 180, 76, 0.2);
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--treasure-gold), transparent);
  box-shadow: 0 0 20px rgba(224, 180, 76, 0.8);
}

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

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 400px;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-family: var(--font-heading);
  color: var(--ancient-gold);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

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

.footer-links a, .support-email {
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links a:hover, .footer-links a:focus-visible {
  color: var(--crystal-blue);
  padding-left: 5px;
}

.support-email {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(24, 37, 64, 0.5);
  border: 1px solid rgba(76, 201, 255, 0.2);
  border-radius: 4px;
  font-family: monospace;
  color: var(--crystal-blue);
}

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(18, 28, 49, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(76, 201, 255, 0.2);
  padding: 20px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: translateY(150%);
  transition: transform 0.5s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  transition: var(--transition);
}

.cookie-accept {
  background: var(--crystal-blue);
  color: var(--bg-primary);
}

.cookie-accept:hover {
  background: #6DD5FF;
}

.cookie-reject {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--text-muted);
}

.cookie-reject:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
}

/* Internal Pages Typography & Layout */
.page-hero {
  padding: 160px 0 60px;
  text-align: center;
  background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.page-hero h1 {
  font-size: 3rem;
  color: var(--ancient-gold);
}

.page-content {
  padding: 6rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.prose h2 {
  color: var(--crystal-blue);
  margin: 2rem 0 1rem;
  font-size: 1.8rem;
}

.prose p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.prose ul {
  margin-bottom: 1.5rem;
  padding-left: 20px;
}

.prose li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  list-style-type: disc;
}

/* Contact Form */
.contact-form {
  background: var(--bg-surface);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid rgba(76, 201, 255, 0.1);
}

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

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(11, 18, 32, 0.8);
  border: 1px solid rgba(76, 201, 255, 0.2);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--crystal-blue);
  box-shadow: 0 0 10px rgba(76, 201, 255, 0.1);
}

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

.form-status {
  margin-top: 20px;
  padding: 15px;
  border-radius: 4px;
  display: none;
  font-weight: 500;
  text-align: center;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  color: #34D399;
  border: 1px solid #10B981;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #F87171;
  border: 1px solid #EF4444;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .game-wrapper {
    width: 90%;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 20px 0;
    clip-path: circle(0% at 100% 0);
    transition: clip-path 0.4s ease-in-out;
  }
  
  .nav-links.active {
    clip-path: circle(150% at 100% 0);
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .game-wrapper {
    width: 100%;
  }
  
  .rewards-grid, .stats-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}