/* ==========================================================================
   Diwa Play - diwaplayapp.app
   Direction  : dark editorial poster, acid-lime dominant + magenta-rose accent
   Type       : Chivo (display, true italic) + Sora (body)
   Ornament   : the flame-drop - a diya lamp flame (teardrop) used as kicker
                marker, list bullet, divider anchor and footer column accent
   Width law  : the container is the ONLY max-width on the page (D1)
   ========================================================================== */

:root {
  --brand:        #b8f03c;
  --brand-dark:   #8fc223;
  --brand-light:  #d9fa8c;

  --accent:       #ff2d95;
  --accent-warm:  #ff6fb4;
  --accent-soft:  rgba(255, 45, 149, .14);

  --bg:           #0b0e0c;
  --bg-card:      #131814;
  --bg-elevated:  #1a211b;
  --bg-panel:     #0f1410;

  --text:         #edf3ea;
  --text-muted:   #a6b3a4;
  --text-dim:     #76827a;
  --text-on-dark: #f6faf3;
  --ink:          #0b0e0c;

  --border:        rgba(184, 240, 60, .16);
  --border-strong: rgba(184, 240, 60, .34);
  --border-soft:   rgba(237, 243, 234, .09);

  --font-body:    'Sora', system-ui, -apple-system, sans-serif;
  --font-heading: 'Chivo', 'Sora', system-ui, sans-serif;

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

  --shadow-soft:       0 8px 24px rgba(0, 0, 0, .34);
  --shadow-card:       0 18px 44px rgba(0, 0, 0, .46), 0 2px 6px rgba(0, 0, 0, .3);
  --shadow-card-hover: 0 28px 64px rgba(0, 0, 0, .56), 0 0 0 1px var(--border-strong);
  --shadow-cta:        0 14px 32px rgba(184, 240, 60, .26);

  --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));
}

/* ---------------------------------------------------------------- reset */

*, *::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;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-light); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.022em;
  margin: 0 0 .7rem;
  color: var(--text-on-dark);
}
h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.6rem); }
h3 { font-size: clamp(1.18rem, 1.9vw, 1.45rem); }
p  { margin: 0 0 1.1rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }
strong { color: var(--text-on-dark); font-weight: 600; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: var(--ink); padding: .8rem 1.4rem;
  font-weight: 700; border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }

/* the single max-width on the page (D1) */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ------------------------------------------------- the flame-drop ornament */

.flame,
.kicker::before,
.feature-check-list li::before,
.footer-col h4::after {
  content: '';
  display: inline-block;
  width: .62rem; height: .62rem;
  background: linear-gradient(150deg, var(--brand-light), var(--brand-dark));
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  flex: none;
}

.kicker {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-heading);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 .85rem;
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-heading);
  font-size: .95rem; font-weight: 700; letter-spacing: .01em;
  padding: .92rem 1.85rem;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s, background .22s, color .22s;
}
.btn--primary {
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  color: var(--ink);
  box-shadow: var(--shadow-cta);
}
.btn--primary:hover { transform: translateY(-2px); color: var(--ink); box-shadow: 0 18px 40px rgba(184,240,60,.36); }
.btn--primary:active { transform: translateY(0) scale(.985); }

