/* ==========================================================================
   Diwa Game — site.css
   Dark, playful, neon-green & gold casino aesthetic.
   Palette derived from diwabet.vip (brand colour reference).
   Fonts: Fraunces (display) + Plus Jakarta Sans (body).
   SHARED CONTENT WIDTH: every bounded element shares var(--container) (1200px)
   and 1.5rem horizontal padding. Cards/grids/lists fill the container — no
   tighter "readable" column widths.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand — vibrant neon green dominant */
  --brand:        #5fe23a;
  --brand-dark:   #2f8a1e;
  --brand-light:  #b6f59a;

  /* Accents — gold + secondary mint */
  --accent:       #e0a93a;
  --accent-warm:  #fcde5b;
  --accent-soft:  #f6d57e;
  --mint:         #2eeeab;

  /* Surfaces — deep charcoal-green */
  --bg:           #14181a;
  --bg-card:      #1d2426;
  --bg-elevated:  #252e30;
  --bg-panel:     #0f1314;

  /* Text */
  --text:         #f1f3f1;
  --text-muted:   #aeb9b6;
  --text-dim:     #7c8987;
  --text-on-dark: #f6f1e6;

  /* Borders */
  --border:        rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-soft:   rgba(255, 255, 255, 0.05);

  /* Typography */
  --font-body:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;

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

  /* Shadows (dark theme: deep ambient + green glow on CTAs) */
  --shadow-soft:        0 2px 10px rgba(0, 0, 0, 0.28);
  --shadow-card:        0 14px 34px -14px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.34);
  --shadow-card-hover:  0 26px 54px -16px rgba(0, 0, 0, 0.72), 0 0 0 1px var(--border-strong);
  --shadow-cta:         0 12px 30px -8px rgba(95, 226, 58, 0.42);

  /* Gradients */
  --grad-brand:  linear-gradient(90deg, var(--accent-warm) 0%, var(--accent) 42%, var(--brand) 100%);
  --grad-gold:   linear-gradient(120deg, var(--accent-warm), var(--accent));
  --grad-green:  linear-gradient(120deg, var(--brand), var(--mint));

  /* Layout */
  --container: 1200px;
  --container-wide: 1320px;
  --pad-x: 1.5rem;
  --header-top-h: 2.5rem;
  --header-main-h: 5.25rem;
  --header-h: calc(var(--header-top-h) + var(--header-main-h));
  /* vertical rhythm: 40px padding each side → ~80px gap between sections */
  --section-pad: 40px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  counter-reset: img-div;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* layered atmosphere */
  background-image:
    radial-gradient(1100px 620px at 88% -8%, rgba(95, 226, 58, 0.10), transparent 60%),
    radial-gradient(900px 540px at -10% 12%, rgba(224, 169, 58, 0.10), transparent 58%),
    radial-gradient(800px 800px at 50% 120%, rgba(46, 238, 171, 0.06), transparent 60%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }

::selection { background: var(--brand); color: #06210a; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--section-pad); position: relative; }
.section--tight { padding-block: 24px; }

/* Section head — the ONLY element allowed a narrower inner width (typography) */
.section-head { margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.section-head--center { text-align: center; }
.section-head--center .section-head-inner { margin-inline: auto; }
.section-head-inner { max-width: 720px; }
.kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 700;
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-warm);
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--grad-brand); border-radius: 2px; }
.section-head--center .kicker::before { display: none; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.85rem);
  margin-top: 0.7rem; color: var(--text);
}
.section-head h2 .highlight { font-style: italic; color: var(--brand); }
.section-head .sub { margin-top: 0.85rem; color: var(--text-muted); font-size: 1.06rem; }

.highlight {
  font-style: italic; color: var(--brand); position: relative; white-space: nowrap;
}
.highlight::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 0.08em; height: 0.34em;
  background: rgba(252, 222, 91, 0.28); border-radius: 3px; z-index: -1;
}

/* ---------- Buttons / CTAs ---------- */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 700; font-size: 0.98rem;
  padding: 0.85rem 1.6rem; border-radius: var(--r-pill);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap; cursor: pointer; line-height: 1; border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--grad-green); color: #06210a; box-shadow: var(--shadow-cta);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -8px rgba(95,226,58,0.55); }
