/* ============================================================
   STAKESOFT — Premium B2B Gaming Platform
   Full Dark / Light Theme System
   Brand cyan: #00bfff (consistent across both themes)
   ============================================================ */

/* ============================================================
   DARK THEME (default)
   ============================================================ */
:root,
[data-theme="dark"] {
  --bg-base:      #05070f;
  --bg-surface:   #0a0d1a;
  --bg-card:      #0d1020;
  --bg-card-alt:  #111428;
  --bg-border:    rgba(255,255,255,0.07);
  --bg-input:     #0a0d1a;

  /* ── Brand colour — same in both themes ── */
  --brand:        #00bfff;
  --brand-dim:    rgba(0,191,255,0.12);
  --brand-mid:    rgba(0,191,255,0.25);
  --brand-glow:   rgba(0,191,255,0.35);
  --brand-text:   #050710;   /* text on brand-coloured bg */

  --amber:        #ff8c00;
  --amber-dim:    rgba(255,140,0,0.15);
  --blue:         #3b7fff;
  --blue-dim:     rgba(59,127,255,0.15);

  --text-primary:   #f0f4ff;
  --text-secondary: #8893b0;
  --text-dim:       #525d78;

  --shadow-card:  0 4px 24px rgba(0,0,0,0.4);
  --shadow-dash:  0 24px 80px rgba(0,0,0,0.6);
  --shadow-float: 0 8px 32px rgba(0,0,0,0.5);

  --glow-cyan-opacity:  0.18;
  --glow-amber-opacity: 0.14;

  /* Section alternating backgrounds */
  --sec-1: #05070f;    /* base */
  --sec-2: #0a0d1a;    /* surface — visibly different */

  --stats-border: rgba(0,191,255,0.12);
  --ticker-bg:    #05070f;

  /* Logo: in dark mode "Stake" is white */
  --logo-stake-col: #ffffff;
}

/* ============================================================
   LIGHT THEME
   ============================================================ */
[data-theme="light"] {
  --bg-base:      #f0f4fa;
  --bg-surface:   #ffffff;
  --bg-card:      #ffffff;
  --bg-card-alt:  #e8edf8;
  --bg-border:    rgba(0,0,0,0.09);
  --bg-input:     #f0f4fa;

  /* ── Brand colour — identical to dark ── */
  --brand:        #00bfff;
  --brand-dim:    rgba(0,191,255,0.1);
  --brand-mid:    rgba(0,191,255,0.22);
  --brand-glow:   rgba(0,191,255,0.28);
  --brand-text:   #ffffff;

  --amber:        #e07800;
  --amber-dim:    rgba(224,120,0,0.1);
  --blue:         #2563eb;
  --blue-dim:     rgba(37,99,235,0.1);

  --text-primary:   #0d1020;
  --text-secondary: #4a5568;
  --text-dim:       #9aa5b8;

  --shadow-card:  0 2px 16px rgba(0,0,0,0.07);
  --shadow-dash:  0 16px 48px rgba(0,0,0,0.1);
  --shadow-float: 0 4px 20px rgba(0,0,0,0.1);

  --glow-cyan-opacity:  0.07;
  --glow-amber-opacity: 0.05;

  /* Section alternating — clearly distinct in light mode */
  --sec-1: #f0f4fa;    /* cool grey-blue base */
  --sec-2: #ffffff;    /* white surface */

  --stats-border: rgba(0,191,255,0.15);
  --ticker-bg:    #ffffff;

  /* Logo: in light mode "Stake" is near-black (image handles it — CSS fallback) */
  --logo-stake-col: #0d1020;
}

/* ── Convenience aliases so existing code still works ── */
:root, [data-theme="dark"], [data-theme="light"] {
  --cyan:     var(--brand);
  --cyan-dim: var(--brand-dim);
  --cyan-glow:var(--brand-glow);
}

/* ============================================================
   SMOOTH THEME TRANSITION — targeted only, never on *
   ============================================================ */
body, .navbar, .stats-band, .platform-dash,
.kpi-card, .chart-panel, .dash-topbar, .dash-modules, .mod-item,
.feature-card, .model-card, .compliance-card, .why-item, .why-grid,
.arch-mod, .platform-arch, .game-tiles-display,
.gt-header, .gt-footer, .gt-filters, .contact-form, .footer,
.ticker-section, .section-label, .hero-chips span,
.form-group input, .form-group select, .form-group textarea {
  transition: background-color 0.28s ease, border-color 0.28s ease,
              color 0.28s ease, box-shadow 0.28s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--sec-1);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ============================================================
   SHARED UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 60px 0; }

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-dim);
  border: 1px solid var(--brand-mid);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 20px;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.section-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.cyan { color: var(--brand); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}
.btn--primary {
  background: var(--brand);
  color: var(--brand-text);
}
.btn--primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--brand-glow);
}
.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--bg-border);
}
.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}
.btn--full { width: 100%; justify-content: center; }

/* ── Scroll-reveal ── */
[data-aos] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease !important;
}
[data-aos].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   LOGO SYSTEM
   ── Navbar dark:  logo-dark.png   (white Stake + cyan Soft on transparent)
   ── Navbar light: logo-light.png  (black Stake + cyan Soft on white)
   ── Dashboard:   logo-symbol-dark.png / logo-symbol-light.png (S icon)
   ── Footer:      logo-dark.png   (always dark bg → white wordmark)
   ============================================================ */

/* ── Navbar logos ── */
.nav-logo-img {
  height: 36px;
  width: auto;
  display: none;
  object-fit: contain;
}
.nav-logo-img--dark  { mix-blend-mode: screen; }
.nav-logo-img--light { mix-blend-mode: normal; }
[data-theme="dark"]  .nav-logo-img--dark  { display: block; }
[data-theme="dark"]  .nav-logo-img--light { display: none !important; }
[data-theme="light"] .nav-logo-img--light { display: block; }
[data-theme="light"] .nav-logo-img--dark  { display: none !important; }