.btn--accent {
  background: linear-gradient(135deg, var(--accent-warm), var(--accent));
  color: #2a0716;
  box-shadow: 0 14px 32px rgba(255,45,149,.28);
}
.btn--accent:hover { transform: translateY(-2px); color: #2a0716; }

.btn--ghost {
  background: rgba(11,14,12,.55);
  color: var(--text-on-dark);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(184,240,60,.12); color: var(--brand-light); transform: translateY(-2px); }

.btn--sm { padding: .62rem 1.25rem; font-size: .84rem; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: #080b09;
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow .25s, background .25s;
}
.site-header.is-scrolled { box-shadow: 0 10px 34px rgba(0,0,0,.5); background: rgba(8,11,9,.97); backdrop-filter: blur(10px); }

.header-top {
  background: #050706;
  border-bottom: 1px solid var(--border-soft);
  font-size: .76rem;
  color: var(--text-dim);
}
.header-top__inner {
  min-height: var(--header-top-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.trust-line { display: flex; align-items: center; gap: .5rem; letter-spacing: .06em; }
.trust-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(184,240,60,.55);
}
@media (prefers-reduced-motion: no-preference) {
  .trust-dot { animation: dotPulse 2.4s ease-out infinite; }
}
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(184,240,60,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(184,240,60,0); }
  100% { box-shadow: 0 0 0 0 rgba(184,240,60,0); }
}
.utility-nav { display: flex; gap: 1.3rem; }
.utility-nav a { color: var(--text-dim); font-size: .76rem; letter-spacing: .05em; }
.utility-nav a:hover { color: var(--brand); }

.header-main__inner {
  min-height: var(--header-main-h);
  display: flex; align-items: center; gap: 2rem;
}
.brand-mark { display: flex; align-items: center; flex: none; }
.brand-mark img { height: 42px; width: auto; object-fit: contain; border-radius: 5px; }

.primary-nav { position: relative; margin-left: auto; display: flex; align-items: center; gap: 1.55rem; }
.primary-nav a {
  font-family: var(--font-heading);
  font-size: .88rem; font-weight: 600;
  color: var(--text-muted);
  padding: .35rem 0;
  transition: color .2s;
}
.primary-nav a:hover, .primary-nav a.active { color: var(--brand); }
.nav-indicator {
  position: absolute; bottom: -2px; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 2px;
  opacity: 0;
  transition: transform .3s cubic-bezier(.16,1,.3,1), width .3s cubic-bezier(.16,1,.3,1), opacity .2s;
  pointer-events: none;
}
.header-cta { flex: none; }
.primary-nav > .btn { display: none; }   /* mobile-overlay CTA; .header-cta owns desktop */

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--border-strong); border-radius: var(--r-md);
  cursor: pointer;
  padding: 0;
  position: relative;
  margin-left: auto;
}
.nav-toggle span {
  position: absolute; left: 11px; width: 20px; height: 2px;
  background: var(--brand); border-radius: 2px;
  transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------- hero: editorial poster */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3.4rem, 7vw, 5.5rem) 0 0;
  overflow: hidden;
  text-align: center;
}
.hero__art {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 60% at 50% 8%, rgba(11,14,12,.52), rgba(11,14,12,.9) 62%, var(--bg) 100%),
    linear-gradient(180deg, rgba(11,14,12,.82) 0%, rgba(11,14,12,.6) 40%, var(--bg) 96%);
}
.hero__glow {
  position: absolute; z-index: -1; pointer-events: none;
  width: 46rem; height: 46rem; left: 50%; top: -18rem; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(184,240,60,.2), transparent 64%);
  filter: blur(10px);
}

.hero .kicker { justify-content: center; }
.hero h1 { margin-bottom: 1.1rem; overflow-wrap: break-word; }
.hero .highlight {
  font-style: italic;
  line-height: 1.1;
  padding-bottom: .12em;
  padding-right: .08em;
  display: inline-block;
  color: var(--brand);
  background-image: linear-gradient(transparent 70%, rgba(255,45,149,.26) 70%, rgba(255,45,149,.26) 94%, transparent 94%);
}
.hero__sub {
  font-size: clamp(1.02rem, 1.55vw, 1.2rem);
  color: var(--text-muted);
  margin: 0 0 1.9rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* the foreground object: a tilted device mockup carrying generated app art */
.hero__device {
  position: relative;
  margin: clamp(2.2rem, 4vw, 3rem) auto -6.5rem;
  width: min(238px, 56vw);
  aspect-ratio: 258 / 524;
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, #262f26, #10150f 58%, #1c241c);
  box-shadow: 0 34px 80px rgba(0,0,0,.66), inset 0 1px 0 rgba(237,243,234,.14);
  transform: rotate(-4deg);
}
.hero__device::before {
  content: '';
  position: absolute; z-index: -1;
  inset: -16% -30%;
  background: radial-gradient(ellipse at center, rgba(184,240,60,.28), transparent 62%);
}
.hero__device::after {
  content: '';
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 76px; height: 6px; border-radius: 3px;
  background: rgba(11,14,12,.85);
}
.hero__device img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 26px;
}
.hero__device-fallback {
  width: 100%; height: 100%; border-radius: 26px;
  background:
    radial-gradient(circle at 50% 28%, rgba(184,240,60,.34), transparent 58%),
    linear-gradient(170deg, #182018, #0c100c);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__device { animation: deviceFloat 7s ease-in-out infinite; }
}
@keyframes deviceFloat {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50%      { transform: rotate(-4deg) translateY(-12px); }
}

/* ------------------------------------------- hero-bridge stat strip (D3.3) */

.stat-strip {
  position: relative; z-index: 3;
  margin-top: -3.25rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.stat-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.stat-tile::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.stat-tile b {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  font-weight: 900;
  color: var(--brand);
  letter-spacing: -.02em;
  line-height: 1.15;
}
.stat-tile span {
  display: block;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: .3rem;
}

/* ----------------------------------------------------------- page sections */

main { display: block; }

.page-section { padding: clamp(3rem, 5.5vw, 4.6rem) 0 0; }
.page-section:last-child { padding-bottom: 1rem; }

.section-head { margin-bottom: 1.9rem; }
.section-head h2 { margin-bottom: .55rem; }
.section-head p { color: var(--text-muted); }

/* card family - one radius system, 5px gradient stripe, italic watermark */
.plain-card,
.floor-tile,
.feature-check-list--plain,
.support-card,
.intro-block,
.faq-list details,
.split-layout__body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.plain-card, .floor-tile, .feature-check-list--plain, .support-card, .split-layout__body {
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
}
.intro-block { padding: clamp(1.5rem, 2.4vw, 2.1rem); margin-bottom: .5rem; }

.plain-card::before,
.floor-tile::before,
.feature-check-list--plain::before,
.support-card::before,
.intro-block::before,
.split-layout__body::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.tile-mark {
  position: absolute; right: .55rem; bottom: -.7rem;
  font-family: var(--font-heading);
  font-style: italic; font-weight: 900;
  font-size: 5.2rem; line-height: 1;
  color: rgba(184, 240, 60, .06);
  pointer-events: none;
  transition: color .3s;
}
.floor-tile:hover .tile-mark { color: rgba(255, 45, 149, .12); }

.floor-tile { transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s; }
.floor-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

/* R3 column grids - uniform tiles, no featured cells */
.floor-grid { display: grid; gap: 1.2rem; }
.floor-grid--cols-1 { grid-template-columns: minmax(0, 1fr); }
.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)); }

