:root {
  /* Base Layers */
  --bg-primary: #0b0b0f;
  --bg-secondary: #14141a;
  --bg-surface: rgba(255, 255, 255, 0.04);
  
  /* Accents */
  --accent-primary: #b91c1c;
  --accent-secondary: #ef4444;
  --accent-highlight: #facc15;
  
  /* Supporting Tones */
  --tone-purple: #2e1065;
  --tone-fog: #9ca3af;
  
  /* Text */
  --text-primary: #f5f5f5;
  --text-secondary: #d4d4d8;
  --text-muted: #a1a1aa;
  
  /* Layout */
  --max-width: 1320px;
  --radius: 18px;
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  
  /* Fonts */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

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

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

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

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); }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

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

/* Layout Classes */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section-spacing {
  padding: 110px 0;
}

/* Glassmorphism */
.glass {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s ease;
  padding: 20px 0;
  background: transparent;
}

header.scrolled {
  background: rgba(11, 11, 15, 0.9);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(185, 28, 28, 0.3);
  padding: 15px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo span {
  color: var(--accent-primary);
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav a {
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 5px 0;
}

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

nav a:hover::after, nav a.active::after {
  width: 100%;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #7f1d1d 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(185, 28, 28, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
  background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-highlight);
  color: var(--accent-highlight);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.1);
}

.btn-outline:hover {
  background: rgba(250, 204, 21, 0.1);
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.3);
  transform: translateY(-2px);
}

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(circle at 70% 30%, rgba(46, 16, 101, 0.4) 0%, var(--bg-primary) 60%);
}

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

.hero-text h1 {
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-text p {
  font-size: 1.125rem;
  margin-bottom: 30px;
  max-width: 480px;
}

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

/* Slot Game Container (Custom JS) */
.slot-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.slot-frame {
  background: var(--bg-secondary);
  border: 2px solid #3f3f46;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 0 20px rgba(0,0,0,0.5);
  position: relative;
}

.slot-frame::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, var(--accent-highlight), transparent, var(--accent-primary));
  z-index: -1;
  border-radius: calc(var(--radius) + 2px);
  opacity: 0.3;
}

.slot-reels {
  display: flex;
  gap: 10px;
  background: #000;
  padding: 10px;
  border-radius: 8px;
  height: 240px;
  overflow: hidden;
  border: 1px solid #27272a;
  box-shadow: inset 0 0 30px rgba(185, 28, 28, 0.2);
}

.reel {
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: transform 3s cubic-bezier(0.15, 0.85, 0.35, 1);
}

.symbol {
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  text-shadow: 0 2px 10px rgba(255,255,255,0.2);
}

.slot-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 15px;
  background: rgba(0,0,0,0.4);
  border-radius: 12px;
}

.balance-box {
  text-align: left;
}

.balance-box span {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.balance-amount {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent-highlight);
}

#spin-btn {
  font-size: 1.2rem;
  padding: 15px 40px;
  border-radius: 30px;
}

.win-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(185, 28, 28, 0.9);
  padding: 20px 40px;
  border-radius: var(--radius);
  border: 2px solid var(--accent-highlight);
  font-family: var(--font-heading);
  font-size: 2rem;
  color: white;
  z-index: 10;
  transition: transform 0.3s ease;
  box-shadow: 0 0 40px rgba(185, 28, 28, 0.8);
  pointer-events: none;
}

.win-message.show {
  transform: translate(-50%, -50%) scale(1);
}

/* Features Section */
.features {
  background: var(--bg-secondary);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 28, 28, 0.5), transparent);
}

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

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

.feature-card {
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(185, 28, 28, 0.3);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
  filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.2));
}

/* Integrated Game Section */
.integrated-game {
  background: var(--bg-primary);
  text-align: center;
}

.iframe-wrapper {
  width: 100%;
  max-width: 1000px;
  height: 600px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(185, 28, 28, 0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  position: relative;
}

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

/* Legal Pages */
.legal-content {
  padding-top: 150px;
  padding-bottom: 80px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-glass {
  padding: 50px;
}

.legal-glass h1 {
  margin-bottom: 10px;
}

.legal-glass h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 15px;
  color: var(--accent-secondary);
}

.legal-glass ul {
  margin-left: 20px;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.legal-glass li {
  margin-bottom: 8px;
}

/* Footer */
footer {
  background: #060608;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-brand .logo {
  margin-bottom: 20px;
}

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

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

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

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

.footer-links a:hover {
  color: var(--accent-secondary);
}

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

/* Particle Container */
#particles {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}