/* ── Dashboard S-symbol logos ── */
.dash-logo {
  display: flex;
  align-items: center;
}
.dash-logo-img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  display: none;
  flex-shrink: 0;
}
/* Black bg on dark symbol → screen blend hides the black */
.dash-logo-img--dark  { mix-blend-mode: screen; }
/* White bg on light symbol → multiply blend hides the white */
.dash-logo-img--light { mix-blend-mode: multiply; }
[data-theme="dark"]  .dash-logo-img--dark  { display: block; }
[data-theme="dark"]  .dash-logo-img--light { display: none !important; }
[data-theme="light"] .dash-logo-img--light { display: block; }
[data-theme="light"] .dash-logo-img--dark  { display: none !important; }

/* ── Footer logo — theme-aware swap ── */
.footer-logo {
  display: block;
  margin-bottom: 16px;
}
.footer-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: none; /* hidden by default; shown via theme rules below */
}
.footer-logo-img--dark  { mix-blend-mode: screen; }
.footer-logo-img--light { mix-blend-mode: normal; }

/* ============================================================
   THEME TOGGLE
   ============================================================ */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.theme-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.toggle-track {
  position: relative;
  width: 56px;
  height: 28px;
  border-radius: 100px;
  overflow: hidden;
  border: 1px solid var(--bg-border);
}
[data-theme="dark"]  .toggle-track { background: rgba(255,255,255,0.06); }
[data-theme="light"] .toggle-track { background: var(--brand-dim); border-color: var(--brand-mid); }

.toggle-thumb {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--brand);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: left 0.3s cubic-bezier(0.4,0,0.2,1) !important;
  box-shadow: 0 2px 8px var(--brand-glow);
  z-index: 2;
}
[data-theme="dark"]  .toggle-thumb { left: 4px; }
[data-theme="light"] .toggle-thumb { left: 32px; }

.toggle-icon {
  position: absolute;
  font-size: 0.6rem;
  z-index: 1;
}
.toggle-icon--moon { right: 7px; }
.toggle-icon--moon svg { margin-top:5px; }
.toggle-icon--sun  { left: 7px; }
.toggle-icon--sun svg { margin-top:5px; }
[data-theme="dark"]  .toggle-icon--moon { color: var(--text-dim); opacity: 1; }
[data-theme="dark"]  .toggle-icon--sun  { color: var(--amber); opacity: 0.3; }
[data-theme="light"] .toggle-icon--sun  { color: var(--amber); opacity: 1; }
[data-theme="light"] .toggle-icon--moon { color: var(--text-dim); opacity: 0.3; }

/* ============================================================
   NAVBAR
   ============================================================ */
:root { --nav-h: 68px; }

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.navbar.scrolled {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
[data-theme="dark"]  .navbar.scrolled {
  background: rgba(5,7,15,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
[data-theme="light"] .navbar.scrolled {
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links .nav-cta {
  background: var(--brand);
  color: var(--brand-text);
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 10px;
}
.nav-links .nav-cta:hover { filter: brightness(1.1); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: var(--sec-1);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(100px); }
.hero-glow--cyan {
  width: 700px; height: 700px;
  background: var(--brand);
  opacity: var(--glow-cyan-opacity);
  top: -200px; right: -150px;
}
.hero-glow--amber {
  width: 500px; height: 500px;
  background: var(--amber);
  opacity: var(--glow-amber-opacity);
  bottom: -100px; left: -100px;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--brand-dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--brand-dim) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.8;
}
.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--brand);
  background: var(--brand-dim);
  border: 1px solid var(--brand-mid);
  border-radius: 100px;
  padding: 5px 12px;
  margin-bottom: 18px;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--brand);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}
.hero-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.headline-cyan { color: var(--brand); }
.hero-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 480px;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.hero-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 100px;
  padding: 5px 12px;
}
.hero-chips span i { color: var(--brand); font-size: 0.7rem; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.hero-cta-primary { display: flex; flex-direction: column; gap: 6px; }

/* Response note under primary CTA */
.hero-response-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding-left: 2px;
}
.hero-response-note i { color: var(--brand); font-size: 0.72rem; }

/* Dashboard demo CTA beneath visual */
.hero-demo-cta {
  display: flex;
  justify-content: center;
  margin-top: 14px;
  position: relative;
  z-index: 2;
}
.btn--demo {
  font-size: 0.82rem;
  padding: 9px 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ============================================================
   PLATFORM DASHBOARD (hero visual)
   ============================================================ */
.hero-visual { position: relative; }
.platform-dash {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-dash);
  position: relative;
  z-index: 2;
}

/* Dashboard topbar — always has a slightly darker surface */
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--bg-border);
}
/* dash-logo flex/image rules are in the LOGO SYSTEM block above */

.dash-tabs { display: flex; gap: 4px; }
.dash-tab {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  color: var(--text-dim);
  cursor: pointer;
  border: 1px solid transparent;
}
.dash-tab.active {
  background: var(--brand-dim);
  color: var(--brand);
  border-color: var(--brand-mid);
}
.dash-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #22c55e;
}
.live-dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* KPI Row */
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--bg-border);
  border-bottom: 1px solid var(--bg-border);
}
.kpi-card { background: var(--bg-card); padding: 16px 14px; }
.kpi-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.kpi-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.kpi-change { font-size: 0.68rem; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.kpi-change.up { color: #22c55e; }

/* Charts */
.dash-charts {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1px;
  background: var(--bg-border);
  border-bottom: 1px solid var(--bg-border);
}
.chart-panel { background: var(--bg-card); padding: 16px; }
.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.chart-badge { font-size: 0.65rem; font-weight: 700; padding: 3px 8px; border-radius: 100px; }
.chart-badge.cyan  { background: var(--brand-dim); color: var(--brand); }
.chart-badge.amber { background: var(--amber-dim); color: var(--amber); }

/* Bar chart */
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 72px; }
.bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.bar-wrap span { font-size: 0.6rem; color: var(--text-dim); }
.bar {
  width: 100%;
  height: var(--h);
  background: linear-gradient(180deg, var(--brand-mid), var(--brand-dim));
  border-radius: 3px 3px 0 0;
  border-top: 2px solid var(--brand-mid);
  transition: height 1s ease !important;
}
.bar.active {
  background: linear-gradient(180deg, var(--brand), var(--brand-mid));
  border-top-color: var(--brand);
  box-shadow: 0 -4px 12px var(--brand-glow);
}

/* Donut */
.donut-wrap { display: flex; align-items: center; gap: 12px; }
.donut-svg { width: 72px; height: 72px; transform: rotate(-90deg); flex-shrink: 0; }
.donut-bg  { fill: none; stroke: var(--bg-border); stroke-width: 10; }
.donut-seg { fill: none; stroke-width: 10; }
.seg1 { stroke: var(--brand); }
.seg2 { stroke: var(--blue); }
.seg3 { stroke: var(--amber); }
.seg4 { stroke: var(--text-dim); }
.donut-labels { flex: 1; }
.donut-labels div { display: flex; align-items: center; gap: 6px; font-size: 0.65rem; color: var(--text-secondary); margin-bottom: 4px; }
.dl { width: 7px; height: 7px; border-radius: 2px; flex-shrink: 0; }
.dl.cyan  { background: var(--brand); }
.dl.blue  { background: var(--blue); }
.dl.amber { background: var(--amber); }
.dl.grey  { background: var(--text-dim); }

/* Module row */
.dash-modules {
  display: flex;
  background: var(--bg-border);
  overflow-x: auto;
}
.mod-item {
  flex: 1;
  min-width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-card);
  border-right: 1px solid var(--bg-border);
}
.mod-item:last-child { border-right: none; }
.mod-item i { font-size: 0.85rem; }
.mod-item.active { color: var(--text-secondary); }
.mod-item.active i { color: var(--brand); }

