/* ============================================
   MOOZI LANDING PAGE - BASE STYLES
   Design tokens, reset, fonts, utilities
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Colors */
  --color-bg-darkest: #190607;
  --color-bg-dark: #280c0d;
  --color-bg-mid: #3b0f11;
  --color-bg-card: #451113;
  --color-bg-accent: #561417;
  --color-gold: #fccf3d;
  --color-gold-light: #fde68a;
  --color-gold-hover: #e5b935;
  --color-gold-secondary: #FFB326;
  --color-text-primary: #ffffff;
  --color-text-secondary: #e5e7eb;
  --color-text-muted: #d1d5db;
  --color-text-on-gold: #422c18;
  --color-text-placeholder: #684041;
  --color-border-subtle: #8f7071;
  --color-border-gold: rgba(252, 207, 61, 0.15);
  --color-brand-focus: #6D0D0E;
  --color-accent-warm: #d37e4b;
  --color-card-gradient-start: #a24436;
  --color-card-gradient-mid: #90342a;
  --color-card-gradient-end: #6c1413;

  /* Spacing (Phase 11 scale + layout-specific) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-section: clamp(3rem, 6vw, 7rem);
  --max-width-content: 1248px;
  --nav-height: 66px;

  /* Warm-black channel for elevation (matches --color-bg-darkest) */
  --shadow-warm: 25 6 7;

  /* Border radius (Phase 11) */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --radius-full: var(--radius-pill);

  /* Elevation — warm-black shadows; gold glow for primary CTA hover/focus only */
  --elev-0: none;
  --elev-1: 0 1px 2px rgb(var(--shadow-warm) / 0.28),
    0 2px 6px rgb(var(--shadow-warm) / 0.18);
  --elev-2: 0 4px 14px rgb(var(--shadow-warm) / 0.4),
    0 2px 4px rgb(var(--shadow-warm) / 0.22);
  --elev-3: 0 16px 44px rgb(var(--shadow-warm) / 0.52),
    0 8px 20px rgb(var(--shadow-warm) / 0.3);
  --elev-glow-gold: 0 0 0 2px rgb(252 207 61 / 0.42), 0 0 28px rgb(252 207 61 / 0.22);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-smooth: 300ms cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Demo modals (age gate + game detail) */
  --demo-modal-dur: 0.4s;
  --demo-modal-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Background (hero only) --- */
.bg-image {
  position: relative;
  background-image: url("../img/bg-2560.webp");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }

/* --- Text Gradient Gold --- */
.text-gradient-gold {
  background: linear-gradient(135deg, #FCCF3D, #FFB326);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Glassmorphism --- */
.glass {
  background: rgb(40 12 13 / 65%);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgb(255 255 255 / 8%);
}

.glass-light {
  background: rgb(69 17 19 / 45%);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgb(255 255 255 / 12%);
}

.glass-dark {
  background: rgb(25 6 7 / 75%);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgb(255 255 255 / 5%);
}

/* --- Surface Elevation --- */
.surface-elevated {
  background: linear-gradient(
    180deg,
    var(--color-card-gradient-start),
    var(--color-card-gradient-mid),
    var(--color-card-gradient-end)
  );
  box-shadow:
    0 1px 3px rgb(0 0 0 / 20%),
    0 4px 12px rgb(0 0 0 / 15%),
    0 8px 24px rgb(0 0 0 / 10%),
    inset 0 1px 0 rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 5%);
  border-radius: var(--radius-md);
}

/* --- Focus Ring --- */
.focus-ring-modern:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgb(252 207 61 / 40%), 0 0 0 4px rgb(252 207 61 / 10%);
}

/* --- Gradient Gold Border --- */
.border-gradient-gold {
  position: relative;
  border: 1px solid transparent;
  background-clip: padding-box;
}

.border-gradient-gold::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgb(252 207 61 / 30%), rgb(255 179 38 / 10%), rgb(252 207 61 / 30%));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
}

/* --- Scrollbar (Chromium / Safari — needs a subject before ::-webkit-scrollbar) --- */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  background: var(--color-bg-darkest);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  background: #7c3227;
  border-radius: 9999px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
  background: rgb(124 50 39);
}

/* --- Section CTA Wrapper --- */
.section-cta-wrap {
  text-align: center;
  margin-top: 1.5rem;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
