/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  --purple-deep: #3F2A86;
  --purple-dark: #632F94;
  --purple-mid: #5233A0;
  --bg-abyss: #0B0618;
  --bg-deep: #2F1141;
  --bg-navy: #0d1d34;
  --gold: #FF4507;
  --gold-light: #FF7A4D;
  --gold-dark: #CC3700;
  --white: #FFFFFF;
  --gray-light: #f4f4f4;
  --gray-muted: #a8a3b8;
  --gray-dim: #6b6580;
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-display: 'Bodoni Moda', serif;
  --font-body: 'Outfit', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-gold: 0 0 40px rgba(255, 69, 7, 0.2);
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  background: var(--bg-abyss);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Noise overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background: rgba(11, 6, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo svg { flex-shrink: 0; }
.logo-text span { color: var(--gold); }

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

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

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

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-muted);
  transition: color var(--transition-smooth);
  position: relative;
  letter-spacing: 0.01em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition-smooth);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-abyss);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: transform var(--transition-bounce), box-shadow var(--transition-smooth);
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  letter-spacing: 0.02em;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255, 69, 7, 0.05);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
  min-height: 100vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: conic-gradient(
    from 180deg at 50% 50%,
    rgba(63, 42, 134, 0) 0deg,
    rgba(99, 47, 148, 0.4) 60deg,
    rgba(63, 42, 134, 0) 120deg,
    rgba(99, 47, 148, 0.3) 200deg,
    rgba(63, 42, 134, 0) 280deg,
    rgba(99, 47, 148, 0.2) 340deg,
    rgba(63, 42, 134, 0) 360deg
  );
  border-radius: 50%;
  animation: heroGlow 12s ease-in-out infinite;
  filter: blur(80px);
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(255, 69, 7, 0.08) 0%, transparent 70%);
  animation: heroGlow 15s ease-in-out infinite reverse;
}

@keyframes heroGlow {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.6; }
  50% { transform: scale(1.15) rotate(10deg); opacity: 1; }
}

.crystal {
  position: absolute;
  border: 1px solid rgba(99, 47, 148, 0.15);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.crystal-1 { top: 15%; right: 20%; width: 180px; height: 180px; transform: rotate(45deg); border-color: rgba(99, 47, 148, 0.2); }
.crystal-2 { top: 55%; right: 8%; width: 120px; height: 120px; transform: rotate(30deg); border-color: rgba(255, 69, 7, 0.1); animation-delay: -5s; }
.crystal-3 { bottom: 20%; left: 5%; width: 80px; height: 80px; transform: rotate(60deg); border-color: rgba(99, 47, 148, 0.15); animation-delay: -10s; }
.crystal-4 { top: 30%; left: 15%; width: 50px; height: 50px; transform: rotate(15deg); border: 1px solid rgba(255, 69, 7, 0.08); animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  33% { transform: rotate(48deg) translateY(-15px); }
  66% { transform: rotate(42deg) translateY(10px); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 47, 148, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 47, 148, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 69, 7, 0.25);
  background: rgba(255, 69, 7, 0.06);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold-light);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.hero-badge svg { display: inline; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero h1 em { font-style: italic; color: var(--gold); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--gray-muted);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 40px;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  opacity: 0.6;
}

.gem-shape { position: absolute; inset: 0; }

.gem-shape::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 200px; height: 200px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: linear-gradient(135deg, rgba(63, 42, 134, 0.3), rgba(99, 47, 148, 0.1));
  border: 1px solid rgba(99, 47, 148, 0.3);
  animation: gemRotate 30s linear infinite;
}

.gem-shape::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 280px; height: 280px;
  transform: translate(-50%, -50%) rotate(22.5deg);
  border: 1px solid rgba(99, 47, 148, 0.12);
  animation: gemRotate 45s linear infinite reverse;
}

@keyframes gemRotate {
  to { transform: translate(-50%, -50%) rotate(calc(45deg + 360deg)); }
}

.gem-inner {
  position: absolute;
  top: 50%; left: 50%;
  width: 140px; height: 140px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 69, 7, 0.15), transparent 70%);
  border-radius: 50%;
  animation: gemPulse 4s ease-in-out infinite;
}

@keyframes gemPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(11, 6, 24, 0.6), rgba(13, 29, 52, 0.4));
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 47, 148, 0.3), transparent);
}