/* Floating notifications */
.notif {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  z-index: 3;
  box-shadow: var(--shadow-float);
  animation: floatNotif 6s ease-in-out infinite;
  max-width: 220px;
}
.notif strong { display: block; color: var(--text-primary); font-size: 0.78rem; margin-bottom: 2px; }
.notif > i { color: var(--brand); font-size: 1rem; margin-top: 1px; flex-shrink: 0; }
.notif--1 { left: -60px; top: 20px; animation-delay: 0s; }
.notif--2 { right: -60px; bottom: 20px; animation-delay: 2s; }
.notif--2 > i { color: var(--amber); }
@keyframes floatNotif {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ============================================================
   STATS BAND
   ── Sits between Hero (sec-1) and Platform (sec-2)
   ── Uses a strong brand accent stripe so it's always visible
   ============================================================ */
.stats-band {
  padding: 0;
  border-top: 1px solid var(--stats-border);
  border-bottom: 1px solid var(--stats-border);
  background: var(--bg-card);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item {
  text-align: center;
  padding: 22px 20px;
  border-right: 1px solid var(--bg-border);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand);
  opacity: 0.5;
}
.stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}
.stat-label { font-size: 0.82rem; color: var(--text-secondary); font-weight: 500; }

/* ============================================================
   SECTION BACKGROUNDS — clear alternation
   Sequence: Hero=sec-1, Platform=sec-2, Gamification=sec-1,
             Models=sec-2, Games=sec-1, Sportsbook=sec-2,
             Compliance=sec-1, Why=sec-2, Ticker=card, CTA=sec-1
   ============================================================ */
.platform-section     { background: var(--sec-2); }
.gamification-section { background: var(--sec-1); }
.models-section       { background: var(--sec-2); }
.games-section        { background: var(--sec-1); }
.sportsbook-section   { background: var(--sec-2); }
.compliance-section   { background: var(--sec-1); }
.why-section          { background: var(--sec-2); }
.cta-section          { background: var(--sec-1); }

/* ============================================================
   PLATFORM ARCHITECTURE
   ============================================================ */
.platform-arch {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 40px;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.platform-arch::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 50%, var(--brand-dim), transparent 55%);
  pointer-events: none;
}
.arch-center { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.arch-core {
  width: 200px; height: 200px;
  border-radius: 20px;
  background: #0d1020; /* dark mode — matches dark video bg */
  border: 2px solid var(--brand-mid);
  box-shadow: none;                 /* no external glow — prevents splatter */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  overflow: hidden;
  position: relative;
}
/* Arch core: animated video logo — fills the box fully so no background bleeds */
.arch-logo-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: calc(100% - 30px); /* leave room for label at bottom */
  object-fit: cover;
  display: none;
  border-radius: 0;
}
/* Dark video: screen blend seamless on dark bg */
.arch-logo-video--dark  { mix-blend-mode: screen; }
/* Light video: pure white bg, normal blend — no artefacts */
.arch-logo-video--light { mix-blend-mode: normal; }
[data-theme="dark"]  .arch-logo-video--dark  { display: block; }
[data-theme="dark"]  .arch-logo-video--light { display: none !important; }
[data-theme="light"] .arch-logo-video--light { display: block; }
[data-theme="light"] .arch-logo-video--dark  { display: none !important; }
/* Light mode: white box matches white video bg; clean border, zero glow */
[data-theme="light"] .arch-core {
  background: #ffffff !important;
  box-shadow: none !important;
  border: 2px solid rgba(0,0,0,0.10) !important;
}
.arch-core-sub {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 0;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 2;
  background: transparent;
}

.arch-modules { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; align-items: center; }
.arch-mod {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
}
.arch-mod:hover, .arch-mod.active {
  border-color: var(--brand);
  background: var(--brand-dim);
}
.arch-mod-icon { color: var(--text-dim); font-size: 0.9rem; }
.arch-mod:hover .arch-mod-icon, .arch-mod.active .arch-mod-icon { color: var(--brand); }
.arch-mod-name { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }
.arch-mod:hover .arch-mod-name, .arch-mod.active .arch-mod-name { color: var(--text-primary); }



/* Feature cards */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 14px;
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), transparent);
  opacity: 0;
}
.feature-card:hover {
  border-color: var(--brand-mid);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.15);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 40px; height: 40px;
  background: var(--brand-dim);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--brand);
  margin-bottom: 12px;
}
.feature-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; font-family: 'Space Grotesk', sans-serif; }
.feature-card p  { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.65; }
.feature-card strong { color: var(--text-primary); }
.feature-card em { font-style: italic; }

/* ============================================================
   PARTNER MODELS
   ============================================================ */