.btn-secondary {
  background: var(--grad-gold); color: #2a1c02; box-shadow: 0 10px 26px -10px rgba(224,169,58,0.5);
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -8px rgba(224,169,58,0.6); }
.btn-ghost {
  background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--brand); color: var(--brand-light); transform: translateY(-2px); }
.btn-lg { padding: 1.02rem 2rem; font-size: 1.05rem; }

/* ==========================================================================
   HEADER — two-tier sticky dark, with Games mega-dropdown
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; }

/* ---- Top utility strip ---- */
.header-top {
  background: #0b0f10;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.8rem;
  transition: height 0.32s ease, opacity 0.32s ease;
  overflow: hidden;
}
.header-top .container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-top-h); gap: 1rem;
}
.header-top-trust { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.01em; }
.trust-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 0 rgba(95,226,58,0.6); animation: pulse-dot 2.2s infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(95,226,58,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(95,226,58,0); }
  100% { box-shadow: 0 0 0 0 rgba(95,226,58,0); }
}
@media (prefers-reduced-motion: reduce) { .trust-dot { animation: none; } }
.header-top-links { display: flex; gap: 1.4rem; }
.header-top-links a { color: var(--text-muted); font-weight: 600; transition: color 0.16s; }
.header-top-links a:hover, .header-top-links a.active { color: var(--accent-soft); }

/* ---- Main bar ---- */
.header-main {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.header-main .container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-main-h); gap: 1.2rem;
}
.is-scrolled .header-main { box-shadow: 0 14px 34px -18px rgba(0,0,0,0.85); background: rgba(15,19,20,0.94); backdrop-filter: blur(12px); }
.is-scrolled .header-top { height: 0; opacity: 0; }

.brand-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo img { height: 58px; width: auto; object-fit: contain; transition: height 0.3s ease; }
.is-scrolled .header-main .brand-logo img { height: 50px; }

/* ---- Primary nav ---- */
.main-nav { display: flex; align-items: center; gap: 0.25rem; flex: 1; justify-content: center; }
.nav-item { position: relative; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 0.34rem;
  padding: 0.6rem 0.95rem; border-radius: var(--r-sm);
  color: rgba(246, 241, 230, 0.86); font-weight: 600; font-size: 0.97rem;
  font-family: var(--font-body); cursor: pointer; background: none; border: none;
  transition: color 0.16s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 0.95rem; right: 0.95rem; bottom: 0.45rem;
  height: 2px; border-radius: 2px; background: var(--grad-brand);
  transform: scaleX(0); transform-origin: left; transition: transform 0.24s ease;
}
.nav-link:hover, .nav-link.active { color: var(--accent-soft); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-chevron { width: 11px; height: 11px; transition: transform 0.24s ease; }
.nav-has-menu.open .nav-chevron,
.nav-has-menu:hover .nav-chevron { transform: rotate(180deg); }

/* ---- Mega dropdown ---- */
.nav-menu {
  position: absolute; top: calc(100% + 0.4rem); left: 50%; transform: translateX(-50%) translateY(8px);
  width: 540px; max-width: 92vw; padding: 0.7rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem;
  background: var(--bg-elevated); border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 28px 60px -18px rgba(0,0,0,0.8), 0 0 0 1px rgba(252,222,91,0.12);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 60;
}
.nav-menu::before { /* hover bridge */
  content: ""; position: absolute; top: -0.6rem; left: 0; right: 0; height: 0.6rem;
}
.nav-has-menu:hover .nav-menu,
.nav-has-menu.open .nav-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-menu-item {
  display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 0.9rem;
  border-radius: var(--r-md); border: 1px solid transparent; transition: background 0.16s, border-color 0.16s, transform 0.16s;
}
.nav-menu-item:hover { background: rgba(95,226,58,0.08); border-color: var(--border); transform: translateY(-1px); }
.nmi-ico {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.25rem; background: rgba(95,226,58,0.12); border: 1px solid var(--border-strong);
}
.nmi-text { display: flex; flex-direction: column; line-height: 1.2; }
.nmi-text strong { color: var(--text); font-weight: 700; font-size: 0.98rem; }
.nmi-text small { color: var(--text-dim); font-size: 0.8rem; }

.header-actions { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }

/* Burger */
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: var(--r-sm); position: relative; border: 1px solid var(--border); }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text-on-dark); border-radius: 2px; transition: transform 0.28s ease, opacity 0.2s ease; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   HERO — centered, layered, with floating casino decor
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(5rem, 8vw, 7.5rem);
  display: grid; place-items: center; text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.30; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 460px at 50% 0%, rgba(95,226,58,0.16), transparent 62%),
    radial-gradient(700px 420px at 12% 90%, rgba(224,169,58,0.14), transparent 60%),
    linear-gradient(180deg, rgba(15,19,20,0.55), var(--bg) 94%);
}
.hero-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(620px 320px at 50% 42%, rgba(46,238,171,0.10), transparent 70%); }