/* Footer navigation */
.footer-nav {
  padding: 56px 0 40px;
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-brand p {
  color: var(--gray-dim);
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 280px;
  margin-bottom: 20px;
}


.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 18px;
}

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

.footer-col a {
  font-size: 0.86rem;
  color: var(--gray-dim);
  transition: color var(--transition-smooth);
}

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

/* License section */
.footer-license {
  padding: 36px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-license-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.license-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
}

.license-text {
  color: var(--gray-muted);
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.license-highlight {
  display: inline-block;
  margin-top: 4px;
  padding: 7px 18px;
  border-radius: 100px;
  border: 1px solid rgba(255, 69, 7, 0.2);
  background: rgba(255, 69, 7, 0.05);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}

/* Responsible gaming */
.footer-responsible {
  padding: 36px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-responsible-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.responsible-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--white);
}

.responsible-text {
  color: var(--gray-muted);
  font-size: 0.86rem;
  line-height: 1.8;
  margin-bottom: 22px;
}

.partner-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  transition: opacity var(--transition-smooth);
}

.partner-badge:hover {
  opacity: 0.8;
}

.partner-badge img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* Footer bottom */
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-copyright {
  font-size: 0.76rem;
  color: var(--gray-dim);
  line-height: 1.6;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.age-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

/* ============================================
   REGISTRATION MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(11, 6, 24, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: linear-gradient(160deg, #2a1545 0%, #130b22 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 36px 32px;
  width: 100%;
  max-width: 400px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--gray-dim);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.modal-close:hover { color: var(--white); }

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.modal-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
}

.modal-form { display: flex; flex-direction: column; gap: 14px; }

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-muted);
}

.form-group input {
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input::placeholder { color: var(--gray-dim); }
.form-group input:focus { border-color: var(--gold); }

.input-password {
  position: relative;
}

.input-password input { width: 100%; padding-right: 44px; }

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-dim);
  cursor: pointer;
  padding: 4px;
  display: flex;
  transition: color 0.2s;
}

.password-toggle:hover { color: var(--gray-muted); }

.form-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-check input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--purple-mid);
  flex-shrink: 0;
  cursor: pointer;
}

.form-check label {
  font-size: 0.76rem;
  color: var(--gray-muted);
  line-height: 1.45;
  cursor: pointer;
}

.form-check a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.modal-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.modal-login {
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray-dim);
  margin-top: 2px;
}

.modal-login a { color: var(--gold); font-weight: 500; }

/* Success state */
.modal-success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
}

.modal-success-state.active { display: flex; }
.modal-form-state.hidden { display: none; }

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.1);
  border: 2px solid rgba(74, 222, 128, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.modal-success-state .modal-title {
  margin-bottom: 10px;
}

.success-text {
  color: var(--gray-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 300px;
}

.modal-success-state .modal-submit {
  max-width: 160px;
}

@media (max-width: 480px) {
  .modal { padding: 28px 20px; }
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(11, 6, 24, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open { transform: translateY(0); }

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  opacity: 0.8;
  transition: opacity 0.3s, color 0.3s;
}

.mobile-nav a:hover { opacity: 1; color: var(--gold); }

/* ============================================
   POLICY PAGES
   ============================================ */
.policy-page {
  padding: 140px 0 80px;
  flex: 1;
}

.policy-page h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 12px;
}

.policy-page .policy-updated {
  color: var(--gray-dim);
  font-size: 0.85rem;
  margin-bottom: 40px;
}

.policy-page h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin: 36px 0 14px;
  color: var(--gold-light);
}

.policy-page p,
.policy-page li {
  color: var(--gray-muted);
  font-size: 0.92rem;
  line-height: 1.85;
  margin-bottom: 14px;
}

.policy-page ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.policy-page li { margin-bottom: 8px; }

.policy-page a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-page a:hover { color: var(--gold-light); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-visual { display: none; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links, .nav .btn-primary { display: none; }
  .menu-toggle { display: flex; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .partner-badges { gap: 20px; }
  .partner-badge img { height: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 100px 0 60px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary { width: 100%; justify-content: center; }
  .footer-nav { grid-template-columns: 1fr; gap: 28px; }
  .partner-badges { gap: 16px; }
  .partner-badge img { height: 36px; }
}
