/* =====================================================================
   v3 — Dudespin-style co-branded LP (Bitguruz × Casino.ca)
   Single-column centered composition, Tilt Neon display, dark navy BG,
   amber-gradient CTA, 3 numbered steps, expandable T&C.
   ===================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100%; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; padding: 0; }
a { color: inherit; }
input, select, textarea, button { font-family: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Theme tokens (Bitguruz) ---------- */
.theme-bitguruz {
  --bg: #031630;
  --bg-step: #0d2548;
  --bg-step-active: #1a3a6b;
  --bg-terms: #031e40;
  --bg-footer: #021025;
  --border: rgba(255, 255, 255, 0.08);
  --text: #fff9dd;
  --text-dim: rgba(255, 249, 221, 0.7);
  --text-mute: rgba(255, 249, 221, 0.5);
  --accent-1: #ffe673;
  --accent-2: #ffb800;
  --accent-3: #f19100;
  --accent-4: #a03c12;
  --accent-ink: #1a0a00;
  --accent-glow: rgba(255, 184, 0, 0.5);
  --danger: #ff6a60;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --font-display: 'Tilt Neon', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;

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

/* ---------- Layout ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent-2); color: var(--accent-ink); padding: 10px 16px; border-radius: 4px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; }

.page {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  background: var(--bg);
  min-height: 100vh;
  overflow: hidden;
}

/* Shared container (used by welcome, steps, terms, footer) */
.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  pointer-events: none;
}
.header > * { pointer-events: auto; }
.header__logo img {
  width: auto; height: 36px;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.55));
}
.header__links { display: flex; gap: 10px; }
.header__login {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 18px;
  min-height: 36px;
  border: 1px solid rgba(255, 249, 221, 0.35);
  color: var(--text);
  background: rgba(3, 22, 48, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: background .15s, border-color .15s;
}
.header__login:hover { background: rgba(255, 184, 0, 0.14); border-color: var(--accent-2); color: var(--accent-1); }

/* ---------- Hero: full-screen art, offer overlaid in the centre ----------
   One screen (100svh). Art is a full-bleed background; a legibility scrim
   darkens the centre well. Offer block is vertically centred; the 3 steps pin
   to the bottom — so offer + button + steps are all visible without scroll. */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}
.hero__art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  z-index: 0;
}
/* Legibility scrim: darken the centre well + fade the bottom into the page bg */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(118% 72% at 50% 60%, rgba(3,16,38,0.82) 0%, rgba(3,16,38,0.45) 34%, transparent 64%),
    linear-gradient(180deg, rgba(3,16,38,0.55) 0%, transparent 24%),
    linear-gradient(180deg, transparent 56%, color-mix(in srgb, var(--bg) 70%, transparent) 84%, var(--bg) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  flex: 1 1 auto;
  display: flex; flex-direction: column;
  width: 100%;
}
.hero__content {
  flex: 1 1 auto;              /* fills the space between header and steps, centring the offer */
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 12px 20px 14px;
  transform: translateY(14svh); /* nudge the centred offer down ~14% of the screen */
}
.hero__steps {
  flex: 0 0 auto;
  padding: 6px 16px 20px;
}
/* ---------- Offer block (overlaid in the hero) ---------- */
.welcome__partner,
.welcome__title,
.welcome__offer {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.welcome__partner {
  display: flex; align-items: center; justify-content: center;
  width: fit-content;
  margin: 0 auto 16px;
  padding: 0;
  background: transparent;
}
.welcome__partner img { height: 38px; width: auto; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.9)) drop-shadow(0 2px 14px rgba(0,0,0,0.6)); }

.welcome__title {
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin: 0 auto 14px;
  font-weight: 700;
  line-height: 1.3;
  max-width: 360px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}
.welcome__offer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 0.26em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 7vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
  margin: 0 auto;
  max-width: 100%;
}
/* Gold gradient is applied per-span so background-clip:text renders correctly */
.welcome__offer-pct,
.welcome__offer-cap {
  background: linear-gradient(180deg, var(--accent-1) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.55)) drop-shadow(0 2px 16px rgba(255, 184, 0, 0.4));
  white-space: nowrap;
}
.welcome__offer-up {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: lowercase;
  white-space: nowrap;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}
