/* ============================================================
   77 Lottery — Design System
   Personality: playful, vibrant, editorial; coral + sunny gold
   on warm cream. Lottery + casino India brand.
   ============================================================ */

:root {
  /* ---- Colors ---- */
  --brand:          #FF7B50;
  --brand-dark:     #B83A1F;
  --brand-deep:     #6B1F0F;
  --brand-light:    #FFB498;
  --brand-soft:     #FFE8DC;

  --accent:         #FFC83D;
  --accent-warm:    #F2772E;
  --accent-deep:    #C8941A;
  --accent-soft:    rgba(255, 200, 61, 0.22);

  --crimson:        #C8324A;
  --leaf:           #2F8F6E;

  --bg:             #FFF7EE;
  --bg-card:        #FFFFFF;
  --bg-elevated:    #FFFCF5;
  --bg-panel:       #FF7B50;        /* coral header */
  --bg-panel-deep:  #C8513A;        /* coral utility bar */
  --bg-dark:        #2A1B14;        /* deep warm brown */
  --bg-cream:       #FFEFD9;

  --text:           #2A1B14;
  --text-muted:     #6B5648;
  --text-dim:       #8A7868;
  --text-on-dark:   #FFF7EE;
  --text-on-brand:  #FFFFFF;

  --border:         rgba(42, 27, 20, 0.10);
  --border-strong:  rgba(42, 27, 20, 0.20);
  --border-soft:    rgba(42, 27, 20, 0.05);
  --border-on-dark: rgba(255, 247, 238, 0.16);

  /* ---- Typography ---- */
  --font-body:    'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: 'Fraunces', "Source Serif Pro", Georgia, serif;

  /* ---- Radius ---- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-pill: 999px;
  --card-radius: 18px;

  /* ---- Shadows ---- */
  --shadow-soft:        0 1px 2px rgba(42,27,20,.04), 0 4px 14px rgba(42,27,20,.06);
  --shadow-card:        0 2px 6px rgba(42,27,20,.06), 0 16px 36px rgba(184,58,31,.10);
  --shadow-card-hover:  0 6px 14px rgba(42,27,20,.08), 0 28px 60px rgba(184,58,31,.18);
  --shadow-cta:         0 12px 28px rgba(255,123,80,.36), 0 2px 6px rgba(184,58,31,.18);
  --shadow-on-dark:     0 18px 44px rgba(0,0,0,.32);

  /* ---- Layout ---- */
  --container:       1200px;
  --container-wide:  1320px;
  --header-top-h:    2.25rem;
  --header-main-h:   4.5rem;
  --header-h:        calc(var(--header-top-h) + var(--header-main-h));

  /* ---- Gradients ---- */
  --grad-brand:    linear-gradient(135deg, #FF8E62 0%, #FF6A3A 50%, #C8513A 100%);
  --grad-gold:     linear-gradient(135deg, #FFD56A 0%, #FFC83D 50%, #C8941A 100%);
  --grad-stripe:   linear-gradient(90deg, #FFC83D 0%, #FF7B50 50%, #C8324A 100%);
  --grad-cream:    linear-gradient(180deg, #FFF7EE 0%, #FFEFD9 100%);
  --grad-warm-radial: radial-gradient(1200px 600px at 80% -10%, rgba(255,200,61,.30), transparent 60%),
                     radial-gradient(1000px 700px at -10% 110%, rgba(255,123,80,.22), transparent 60%);
}

/* ============================================================
   Resets + base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image: var(--grad-warm-radial);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  counter-reset: img-div;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--brand-dark);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--brand); }

ul, ol { margin: 0 0 1em; padding-left: 1.25rem; }
li { margin: 0 0 0.4em; }
li::marker { color: var(--brand); }

::selection { background: var(--accent-soft); color: var(--text); }

/* ============================================================
   Utility
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-wide { max-width: var(--container-wide); }

.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--accent-soft);
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 200, 61, 0.5);
}

.highlight {
  position: relative;
  font-style: italic;
  font-family: var(--font-heading);
  white-space: nowrap;
}
.highlight::after {
  content: "";
  position: absolute;
  inset: auto 0 0.05em 0;
  height: 0.45em;
  background: linear-gradient(90deg, rgba(255,200,61,.65), rgba(255,123,80,.55));
  border-radius: 4px;
  z-index: -1;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin: 0 0 0.5rem;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-brand);
  color: var(--text-on-brand);
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(255,123,80,.46), 0 3px 8px rgba(184,58,31,.22);
  color: var(--text-on-brand);
}
.btn-secondary {
  background: transparent;
  color: var(--brand-dark);
  border-color: var(--brand);
}
.btn-secondary:hover {
  background: var(--brand-soft);
  transform: translateY(-2px);
  color: var(--brand-dark);
}
.btn-ghost {
  background: rgba(255,247,238,.08);
  color: var(--text-on-dark);
  border-color: var(--border-on-dark);
}
.btn-ghost:hover {
  background: rgba(255,247,238,.16);
  color: var(--text-on-brand);
}

.btn-primary--gold {
  background: var(--grad-gold);
  color: var(--brand-deep);
  box-shadow: 0 12px 28px rgba(255,200,61,.45), 0 2px 6px rgba(184,148,26,.22);
}
.btn-primary--gold:hover { color: var(--brand-deep); }

/* ============================================================
   Header — sticky 2-row, coral
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-panel);
  color: var(--text-on-brand);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 12px 30px rgba(184,58,31,.22);
}

.header-utility {
  background: var(--bg-panel-deep);
  color: rgba(255,247,238,.85);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  height: var(--header-top-h);
  display: flex;
  align-items: center;
}
.header-utility .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.header-utility-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.header-utility-trust .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 200, 61, .65);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0    rgba(255,200,61,.65); }
  70%  { box-shadow: 0 0 0 10px rgba(255,200,61,0); }
  100% { box-shadow: 0 0 0 0    rgba(255,200,61,0); }
}
.header-utility-links {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
}
.header-utility-links a {
  color: rgba(255,247,238,.85);
  font-weight: 500;
  transition: color .15s ease;
}
.header-utility-links a:hover { color: var(--accent); }

.header-main {
  height: var(--header-main-h);
}
.header-main .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}
.brand-logo:hover { transform: none; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  flex: 1;
  justify-content: center;
}
.primary-nav a {
  position: relative;
  color: rgba(255,247,238,.92);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--r-pill);
  transition: color .15s ease, background .15s ease;
}
.primary-nav a:hover { color: #FFFFFF; background: rgba(255,247,238,.10); }
.primary-nav a.active { color: #fff; }
.nav-indicator {
  position: absolute;
  bottom: -2px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  transition: left .35s cubic-bezier(.4,.0,.2,1), width .35s cubic-bezier(.4,.0,.2,1), opacity .25s ease;
  pointer-events: none;
  opacity: 0;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.header-cta .btn-primary {
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  background: var(--grad-gold);
  color: var(--brand-deep);
  box-shadow: 0 8px 22px rgba(255,200,61,.32);
}
.header-cta .btn-primary:hover { color: var(--brand-deep); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1.5px solid var(--border-on-dark);
  background: rgba(255,247,238,.08);
  border-radius: var(--r-md);
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: var(--text-on-brand);
  transform: translate(-50%, -50%);
  transition: transform .25s ease, opacity .25s ease;
}
.burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 5px)); }
.burger span:nth-child(3) { transform: translate(-50%, calc(-50% + 5px)); }
.burger.is-open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(42, 27, 20, .94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: calc(var(--header-h) + 2rem) 1.5rem 2rem;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  overflow-y: auto;
}
.mobile-overlay.is-open { opacity: 1; pointer-events: auto; }
.mobile-overlay a {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-on-dark);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,247,238,.08);
}
.mobile-overlay a.cta {
  margin-top: 1.5rem;
  background: var(--grad-gold);
  color: var(--brand-deep);
  text-align: center;
  border: none;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem;
}

/* ============================================================
   Hero — asymmetric editorial
   ============================================================ */

.hero {
  position: relative;
  padding: 3.5rem 0 7rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.18;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 500px at 90% 20%, rgba(255,200,61,.30), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(255,123,80,.22), transparent 60%);
  z-index: -1;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hero-content .kicker { margin-bottom: 1.2rem; }
.hero-content h1 {
  font-size: clamp(2.6rem, 5.8vw, 4.4rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 1.4rem;
}
.hero-content .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.hero-proof {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: 0.55rem 1rem 0.55rem 0.55rem;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-soft);
}
.hero-proof .stack {
  display: inline-flex;
}
.hero-proof .chip {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  background: var(--grad-gold);
  margin-left: -8px;
}
.hero-proof .chip:first-child { margin-left: 0; background: var(--grad-brand); }
.hero-proof .chip:nth-child(3) { background: linear-gradient(135deg, #FFEDD5, #F2A881); }
.hero-proof .text { font-size: 0.9rem; color: var(--text-muted); }
.hero-proof .text strong { color: var(--text); font-weight: 700; }

/* Hero art — lottery ticket centerpiece */
.hero-art {
  position: relative;
  aspect-ratio: 1.05 / 1;
  min-height: 420px;
}
.hero-art-spark {
  position: absolute;
  font-size: 1.6rem;
  color: var(--accent);
  opacity: 0.85;
  pointer-events: none;
  animation: twinkle 3.2s ease-in-out infinite;
  z-index: 5;
}
.hero-art-spark--a { top: 4%; right: 8%; animation-delay: 0s; }
.hero-art-spark--b { top: 40%; left: -2%; font-size: 1.2rem; animation-delay: 1s; }
.hero-art-spark--c { bottom: 10%; left: 30%; font-size: 1rem; animation-delay: 2s; color: var(--brand); }
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: 0.5; }
  50%      { transform: scale(1.2) rotate(15deg); opacity: 1; }
}

/* Lottery ticket */
.lotto-ticket {
  position: absolute;
  inset: 8% 6% auto 4%;
  background:
    linear-gradient(180deg, #FFFFFF 0%, #FFFCF5 100%);
  border-radius: 20px;
  border: 1.5px solid rgba(184,58,31,.10);
  box-shadow:
    0 6px 16px rgba(42,27,20,.10),
    0 36px 70px rgba(184,58,31,.22);
  padding: 1.6rem 1.8rem 1.4rem;
  transform: rotate(-3deg);
  isolation: isolate;
  overflow: hidden;
  z-index: 3;
}
/* Punched perforation along left edge */
.lotto-ticket::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 14px;
  background:
    radial-gradient(circle at 50% 9px, var(--bg) 4px, transparent 4.5px),
    radial-gradient(circle at 50% 27px, var(--bg) 4px, transparent 4.5px),
    radial-gradient(circle at 50% 45px, var(--bg) 4px, transparent 4.5px),
    radial-gradient(circle at 50% 63px, var(--bg) 4px, transparent 4.5px),
    radial-gradient(circle at 50% 81px, var(--bg) 4px, transparent 4.5px),
    radial-gradient(circle at 50% 99px, var(--bg) 4px, transparent 4.5px),
    radial-gradient(circle at 50% 117px, var(--bg) 4px, transparent 4.5px),
    radial-gradient(circle at 50% 135px, var(--bg) 4px, transparent 4.5px),
    radial-gradient(circle at 50% 153px, var(--bg) 4px, transparent 4.5px),
    radial-gradient(circle at 50% 171px, var(--bg) 4px, transparent 4.5px),
    radial-gradient(circle at 50% 189px, var(--bg) 4px, transparent 4.5px),
    radial-gradient(circle at 50% 207px, var(--bg) 4px, transparent 4.5px),
    radial-gradient(circle at 50% 225px, var(--bg) 4px, transparent 4.5px),
    radial-gradient(circle at 50% 243px, var(--bg) 4px, transparent 4.5px),
    radial-gradient(circle at 50% 261px, var(--bg) 4px, transparent 4.5px),
    radial-gradient(circle at 50% 279px, var(--bg) 4px, transparent 4.5px),
    radial-gradient(circle at 50% 297px, var(--bg) 4px, transparent 4.5px),
    radial-gradient(circle at 50% 315px, var(--bg) 4px, transparent 4.5px),
    radial-gradient(circle at 50% 333px, var(--bg) 4px, transparent 4.5px);
  z-index: 2;
}
/* Background watermark "77" */
.lotto-ticket::after {
  content: "77";
  position: absolute;
  bottom: -2.5rem;
  right: -0.5rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 14rem;
  line-height: 1;
  color: rgba(255, 123, 80, 0.06);
  pointer-events: none;
  z-index: 0;
}
.lotto-ticket > * { position: relative; z-index: 1; }

.lotto-ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.9rem;
  border-bottom: 2px dashed rgba(184,58,31,.18);
  margin-bottom: 1rem;
}
.lotto-brand {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--brand-dark);
  letter-spacing: -0.01em;
}
.lotto-id {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  background: var(--bg);
  padding: 0.3rem 0.6rem;
  border-radius: var(--r-pill);
}
.lotto-ticket-line {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.lotto-balls {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: nowrap;
}
.lotto-ball {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #FFFFFF, #FFE9D2 65%, #FFB498 100%);
  border: 1.5px solid rgba(184,58,31,.18);
  box-shadow:
    0 4px 10px rgba(42,27,20,.10),
    inset 0 -3px 6px rgba(184,58,31,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--brand-dark);
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.lotto-ball--accent {
  background:
    radial-gradient(circle at 30% 30%, #FFEDC8, #FFC83D 60%, #C8941A 100%);
  color: var(--brand-deep);
  border-color: rgba(184,148,26,.5);
  box-shadow:
    0 6px 14px rgba(184,148,26,.32),
    inset 0 -3px 8px rgba(184,148,26,.34);
  transform: scale(1.06);
}
.lotto-ticket-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 2px dashed rgba(184,58,31,.18);
}
.lotto-meta-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.lotto-meta-amt {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--brand-dark);
}

/* JACKPOT wax-stamp */
.lotto-stamp {
  position: absolute;
  top: 14%;
  right: -1.5rem;
  z-index: 2;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.16em;
  color: var(--crimson);
  border: 3px solid var(--crimson);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transform: rotate(12deg);
  background: rgba(255,247,238,.50);
  text-shadow: 0 1px 0 rgba(255,247,238,.6);
  opacity: 0.92;
  box-shadow:
    inset 0 0 0 1.5px rgba(200,50,74,.30);
}

/* Back ticket — shadow/stack effect */
.lotto-ticket--back {
  inset: 14% 2% auto 10%;
  transform: rotate(4deg);
  background: linear-gradient(180deg, #FFE9D2 0%, #FFCEB0 100%);
  z-index: 1;
  border-color: rgba(184,58,31,.16);
  box-shadow: 0 14px 30px rgba(184,58,31,.18);
  padding: 0;
}
.lotto-ticket--back::after { content: none; }

/* Confetti dots */
.hero-confetti {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 4;
  opacity: 0.85;
}
.hero-confetti--a { top: 6%;  right: 18%; background: var(--accent);   transform: rotate(20deg); }
.hero-confetti--b { top: 22%; left: -1%;  background: var(--brand);    transform: rotate(-12deg); width: 8px; height: 8px; }
.hero-confetti--c { bottom: 8%; right: 10%; background: var(--crimson); transform: rotate(40deg); width: 10px; height: 10px; }
.hero-confetti--d { bottom: 26%; left: 8%; background: var(--accent-warm); transform: rotate(-30deg); width: 14px; height: 6px; border-radius: 3px; }

/* ============================================================
   Editorial marquee strip
   ============================================================ */

.hero-marquee {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 0.9rem 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(255,247,238,.10);
  border-bottom: 1px solid rgba(255,247,238,.10);
}
.hero-marquee::before, .hero-marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.hero-marquee::before { left: 0;  background: linear-gradient(90deg, var(--bg-dark), transparent); }
.hero-marquee::after  { right: 0; background: linear-gradient(-90deg, var(--bg-dark), transparent); }
.hero-marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.01em;
  will-change: transform;
}
.marquee-set {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-right: 1.2rem; /* keeps the gap consistent at the wrap-point */
  flex-shrink: 0;
}
.hero-marquee-track span { padding: 0 0.4rem; }
.hero-marquee-track em {
  font-style: normal;
  color: var(--brand-light);
  opacity: 0.7;
  font-size: 1rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); } /* 4 sets in track → -25% = exactly one set */
}
@media (prefers-reduced-motion: reduce) {
  .hero-marquee-track { animation: none; }
}

/* ============================================================
   Hero bridge — stat strip
   ============================================================ */

.hero-bridge {
  margin-top: -5.25rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 5;
}
.hero-stats-strip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  padding: 1.5rem 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}
.hero-stats-strip::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--grad-stripe);
}
.hero-stat {
  text-align: center;
  padding: 0.4rem 0.8rem;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat .num {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
  font-style: italic;
  color: var(--brand-dark);
  line-height: 1;
  display: block;
}
.hero-stat .lbl {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.5rem;
  display: block;
}

/* ============================================================
   Sections — generic
   ============================================================ */

main > section,
.builder-section {
  padding: 2.75rem 0;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
}
.section-head .eyebrow { display: inline-block; }
.section-head h2 { margin: 0.5rem 0 0.8rem; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

.intro-block {
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  text-align: center;
}
.intro-block p {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   Cards — universal style
   ============================================================ */

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
  isolation: isolate;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--grad-stripe);
  z-index: 1;
}
.card::after {
  content: attr(data-watermark);
  position: absolute;
  bottom: -0.8rem;
  right: -0.4rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 7rem;
  font-weight: 500;
  color: rgba(255,123,80,.06);
  pointer-events: none;
  z-index: 0;
  line-height: 1;
  transition: color .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.card:hover::after {
  color: rgba(255,200,61,.18);
}
.card > * { position: relative; z-index: 2; }

.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--brand-dark);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  font-style: italic;
}
.card h3, .card h4 { margin-top: 0; }
.card p { color: var(--text-muted); }