.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 860px; margin-inline: auto; padding-inline: var(--pad-x);
  display: flex; flex-direction: column; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.5rem 1.05rem; border-radius: var(--r-pill);
  background: rgba(95,226,58,0.10); border: 1px solid var(--border-strong);
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-soft);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(95,226,58,0.6); animation: pulse-dot 2.2s infinite; }
.hero h1 {
  margin-top: 1.4rem; font-size: clamp(2.5rem, 6.4vw, 4.5rem); line-height: 1.03;
  letter-spacing: -0.025em; color: var(--text); max-width: 16ch;
}
.hero .lead { margin-top: 1.3rem; font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: var(--text-muted); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; justify-content: center; }
.hero-proof { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.8rem; justify-content: center; flex-wrap: wrap; }
.hero-proof .stack { display: inline-flex; }
.hero-proof .chip {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--bg);
  margin-left: -10px; background: var(--grad-gold);
}
.hero-proof .chip:first-child { margin-left: 0; background: var(--grad-green); }
.hero-proof .chip:nth-child(3) { background: linear-gradient(120deg, var(--mint), var(--brand)); }
.hero-proof .text { font-size: 0.92rem; color: var(--text-muted); }
.hero-proof .text strong { color: var(--text); }

/* Floating decor — cards, coins, sparkles, welcome medallion */
.hero-decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-decor > * { position: absolute; will-change: transform; }
.deco-card {
  width: 116px; height: 162px; border-radius: 15px;
  background: linear-gradient(160deg, #fffdf7, #f1e8d2); color: #20130a;
  font-family: var(--font-heading); font-size: 3rem; font-weight: 600;
  display: grid; place-items: center;
  box-shadow: 0 26px 52px -16px rgba(0,0,0,0.72); border: 1px solid rgba(0,0,0,0.06);
  animation: floaty 7s ease-in-out infinite;
}
.deco-card::before, .deco-card::after { content: attr(data-corner); position: absolute; font-size: 0.85rem; font-weight: 700; font-family: var(--font-body); }
.deco-card::before { top: 8px; left: 10px; }
.deco-card::after { bottom: 8px; right: 10px; transform: rotate(180deg); }
.deco-card--a { top: 12%;  left: 4%;  transform: rotate(-16deg); }
.deco-card--k { top: 16%;  right: 5%; transform: rotate(13deg); color: #b3122b; animation-delay: 1.2s; }
.deco-card--q { bottom: 12%; right: 11%; transform: rotate(-7deg); animation-delay: 2.1s; }
.deco-medallion {
  bottom: 14%; left: 6%; width: 124px; height: 124px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--brand-light), var(--brand) 56%, var(--brand-dark));
  display: grid; place-content: center; text-align: center; color: #06210a;
  box-shadow: 0 20px 44px -12px rgba(95,226,58,0.6), inset 0 0 0 5px rgba(255,255,255,0.28);
  border: 3px dashed rgba(255,255,255,0.55); animation: floaty 8s ease-in-out infinite;
}
.deco-medallion .num { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 700; line-height: 1; }
.deco-medallion .lbl { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }
.deco-coin { width: 30px; height: 30px; border-radius: 50%; background: var(--grad-gold); box-shadow: 0 6px 16px -4px rgba(224,169,58,0.6), inset 0 0 0 3px rgba(255,255,255,0.35); animation: floaty 6s ease-in-out infinite; }
.deco-coin--1 { top: 30%; left: 16%; animation-delay: .4s; }
.deco-coin--2 { bottom: 30%; right: 6%; width: 22px; height: 22px; animation-delay: 1.6s; }
.deco-spark { color: var(--accent-warm); font-size: 1.4rem; animation: twinkle 3s ease-in-out infinite; }
.deco-spark--a { top: 10%; left: 26%; }
.deco-spark--b { top: 22%; right: 22%; font-size: 1.9rem; animation-delay: .7s; }
.deco-spark--c { bottom: 16%; left: 30%; animation-delay: 1.3s; }
@keyframes floaty { 0%,100% { transform: translateY(0) var(--rot, rotate(0)); } 50% { transform: translateY(-14px) var(--rot, rotate(0)); } }
.deco-card--a { --rot: rotate(-16deg); }
.deco-card--k { --rot: rotate(13deg); }
.deco-card--q { --rot: rotate(-7deg); }
@keyframes twinkle { 0%,100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .deco-card, .deco-medallion, .deco-coin, .deco-spark, .hero-badge .dot { animation: none; } }
@media (max-width: 980px) { .hero-decor { display: none; } }

