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

:root {
  /* Core Backgrounds */
  --bg-primary: #05070d;
  --bg-secondary: #0f1724;
  --bg-tertiary: #1a2235;

  /* Glass Surfaces */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-blur: blur(24px);

  /* Accents */
  --lava-gold: linear-gradient(135deg, #f59e0b, #f97316);
  --lava-glow: rgba(245, 158, 11, 0.45);
  
  --mineral-cyan: linear-gradient(135deg, #06b6d4, #67e8f9);
  --cyan-glow: rgba(6, 182, 212, 0.45);
  
  --electric-emerald: linear-gradient(135deg, #10b981, #34d399);
  --emerald-glow: rgba(16, 185, 129, 0.35);
  
  --premium-blend: linear-gradient(135deg, #f59e0b, #06b6d4, #10b981);

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --container-width: 1320px;
  --nav-height: 80px;
  --border-radius-lg: 28px;
  --border-radius-md: 20px;
  --border-radius-sm: 12px;
}

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

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

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

/* Background Effects */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: 
    radial-gradient(circle at 15% 50%, rgba(6, 182, 212, 0.08), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(245, 158, 11, 0.08), transparent 40%);
  z-index: -1;
  pointer-events: none;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }

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

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

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

@media (max-width: 1024px) { .container { padding: 0 90px; } }
@media (max-width: 768px) { .container { padding: 0 30px; } }

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: none;
}

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

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.7);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: var(--glass-border);
  backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 20px var(--cyan-glow);
  transform: translateY(-3px);
}

/* HEADER & NAVIGATION */
.site-header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none; /* Let clicks pass through outside the dock */
}

.nav-dock {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 95%;
  max-width: var(--container-width);
  height: var(--nav-height);
  padding: 0 30px;
  background: rgba(15, 23, 36, 0.6);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(6, 182, 212, 0.2);
  transition: all 0.3s ease;
}

.nav-dock:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(6, 182, 212, 0.4);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--mineral-cyan);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="12 2 2 7 12 12 22 7 12 2"></polygon><polyline points="2 17 12 22 22 17"></polyline><polyline points="2 12 12 17 22 12"></polyline></svg>') no-repeat center;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="12 2 2 7 12 12 22 7 12 2"></polygon><polyline points="2 17 12 22 22 17"></polyline><polyline points="2 12 12 17 22 12"></polyline></svg>') no-repeat center;
  animation: float-icon 3s ease-in-out infinite;
}

.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: rgba(6, 182, 212, 0.1);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.8);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-actions .btn-primary {
  padding: 10px 24px;
  font-size: 1rem;
}

/* HERO SECTION */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('images/futuristic-cyber-mining-abstract-neon-background.png') center/cover no-repeat;
  opacity: 0.2;
  z-index: 0;
  mix-blend-mode: luminosity;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-primary) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 24px;
  text-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.hero-legal {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-left: 3px solid var(--text-muted);
  padding-left: 15px;
  max-width: 400px;
}

.hero-visual {
  position: relative;
  perspective: 1000px;
}

.hero-machine-wrapper {
  position: relative;
  animation: float 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

.hero-machine-wrapper img {
  width: 100%;
  max-width: 600px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 40px var(--cyan-glow);
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.floating-crystal {
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--mineral-cyan);
  filter: blur(20px);
  border-radius: 50%;
  opacity: 0.5;
  animation: pulse-glow 4s alternate infinite;
}

.fc-1 { top: -20px; left: -20px; }
.fc-2 { bottom: 20px; right: -20px; animation-delay: 2s; background: var(--lava-gold); }

/* GAME SECTION */
.game-section {
  padding: 100px 0;
  position: relative;
}

.game-mega-panel {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  background: var(--bg-secondary);
  border-radius: 30px;
  padding: 10px;
  border: 2px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.2), inset 0 0 20px rgba(0,0,0,0.8);
  transition: all 0.4s ease;
}