/* ============================================================
   Floor-grid (builder card grids)
   ============================================================ */

.floor-grid {
  display: grid;
  gap: 1.5rem;
}
.floor-grid--cols-1 { grid-template-columns: minmax(0, 1fr); margin: 0 auto; }
.floor-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.floor-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.floor-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .floor-grid--cols-3,
  .floor-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .floor-grid--cols-2,
  .floor-grid--cols-3,
  .floor-grid--cols-4 { grid-template-columns: minmax(0, 1fr); }
}

/* Rich tile variant — single column, sub-cards, dividers */
.floor-grid--rich {
  grid-template-columns: minmax(0, 1fr);
  margin: 0 auto;
}
.floor-grid--rich .card {
  padding: 2.4rem;
}
.floor-grid--rich h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin: 1.6rem 0 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--brand);
}
.floor-grid--rich h4:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.floor-grid--rich ul, .floor-grid--rich ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.floor-grid--rich li {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem 1.15rem 1rem 1.45rem;
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
  overflow: hidden;
}
.floor-grid--rich li::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--brand));
}

/* ============================================================
   Split-layout (feature list + image)
   ============================================================ */

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split-layout--reverse { grid-template-columns: 1fr 1fr; }
.split-layout--reverse .split-layout-content { order: 2; }
.split-layout--reverse .split-layout-image  { order: 1; }
.split-layout-content h2 { margin-top: 0; }
.split-layout-image {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
}
.split-layout-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-layout-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(184,58,31,.18) 100%);
  pointer-events: none;
}
@media (max-width: 900px) {
  .split-layout, .split-layout--reverse { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .split-layout--reverse .split-layout-content { order: 1; }
  .split-layout--reverse .split-layout-image  { order: 2; }
}

/* ============================================================
   Feature check-list
   ============================================================ */

.feature-check-list {
  background: linear-gradient(135deg, #FFEDC8 0%, #FFE0B5 100%);
  border: 1px solid rgba(255,200,61,.50);
  border-left: 5px solid var(--accent);
  border-radius: var(--r-lg);
  padding: 2rem;
  list-style: none;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}
.feature-check-list li {
  position: relative;
  padding-left: 2.4rem;
  margin: 0;
  color: var(--text);
}
.feature-check-list li::before {
  content: "";
  position: absolute;
  top: 0.15em;
  left: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--grad-gold);
  box-shadow: 0 2px 6px rgba(184,148,26,.25);
}
.feature-check-list li::after {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 7px;
  width: 10px; height: 5px;
  border-left: 2px solid var(--brand-deep);
  border-bottom: 2px solid var(--brand-deep);
  transform: rotate(-45deg);
}

.feature-check-list--plain {
  margin: 0 auto;
}

/* Plain card (editorial centered) */
.plain-card {
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 3rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.plain-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--grad-stripe);
}
.plain-card::after {
  content: attr(data-watermark);
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 9rem;
  font-weight: 500;
  color: rgba(255,123,80,.06);
  pointer-events: none;
  line-height: 1;
}
.plain-card > * { position: relative; z-index: 1; }