/* ==========================================================================
   GAME MARQUEE — three auto-scrolling poster rows
   ========================================================================== */
.home-games .games-marquee {
  width: 100%; display: flex; flex-direction: column; gap: 16px; margin-top: 0.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.gm-row { overflow: hidden; }
.gm-track { display: flex; width: max-content; will-change: transform; }
.gm-track--a { animation: gm-left  62s linear infinite; }
.gm-track--b { animation: gm-right 78s linear infinite; }
.gm-track--c { animation: gm-left  94s linear infinite; }
.gm-row:hover .gm-track, .gm-track:focus-within { animation-play-state: paused; }
@keyframes gm-left  { from { transform: translateX(0); }     to { transform: translateX(-50%); } }
@keyframes gm-right { from { transform: translateX(-50%); }  to { transform: translateX(0); } }

.gm-tile {
  position: relative; flex: 0 0 auto; margin-right: 16px;
  width: clamp(118px, 14vw, 158px); aspect-ratio: 3 / 4;
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-card);
  background: var(--bg-card); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.gm-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease, filter 0.3s ease; }
.gm-tile::before { /* dim veil that lifts on hover */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 45%, rgba(8,10,11,0.55)); opacity: 0.55; transition: opacity 0.25s ease;
}
.gm-play {
  position: absolute; inset: 0; z-index: 2; margin: auto; width: 48px; height: 48px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--grad-green); color: #06210a; font-size: 1rem; padding-left: 3px;
  box-shadow: 0 10px 24px -8px rgba(95,226,58,0.6);
  opacity: 0; transform: scale(0.6); transition: opacity 0.25s ease, transform 0.25s ease;
}
.gm-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); border-color: var(--brand); }
.gm-tile:hover img { transform: scale(1.07); }
.gm-tile:hover::before { opacity: 0.15; }
.gm-tile:hover .gm-play, .gm-tile:focus-visible .gm-play { opacity: 1; transform: scale(1); }
.gm-tile:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.home-games-cta { text-align: center; margin-top: 1.8rem; }

@media (prefers-reduced-motion: reduce) {
  .games-marquee { -webkit-mask-image: none; mask-image: none; }
  .gm-row { overflow-x: auto; scrollbar-width: thin; }
  .gm-track { animation: none; }
}
@media (max-width: 560px) {
  .gm-tile { width: clamp(104px, 32vw, 132px); margin-right: 12px; }
  .home-games .games-marquee { gap: 12px; }
}

/* ---------- Hero stats strip bridge ---------- */
.hero-bridge { position: relative; z-index: 5; margin-top: -3.25rem; }
.hero-stats-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card);
}
.hero-stat { background: var(--bg-card); padding: 1.4rem 1.2rem; text-align: center; }
.hero-stat .num { font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; color: var(--brand); line-height: 1; }
.hero-stat .lbl { margin-top: 0.4rem; font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }

/* ==========================================================================
   UNIVERSAL CARD
   ========================================================================== */
