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

:root {
  /* Colors */
  --bg-primary: #050816;
  --bg-secondary: #0d1328;
  --bg-surface: #111827;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #60a5fa, #38bdf8);
  --grad-secondary: linear-gradient(135deg, #8b5cf6, #c084fc);
  --grad-highlight: linear-gradient(135deg, #06b6d4, #67e8f9);
  --grad-premium: linear-gradient(135deg, #60a5fa, #8b5cf6, #06b6d4);
  
  /* Glows */
  --glow-primary: rgba(96, 165, 250, 0.45);
  --glow-secondary: rgba(139, 92, 246, 0.45);
  --glow-highlight: rgba(6, 182, 212, 0.35);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: 1px solid rgba(255, 255, 255, 0.12);
  --glass-blur: blur(22px);
  
  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --space-desktop: 120px;
  --space-tablet: 80px;
  --space-mobile: 60px;
  
  /* Layout */
  --container-width: 1280px;
  --ultrawide-width: 1440px;
  
  /* Radii */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 100px;
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
  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;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 0%, var(--bg-secondary), var(--bg-primary) 70%);
  z-index: -2;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

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

.text-gradient {
  background: var(--grad-premium);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

.content-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 24px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  border: var(--glass-border);
  object-fit: cover;
  max-height: 400px;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  transition: 0.5s;
  z-index: -1;
}

.btn:hover::before {
  left: 150%;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

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

.btn-primary:hover {
  box-shadow: 0 6px 28px var(--glow-primary);
}

.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(96, 165, 250, 0.5);
}

/* =========================================
   HEADER (DESKTOP)
   ========================================= */
.command-bar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  height: 70px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(96, 165, 250, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.command-bar:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(96, 165, 250, 0.5);
  transform: translateX(-50%) translateY(-2px);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--grad-primary);
  mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 2L2 9L12 22L22 9L12 2Z" fill="white"/></svg>') no-repeat center;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 2L2 9L12 22L22 9L12 2Z" fill="white"/></svg>') no-repeat center;
  animation: pulseGlow 3s infinite alternate;
}

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

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.2);
}

.nav-actions {
  display: flex;
  gap: 12px;
}

.nav-btn {
  padding: 8px 20px;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
}

/* =========================================
   MOBILE HEADER / NAV
   ========================================= */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  z-index: 1000;
  justify-content: space-between;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.75rem;
  gap: 4px;
  transition: 0.3s;
}

.mobile-nav-item:hover, .mobile-nav-item.active {
  color: #60a5fa;
}

.mobile-nav-icon {
  width: 24px;
  height: 24px;
}

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

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

.hero-content {
  z-index: 2;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: #60a5fa;
  margin-bottom: 24px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin-bottom: 24px;
  color: #fff;
  text-shadow: 0 0 40px rgba(96, 165, 250, 0.3);
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 24px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.1);
}

/* 3D Visuals Area */
.hero-visuals {
  position: relative;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.crystal-element {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--grad-primary);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: floatCrystal 6s ease-in-out infinite;
  opacity: 0.8;
  filter: drop-shadow(0 0 30px var(--glow-primary));
}

.crystal-element::after {
  content: '';
  position: absolute;
  top: 10px; left: 10px; right: 10px; bottom: 10px;
  background: var(--bg-primary);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.crystal-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--glow-primary) 0%, transparent 70%);
  animation: pulseGlow 4s infinite alternate;
}

.floating-diamond-sm {
  position: absolute;
  width: 40px;
  height: 40px;
  background: var(--grad-secondary);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation: floatCrystal 4s ease-in-out infinite reverse;
}

.fd-1 { top: 20%; left: 10%; }
.fd-2 { bottom: 20%; right: 10%; width: 60px; height: 60px; animation-delay: 1s; }

/* =========================================
   MAIN GAME SECTION (game-diamond-slot)
   ========================================= */