/* ============================================================
   Image divider — contained 2-column figure
   ============================================================ */

.image-divider {
  max-width: var(--container);
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  counter-increment: img-div;
}
.image-divider-figure {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  margin: 0;
}
.image-divider-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.image-divider-aside .num::before {
  content: counter(img-div, decimal-leading-zero);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 5rem;
  font-weight: 400;
  color: var(--brand);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}
.image-divider-aside .kicker {
  margin-bottom: 0.75rem;
}
.image-divider-aside h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}
.image-divider-aside p { color: var(--text-muted); }

@media (max-width: 760px) {
  .image-divider { grid-template-columns: minmax(0,1fr); }
}

/* ============================================================
   Bento home sections
   ============================================================ */

.bento-floor {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: minmax(220px, auto) minmax(220px, auto);
}
.bento-tile {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .25s ease, box-shadow .25s ease;
}
.bento-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.bento-tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-stripe);
}
.bento-tile h3 { margin: 0.25rem 0 0.5rem; font-size: 1.35rem; }
.bento-tile p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.bento-tile ul { padding-left: 1.1rem; margin: 0.6rem 0 0; }
.bento-tile li { font-size: 0.92rem; margin-bottom: 0.35rem; }
.bento-tile .tile-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-dark);
}

.bento-tile--feature {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--grad-brand);
  color: var(--text-on-brand);
  padding: 2.4rem;
}
.bento-tile--feature::before { background: var(--grad-gold); }
.bento-tile--feature h3 { color: var(--text-on-brand); font-size: 2rem; }
.bento-tile--feature p { color: rgba(255,247,238,.85); }
.bento-tile--feature .tile-eyebrow { color: var(--accent); }
.bento-tile--feature::after {
  content: "♠";
  position: absolute;
  bottom: -2rem;
  right: -1rem;
  font-family: var(--font-heading);
  font-size: 16rem;
  color: rgba(255,247,238,.10);
  pointer-events: none;
  line-height: 1;
  font-style: italic;
}

