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

:root {
  --bg-primary: #020617;
  --bg-secondary: #0f0a0a;
  
  --accent-lava: linear-gradient(135deg, #ef4444, #f97316);
  --accent-dragon: linear-gradient(135deg, #22c55e, #4ade80);
  --accent-gold: linear-gradient(135deg, #facc15, #fb923c);
  
  --glow-lava: rgba(239, 68, 68, 0.35);
  --glow-green: rgba(34, 197, 94, 0.25);
  --glow-gold: rgba(250, 204, 21, 0.35);
  
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;

  --font-main: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
}

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

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

/* Background Effects */
.bg-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: 
    radial-gradient(circle at 20% 30%, rgba(239, 68, 68, 0.18), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(34, 197, 94, 0.15), transparent 40%),
    var(--bg-primary);
  pointer-events: none;
}

.bg-effects::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('images/photo-1550684848-fac1c5b4e853.png') center/cover;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* Glassmorphism Utilities */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

.glass-panel {
  background: rgba(15, 10, 10, 0.6);
  backdrop-filter: blur(40px);
  border-bottom: 1px solid var(--glass-border);
}

/* Typography Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
}

.text-gradient-lava {
  background: var(--accent-lava);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

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

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

.text-muted {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-main);
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent-lava);
  color: #fff;
  box-shadow: 0 4px 20px var(--glow-lava);
}

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

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  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;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-lava);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--glow-lava);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
}

.menu-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;
  padding-top: 80px;
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text h1 {
  font-size: 4rem;
  margin-bottom: 24px;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.legal-notice {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 100%;
  max-width: 500px;
  border-radius: 30px;
  box-shadow: 0 0 80px var(--glow-lava);
  animation: float 6s ease-in-out infinite;
  object-fit: cover;
  aspect-ratio: 4/5;
}

/* Trust Strip */
.trust-strip {
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(2, 6, 23, 0.4);
}

.trust-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.trust-icon {
  color: #f97316;
}

/* Game Showcase */
.game-section {
  padding: 120px 0;
}

.game-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border-color: rgba(239, 68, 68, 0.2);
}

.game-iframe-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

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

.game-details {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-secondary);
  border-left: 1px solid var(--glass-border);
}

.game-details h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.game-details p {
  margin-bottom: 32px;
}

.game-details-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Features */
.features-section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 16px;
}

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

.feature-card {
  padding: 32px;
  text-align: center;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 10px 30px var(--glow-lava);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
  background: var(--accent-lava);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

/* Story Section */
.story-section {
  padding: 120px 0;
}

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

.story-image {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 1/1;
  object-fit: cover;
  box-shadow: 0 0 40px var(--glow-lava);
}

.story-content h2 {
  font-size: 3rem;
  margin-bottom: 24px;
}

.story-content p {
  font-size: 1.125rem;
  margin-bottom: 24px;
}

/* CTA Section */
.cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
}

.cta-box {
  padding: 64px 24px;
  background: linear-gradient(135deg, rgba(239,68,68,0.1), rgba(249,115,22,0.1));
  border: 1px solid rgba(239, 68, 68, 0.2);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, var(--glow-lava) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.cta-box h2 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.cta-box .btn {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  padding: 16px 40px;
}

/* Pages Layout (About, Contact, Terms, etc.) */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
}

.page-header h1 {
  font-size: 4rem;
  margin-bottom: 16px;
}

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

.content-glass {
  padding: 48px;
}

.content-glass h2 {
  font-size: 2rem;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.content-glass p, .content-glass ul {
  margin-bottom: 24px;
  font-size: 1.125rem;
}

.content-glass ul {
  padding-left: 24px;
  color: var(--text-secondary);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.form-group label {
  font-weight: 500;
  color: var(--text-secondary);
}

.form-control {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
  padding: 16px;
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

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

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  background: rgba(2, 6, 23, 0.8);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 1.25rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #ef4444;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  margin-bottom: 8px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  max-width: 600px;
  width: 90%;
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
}

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

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-text h1 { font-size: 3rem; }
  .game-card { grid-template-columns: 1fr; }
  .game-iframe-wrapper { aspect-ratio: 16/10; }
  .game-details { border-left: none; border-top: 1px solid var(--glass-border); }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    transition: left 0.3s ease;
  }
  
  .nav-links.active { left: 0; }
  
  .hero-content, .story-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text p { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { margin: 16px auto 0; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 2.5rem; }
  .section-header h2, .cta-box h2, .page-header h1 { font-size: 2.5rem; }
  .game-details { padding: 32px 24px; }
  .content-glass { padding: 32px 24px; }
}