.game-mega-panel:hover {
  box-shadow: 0 0 60px rgba(6, 182, 212, 0.4), inset 0 0 20px rgba(0,0,0,0.8);
  border-color: rgba(6, 182, 212, 0.6);
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.game-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.game-title h2 {
  font-size: 1.8rem;
  margin: 0;
}

.game-controls {
  display: flex;
  gap: 15px;
}

.icon-btn {
  background: var(--glass-bg);
  border: var(--glass-border);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.icon-btn:hover {
  background: rgba(6, 182, 212, 0.2);
  color: #06b6d4;
}

.game-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
}

.game-wrapper iframe {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border: none;
}

/* MODAL - HOW TO PLAY */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-content {
  background: var(--bg-tertiary);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 600px;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px var(--lava-glow);
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s ease;
}

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

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

.modal-close:hover { color: #fff; }

.modal-content h3 { margin-bottom: 20px; color: #f59e0b; }
.modal-content p, .modal-content ul { margin-bottom: 15px; color: var(--text-secondary); }
.modal-content ul { padding-left: 20px; }

/* FEATURES GRID */
.features-section {
  padding: 100px 0;
}

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

.section-header p {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-top: 10px;
}

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

.feature-card {
  padding: 40px 30px;
  text-align: left;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: var(--mineral-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(6, 182, 212, 0.2);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: inline-block;
  background: var(--mineral-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-card h3 { margin-bottom: 15px; font-size: 1.5rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* STATS SECTION */
.stats-section {
  padding: 80px 0;
  background: linear-gradient(to right, rgba(15,23,36,0.8), rgba(5,7,13,0.9)),
              url('images/industrial-cyber-machinery-underground-mining.png') center/cover fixed;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.stat-card {
  padding: 30px;
}

.stat-number {
  font-size: 3rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 0 20px var(--emerald-glow);
}

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

/* LEGAL PAGES & TEXT HEAVY PAGES */
.page-header {
  padding: 180px 0 80px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(6, 182, 212, 0.1), transparent);
}

.content-section {
  padding: 60px 0 100px;
}

.text-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px;
}

.text-content-wrapper h2 {
  margin: 40px 0 20px;
  color: #06b6d4;
}

.text-content-wrapper p, .text-content-wrapper ul {
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.text-content-wrapper ul {
  padding-left: 20px;
}

.text-content-wrapper li {
  margin-bottom: 10px;
}

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

.contact-info, .contact-form {
  padding: 40px;
}

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

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

.form-control {
  width: 100%;
  padding: 14px 20px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-body);
  transition: all 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: #06b6d4;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

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

.info-item {
  margin-bottom: 30px;
}

.info-item h4 {
  color: #f59e0b;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

/* FOOTER */
.site-footer {
  background: var(--bg-tertiary);
  border-top: 1px solid rgba(6, 182, 212, 0.2);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: var(--premium-blend);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 25px;
  font-size: 1.2rem;
}

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

.footer-links {
  list-style: none;
}

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

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

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-disclaimer {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 800px;
  margin: 0 auto 15px;
}

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

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

@keyframes float-icon {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-5px) scale(1.1); }
  100% { transform: translateY(0px) scale(1); }
}

@keyframes pulse-glow {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.2); opacity: 0.8; }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { margin: 0 auto 40px; }
  .hero-buttons { justify-content: center; }
  .hero-legal { margin: 0 auto; text-align: center; border-left: none; border-top: 3px solid var(--text-muted); padding: 15px 0 0; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Mobile Navigation */
  .site-header { display: none; }
  
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background: rgba(15, 23, 36, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(6, 182, 212, 0.3);
    z-index: 2000;
    padding: 10px 0;
    justify-content: space-around;
    align-items: center;
  }
  
  .mobile-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-family: var(--font-heading);
    text-transform: uppercase;
  }
  
  .mobile-nav a.active {
    color: #06b6d4;
  }

  body { padding-bottom: 70px; } /* Space for mobile nav */

  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-section { padding-top: 40px; }
  h1 { font-size: 2.5rem; }
  .game-mega-panel { border-radius: 15px; padding: 5px; }
  .game-header { flex-direction: column; gap: 15px; text-align: center; }
}

@media (min-width: 769px) {
  .mobile-nav { display: none; }
}