.models-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.model-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 18px;
  padding: 28px 26px;
  position: relative;
  box-shadow: var(--shadow-card);
}
.model-card:hover {
  border-color: var(--brand-mid);
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}
.model-card--featured {
  border-color: var(--brand-mid);
  background: var(--bg-card);
  box-shadow: 0 0 0 1px var(--brand-dim), var(--shadow-card);
}
.model-featured-tag {
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand);
  color: var(--brand-text);
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 16px; border-radius: 100px; white-space: nowrap;
}
.model-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem; font-weight: 900;
  line-height: 1; margin-bottom: 12px;
}
[data-theme="dark"]  .model-number { color: rgba(255,255,255,0.3); }
[data-theme="light"] .model-number { color: rgba(0,191,255,0.14); }

.model-icon {
  width: 44px; height: 44px;
  background: var(--brand-dim);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--brand);
  margin-bottom: 16px;
}
.model-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.model-card p  { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 16px; }
.model-perks { margin-bottom: 22px; display: flex; flex-direction: column; gap: 7px; }
.model-perks li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.82rem; color: var(--text-secondary); }
.model-perks li i { color: var(--brand); font-size: 0.72rem; margin-top: 4px; flex-shrink: 0; }
.model-cta { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 700; color: var(--brand); }
.model-cta:hover { gap: 12px; }
.model-footnote { font-size: 0.72rem; color: var(--text-dim); line-height: 1.5; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--bg-border); }

/* ============================================================
   GAME LIBRARY
   ============================================================ */
.games-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.games-content p { font-size: 1rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 28px; }
.games-bullets { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.games-bullets li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--text-secondary); }
.games-bullets li svg{ min-width: 16px;height: auto;padding: 3px 0 0 0; }
.games-bullets li i { color: var(--brand); margin-top: 3px; flex-shrink: 0; }

.game-tiles-display {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-dash);
}
.gt-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--bg-border);
  font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
}
.gt-count { color: var(--brand); font-size: 0.75rem; }
.gt-filters { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--bg-border); }
.gt-filter {
  font-size: 0.72rem; font-weight: 600;
  padding: 4px 12px; border-radius: 100px;
  color: var(--text-dim); cursor: pointer;
  border: 1px solid transparent;
}
.gt-filter.active { background: var(--brand-dim); color: var(--brand); border-color: var(--brand-mid); }
.gt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--bg-border); }
.gt-tile {
  aspect-ratio: 4/3;
  display: flex; align-items: flex-end; padding: 10px;
  font-size: 0.65rem; font-weight: 700;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase; letter-spacing: 0.05em;
  cursor: pointer; position: relative; overflow: hidden;
}
.gt-tile::before {
  content: ''; position: absolute; inset: 0;
  background: var(--tile-bg, var(--bg-card));
  transition: transform 0.3s ease !important;
}
.gt-tile:hover::before { transform: scale(1.05); }
.gt-tile span { position: relative; z-index: 1; }
.gt-tile--1 { --tile-bg: linear-gradient(135deg, #1a0540, #0c0820); }
.gt-tile--1.gt-slots { background: url(tiles/Slots_small.jpg) no-repeat;background-position: center;background-size: cover; }
.gt-tile--1.gt-basketball { background: url(tiles/Basketball_small.jpg) no-repeat;background-position: center;background-size: cover; }
.gt-tile--1:before { background: none; }

.gt-tile--2 { --tile-bg: linear-gradient(135deg, #002838, #001220); }
.gt-tile--2.gt-live-casino { background: url(tiles/Live-Casino_small.jpg) no-repeat;background-position: center;background-size: cover; }
.gt-tile--2.gt-tennis { background: url(tiles/Tennis_small.jpg) no-repeat;background-position: center;background-size: cover; }
.gt-tile--2:before { background: none; }

.gt-tile--3 { --tile-bg: linear-gradient(135deg, #2a1000, #150800); }
.gt-tile--3.gt-jackpot { background: url(tiles/Jackpot_small.jpg) no-repeat;background-position: center;background-size: cover; }
.gt-tile--3.gt-inplay { background: url(tiles/In-Play_small.jpg) no-repeat;background-position: center;background-size: cover; }
.gt-tile--3:before { background: none; }

.gt-tile--4 { --tile-bg: linear-gradient(135deg, #0a2240, #040e1a); }
.gt-tile--4.gt-table { background: url(tiles/Table_small.jpg) no-repeat;background-position: center;background-size: cover; }
.gt-tile--4.gt-esports { background: url(tiles/ESports_small.jpg) no-repeat;background-position: center;background-size: cover; }
.gt-tile--4:before { background: none; }

.gt-tile--5 { --tile-bg: linear-gradient(135deg, #1a0030, #0a0018); }
.gt-tile--5.gt-poker { background: url(tiles/Poker_small.jpg) no-repeat;background-position: center;background-size: cover; }
.gt-tile--5.gt-60sports { background: url(tiles/60-Sports_small.jpg) no-repeat;background-position: center;background-size: cover; }
.gt-tile--5:before { background: none; }

.gt-tile--6 { --tile-bg: linear-gradient(135deg, #001a1a, #000d10); }
.gt-tile--6.gt-sports { background: url(tiles/Sports_small.jpg) no-repeat;background-position: center;background-size: cover; }
.gt-tile--6.gt-football { background: url(tiles/Football_small.jpg) no-repeat;background-position: center;background-size: cover; }
.gt-tile--6:before { background: none; }

.gt-footer { padding: 14px 16px; background: var(--bg-surface); border-top: 1px solid var(--bg-border); }
.gt-provider-row { display: flex; gap: 8px; flex-wrap: wrap; }
.gt-provider { font-size: 0.68rem; font-weight: 700; color: var(--text-dim); background: var(--bg-card); border: 1px solid var(--bg-border); border-radius: 6px; padding: 3px 8px; }
.gt-provider:last-child { color: var(--brand); border-color: var(--brand-mid); background: var(--brand-dim); }

/* ============================================================
   COMPLIANCE
   ============================================================ */
.compliance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.compliance-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 14px; padding: 22px 20px;
  box-shadow: var(--shadow-card);
}
.compliance-card:hover { border-color: var(--brand-mid); transform: translateY(-3px); }
.cc-icon {
  width: 40px; height: 40px;
  background: var(--brand-dim);
  border: 1px solid var(--brand-mid);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--brand); margin-bottom: 12px;
}
.compliance-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.compliance-card p  { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.65; }

/* ============================================================
   WHY STAKESOFT
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--bg-border);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--bg-border);
}
.why-item { background: var(--bg-card); padding: 26px 24px; }
.why-item:hover { background: var(--bg-card-alt); }
.why-icon {
  width: 40px; height: 40px;
  background: var(--brand-dim);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; color: var(--brand); margin-bottom: 12px;
}
.why-item h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; font-family: 'Space Grotesk', sans-serif; }
.why-item p  { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.65; }

/* ============================================================
   INTEGRATION TICKER
   ============================================================ */
.ticker-section {
  padding: 28px 0;
  border-top: 1px solid var(--bg-border);
  border-bottom: 1px solid var(--bg-border);
  background: var(--bg-card);
  display: flex; align-items: center; gap: 40px; overflow: hidden;
}
.ticker-label {
  flex-shrink: 0;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim);
  padding: 0 40px; white-space: nowrap;
}
.ticker-track {
  flex: 1; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 80px, black calc(100% - 80px), transparent);
}
.ticker-inner {
  display: flex; gap: 40px; width: max-content;
  animation: ticker 25s linear infinite;
}
.ticker-inner span { font-size: 0.82rem; font-weight: 600; color: var(--text-dim); white-space: nowrap; }
.ticker-inner span:hover { color: var(--text-primary); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   TRUST & CERTIFICATIONS
   ============================================================ */
.trust-section {
  padding: 48px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--bg-border);
  border-bottom: 1px solid var(--bg-border);
}
[data-theme="light"] .trust-section {
  background: var(--bg-base);
}
.trust-header {
  text-align: center;
  margin-bottom: 36px;
}
.trust-header .section-label {
  margin-bottom: 12px;
}
.trust-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}
.trust-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.trust-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 14px;
  padding: 16px 22px;
  width: 160px;
  height: 86px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.trust-logo-wrap:hover {
  border-color: var(--brand-mid);
  box-shadow: 0 4px 24px var(--brand-dim);
}
.trust-logo {
  max-width: 130px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  /* multiply removes white backgrounds on light mode, screen removes dark on dark mode */
}
[data-theme="dark"]  .trust-logo { filter: brightness(1.05); }
[data-theme="light"] .trust-logo { filter: none; }

/* For logos with white backgrounds on dark mode — add a light card */
[data-theme="dark"] .trust-logo-wrap {
  background: rgba(255,255,255,0.06);
}
[data-theme="dark"] .trust-logo-wrap:hover {
  background: rgba(255,255,255,0.10);
}

.trust-item-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}
.trust-status-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid var(--amber);
  border-radius: 20px;
  padding: 2px 10px;
  opacity: 0.85;
}
.trust-status-badge--active {
  color: #22c55e;
  background: rgba(34,197,94,0.1);
  border-color: #22c55e;
}

/* ============================================================
   CTA / CONTACT
   ============================================================ */
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: flex-start; }
.cta-content .section-title { margin-bottom: 20px; }
.cta-content p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 32px; }
.cta-quote blockquote {
  font-size: 0.95rem; color: var(--text-secondary);
  font-style: italic; line-height: 1.7;
  padding: 20px 24px;
  border-left: 3px solid var(--brand);
  background: var(--bg-card);
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow-card);
}
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 18px; padding: 32px;
  box-shadow: var(--shadow-card);
}
.contact-form h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.form-sub { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--bg-border);
  border-radius: 10px; padding: 11px 14px;
  font-size: 0.875rem; color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  outline: none; width: 100%;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-dim); }