.bento-tile--gold {
  background: linear-gradient(135deg, #FFEDC8 0%, #FFD56A 100%);
}
.bento-tile--gold .tile-eyebrow { color: var(--brand-deep); }

@media (max-width: 900px) {
  .bento-floor { grid-template-columns: repeat(2, 1fr); }
  .bento-tile--feature { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 560px) {
  .bento-floor { grid-template-columns: 1fr; }
  .bento-tile--feature { grid-column: span 1; }
}

/* Security grid (4-up art-deco) */
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.security-tile {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.8rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.security-tile::before {
  content: "";
  position: absolute;
  top: 12px; left: 12px; right: 12px; bottom: 12px;
  border: 1px solid rgba(184,58,31,.10);
  border-radius: calc(var(--card-radius) - 8px);
  pointer-events: none;
}
.security-tile .ico {
  display: inline-flex;
  width: 56px; height: 56px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--grad-gold);
  color: var(--brand-deep);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 1rem;
  box-shadow: 0 6px 14px rgba(184,148,26,.22);
}
.security-tile h4 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-family: var(--font-heading);
  font-weight: 600;
}
.security-tile p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }
@media (max-width: 900px) { .security-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .security-grid { grid-template-columns: 1fr; } }

/* Rewards bento */
.rewards-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.rewards-bento .reward-welcome {
  grid-column: 1 / span 1;
  grid-row: 1 / span 2;
  background: var(--grad-gold);
  color: var(--brand-deep);
  border-radius: var(--card-radius);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
}
.rewards-bento .reward-welcome::after {
  content: "★";
  position: absolute;
  top: -2rem; right: -2rem;
  font-size: 14rem;
  color: rgba(184,148,26,.18);
  font-style: italic;
  font-family: var(--font-heading);
}
.rewards-bento .reward-welcome h3 { color: var(--brand-deep); font-size: 1.8rem; margin: 0.5rem 0 1rem; }
.rewards-bento .reward-welcome p { color: rgba(107,31,15,.82); }
.rewards-bento .reward-welcome .tile-eyebrow { color: var(--brand-deep); }

