/* ===== Design tokens (sourced from PSD + gamealotroyale.com live theme) ===== */
:root {
  --navy-900: #05070f;
  --navy-800: #0b1122;
  --navy-700: #131b3a;
  --navy-600: #1a234a;
  --gold: #d2a739;
  --gold-light: #f0d98c;
  --gold-btn-grad: linear-gradient(180deg, #9f7a37 0%, #9f7c3c 30%, #af9e5a 67%, #b18b44 100%);
  --white: #ffffff;
  --text-muted: #adbceb;
  --radius-btn: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wrap-max: 1240px;
}

* , *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--white);
  background: linear-gradient(180deg, #131b3a 0%, #0b1122 30%, #090e1e 60%, #05070f 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

html, body { overflow-x: hidden; }

.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 14px 34px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn--gold {
  background: var(--gold-btn-grad);
  color: #241505;
  box-shadow: 0 4px 14px rgba(178, 139, 68, .35);
}
.btn--gold:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--gold:active { transform: translateY(0); filter: brightness(.97); }
.btn--ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  color: var(--white);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--lg {
  padding: 20px 56px;
  font-size: 1.2rem;
  min-width: 400px;
  min-height: 62px;
  letter-spacing: .05em;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 15, .55);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(210,167,57,.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px 14px 48px;
}
.logo img { height: 56px; width: auto; }
.header-actions { display: flex; gap: 14px; align-items: center; }
.header-actions .btn { padding: 14px 34px; font-size: 0.95rem; min-width: 130px; }

/* ===== Typography ===== */
.eyebrow {
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin: 0 0 20px;
  line-height: 1.15;
}
.eyebrow span { color: var(--gold); font-weight: 800; font-size: 2.4rem; letter-spacing: .04em; }

.display {
  font-weight: 900;
  font-size: clamp(3rem, 5.6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0 0 28px;
  text-shadow: 0 0 40px rgba(255,255,255,.45), 0 0 90px rgba(255,255,255,.2);
  white-space: nowrap;
}
.display--sm { font-size: clamp(2.8rem, 5.4vw, 5rem); white-space: normal; }

.lead {
  font-size: 1.3rem;
  color: #e7ebfa;
  margin: 0 0 32px;
  line-height: 1.5;
}

.fineprint {
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.section-title {
  text-align: center;
  font-weight: 800;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 8px 0 32px;
}

/* ===== Hero ===== */
.hero { padding: 0; position: relative; overflow: hidden; }
.hero-inner {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
}
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 20px 72px 48px;
  max-width: 620px;
}
.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 72%;
  z-index: 1;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 6%, #000 32%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, transparent 6%, #000 32%, #000 100%);
}

/* ===== Steps ===== */
.steps {
  padding: 24px 0 40px;
  text-align: center;
  border-top: 1px solid rgba(210,167,57,.35);
}
.steps-crown-wrap {
  position: relative;
  display: block;
  width: 260px;
  height: 160px;
  margin: 0 auto -12px;
}
.steps-crown-wrap::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210,167,57,.45) 0%, rgba(210,167,57,0) 70%);
  animation: crownGlow 2.6s ease-in-out infinite;
}
.steps-crown {
  position: absolute;
  top: 0;
  left: 50%;
  width: 220px;
  height: auto;
  transform: translate(-50%, 0);
  filter: drop-shadow(0 0 24px rgba(210,167,57,.6));
  animation: crownFloat 3.6s ease-in-out infinite;
}
@keyframes crownFloat {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -8px); }
}
@media (prefers-reduced-motion: reduce) {
  .steps-crown, .steps-crown-wrap::before { animation: none; }
}
@keyframes crownGlow {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto 40px;
  padding: 0 16px;
}
.step-card {
  position: relative;
  border: 1px solid rgba(210,167,57,.4);
  border-radius: 14px;
  padding: 24px 20px 28px;
  text-align: center;
  background: rgba(255,255,255,.02);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
  position: absolute;
  top: 16px;
  left: 20px;
  background: transparent;
}
.step-icon { margin: 16px auto 18px; height: 76px; width: auto; max-width: 120px; object-fit: contain; }
.step-card h3 {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .04em;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}
.step-card .chevron { font-weight: 700; font-size: 1.3rem; line-height: 1; }
.step-card p { color: #d7ddf4; font-size: 1.05rem; line-height: 1.4; margin: 0; }
.steps-cta { margin-top: 8px; }

/* ===== Experience ===== */
.experience {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(210,167,57,.35);
  border-bottom: 1px solid rgba(210,167,57,.35);
  background-color: #05070f;
  background-image:
    linear-gradient(90deg, #05070f 0%, rgba(5,7,15,0.95) 15%, rgba(5,7,15,0.65) 28%, rgba(5,7,15,0.25) 42%, transparent 55%),
    url('../assets/img/experience_bg_wide.webp');
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 100%, cover;
  background-position: left center, 62% center;
}
.experience-media { display: none; }

.experience-media { display: none; }
.experience-copy {
  position: relative;
  z-index: 2;
  max-width: 500px;
  padding: 72px 32px 72px 48px;
}

.feature-list {
  list-style: none;
  display: flex;
  gap: 40px;
  padding: 0;
  margin: 24px 0 36px;
}
.feature-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.feature-list img { height: 56px; width: auto; }
.feature-list span {
  position: relative;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.feature-list .dot {
  position: absolute;
  top: -2px;
  right: -10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e5233d;
  font-style: normal;
}

/* ===== Footer ===== */
.site-footer {
  padding: 40px 0 32px;
  background: var(--navy-900);
  border-top: 1px solid rgba(210,167,57,.2);
  font-size: 0.85rem;
  color: #a7a7ac;
}
.footer-top { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin-bottom: 24px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: .1em; font-size: 0.85rem; }
.footer-top img { height: 42px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; margin-bottom: 20px; }
.footer-links a { color: #a7a7ac; text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: var(--gold); }
.footer-copy p { margin: 0; font-size: 0.8rem; text-align: center; color: #a7a7ac; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  html, body, section, .wrap { overflow-x: hidden; max-width: 100%; }
  * { min-width: 0 !important; }
  img { max-width: 100%; }
  .header-inner, .hero-copy, .experience-copy, .footer-links, .step-card { min-width: 0; max-width: 100%; }

  /* Hero: stack column, image on top */
  .hero { overflow: hidden; }
  .hero-inner { flex-direction: column; min-height: 0; align-items: stretch; }
  .hero-media {
    position: relative; top: auto; right: auto; bottom: auto;
    width: 100%; height: 320px; order: -1;
  }
  .hero-media img {
    -webkit-mask-image: none !important;
            mask-image: none !important;
    object-position: center 20%;
  }
  .hero-copy { padding: 28px 16px; max-width: 100%; margin-right: 0; text-align: center; align-items: center; overflow: hidden; }
  .hero-copy .fineprint { text-align: center; }
  .display { font-size: clamp(1.75rem, 6.5vw, 2.6rem); white-space: normal !important; word-break: keep-all; overflow-wrap: normal; }
  .display--sm { font-size: clamp(1.9rem, 6.5vw, 2.6rem); }
  .eyebrow { font-size: 0.95rem; }
  .eyebrow span { font-size: 1.35rem; }
  .lead { font-size: 0.95rem; }

  .header-inner { padding: 10px 12px; max-width: 100%; overflow: hidden; flex-wrap: nowrap; gap: 8px; justify-content: space-between; }
  .header-inner .logo { flex: 0 1 auto; min-width: 0; }
  .header-actions { gap: 6px; flex: 0 0 auto; }
  .header-actions .btn { padding: 8px 12px; font-size: 0.7rem; min-width: 0; letter-spacing: .04em; flex-shrink: 0; }
  .header-actions .btn--ghost { display: none; } /* hide LOG IN on mobile */
  .logo img { height: 28px; width: auto; max-width: 100px; }

  /* Global overflow safety */
  h1, h2, h3, p, span, a { overflow-wrap: anywhere; word-break: normal; }
  .display, .display--sm { overflow-wrap: normal; word-break: keep-all; }

  /* Steps */
  .steps { padding: 24px 0 36px; }
  .steps-grid { grid-template-columns: 1fr; max-width: 100%; padding: 0 16px; gap: 20px; }
  .step-card { min-height: 220px; padding: 24px 20px; }
  .step-icon { height: 68px; max-width: 100px; }
  .step-card h3 { white-space: normal; font-size: 1rem; }
  .steps-crown-wrap { width: 160px; height: 100px; }
  .steps-crown-wrap::before { width: 200px; height: 200px; }
  .steps-crown { width: 130px; }
  .section-title { font-size: clamp(1rem, 3.5vw, 1.4rem); padding: 0 8px; line-height: 1.3; }

  /* Experience: background off, image block */
  .experience {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    background-image: none !important;
    background-color: var(--navy-800);
    border-radius: 0;
  }
  .experience-media { display: block !important; width: 100%; height: auto; max-height: 420px; overflow: hidden; }
  .experience-media img { width: 100%; height: auto; max-height: 420px; object-fit: contain; object-position: center top; display: block; }
  .experience-copy { padding: 28px 20px; max-width: 100%; text-align: center; }
  .feature-list { justify-content: center; flex-wrap: wrap; row-gap: 16px; gap: 16px; margin: 20px 0 24px; padding: 0; }
  .feature-list li { flex: 0 0 calc(33.333% - 12px); min-width: 0; }
  .feature-list img { height: 38px; }
  .feature-list span { font-size: 0.7rem; letter-spacing: .04em; }

  .btn--lg { min-width: 0 !important; width: 100%; max-width: 320px; padding: 16px 20px; font-size: 0.95rem; letter-spacing: .04em; box-sizing: border-box; }

  /* Footer */
  .footer-top { justify-content: center; }
  .footer-links { gap: 14px 20px; font-size: 0.75rem; }
  .footer-links a { font-size: 0.75rem; }
  .footer-copy p { font-size: 0.7rem; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 14px; }
  .header-inner { padding: 10px 14px; }
  .logo img { height: 30px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding: 7px 12px; font-size: 0.7rem; }

  .hero-media { height: 240px; }
  .hero-copy { padding: 24px 14px; }
  .display { font-size: clamp(1.75rem, 8vw, 2.4rem); }
  .lead { font-size: 0.9rem; }

  .experience-media { max-height: 340px; }
  .experience-media img { max-height: 340px; }
  .experience-copy { padding: 24px 14px; }
  .feature-list { gap: 20px; margin: 16px 0 22px; }
  .feature-list img { height: 36px; }

  .btn--lg { padding: 14px 16px; font-size: 0.85rem; max-width: 100%; }
  .step-card { padding: 22px 14px 22px; min-height: 200px; }
  .step-icon { height: 60px; max-width: 88px; }
  .step-card p { font-size: 0.85rem; }
  .step-card h3 { font-size: 0.9rem; }
}