.welcome__offer--small {
  display: block;
  margin-top: 2px;
  font-size: clamp(22px, 5vw, 36px);
  background: linear-gradient(180deg, var(--accent-1) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5)) drop-shadow(0 2px 14px rgba(255, 184, 0, 0.4));
}

/* ---------- CTA button (amber gradient + glare sweep + strong glow) ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 28px auto 0;
  padding: 0 48px; height: 64px;
  background: linear-gradient(180deg, var(--accent-1) 0%, var(--accent-2) 45%, var(--accent-3) 100%);
  color: var(--accent-ink);
  border: 1px solid rgba(255, 230, 115, 0.45);
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 800; font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow:
    0 0 0 6px rgba(255, 184, 0, 0.08),
    0 14px 36px -8px var(--accent-glow),
    0 0 60px -10px var(--accent-glow),
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 0 -3px 0 rgba(160, 60, 18, 0.4);
  transition: transform .12s ease, filter .15s, box-shadow .2s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 14px 40px -8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 0 rgba(0, 0, 0, 0.2); }
.btn:active { transform: translateY(0); }
.btn__text { position: relative; z-index: 2; }
.btn__glare {
  position: absolute; top: 0; left: -60%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: glare-sweep 3.8s ease-in-out infinite;
  z-index: 1;
}
@keyframes glare-sweep {
  0%, 60% { left: -60%; }
  85%, 100% { left: 180%; }
}

/* ---------- Steps (overlaid chips at the bottom of the hero) ---------- */
.steps__title {
  font-family: var(--font-body);
  font-size: 17px; font-weight: 700;
  text-align: center;
  color: var(--text);
  margin: 0 auto 12px;
  max-width: 820px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
.steps__wrapper {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  max-width: 980px; margin: 0 auto;
}
.steps__item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 10px 12px;
  background: rgba(10, 28, 56, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: var(--radius);
  transition: background .2s, border-color .2s;
}
.steps__item.active {
  background: rgba(16, 40, 78, 0.7);
  border-color: rgba(255, 184, 0, 0.5);
  box-shadow: 0 10px 24px -14px var(--accent-glow);
}
.steps__item_num {
  flex: 0 0 30px;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--accent-1) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  color: var(--accent-ink);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15), 0 4px 12px -4px var(--accent-glow);
}
.steps__item_title { font-size: 13.5px; color: var(--text); font-weight: 500; text-align: left; }

/* ---------- Terms ---------- */
.terms {
  margin: 20px auto 0;
  padding: 22px 22px;
  background: var(--bg-terms);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 820px;
  width: calc(100% - 40px);
}
.terms__title {
  font-family: var(--font-body);
  font-size: 16px; font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
  text-align: center;
}
.terms__content {
  position: relative;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.65;
  max-height: 165px;
  overflow: hidden;
  transition: max-height .35s ease;
}
.terms__content::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 60px;
  background: linear-gradient(180deg, transparent 0%, var(--bg-terms) 100%);
  pointer-events: none;
  transition: opacity .25s;
}
.terms.is-expanded .terms__content { max-height: 3000px; }
.terms.is-expanded .terms__content::after { opacity: 0; }
.terms__content p { margin: 0 0 8px; }
.terms__content p span { color: var(--accent-1); font-weight: 700; margin-right: 4px; }