.rewards-bento .reward-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.rewards-bento .reward-tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0; height: 4px;
  background: var(--grad-stripe);
}
.rewards-bento .reward-tile h4 { margin: 0.25rem 0 0.4rem; font-size: 1.15rem; }
.rewards-bento .reward-tile p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

.rewards-bento .reward-vip {
  grid-column: 1 / span 3;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 1.8rem 2.2rem;
  border-radius: var(--card-radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.rewards-bento .reward-vip::after {
  content: "VIP";
  position: absolute;
  right: 1rem;
  bottom: -1rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 7rem;
  font-weight: 600;
  color: rgba(255,200,61,.10);
}
.rewards-bento .reward-vip h4 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--accent);
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
}
.rewards-bento .reward-vip p { margin: 0; color: rgba(255,247,238,.78); }

@media (max-width: 900px) {
  .rewards-bento { grid-template-columns: repeat(2, 1fr); }
  .rewards-bento .reward-welcome { grid-column: 1 / span 2; grid-row: auto; }
  .rewards-bento .reward-vip { grid-column: 1 / span 2; }
}
@media (max-width: 560px) {
  .rewards-bento { grid-template-columns: 1fr; }
  .rewards-bento .reward-welcome,
  .rewards-bento .reward-vip { grid-column: 1; }
}