.card, .floor-tile, .plain-card, .support-card, .bento-cell, .sec-tile, .reward-cell, .split-media, .split-body {
  position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--card-radius); box-shadow: var(--shadow-card);
}
.card, .floor-tile, .bento-cell, .sec-tile, .reward-cell {
  overflow: hidden; transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card::before, .floor-tile::before, .bento-cell::before, .sec-tile::before, .reward-cell::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--grad-brand); z-index: 2;
}
.card:hover, .floor-tile:hover, .bento-cell:hover, .sec-tile:hover, .reward-cell:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--border-strong);
}
/* Oversized italic Fraunces watermark */
.card-wm, .floor-tile .tile-wm, .bento-cell .cell-wm {
  position: absolute; right: 0.4rem; bottom: -0.5rem; z-index: 0;
  font-family: var(--font-heading); font-style: italic; font-weight: 600;
  font-size: 6rem; line-height: 1; color: rgba(255,255,255,0.035); pointer-events: none;
  transition: color 0.25s ease;
}
.card:hover .card-wm, .floor-tile:hover .tile-wm, .bento-cell:hover .cell-wm { color: rgba(95,226,58,0.1); }

/* ==========================================================================
   FLOOR GRID (builder H3 sections)
   ========================================================================== */
.floor-grid { display: grid; gap: 1.25rem; width: 100%; }
.floor-grid--cols-1 { grid-template-columns: 1fr; }
.floor-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.floor-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.floor-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

.floor-tile { padding: 1.7rem 1.6rem; }
.floor-tile > * { position: relative; z-index: 1; }
.floor-tile h3 { font-size: 1.28rem; color: var(--text); margin-bottom: 0.6rem; }
.floor-tile h3::before {
  content: ""; display: block; width: 38px; height: 3px; background: var(--grad-brand);
  border-radius: 3px; margin-bottom: 0.9rem;
}
.floor-tile p { color: var(--text-muted); font-size: 0.98rem; }
.floor-tile p + p { margin-top: 0.7rem; }

/* ---------- Rich floor grid (R4b): sub-cards + bold dividers ---------- */
.floor-grid--rich { display: block; width: 100%; }
.floor-grid--rich .floor-tile {
  padding: 2.4rem; margin-bottom: 1.25rem;
}
.floor-grid--rich .floor-tile:last-child { margin-bottom: 0; }
.floor-grid--rich h3 { font-size: 1.5rem; }
.rich-sub {
  display: block; margin-top: 1.6rem; padding-top: 0.9rem;
  border-top: 2px solid var(--brand);
  font-family: var(--font-body); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-light);
}
.rich-list { display: grid; gap: 0.7rem; margin-top: 1.1rem; }
.rich-list li {
  position: relative; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 1rem 1.15rem 1rem 1.45rem; color: var(--text-muted);
  overflow: hidden;
}
.rich-list li::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad-brand);
}
.floor-grid--rich .floor-tile p + p { margin-top: 0.7rem; }

/* ==========================================================================
   SPLIT LAYOUT (list + paragraphs + image)
   ========================================================================== */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: stretch; width: 100%; }
.split-layout.split--reverse .split-media { order: 2; }
.split-media { overflow: hidden; min-height: 280px; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body { padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; justify-content: center; }
.split-body p { color: var(--text-muted); }
.split-body p + p { margin-top: 0.8rem; }

/* ==========================================================================
   FEATURE CHECK LIST
   ========================================================================== */
.feature-check-list {
  width: 100%; background: linear-gradient(135deg, rgba(224,169,58,0.1), rgba(95,226,58,0.06));
  border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: var(--card-radius); padding: clamp(1.6rem, 3vw, 2.3rem);
  display: grid; gap: 0.9rem;
}
.feature-check-list li { position: relative; padding-left: 2.4rem; color: var(--text); }
.feature-check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0.05em;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--grad-green); color: #06210a; font-weight: 800; font-size: 0.85rem;
  display: grid; place-items: center;
}
.feature-check-list--plain { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .feature-check-list--plain { grid-template-columns: 1fr; } }

/* ==========================================================================
   PLAIN CARD (editorial centered)
   ========================================================================== */
.plain-card { width: 100%; padding: clamp(1.8rem, 3.4vw, 2.8rem); overflow: hidden; }
.plain-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--grad-brand); }
.plain-card > * { position: relative; }
.plain-card p { color: var(--text-muted); }
.plain-card p + p { margin-top: 0.9rem; }
.plain-card h3 { color: var(--text); margin-bottom: 0.7rem; font-size: 1.4rem; }

