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

:root {
  --bg: #0a0e1a;
  --bg-card: #111827;
  --bg-card-hover: #1a2535;
  --fg: #f0ede6;
  --fg-muted: #8a8f9e;
  --gold: #d4a843;
  --gold-light: #e8c06a;
  --gold-dark: #a07820;
  --teal: #1a6b5e;
  --teal-light: #238f7e;
  --border: rgba(212,168,67,0.15);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(212,168,67,0.4);
}

.nav-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 2.5rem 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 20%;
  right: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,168,67,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212,168,67,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,168,67,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  flex-shrink: 0;
}

.hero-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: rgba(212,168,67,0.12);
  border: 1px solid rgba(212,168,67,0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.hero-title-line {
  color: var(--fg);
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stat { display: flex; flex-direction: column; gap: 0.2rem; }

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* === SLOT MACHINE (CSS-Only) === */
.hero-visual {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-left: 4rem;
}

.slot-machine {
  position: relative;
  width: 320px;
}

.slot-frame {
  display: flex;
  gap: 8px;
  background: #1a1a2e;
  border: 3px solid var(--gold);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 0 40px rgba(212,168,67,0.25), inset 0 0 30px rgba(0,0,0,0.5);
}

.reel {
  width: 88px;
  height: 140px;
  background: linear-gradient(180deg, #0d0d1a 0%, #1a1a2e 50%, #0d0d1a 100%);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(212,168,67,0.2);
  position: relative;
}

.reel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0px, transparent 33px, rgba(212,168,67,0.1) 33px, rgba(212,168,67,0.1) 34px);
}

.reel:nth-child(1)::before { content: '7'; position: absolute; top: 20%; left: 50%; transform: translateX(-50%); font-size: 2.5rem; font-weight: 900; color: var(--gold); text-shadow: 0 0 10px rgba(212,168,67,0.8); }
.reel:nth-child(2)::before { content: 'GOLD'; position: absolute; top: 20%; left: 50%; transform: translateX(-50%); font-size: 0.9rem; font-weight: 700; color: #e8c06a; }
.reel:nth-child(3)::before { content: '7'; position: absolute; top: 20%; left: 50%; transform: translateX(-50%); font-size: 2.5rem; font-weight: 900; color: var(--gold); text-shadow: 0 0 10px rgba(212,168,67,0.8); }

.slot-display {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.symbol {
  width: 88px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  background: #1a1a2e;
  border: 1px solid rgba(212,168,67,0.2);
}

.symbol.s7 { color: var(--gold); }
.symbol.sbar { color: #c0c0c0; font-size: 0.65rem; letter-spacing: 0.05em; }
.symbol.sgold { color: #e8c06a; font-size: 0.6rem; }
.symbol.active { box-shadow: 0 0 12px rgba(212,168,67,0.5); }

.slot-arm {
  position: absolute;
  right: -30px;
  top: 40%;
  width: 18px;
  height: 70px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  border-radius: 10px;
  transform: rotate(-15deg);
  box-shadow: 0 4px 15px rgba(212,168,67,0.4);
}

.coin-stack {
  position: absolute;
  bottom: -20px;
  left: -60px;
}

.coin {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 15px rgba(212,168,67,0.4);
}

.coin::before { content: '$'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 900; color: rgba(0,0,0,0.4); font-size: 1.2rem; }

.coin-1 { bottom: 0; left: 0; width: 55px; height: 55px; }
.coin-2 { bottom: 10px; left: 35px; width: 50px; height: 50px; }
.coin-3 { bottom: 5px; left: 15px; width: 45px; height: 45px; }

/* === SECTIONS (shared) === */
section { padding: 5rem 2.5rem; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 4rem; }

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--fg);
}

.section-desc {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* === GAMES === */
.games { background: var(--bg); }

.games-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}

.game-card:hover {
  border-color: rgba(212,168,67,0.3);
  background: var(--bg-card-hover);
}

.game-card-main {
  grid-column: 1;
  grid-row: 1;
  background: linear-gradient(135deg, #0f1a2e, #1a2535);
  border-color: rgba(212,168,67,0.25);
}

.game-card-live {
  grid-column: 1 / 4;
  background: linear-gradient(90deg, #0a1a16, #111827);
  border-color: rgba(26,107,94,0.3);
}

.game-card-inner { position: relative; z-index: 1; }

.game-glow {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(212,168,67,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.game-badge {
  display: inline-block;
  background: rgba(212,168,67,0.15);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(26,107,94,0.2);
  color: var(--teal-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d4d;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.game-icon {
  width: 48px;
  height: 48px;
  background: rgba(212,168,67,0.1);
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.game-icon::after {
  content: '';
  width: 20px;
  height: 20px;
  background: var(--gold);
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(212,168,67,0.5);
}

.game-icon-cards::after { border-radius: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.game-icon-fish::after { border-radius: 50%; background: var(--teal-light); }
.game-icon-poker::after { clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); background: var(--gold); }
.game-icon-scratch::after { clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%); }

.game-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.game-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.game-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.game-features li {
  font-size: 0.8rem;
  color: var(--fg-muted);
  padding-left: 1.25rem;
  position: relative;
}

.game-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
}

/* === HOW IT WORKS === */
.how-it-works { background: #0d1220; }

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 1.5rem;
}

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.2;
  margin-bottom: 0.5rem;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.step-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--gold), var(--border));
  margin-top: 2.5rem;
  flex-shrink: 0;
}

.legal-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 700px;
  margin: 3rem auto 0;
  padding: 0.9rem 1.5rem;
  background: rgba(212,168,67,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.75rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

.legal-note svg { flex-shrink: 0; color: var(--gold); }

/* === SECURITY === */
.security { background: var(--bg); }

.security-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 5rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.security-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--fg);
}

.security-desc {
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.security-badges {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s;
}

.badge:hover { border-color: rgba(212,168,67,0.3); }

.badge-icon {
  width: 40px;
  height: 40px;
  background: rgba(212,168,67,0.1);
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.badge-text { display: flex; flex-direction: column; gap: 0.2rem; }

.badge-text strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
}

.badge-text span {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* === TROPHY === */
.security-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.trophy {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.trophy-cup {
  width: 120px;
  filter: drop-shadow(0 0 30px rgba(212,168,67,0.5));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.trophy-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 0.5rem;
  letter-spacing: 0.1em;
}

.trophy-sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: sparkle 2s infinite;
}

.t1 { top: 10%; left: 20%; animation-delay: 0s; }
.t2 { top: 30%; right: 10%; animation-delay: 0.7s; }
.t3 { bottom: 20%; left: 10%; animation-delay: 1.4s; }

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1); }
}

/* === CLOSING === */
.closing {
  position: relative;
  padding: 7rem 2.5rem;
  overflow: hidden;
}

.closing-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.closing-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(212,168,67,0.07) 0%, transparent 70%);
  border-radius: 50%;
}

.closing-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.closing-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--fg);
  background: linear-gradient(135deg, var(--fg) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.closing-text {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.closing-sub {
  font-size: 0.75rem;
  color: rgba(138,143,158,0.6);
  letter-spacing: 0.05em;
}

.closing-separator {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 2rem auto;
  opacity: 0.4;
}

/* === FOOTER === */
.footer {
  padding: 3rem 2.5rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 2rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

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

.footer-legal {
  font-size: 0.7rem;
  color: rgba(138,143,158,0.5);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 1rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(138,143,158,0.4);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding-top: 6rem; }
  .hero-content { max-width: 100%; }
  .hero-subtitle { max-width: 100%; }
  .hero-stats { justify-content: center; }
  .hero-visual { justify-content: center; padding-left: 0; margin-top: 3rem; }

  .games-grid { grid-template-columns: 1fr; }
  .game-card-live { grid-column: 1; }

  .steps { flex-direction: column; align-items: center; }
  .step-connector { width: 2px; height: 40px; margin: 0; }

  .security-grid { grid-template-columns: 1fr; }
  .security-visual { display: none; }
}

@media (max-width: 600px) {
  .navbar { padding: 0.9rem 1.25rem; }
  section { padding: 3.5rem 1.25rem; }
  .hero { padding: 5rem 1.25rem 3rem; }
  .slot-machine { width: 240px; transform: scale(0.85); }
  .hero-stats { gap: 1rem; }
  .stat-value { font-size: 1.5rem; }
}