/* Support card (editorial centered card with watermark) */
.support-card {
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 3rem 3.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-align: center;
  isolation: isolate;
}
.support-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0; height: 5px;
  background: var(--grad-stripe);
}
.support-card::after {
  content: "77";
  position: absolute;
  bottom: -3rem; right: -1rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 18rem;
  font-weight: 500;
  color: rgba(255,123,80,.06);
  pointer-events: none;
  line-height: 1;
  z-index: 0;
}
.support-card > * { position: relative; z-index: 1; }
.support-card .channels {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.support-card .channels li {
  background: var(--bg);
  padding: 0.75rem 1.4rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.92rem;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-section {
  padding: 2.75rem 0;
}
.faq-list {
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.faq-item[open] {
  box-shadow: var(--shadow-card);
  border-color: rgba(255,200,61,.50);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(255,200,61,.45);
  position: relative;
  flex: 0 0 32px;
  margin-left: 1rem;
  transition: transform .25s ease, background .25s ease;
}
.faq-item .faq-icon::before, .faq-item .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--brand-dark);
  transform: translate(-50%, -50%);
}
.faq-item .faq-icon::before { width: 12px; height: 2px; }
.faq-item .faq-icon::after  { width: 2px; height: 12px; transition: transform .25s ease; }
.faq-item[open] .faq-icon { transform: rotate(180deg); background: var(--accent); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }

.faq-answer {
  padding: 0 1.5rem 1.4rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   Inner-page hero
   ============================================================ */

/* ============================================================
   Inner-page hero — editorial cover band
   Dark warm brown band with cream italic typography,
   coral pill breadcrumb, top-right meta stamp,
   and a multi-stop gradient ribbon at the bottom edge.
   ============================================================ */
.page-hero {
  position: relative;
  padding: 3.5rem 0 4.25rem;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-bottom: none;
}
/* Soft glows */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 88% -20%, rgba(255,200,61,.22), transparent 60%),
    radial-gradient(700px 460px at -10% 130%, rgba(255,123,80,.28), transparent 60%);
  z-index: -2;
  pointer-events: none;
}
/* Tessellated pattern watermark — repeating italic "77" */
.page-hero > .container::after {
  content: "77";
  position: absolute;
  right: 1rem;
  bottom: -1.5rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(8rem, 18vw, 18rem);
  line-height: 0.85;
  color: rgba(255, 200, 61, 0.06);
  z-index: -1;
  pointer-events: none;
  letter-spacing: -0.04em;
}
/* Bottom gradient ribbon */
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--brand) 0%,
    var(--accent-warm) 28%,
    var(--accent) 55%,
    var(--crimson) 100%
  );
  z-index: 1;
}