/* section intro prose (verbatim H2-intro paragraphs above a grid) */
.section-intro { width: 100%; max-width: none; margin-bottom: clamp(1.4rem, 2.6vw, 2rem); color: var(--text-muted); font-size: 1.06rem; }
.section-intro p + p { margin-top: 0.8rem; }

/* intro-block (leftover lede paragraphs) */
.intro-block { width: 100%; }
.intro-block .lede-flow { font-size: 1.1rem; color: var(--text-muted); max-width: none; }
.intro-block .lede-flow p + p { margin-top: 0.9rem; }

/* ==========================================================================
   IMAGE DIVIDER (R5b — contained two-column figure, full container width)
   ========================================================================== */
.image-divider { counter-increment: img-div; width: 100%; }
.image-divider .divider-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.4rem, 3vw, 2.4rem); align-items: center; }
.divider-figure {
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-card);
  border: 1px solid var(--border); aspect-ratio: 4 / 3;
}
.divider-figure img { width: 100%; height: 100%; object-fit: cover; }
.divider-aside { padding: 0.5rem 0.5rem 0.5rem 0; }
.divider-aside::before {
  content: counter(img-div, decimal-leading-zero);
  font-family: var(--font-heading); font-style: italic; font-weight: 700;
  font-size: 3.4rem; color: transparent; -webkit-text-stroke: 1.5px var(--brand);
  display: block; line-height: 1; margin-bottom: 0.6rem;
}
.divider-aside .kicker { margin-bottom: 0.5rem; }
.divider-aside h3 { font-size: 1.5rem; color: var(--text); }

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-list { width: 100%; display: grid; gap: 0.8rem; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq-item[open] { box-shadow: var(--shadow-card); border-color: var(--border-strong); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.2rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.12rem; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { flex: 1; }
.faq-icon { position: relative; width: 24px; height: 24px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--brand); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease;
}
.faq-icon::before { top: 11px; left: 2px; right: 2px; height: 2px; }
.faq-icon::after { left: 11px; top: 2px; bottom: 2px; width: 2px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-answer { padding: 0 1.4rem 1.3rem; color: var(--text-muted); }
.faq-answer p + p { margin-top: 0.7rem; }

/* ==========================================================================
   HOMEPAGE BESPOKE SECTIONS
   ========================================================================== */
/* home-intro */
.home-intro .lede-flow { font-size: 1.18rem; color: var(--text-muted); }
.home-intro .lede-flow p + p { margin-top: 1rem; }

/* home-floor — bento */
.bento-floor { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; width: 100%; }
.bento-floor .bento-cell { padding: 1.8rem 1.7rem; }
.bento-floor .bento-cell > * { position: relative; z-index: 1; }
.bento-cell h3 { font-size: 1.35rem; margin-bottom: 0.6rem; color: var(--text); }
.bento-cell p { color: var(--text-muted); font-size: 0.98rem; }
.bento-cell .cell-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-warm); margin-bottom: 0.7rem; }
.cell-span-6 { grid-column: span 6; }
.cell-span-3 { grid-column: span 3; }
.cell-span-2 { grid-column: span 2; }

/* home-secure — art-deco 4-up */
.security-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; width: 100%; }
.sec-tile { padding: 1.7rem 1.4rem; text-align: center; }
.sec-tile > * { position: relative; z-index: 1; }
.sec-ico {
  width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: rgba(95,226,58,0.12); border: 1px solid var(--border-strong); color: var(--brand);
}
.sec-tile h3 { font-size: 1.12rem; margin-bottom: 0.45rem; color: var(--text); }
.sec-tile p { font-size: 0.9rem; color: var(--text-muted); }

/* home-rewards — bento */
.rewards-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; width: 100%; }
.reward-cell { padding: 1.8rem 1.7rem; }
.reward-cell > * { position: relative; z-index: 1; }
.reward-welcome { grid-column: span 2; background: linear-gradient(140deg, rgba(95,226,58,0.16), var(--bg-card) 60%); }
.reward-cell h3 { font-size: 1.4rem; margin-bottom: 0.6rem; color: var(--text); }
.reward-cell p { color: var(--text-muted); }
.reward-vip { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: linear-gradient(120deg, rgba(224,169,58,0.16), var(--bg-card) 60%); }