/* R4b rich tiles - 1 column, generous padding, no max-width */
.floor-grid--rich { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
.floor-grid--rich .floor-tile { padding: clamp(1.7rem, 3vw, 2.4rem); }
.floor-grid--rich .tile-kicker {
  font-family: var(--font-heading);
  font-size: .76rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand);
  border-top: 2px solid var(--brand);
  padding-top: .85rem;
  margin: 1.5rem 0 .9rem;
}
.tile-subcards { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .7rem; }
.tile-subcards li {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 1rem 1.15rem 1rem 1.45rem;
  color: var(--text-muted);
  overflow: hidden;
}
.tile-subcards li::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}

/* split layout */
.split-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 1.4rem; align-items: start; }
.split-layout__art {
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.split-layout__art img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* feature check-list - flame-drop bullets on a lime-tinted panel */
.feature-check-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 1.35rem 1.45rem;
  display: grid;
  gap: .85rem;
  background: linear-gradient(135deg, rgba(184,240,60,.09), rgba(255,45,149,.05));
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--r-md);
}
.feature-check-list li {
  display: flex; align-items: flex-start; gap: .75rem;
  color: var(--text-muted);
}
.feature-check-list li::before { margin-top: .62rem; }

.feature-check-list--plain > .feature-check-list { margin-top: 1.2rem; }

/* tables */
.table-wrap { overflow-x: auto; margin: 1.3rem 0 0; border-radius: var(--r-md); border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.data-table th, .data-table td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border-soft); }
.data-table th {
  background: rgba(184,240,60,.1);
  font-family: var(--font-heading);
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand);
}
.data-table td { color: var(--text-muted); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: rgba(184,240,60,.045); color: var(--text); }

/* R5b image divider - a contained figure, never a full-bleed strip */
.image-divider {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 1.4rem;
  align-items: stretch;
  margin-top: clamp(2.4rem, 4.5vw, 3.4rem);
}
.image-divider__art {
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.image-divider__art img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.image-divider__aside {
  display: flex; flex-direction: column; justify-content: center;
  gap: .55rem;
  padding: clamp(1.5rem, 2.6vw, 2.2rem);
  background: linear-gradient(150deg, var(--bg-elevated), var(--bg-panel));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.stub-rule {
  display: block; width: 3rem; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.image-divider__line {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-on-dark);
  margin: 0;
}

/* page hero on inner pages */
.page-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3rem, 6vw, 4.6rem) 0 clamp(3.2rem, 6vw, 4.4rem);
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.page-hero__art {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  opacity: .48;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,14,12,.86), rgba(11,14,12,.78) 50%, var(--bg));
}
.page-hero h1 { margin-bottom: .9rem; }
.page-hero__sub { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--text-muted); margin-bottom: .9rem; }
.page-meta { font-size: .82rem; color: var(--text-dim); margin: 0; }
.page-meta-author { color: var(--brand); font-weight: 600; }