.page-hero .container {
  position: relative;
}

/* Top row: breadcrumb (left) + page-meta (right) */
.page-hero .breadcrumb {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-on-brand);
  background: var(--brand);
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 0.4rem 1rem;
  border-radius: var(--r-pill);
  margin: 0 0 1.75rem;
  box-shadow: 0 6px 18px rgba(255,123,80,.32);
}
.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, .92);
  transition: color .15s ease;
}
.page-hero .breadcrumb a:hover { color: var(--accent); }
.page-hero .breadcrumb .sep { margin: 0 0.55rem; opacity: 0.7; color: var(--accent); }

.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  max-width: 920px;
}
.page-hero h1 .highlight { color: var(--accent); }
.page-hero h1 .highlight::after { background: linear-gradient(90deg, rgba(255,200,61,.45), rgba(255,123,80,.40)); }

.page-hero .lead {
  max-width: 680px;
  margin: 0 0 1.75rem;
  color: rgba(255, 247, 238, .80);
  font-size: 1.1rem;
  line-height: 1.65;
  font-family: var(--font-body);
}

/* page-meta becomes a slim "byline strip" with a gold rule above */
.page-meta {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding-top: 1.1rem;
  font-size: 0.8rem;
  color: rgba(255, 247, 238, .58);
  letter-spacing: 0.02em;
}
.page-meta::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--brand));
  border-radius: 2px;
}
.page-meta .page-meta-author {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.page-meta time {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
  .page-hero { padding: 2.5rem 0 3rem; }
  .page-hero h1 { font-size: 2.1rem; }
  .page-hero .lead { font-size: 1rem; }
  .page-hero > .container::after { right: -1rem; font-size: 11rem; }
}

/* ============================================================
   About page specifics
   ============================================================ */

.about-section { padding: 2rem 0; }
.about-section + .about-section { padding-top: 0; }
.about-section .section-head { margin-bottom: 1.5rem; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  margin-top: 4rem;
  position: relative;
}

.footer-cta {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  transform: translateY(-50%);
  position: relative;
  z-index: 2;
}
.footer-cta-card {
  background: var(--grad-gold);
  color: var(--brand-deep);
  padding: 3rem 3.5rem;
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: 0 30px 80px rgba(184,148,26,.30);
  position: relative;
  overflow: hidden;
}
.footer-cta-card::after {
  content: "77 Lottery";
  position: absolute;
  bottom: -3rem;
  right: -1rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 11rem;
  font-weight: 500;
  color: rgba(107,31,15,.10);
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}
.footer-cta-card h2 {
  margin: 0;
  color: var(--brand-deep);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  position: relative;
  z-index: 1;
}
.footer-cta-card p { color: rgba(107,31,15,.78); margin: 0.4rem 0 0; position: relative; z-index: 1; }
.footer-cta-card .actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.footer-cta-card .btn-primary {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  box-shadow: 0 10px 24px rgba(0,0,0,.30);
}
.footer-cta-card .btn-secondary {
  background: rgba(42,27,20,.10);
  border-color: var(--brand-deep);
  color: var(--brand-deep);
}

.footer-main {
  padding: 0 0 3rem;
}
.footer-cols {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand .brand-logo { margin-bottom: 1rem; }
.footer-brand .brand-logo img { height: 40px; }
.footer-brand p {
  color: rgba(255,247,238,.7);
  font-size: 0.95rem;
  max-width: 320px;
}
.footer-pay {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  margin-top: 1rem;
}
.footer-pay span {
  background: rgba(255,247,238,.08);
  border: 1px solid var(--border-on-dark);
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,247,238,.78);
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 24px; height: 2px;
  background: var(--accent);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0.55rem 0; }
.footer-col a {
  color: rgba(255,247,238,.78);
  font-size: 0.92rem;
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--accent); }