/* home-support — editorial watermark card */
.support-card { width: 100%; padding: clamp(2rem, 4vw, 3rem); overflow: hidden; text-align: center; }
.support-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--grad-brand); }
.support-card .support-wm {
  position: absolute; right: -1rem; bottom: -2.5rem; font-family: var(--font-heading);
  font-style: italic; font-weight: 600; font-size: clamp(7rem, 16vw, 13rem); line-height: 1;
  color: rgba(255,255,255,0.035); pointer-events: none; user-select: none;
}
.support-card > *:not(.support-wm) { position: relative; z-index: 1; }
.support-card h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.8rem; color: var(--text); }
.support-card p { color: var(--text-muted); max-width: 60ch; margin-inline: auto; }
.support-card .support-actions { margin-top: 1.6rem; display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   INNER PAGE HERO + breadcrumb + page-meta
   ========================================================================== */
.page-hero { position: relative; padding-block: clamp(2.4rem, 5vw, 3.8rem); border-bottom: 1px solid var(--border); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(700px 380px at 80% -20%, rgba(95,226,58,0.12), transparent 60%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 1rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-soft); }
.breadcrumb .sep { color: var(--text-dim); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); color: var(--text); max-width: 22ch; }
.page-hero h1 .highlight { font-style: italic; }
.page-hero .page-sub { margin-top: 0.9rem; font-size: 1.1rem; color: var(--text-muted); max-width: 60ch; }
.page-meta { margin-top: 1rem; font-size: 0.85rem; color: var(--text-dim); display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.page-meta .page-meta-author { color: var(--text-muted); font-weight: 600; }
.page-meta time { color: var(--text-dim); }

/* ==========================================================================
   FOOTER — from scratch (glowing promo panel + link map + legal base)
   ========================================================================== */
.site-footer { position: relative; margin-top: clamp(3rem, 6vw, 5rem); background: var(--bg-panel); border-top: 1px solid var(--border); }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 3px; background: var(--grad-brand); opacity: 0.85; }

/* Promo panel */
.footer-promo {
  position: relative; overflow: hidden; text-align: center;
  margin-block: clamp(2.4rem, 5vw, 3.6rem) clamp(2rem, 4vw, 3rem);
  padding: clamp(2.2rem, 5vw, 3.6rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(620px 240px at 50% 0%, rgba(95,226,58,0.14), transparent 70%),
    var(--bg-card);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 70px -28px rgba(0,0,0,0.7), 0 0 0 1px rgba(252,222,91,0.10);
}
.footer-promo .fp-wm { position: absolute; left: 50%; top: 56%; transform: translate(-50%,-50%); font-family: var(--font-heading); font-style: italic; font-weight: 700; font-size: clamp(7rem, 18vw, 15rem); color: rgba(255,255,255,0.03); pointer-events: none; white-space: nowrap; }
.footer-promo > * { position: relative; z-index: 1; }
.footer-promo .kicker { justify-content: center; margin-bottom: 0.7rem; }
.footer-promo h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); color: var(--text); max-width: 20ch; margin-inline: auto; }
.footer-promo h2 .highlight { font-style: italic; }
.footer-promo .fp-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; margin-top: 1.6rem; }

/* Link map */
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 2.2rem; padding-bottom: 2.4rem; }
.footer-brand .brand-logo img { height: 76px; }
.footer-brand .tagline { margin-top: 1rem; color: var(--text-muted); font-size: 0.96rem; max-width: 36ch; }
.payment-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.3rem; }
.payment-pills span { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 0.34rem 0.8rem; background: rgba(255,255,255,0.03); }
.footer-col h4 { font-family: var(--font-heading); font-style: italic; font-size: 1.15rem; color: var(--text); margin-bottom: 1.05rem; position: relative; padding-bottom: 0.55rem; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--grad-brand); border-radius: 2px; }
.footer-col ul { display: grid; gap: 0.65rem; }
.footer-col a { color: var(--text-muted); font-size: 0.95rem; transition: color 0.16s, padding-left 0.16s; }
.footer-col a:hover { color: var(--accent-soft); padding-left: 5px; }

/* Legal base */
.footer-base { border-top: 1px solid var(--border); }
.footer-trust { display: flex; flex-wrap: wrap; gap: 0.7rem 1.4rem; padding-block: 1.4rem; }
.footer-trust span { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); display: inline-flex; align-items: center; gap: 0.45rem; }
.footer-trust span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.footer-bottom { padding-block: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; align-items: center; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.82rem; color: var(--text-dim); }
.footer-bottom .rg-note { font-style: italic; }
.footer-bottom .rg-note strong { color: var(--accent-soft); font-style: normal; }