.form-group select option { background: var(--bg-surface); color: var(--text-primary); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
}
.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group--captcha { margin-top: 4px; }
.form-group--captcha.hidden { display:none; }
.captcha-slot {
  min-height: 78px;
  display: flex;
  align-items: center;
}
.form-help {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.form-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  line-height: 1.5;
}
.form-alert--error {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.34);
  border-color: rgba(248, 113, 113, 0.35);
}
.form-alert--success {
  color: #bbf7d0;
  background: rgba(20, 83, 45, 0.34);
  border-color: rgba(74, 222, 128, 0.35);
}
.form-success {
  background: var(--bg-card);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 22px; padding: 48px 40px; text-align: center;
  box-shadow: var(--shadow-card);
}
.form-success i { font-size: 2.5rem; color: #22c55e; margin-bottom: 16px; }
.form-success h4 { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.form-success p  { font-size: 0.875rem; color: var(--text-secondary); }

/* ============================================================
   GAMIFICATION SECTION
   ============================================================ */
.gamification-section { background: var(--sec-1); }
.gamif-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0 24px;
}
.gamif-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 14px;
  padding: 22px 20px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.gamif-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(255,140,0,0.3);
}
.gamif-icon {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.gamif-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.gamif-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
/* Achievements card bullet list */
.gamif-card-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  list-style: none;
}
.gamif-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.gamif-card-list li i {
  color: var(--brand);
  font-size: 0.65rem;
  margin-top: 4px;
  flex-shrink: 0;
}
.gamif-callout {
  background: linear-gradient(135deg, rgba(255,140,0,0.1), rgba(255,140,0,0.04));
  border-left: 3px solid #ff8c00;
  border-radius: 0 10px 10px 0;
  padding: 14px 20px;
  margin: 24px 0 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-main);
  letter-spacing: 0.01em;
}

.gamif-proof {
  margin-top: 8px;
}
.gamif-proof-inner {
  background: var(--bg-card);
  border: 1px solid rgba(255,140,0,0.25);
  border-left: 3px solid #ff8c00;
  border-radius: 14px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  max-width: 680px;
}
.gamif-proof-logo {
  margin-bottom: 12px;
}

/* CompetitionLabs logo - theme-aware */
.cl-logo {
  height: 36px;
  width: auto;
  display: block;
}
/* Dark theme: show white logo */
:root .cl-logo--dark,
[data-theme="dark"] .cl-logo--dark { display: block; }
:root .cl-logo--light,
[data-theme="dark"] .cl-logo--light { display: none; }
/* Light theme: show black logo */
[data-theme="light"] .cl-logo--dark { display: none; }
[data-theme="light"] .cl-logo--light { display: block; }
.gamif-proof-inner p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   STAKESOFT PULSE — Outcome Metrics Block
   ============================================================ */