.footer-trust {
  border-top: 1px solid var(--border-on-dark);
  border-bottom: 1px solid var(--border-on-dark);
  padding: 1rem 0;
  margin-top: 2.5rem;
}
.footer-trust .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,247,238,.68);
}
.footer-trust .pill {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  font-weight: 700;
}
.footer-trust .pill::before {
  content: "•";
  color: var(--accent);
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: rgba(255,247,238,.55);
}
.footer-bottom .copyright { font-weight: 500; }
.footer-bottom .responsible {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

@media (max-width: 900px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-cta-card { padding: 2rem; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* ============================================================
   404 page
   ============================================================ */

.err-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.err-404 .glyph {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(8rem, 22vw, 22rem);
  font-weight: 400;
  line-height: 1;
  background: var(--grad-stripe);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}
.err-404 h1 { margin: 0.5rem 0 1rem; }
.err-404 p { color: var(--text-muted); margin-bottom: 2rem; max-width: 520px; }

/* ============================================================
   Reveal on scroll
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art-spark { animation: none; }
  .header-utility-trust .pulse { animation: none; }
}

/* ============================================================
   Builder section content typography
   ============================================================ */

.builder-content { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.builder-section h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}
.plain-card h3 { margin-top: 1.5rem; }
.plain-card ul, .plain-card ol { padding-left: 1.5rem; }
.plain-card ul li::marker { color: var(--brand); }

.split-layout-content ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.split-layout-content ul li {
  position: relative;
  padding-left: 1.85rem;
  color: var(--text);
}
.split-layout-content ul li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--grad-gold);
  box-shadow: 0 2px 6px rgba(184,148,26,.22);
}

/* ============================================================
   Responsive — header collapse
   ============================================================ */

@media (max-width: 900px) {
  .primary-nav { display: none; }
  .nav-indicator { display: none; }
  .header-cta .btn-primary { display: none; }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .header-utility-links a:not(:last-child) { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { min-height: 360px; }
  .hero-art-card { width: 140px; }
  .hero-art-chip { width: 120px; height: 120px; }
}
@media (max-width: 700px) {
  .hero { padding: 2rem 0 1.5rem; }
  .hero-stats-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(2) { border-right: none; }
  .hero-stat { padding: 1rem 0.5rem; }
  main > section, .builder-section, .faq-section { padding: 2rem 0; }
  .plain-card { padding: 2rem; }
  .footer-cta-card { padding: 2rem; }
}
@media (max-width: 560px) {
  .header-utility { font-size: 0.7rem; }
  .header-utility-links { gap: 0.7rem; }
  .hero-content h1 { font-size: 2.4rem; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; }
}
@media (max-width: 480px) {
  .hero-stats-strip { grid-template-columns: 1fr; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--border); padding: 1rem 0.5rem; }
  .hero-stat:last-child { border-bottom: none; }
}