/* ==========================================================================
   404
   ========================================================================== */
.err-404 { min-height: 62vh; display: grid; place-content: center; text-align: center; padding-block: 4rem; }
.err-404 .glyph { font-family: var(--font-heading); font-style: italic; font-weight: 700; font-size: clamp(8rem, 22vw, 18rem); line-height: 0.9; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.err-404 h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin-top: 0.5rem; }
.err-404 p { color: var(--text-muted); margin-top: 0.8rem; max-width: 46ch; margin-inline: auto; }
.err-404 .err-actions { margin-top: 1.8rem; display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   MOBILE NAV OVERLAY
   ========================================================================== */
.mobile-nav { position: fixed; inset: 0; z-index: 99; background: rgba(15,19,20,0.97); backdrop-filter: blur(14px); display: flex; flex-direction: column; justify-content: center; padding: 2rem var(--pad-x); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
body.nav-open .mobile-nav { opacity: 1; visibility: visible; }
.mobile-nav nav { display: flex; flex-direction: column; gap: 0.2rem; max-width: 560px; margin-inline: auto; width: 100%; overflow-y: auto; max-height: 100%; }
.mobile-nav a { font-family: var(--font-heading); font-size: 1.5rem; color: var(--text-on-dark); padding: 0.5rem 0; border-bottom: 1px solid var(--border-soft); transition: color 0.16s, padding-left 0.16s; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--brand); padding-left: 8px; }
.mnav-label { font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-soft); margin-top: 1.1rem; }
.mnav-sub a { font-size: 1.2rem; color: var(--text-muted); }
.mobile-nav .mobile-cta { margin-top: 1.6rem; }

/* ==========================================================================
   REVEAL ON SCROLL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-stats-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .floor-grid--cols-3, .floor-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-floor { grid-template-columns: repeat(2, 1fr); }
  .cell-span-6, .cell-span-3, .cell-span-2 { grid-column: span 2; }
  .rewards-bento { grid-template-columns: 1fr 1fr; }
  .reward-welcome { grid-column: 1 / -1; }
  .split-layout { grid-template-columns: 1fr; }
  .split-layout.split--reverse .split-media { order: 0; }
  .image-divider .divider-grid { grid-template-columns: 1fr; }
  .divider-figure { aspect-ratio: 16 / 9; }
}
@media (max-width: 700px) {
  .header-top-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand .brand-logo img { height: 64px; }
}
@media (max-width: 560px) {
  .floor-grid--cols-2, .floor-grid--cols-3, .floor-grid--cols-4 { grid-template-columns: 1fr; }
  .security-grid, .bento-floor, .rewards-bento { grid-template-columns: 1fr; }
  .cell-span-6, .cell-span-3, .cell-span-2, .reward-welcome { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-logo img { height: 50px; }
}
@media (max-width: 480px) {
  :root { --pad-x: 1.1rem; }
  .btn-primary, .btn-secondary, .btn-ghost { width: 100%; }
  .hero-actions, .support-actions, .err-actions, .fp-actions { width: 100%; }
}

/* ============================================================================
   FLOATING CTA (sticky pill at bottom, follows scroll, on every page)
   ============================================================================ */

.floating-cta {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(7, 4, 26, 0.82);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: var(--shadow-lg), 0 0 26px rgba(124, 58, 237, 0.35);
    animation: floatRise 600ms cubic-bezier(0.34, 1.56, 0.64, 1) 300ms backwards;
}

.floating-cta::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(247, 201, 72, 0.55), rgba(236, 72, 153, 0.45) 50%, rgba(124, 58, 237, 0.55));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes floatRise {
    from { opacity: 0; transform: translate(-50%, 40px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

.store-badge {
    display: inline-flex;
    border-radius: 999px;
    overflow: hidden;
    transition: transform var(--tx-base), box-shadow var(--tx-base), filter var(--tx-base);
    cursor: pointer;
}

.store-badge img {
    width: auto;
    height: 48px;
    display: block;
    border-radius: 999px;
}

.store-badge:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.store-badge:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 4px;
}