/* ------------------------------------------------------------ home sections */

.home-section { padding: clamp(3.2rem, 6vw, 5rem) 0 0; }

/* home-intro */
.home-intro__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1.6rem; align-items: start; }
.home-intro__lede p { font-size: 1.05rem; }
.home-intro__panel {
  background: linear-gradient(155deg, var(--bg-elevated), var(--bg-panel));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
}
.home-intro__panel dl { margin: 0; display: grid; gap: .9rem; }
.home-intro__panel div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--border-soft); }
.home-intro__panel div:last-child { border-bottom: 0; padding-bottom: 0; }
.home-intro__panel dt { color: var(--text-dim); font-size: .88rem; }
.home-intro__panel dd { margin: 0; font-family: var(--font-heading); font-weight: 700; color: var(--brand); text-align: right; font-size: .95rem; }

/* home-floor bento */
.bento-floor {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}
.bento-floor > * { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--card-radius); padding: clamp(1.5rem, 2.4vw, 2rem); position: relative; overflow: hidden; box-shadow: var(--shadow-card); transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s; }
.bento-floor > *::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.bento-floor > *:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.bento-floor__lead { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; }
.bento-floor__art { grid-column: span 2; }
.bento-floor__art { padding: 0; }
.bento-floor__art img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }

/* home-live split */
.home-live__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 1.6rem; align-items: center; }
.home-live__art { margin: 0; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.home-live__art img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* home-bank - table beside a generated frame */
.home-bank__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .95fr); gap: 1.6rem; align-items: start; }
.home-bank__art { margin: 0; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.home-bank__art img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* home-secure - uniform cells */
.security-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.security-cell {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: clamp(1.4rem, 2.2vw, 1.85rem);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.security-cell::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.security-cell h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.security-cell p { font-size: .92rem; margin: 0; }
.security-cell .flame { margin-bottom: 1rem; width: .8rem; height: .8rem; }

/* home-rewards bento */
.rewards-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.rewards-bento > * { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--card-radius); padding: clamp(1.5rem, 2.4vw, 2rem); position: relative; overflow: hidden; box-shadow: var(--shadow-card); }
.rewards-bento > *::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.rewards-welcome { grid-column: span 2; background: linear-gradient(150deg, rgba(184,240,60,.13), var(--bg-card) 62%); }
.rewards-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; align-items: start; background: linear-gradient(120deg, var(--bg-elevated), var(--bg-panel)); }
.rewards-strip h3 { font-size: 1.05rem; }
.rewards-strip p { font-size: .92rem; margin: 0; }

/* home-support editorial card */
.support-card { padding: clamp(1.9rem, 3.4vw, 3rem); }
.support-card__watermark {
  position: absolute; right: -.5rem; bottom: -2.4rem;
  font-family: var(--font-heading); font-style: italic; font-weight: 900;
  font-size: clamp(5rem, 14vw, 11rem); line-height: 1;
  color: rgba(184,240,60,.05);
  pointer-events: none;
}
.support-card__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; position: relative; }

/* ------------------------------------------------- game section: fanned deck */