.pulse-metrics {
  margin-top: 32px;
  background: linear-gradient(135deg, rgba(0,191,255,0.06), rgba(139,92,246,0.06));
  border: 1px solid rgba(0,191,255,0.2);
  border-left: 3px solid var(--brand);
  border-radius: 14px;
  padding: 22px 26px;
}
.pulse-metrics-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,191,255,0.12);
  color: var(--brand);
  border: 1px solid rgba(0,191,255,0.25);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pulse-metrics-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.pulse-metrics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.pulse-metric {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 10px;
  padding: 12px 18px;
  text-align: center;
  min-width: 120px;
  flex: 1;
}
.pm-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 3px;
}
.pm-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.pulse-disclaimer {
  margin-top: 14px;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ============================================================
   GAME PROVIDERS SECTION
   ============================================================ */
.providers-section {
  background: var(--sec-2);
}
.providers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}
.providers-grid span {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: default;
}
.providers-grid span:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-dim);
}

/* ============================================================
   SPORTSBOOK SECTION
   ============================================================ */
.sportsbook-section { background: var(--sec-2); }

/* ============================================================
   FOOTER — dark theme default, light theme overrides
   ============================================================ */

/* ── Dark theme (default) ── */
.footer {
  background: #05070f;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
/* Logo variants — controlled entirely by theme attribute (see LOGO SYSTEM block above) */

.footer-brand p {
  font-size: 0.85rem; color: #525d78;
  line-height: 1.65; margin-bottom: 20px; max-width: 280px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: #525d78;
}
.footer-social a:hover { color: #ffffff; border-color: #00bfff; }
.footer-col h5 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #525d78; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.85rem; color: #8893b0; }
.footer-col ul li a:hover { color: #00bfff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px; text-align: center;
  font-size: 0.78rem; color: #525d78;
}

/* ── Light theme overrides ── */
[data-theme="light"] .footer {
  background: #e8edf5;
  border-top: 1px solid rgba(0,0,0,0.08);
}
[data-theme="light"] .footer-logo-img--dark  { display: none !important; }
[data-theme="light"] .footer-logo-img--light { display: inline-block !important; }
[data-theme="dark"]  .footer-logo-img--dark  { display: inline-block !important; }
[data-theme="dark"]  .footer-logo-img--light { display: none !important; }
[data-theme="light"] .footer-brand p         { color: #4a5568; }
[data-theme="light"] .footer-social a {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.10);
  color: #4a5568;
}
[data-theme="light"] .footer-social a:hover  { color: #0077b6; border-color: #0077b6; }
[data-theme="light"] .footer-col h5          { color: #718096; }
[data-theme="light"] .footer-col ul li a     { color: #4a5568; }
[data-theme="light"] .footer-col ul li a:hover { color: #0077b6; }
[data-theme="light"] .footer-bottom {
  border-top-color: rgba(0,0,0,0.08);
  color: #718096;
}

/* ============================================================
   RESPONSIVE
   Breakpoints:
     1100px  — wide tablet / small laptop
      900px  — tablet landscape
      768px  — tablet portrait / large phone
      600px  — small tablet / large phone
      480px  — phone landscape / average phone
      380px  — small phone
   ============================================================ */

/* ── 1100px: wide tablet ─────────────────────────────────── */
@media (max-width: 1100px) {
  /* Platform architecture */
  .platform-arch { flex-direction: column; gap: 24px; }

  .arch-modules { justify-content: flex-start; }

  /* Grids: go 2-col */
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .gamif-grid    { grid-template-columns: repeat(2, 1fr); }

  /* Floating notifications: pull inside bounds */
  .notif--1 { left: -10px; top: -16px; }
  .notif--2 { right: -10px; bottom: -10px; }
}

/* ── 900px: tablet landscape ─────────────────────────────── */
@media (max-width: 900px) {
  /* Hero: single column, visual on top */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 20px 40px;
  }
  .hero-visual { order: -1; }
  .hero-sub { max-width: 100%; }

  /* Dashboard */
  .dash-kpis   { grid-template-columns: repeat(2, 1fr); }
  .dash-charts { grid-template-columns: 1fr; }
  .notif       { display: none; }

  /* Games / Sportsbook / CTA: single column */
  .games-inner { grid-template-columns: 1fr; gap: 36px; }
  .cta-inner   { grid-template-columns: 1fr; gap: 36px; }

  /* Footer: 2 columns */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  /* Models: 1 per row on tablet landscape */
  .models-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Providers: smaller pills */
  .providers-grid span { font-size: 0.75rem; padding: 6px 12px; }

  /* Trust: fewer per row */
  .trust-grid { gap: 12px; }
  .trust-logo-wrap { width: 140px; height: 76px; padding: 12px 16px; }

  /* Gamification proof */
  .gamif-proof-inner { max-width: 100%; padding: 20px 22px; }

  /* Pulse metrics: 2-col on tablet */
  .pulse-metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

/* ── 768px: tablet portrait ──────────────────────────────── */
@media (max-width: 768px) {
  /* Navbar: burger menu */
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    padding: 16px 20px 20px;
    gap: 4px;
    border-bottom: 1px solid var(--bg-border);
    z-index: 99;
  }
  [data-theme="dark"]  .nav-links { background: rgba(5,7,15,0.97); }
  [data-theme="light"] .nav-links {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 14px; font-size: 0.9rem; border-radius: 8px; }
  .nav-links .nav-cta {
    margin-top: 8px;
    text-align: center;
    justify-content: center;
    width: 100%;
  }
  .nav-burger { display: flex; }

  /* Section spacing */
  .section { padding: 40px 0; }

  /* Stats band: 2 col */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--bg-border);
    padding: 20px 16px;
  }
  .stat-item:nth-child(2n) { /* keep right border for odd items */}
  .stat-val { font-size: 1.8rem; }

  /* Features: single column */
  .features-grid { grid-template-columns: 1fr; }

  /* Gamification: single column */
  .gamif-grid { grid-template-columns: 1fr; }

  /* Partner models: single column */
  .models-grid { grid-template-columns: 1fr; }
  .model-card { padding: 24px 20px; }
  .model-number { font-size: 2rem; }

  /* Games section */
  .games-content p { font-size: 0.9rem; }

  /* Compliance: 2 col */
  .compliance-grid { grid-template-columns: 1fr 1fr; }

  /* Why StakeSoft: single column */
  .why-grid { grid-template-columns: 1fr; }
  .why-item { padding: 20px; }

  /* Pulse metrics: 2-col on phone */
  .pulse-metrics { padding: 18px 18px; }
  .pulse-metrics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pm-value { font-size: 1.2rem; }

  /* Providers */
  .providers-grid { gap: 6px; margin-top: 28px; }
  .providers-grid span { font-size: 0.72rem; padding: 5px 10px; }

  /* Trust */
  .trust-section { padding: 36px 0; }
  .trust-header { margin-bottom: 28px; }
  .trust-grid { gap: 10px; }
  .trust-logo-wrap { width: 130px; height: 70px; padding: 10px 14px; border-radius: 12px; }

  /* CTA / contact */
  .cta-inner { gap: 28px; }
  .cta-quote { display: none; } /* hide quote on mobile — keeps form focal */

  /* Form */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer { padding: 36px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand p { max-width: 100%; }

  /* Ticker */
  .ticker-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 0;
  }
  .ticker-label { padding: 0 20px; }

  /* Section title: tighten up */
  .section-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .hero-headline { font-size: clamp(2rem, 7vw, 3rem); }
}

/* ── 600px: small tablet / large phone ───────────────────── */
@media (max-width: 600px) {
  /* Container */
  .container { padding: 0 16px; }

  /* Stats: single col */
  .stats-grid { grid-template-columns: 1fr 1fr; }

  /* Hero chips: smaller */
  .hero-chips span { font-size: 0.72rem; padding: 4px 10px; }
  .hero-chips { gap: 6px; }

  /* Hero CTAs: stack */
  .hero-ctas { flex-direction: column; gap: 10px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .btn--demo { width: 100%; justify-content: center; }

  /* Architecture */
  .arch-core { width: 200px; height: 200px; }
  .arch-modules { gap: 8px; }
  .arch-mod { padding: 8px 12px; }
  .arch-mod-name { font-size: 0.75rem; }

  /* Dashboard KPIs: 2 col on small screens */
  .kpi-card { padding: 12px 10px; }
  .kpi-value { font-size: 1rem; }
  .kpi-label { font-size: 0.62rem; }

  /* Gamification proof */
  .gamif-proof-inner { padding: 16px 18px; }
  .cl-logo { height: 28px; }

  /* Pulse */
  .pulse-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .pm-value { font-size: 1.1rem; }

  /* Partner model number: decorative, shrink it */
  .model-number { font-size: 1.6rem; }

  /* Compliance: single col */
  .compliance-grid { grid-template-columns: 1fr; }

  /* Game tiles: 2 col for readability */
  .gt-grid { grid-template-columns: repeat(2, 1fr); }

  /* Trust: 2 per row */
  .trust-grid { justify-content: center; }
  .trust-logo-wrap { width: 120px; height: 66px; padding: 8px 12px; }

  /* Contact form */
  .contact-form { padding: 22px 18px; border-radius: 16px; }
  .contact-form h3 { font-size: 1.1rem; }

  /* Section sub */
  .section-sub { font-size: 0.925rem; }
}

/* ── 480px: standard phone ────────────────────────────────── */
@media (max-width: 480px) {
  /* Nav logo */
  .nav-logo-img { height: 28px; }
  .footer-logo-img { height: 28px; }

  /* Hero */
  .hero-inner { padding: 28px 16px 32px; gap: 24px; }
  .hero-badge { font-size: 0.72rem; padding: 4px 10px; margin-bottom: 14px; }
  .hero-headline { font-size: clamp(1.8rem, 8vw, 2.6rem); margin-bottom: 14px; }
  .hero-sub { font-size: 0.9rem; line-height: 1.65; margin-bottom: 18px; }

  /* Stats */
  .stat-val { font-size: 1.6rem; }
  .stat-label { font-size: 0.75rem; }

  /* Platform arch */
  .platform-arch { padding: 20px 16px; gap: 20px; }
  .arch-core { width: 140px; height: 140px; }

  /* Section title */
  .section-title { font-size: clamp(1.4rem, 6vw, 1.9rem); }

  /* Feature cards */
  .feature-card { padding: 18px 16px; }
  .feature-icon { width: 36px; height: 36px; font-size: 0.9rem; margin-bottom: 10px; }
  .feature-card h3 { font-size: 0.875rem; }
  .feature-card p  { font-size: 0.8rem; }

  /* Gamif cards */
  .gamif-card { padding: 18px 16px; }
  .gamif-card h4 { font-size: 0.9rem; }
  .gamif-card p  { font-size: 0.8rem; }

  /* Models */
  .model-card { padding: 20px 16px; }

  /* Compliance / why */
  .compliance-card { padding: 18px 16px; }
  .why-item { padding: 18px 16px; }
  .cc-icon, .why-icon, .feature-icon { width: 36px; height: 36px; font-size: 0.85rem; }

  /* Pulse */
  .pulse-metrics { padding: 16px 14px; }
  .pulse-metrics-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .pm-value { font-size: 1rem; }
  .pm-label { font-size: 0.68rem; }

  /* Providers */
  .providers-grid span { font-size: 0.7rem; padding: 4px 9px; }

  /* Trust */
  .trust-logo-wrap { width: 110px; height: 60px; border-radius: 10px; }
  .trust-item-label { font-size: 0.68rem; }

  /* Contact form */
  .contact-form { padding: 20px 16px; }
  .form-group input,
  .form-group select,
  .form-group textarea { padding: 10px 12px; font-size: 0.85rem; }

  /* Footer */
  .footer { padding: 28px 0 20px; }
  .footer-grid { gap: 20px; }
  .footer-col h5 { margin-bottom: 10px; }
  .footer-col ul { gap: 8px; }
  .footer-bottom { font-size: 0.72rem; padding-top: 18px; }

  /* Ticker */
  .ticker-section { padding: 14px 0; gap: 8px; }
  .ticker-inner { gap: 28px; }
  .ticker-inner span { font-size: 0.75rem; }

  /* Buttons */
  .btn { padding: 10px 20px; font-size: 0.875rem; }

  /* Section spacing */
  .section { padding: 32px 0; }
  .section-sub { margin-bottom: 28px; }
}

/* ── 380px: small phones (SE, Galaxy A series) ───────────── */
@media (max-width: 380px) {
  .hero-headline { font-size: 1.7rem; }
  .hero-chips span { font-size: 0.68rem; padding: 3px 8px; }
  .stat-val { font-size: 1.4rem; }
  .section-title { font-size: 1.35rem; }
  .container { padding: 0 14px; }
  .contact-form { padding: 18px 14px; }
  .platform-arch { padding: 16px 14px; }
  .arch-core { width: 120px; height: 120px; }
  .pulse-metrics-grid { grid-template-columns: 1fr 1fr; }
  .trust-logo-wrap { width: 100px; height: 54px; border-radius: 8px; }
}

/* ============================================================
   CROSS-BROWSER COMPATIBILITY PATCHES
   ============================================================ */

/* ── 1. Tap highlight reset (iOS Safari / Android Chrome) ── */
/* Removes the blue/grey flash on tap for all interactive elements */
a, button, [role="button"],
.arch-mod, .dash-tab, .gt-filter, .hero-chips span,
.nav-links a, .model-cta, .nav-burger, .theme-toggle {
  -webkit-tap-highlight-color: transparent;
}

/* ── 2. Touch-action: manipulation ── */
/* Eliminates the ~300ms tap delay on older iOS/Android browsers */
a, button, [role="button"],
.arch-mod, .dash-tab, .gt-filter,
.nav-burger, .theme-toggle, .model-cta,
.form-group input, .form-group select, .form-group textarea {
  touch-action: manipulation;
}

/* ── 3. Overscroll behaviour ── */
/* Prevents body pull-to-refresh bounce on mobile interfering with page scroll */
html, body {
  overscroll-behavior-y: none;
}
/* Allow inner scrollable containers to scroll naturally */
.dash-modules, .ticker-track, .nav-links, .gt-filters {
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
}

/* ── 4. -webkit-mask-image (Safari < 15.4 ticker fade) ── */
.ticker-track {
  -webkit-mask-image: linear-gradient(90deg, transparent, black 80px, black calc(100% - 80px), transparent);
  mask-image:         linear-gradient(90deg, transparent, black 80px, black calc(100% - 80px), transparent);
}

/* ── 5. aspect-ratio fallback for .gt-tile (older Safari/Firefox) ── */
/* Modern browsers use aspect-ratio; older ones get a padding-top hack */
@supports not (aspect-ratio: 4 / 3) {
  .gt-tile {
    padding-top: 75%; /* 3/4 = 75% */
    position: relative;
    height: 0;
    align-items: flex-end;
  }
  .gt-tile span {
    position: absolute;
    bottom: 10px;
    left: 10px;
  }
  .gt-tile::before {
    position: absolute;
    inset: 0;
  }
}

/* ── 6. Min-height: 0 fix (Firefox grid/flex overflow bug) ── */
/* Grid children containing flex children can overflow in Firefox */
.hero-inner > *,
.games-inner > *,
.cta-inner > *,
.platform-arch > *,
.gamif-grid > *,
.features-grid > *,
.models-grid > *,
.compliance-grid > *,
.why-grid > * {
  min-height: 0;
  min-width: 0;
}

/* ── 7. -webkit-font-smoothing / -moz-osx-font-smoothing ── */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── 8. Reduced motion — respect OS preference ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Keep ticker visible but static */
  .ticker-inner { animation: none; }
  /* Keep bar heights visible but static */
  .bar { transition: none !important; }
  /* Reveal elements immediately */
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── 9. iOS safe-area insets (notch / home bar) ── */
/* Ensures content doesn't sit under iPhone notch/home indicator */
.navbar {
  padding-left:  env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
.nav-inner {
  padding-left:  max(24px, env(safe-area-inset-left, 24px));
  padding-right: max(24px, env(safe-area-inset-right, 24px));
}
.footer {
  padding-bottom: max(28px, calc(28px + env(safe-area-inset-bottom, 0px)));
}
.container {
  padding-left:  max(24px, env(safe-area-inset-left, 24px));
  padding-right: max(24px, env(safe-area-inset-right, 24px));
}
@media (max-width: 480px) {
  .container {
    padding-left:  max(16px, env(safe-area-inset-left, 16px));
    padding-right: max(16px, env(safe-area-inset-right, 16px));
  }
}
@media (max-width: 380px) {
  .container {
    padding-left:  max(14px, env(safe-area-inset-left, 14px));
    padding-right: max(14px, env(safe-area-inset-right, 14px));
  }
}

/* ── 10. Hero overflow: prevent glow bleed on narrow screens ── */
.hero { overflow-x: hidden; }

/* ── 11. Scroll container momentum on iOS Safari ── */
/* Smooth inertial scrolling inside overflow containers */
.dash-modules,
.gt-filters,
.ticker-track,
.nav-links {
  -webkit-overflow-scrolling: touch;
}

/* ── 12. Button / input appearance reset (iOS Safari) ── */
/* Prevents iOS from adding native styling overrides */
button,
input[type="submit"],
input[type="button"] {
  -webkit-appearance: none;
  appearance: none;
}
.form-group input,
.form-group select,
.form-group textarea {
  -webkit-appearance: none;
  appearance: none;
  /* Prevent iOS zoom on focus (font must be >= 16px equivalent) */
  font-size: max(16px, 0.875rem);
}

/* ── 13. Prevent text inflation on mobile (IE Mobile / early Android) ── */
body {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ── 14. Focus-visible for keyboard navigation (accessibility) ── */
/* Only show focus ring for keyboard users, not mouse clicks */
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* ── 15. Spinner display for form submit button (cross-browser) ── */
#btnSpinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0,0,0,0.25);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