.game-section {
  padding: var(--space-desktop) 0;
  position: relative;
}

.game-header {
  text-align: center;
  margin-bottom: 40px;
}

.game-title {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.game-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: 2px; /* For animated border */
  background: linear-gradient(45deg, #050816, #0d1328);
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6), 0 0 40px rgba(96,165,250,0.2);
}

.game-wrapper::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, var(--glow-primary) 25%, transparent 50%, var(--glow-secondary) 75%, transparent 100%);
  animation: rotateBorder 8s linear infinite;
  z-index: 0;
}

.game-inner {
  position: relative;
  background: var(--bg-surface);
  border-radius: calc(var(--radius-lg) - 2px);
  overflow: hidden;
  z-index: 1;
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
}

.game-iframe-container {
  flex: 1;
  width: 100%;
  height: 100%;
}

.game-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

.game-controls {
  height: 60px;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.control-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  transition: color 0.3s;
}

.control-btn:hover {
  color: #fff;
}

/* =========================================
   FEATURES GRID SECTION
   ========================================= */
.features-section {
  position: relative;
}

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

.section-head h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

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

.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(96,165,250,0.3);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at top right, rgba(96,165,250,0.1), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

/* Asymmetrical Spanning */
.card-large { grid-column: span 8; min-height: 400px; justify-content: flex-end; }
.card-medium { grid-column: span 4; min-height: 400px; }
.card-wide { grid-column: span 12; min-height: 300px; flex-direction: row; align-items: center; gap: 40px;}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
  border: 1px solid rgba(255,255,255,0.1);
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #fff;
}

.feature-desc {
  color: var(--text-secondary);
}

/* =========================================
   STATS SECTION
   ========================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.stat-card {
  text-align: center;
  padding: 32px 24px;
}

.stat-number {
  font-size: 3rem;
  font-family: var(--font-head);
  font-weight: 800;
  margin-bottom: 8px;
}

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

/* =========================================
   FOOTER & LEGAL
   ========================================= */
.site-footer {
  background: #03050a;
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: var(--space-desktop);
}

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

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

.company-details {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.8;
}

.company-details strong {
  color: var(--text-secondary);
}

.footer-title {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 24px;
}

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

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

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

.disclaimer-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 24px;
  border-radius: var(--radius-sm);
  text-align: center;
  margin-bottom: 40px;
}

.disclaimer-box p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.disclaimer-box strong {
  color: var(--text-secondary);
}

.copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 24px;
}

/* =========================================
   PAGE SPECIFIC (LEGAL/ABOUT)
   ========================================= */
.page-header {
  padding: 180px 0 80px;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(96,165,250,0.05) 0%, transparent 70%);
}

.page-title {
  font-size: 3rem;
  margin-bottom: 16px;
}

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

.content-wrapper h2 {
  font-size: 1.8rem;
  margin: 32px 0 16px;
  color: #fff;
}

.content-wrapper p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.content-wrapper ul {
  list-style: disc inside;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

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

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

.form-group label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-control {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 16px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: #60a5fa;
}

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

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes floatCrystal {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes pulseGlow {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

@keyframes rotateBorder {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

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

/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .features-grid { grid-template-columns: repeat(8, 1fr); }
  .card-large, .card-medium { grid-column: span 8; min-height: 250px; }
  .card-wide { flex-direction: column; text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --space-desktop: var(--space-mobile);
  }
  .command-bar { display: none; } /* Hide desktop nav */
  .mobile-nav { display: flex; } /* Show mobile nav */
  
  .hero-title { font-size: 2.5rem; }
  .hero-visuals { height: 400px; }
  .crystal-element { width: 200px; height: 200px; }
  
  .game-inner { aspect-ratio: 4/3; } /* Taller for mobile layout */
  
  .features-grid { grid-template-columns: 1fr; }
  .card-large, .card-medium, .card-wide { grid-column: span 1; }
  
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-links { align-items: center; }
}