.game-deck { position: relative; }
.game-deck__fan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 2.4rem 0 3rem;
  perspective: 1400px;
}
.game-card {
  position: relative;
  flex: none;
  width: clamp(112px, 11vw, 158px);
  margin-left: -3.4rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 22px 46px rgba(0,0,0,.6);
  transform-origin: bottom center;
  transition: transform .32s cubic-bezier(.16,1,.3,1), box-shadow .32s, z-index 0s;
}
.game-card:first-child { margin-left: 0; }
.game-card img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.game-card figcaption {
  position: absolute; inset: auto 0 0;
  padding: 1.7rem .7rem .6rem;
  background: linear-gradient(transparent, rgba(7,10,8,.94) 46%);
  font-family: var(--font-heading);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .02em;
  color: var(--text-on-dark);
  text-align: center;
  line-height: 1.28;
  min-height: 2.56em;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.game-card:nth-child(1) { transform: rotate(-9deg) translateY(26px); }
.game-card:nth-child(2) { transform: rotate(-6.5deg) translateY(15px); }
.game-card:nth-child(3) { transform: rotate(-4deg) translateY(7px); }
.game-card:nth-child(4) { transform: rotate(-1.5deg) translateY(2px); }
.game-card:nth-child(5) { transform: rotate(1deg) translateY(0); }
.game-card:nth-child(6) { transform: rotate(3.5deg) translateY(4px); }
.game-card:nth-child(7) { transform: rotate(6deg) translateY(11px); }
.game-card:nth-child(8) { transform: rotate(8.5deg) translateY(21px); }
.game-card:nth-child(9) { transform: rotate(11deg) translateY(34px); }
.game-deck__fan .game-card figcaption {
  opacity: 0;
  transform: translateY(.4rem);
  transition: opacity .25s, transform .25s cubic-bezier(.16,1,.3,1);
}
.game-deck__fan .game-card:hover figcaption,
.game-deck__fan .game-card:focus-within figcaption { opacity: 1; transform: none; }

.game-card:hover {
  transform: rotate(0deg) translateY(-24px) scale(1.07);
  z-index: 5;
  box-shadow: 0 34px 68px rgba(0,0,0,.72), 0 0 0 2px var(--brand);
}
.game-deck__rest {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.4rem;
}
.game-deck__rest .game-card {
  width: auto; margin-left: 0; transform: none;
}
.game-deck__rest .game-card:hover { transform: translateY(-6px) scale(1.03); }
.game-deck__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.8rem; }

/* ------------------------------------------------------------------- faq */

.faq-section { padding: clamp(3rem, 5.5vw, 4.6rem) 0 0; }
.faq-list { display: grid; gap: .8rem; }
.faq-list details {
  padding: 0;
  transition: box-shadow .25s, border-color .25s;
}
.faq-list details[open] { box-shadow: var(--shadow-card-hover); border-color: var(--border-strong); }
.faq-list summary {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-on-dark);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '';
  margin-left: auto; flex: none;
  width: 22px; height: 22px;
  background:
    linear-gradient(var(--brand), var(--brand)) center / 12px 2px no-repeat,
    linear-gradient(var(--brand), var(--brand)) center / 2px 12px no-repeat;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  transition: transform .28s cubic-bezier(.16,1,.3,1);
  margin-top: .25rem;
}
.faq-list details[open] summary::after { transform: rotate(135deg); }
.faq-list .faq-answer { padding: 0 1.4rem 1.3rem; }
.faq-list .faq-answer p { margin-bottom: .8rem; }

/* ---------------------------------------------------------------- footer */

.site-footer { margin-top: clamp(3.5rem, 6vw, 5.5rem); background: #050706; border-top: 1px solid var(--border-soft); }

.footer-cta {
  position: relative;
  margin-top: -3rem;
  background: linear-gradient(135deg, var(--brand-light), var(--brand) 55%, var(--brand-dark));
  border-radius: var(--r-xl);
  padding: clamp(2rem, 4vw, 3.1rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.6rem;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 30px 64px rgba(0,0,0,.5);
}
.footer-cta::after {
  content: attr(data-brand);
  position: absolute; right: -1rem; bottom: -2.6rem;
  font-family: var(--font-heading); font-style: italic; font-weight: 900;
  font-size: clamp(5rem, 13vw, 10rem); line-height: 1;
  color: rgba(11,14,12,.09);
  pointer-events: none; white-space: nowrap;
}
.footer-cta h2 { color: var(--ink); margin-bottom: .5rem; position: relative; }
.footer-cta p { color: rgba(11,14,12,.78); margin: 0; position: relative; max-width: none; }
.footer-cta .btn { position: relative; background: var(--ink); color: var(--brand-light); box-shadow: 0 14px 30px rgba(0,0,0,.36); }
.footer-cta .btn:hover { color: #fff; transform: translateY(-2px); }

.footer-map {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding: clamp(2.4rem, 4.5vw, 3.6rem) 0 2rem;
}
.footer-brand img { height: 42px; width: auto; object-fit: contain; border-radius: 5px; margin-bottom: 1rem; }
.footer-brand p { font-size: .92rem; }
.pay-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.pay-pills span {
  font-size: .74rem; letter-spacing: .06em;
  padding: .35rem .8rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text-muted);
  background: rgba(184,240,60,.05);
}
.footer-col h4 {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--text-on-dark);
  margin: 0 0 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a { color: var(--text-muted); font-size: .9rem; }
.footer-col a:hover { color: var(--brand); }

.trust-pills { display: flex; flex-wrap: wrap; gap: .6rem; padding: 1.4rem 0; border-top: 1px solid var(--border-soft); }
.trust-pills span {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .76rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  padding: .4rem .9rem;
}
.footer-legal { border-top: 1px solid var(--border-soft); padding: 1.2rem 0 2rem; }
.footer-legal p { font-size: .8rem; color: var(--text-dim); margin: 0 0 .4rem; }

/* ------------------------------------------------------------------- 404 */

.error-page { padding: clamp(4rem, 10vw, 8rem) 0; text-align: center; }
.error-code {
  font-family: var(--font-heading);
  font-style: italic; font-weight: 900;
  font-size: clamp(8vw, 16vw, 22vw);
  line-height: .9;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--brand-light), var(--brand) 40%, var(--accent));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin: 0 0 1rem;
  padding-bottom: .06em;
}
.error-page .btn { margin-top: 1.4rem; }