.terms__btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  padding: 8px 14px;
  color: var(--accent-1);
  font-weight: 600; font-size: 13px;
  letter-spacing: 0.05em; text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: background .15s;
}
.terms__btn:hover { background: rgba(255, 184, 0, 0.08); }
.terms__btn-less { display: none; }
.terms.is-expanded .terms__btn-more { display: none; }
.terms.is-expanded .terms__btn-less { display: inline; }
.terms.is-expanded .terms__btn-arrow { transform: rotate(180deg); }
.terms__btn-arrow { width: 16px; height: 16px; transition: transform .25s; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-footer);
  padding: 28px 20px 120px;
  margin-top: 24px;
  text-align: center;
}
.footer__inner { max-width: 820px; margin: 0 auto; }
.footer__pay {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; justify-content: center;
  margin: 0 0 18px; padding: 0;
}
.footer__pay-item {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 6px 10px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
}
.footer__pay-item img { height: 20px; width: auto; display: block; }
.age {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--danger); color: #fff; font-weight: 700; font-size: 13px;
  margin-bottom: 10px;
}
.footer__age-text { color: var(--text-dim); font-size: 12px; margin: 0 0 10px; }
.footer__rg { color: var(--text-dim); font-size: 12px; margin: 0 0 14px; }
.footer__rg a { color: var(--accent-1); text-decoration: underline; }
.footer__links {
  display: inline-flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  margin: 0 0 10px; padding: 0;
}
.footer__links a { color: var(--text-dim); font-size: 12px; text-decoration: none; }
.footer__links a:hover { color: var(--accent-1); text-decoration: underline; }
.footer__license { color: var(--text-mute); font-size: 11px; margin: 10px 0 0; line-height: 1.55; }

/* ---------- Sticky mobile CTA (disabled: the hero CTA is always in view) ---------- */
.sticky-cta { display: none !important; }
.sticky-cta-unused {
  position: fixed; bottom: 14px; left: 14px; right: 14px; z-index: 25;
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; max-width: 500px; margin: 0 auto;
  background: linear-gradient(180deg, var(--accent-1) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  color: var(--accent-ink);
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 800; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.7), 0 0 30px -5px var(--accent-glow);
  animation: cta-pulse 3s ease-in-out infinite;
}
.sticky-cta:active { transform: translateY(1px); }
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.7), 0 0 30px -5px var(--accent-glow); }
  50%      { box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.7), 0 0 50px -2px var(--accent-glow); }
}

/* ---------- Reduce motion ---------- */
.reduce-motion .btn__glare,
.reduce-motion .sticky-cta { animation: none !important; }

/* =====================================================================
   RESPONSIVE breakpoints
   ===================================================================== */

/* ≥560px: steps go 3-across, offer grows */
@media (min-width: 560px) {
  .steps__wrapper { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .steps__item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; }
  .steps__item_title { text-align: left; }
  .welcome__offer { font-size: clamp(40px, 6.5vw, 58px); }
  .welcome__offer--small { font-size: clamp(28px, 4.5vw, 40px); }
}

/* ≥640px: bigger header + offer, hide sticky CTA */
@media (min-width: 640px) {
  .header { padding: 18px 24px; }
  .header__logo img { height: 42px; }
  .welcome__title { font-size: 16px; max-width: 520px; }
  .btn { height: 64px; font-size: 18px; padding: 0 48px; }
  .sticky-cta { display: none; }
  .hero__content { padding: 16px 24px 8px; }
  .hero__steps { padding: 8px 24px 26px; }
  .terms { padding: 26px 28px; }
}

/* ≥960px: desktop — art focus higher, offer cinematic, steps breathe */
@media (min-width: 960px) {
  .header { padding: 22px 36px; }
  .header__logo img { height: 48px; }
  .hero__art { object-position: center 26%; }
  .welcome__title { font-size: 17px; letter-spacing: 0.18em; margin-bottom: 16px; }
  .welcome__offer { font-size: clamp(54px, 5vw, 72px); }
  .welcome__offer--small { font-size: clamp(36px, 3.4vw, 46px); }
  .btn { height: 66px; font-size: 19px; margin-top: 30px; }

  .steps__title { font-size: 18px; margin-bottom: 14px; }
  .steps__wrapper { gap: 14px; max-width: 1040px; }
  .steps__item { padding: 16px 18px; }
  .steps__item_num { width: 38px; height: 38px; font-size: 18px; flex-basis: 38px; }
  .steps__item_title { font-size: 14px; line-height: 1.4; }

  .terms { margin-top: 0; padding: 32px 36px; max-width: 1040px; }
  .terms__title { font-size: 18px; margin-bottom: 16px; }
  .terms__content { font-size: 14px; max-height: 190px; }
  .footer { padding: 36px 24px 48px; }
}

/* ≥1280px: wide — give the art a touch more headroom */
@media (min-width: 1280px) {
  .hero__art { object-position: center 28%; }
  .welcome__offer { font-size: clamp(60px, 5vw, 80px); }
}