/* ------------------------------------------------------------------ misc */

.mirror-note { font-size: .84rem; color: var(--text-dim); }

.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* RTL support is unused for India but kept harmless */
[dir="rtl"] .kicker { flex-direction: row-reverse; }

/* ---------------------------------------------------------- breakpoints */

@media (max-width: 1100px) {
  .floor-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-deck__rest { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .primary-nav { gap: 1.1rem; }
  .primary-nav a { font-size: .83rem; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .nav-indicator { display: none; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 0;
    flex-direction: column; justify-content: flex-start;
    gap: .4rem;
    margin: 0;
    padding: 2rem 1.5rem 3rem;
    background: rgba(7, 10, 8, .97);
    backdrop-filter: blur(14px);
    transform: translateX(100%);
    transition: transform .34s cubic-bezier(.16,1,.3,1);
    overflow-y: auto;
  }
  .primary-nav.is-open { transform: none; }
  .primary-nav a { font-size: 1.05rem; padding: .85rem 0; width: 100%; border-bottom: 1px solid var(--border-soft); }
  .primary-nav > .btn { display: inline-flex; margin-top: 1.2rem; width: 100%; }
  body.nav-open { overflow: hidden; }

  .floor-grid--cols-3, .floor-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-layout, .image-divider, .home-intro__grid, .home-live__grid, .support-card__grid { grid-template-columns: minmax(0, 1fr); }
  .split-layout__art { order: -1; }
  .bento-floor, .rewards-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-floor__lead, .bento-floor__art, .rewards-welcome { grid-column: span 2; }
  .home-bank__grid { grid-template-columns: minmax(0, 1fr); }
  .rewards-strip { grid-template-columns: minmax(0, 1fr); }
  .footer-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cta { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .utility-nav { gap: .9rem; }
  .utility-nav a { font-size: .72rem; }
  .game-deck__fan { flex-wrap: wrap; justify-content: center; gap: .9rem; padding-bottom: 1rem; perspective: none; }
  .game-card { margin-left: 0; width: calc(50% - .5rem); }
  .game-card:nth-child(n) { transform: none; }
  .game-deck__fan .game-card figcaption { opacity: 1; transform: none; }
  .game-card:hover { transform: translateY(-6px) scale(1.02); }
  .game-deck__rest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .container { padding: 0 1.15rem; }
  .floor-grid--cols-2, .floor-grid--cols-3, .floor-grid--cols-4 { grid-template-columns: minmax(0, 1fr); }
  .security-grid, .bento-floor, .rewards-bento { grid-template-columns: minmax(0, 1fr); }
  .bento-floor__lead, .bento-floor__art, .rewards-welcome { grid-column: span 1; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .stat-tile { padding: 1.05rem 1rem; }
  .footer-map { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .hero__cta .btn { width: 100%; }
  .hero h1 { font-size: clamp(1.5rem, 6.1vw, 2rem); }
  .header-top__inner { flex-direction: column; align-items: flex-start; gap: .2rem; padding-top: .3rem; padding-bottom: .3rem; }
  :root { --header-top-h: 3.4rem; }
}

@media (max-width: 480px) {
  .hero { padding-top: 2.4rem; }
  .game-deck__rest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-pills span { font-size: .7rem; padding: .35rem .7rem; }
}

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