/* ==========================================================================
   Gig Game — "Live Stage" design system
   Dark, cinematic canvas. Teal = structure/chrome. Orange = energy/action.
   No build step: plain CSS, custom properties, GSAP handles motion.
   ========================================================================== */

:root {
  /* Brand */
  --teal: #1e86a8;
  --teal-bright: #3fb4dd;
  --teal-deep: #0e4a5e;
  --orange: #f5941f;
  --orange-bright: #ffb04d;
  --orange-deep: #c96e05;

  /* Canvas */
  --bg: #05070b;
  --bg-1: #070b12;
  --bg-2: #0b111b;
  --bg-3: #101828;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #eef2f7;
  --text-dim: #a7b2c2;
  --text-dimmer: #74808f;
  --on-orange: #1a0e02;

  /* Effects */
  --glow-orange: 0 0 0 1px rgba(245, 148, 31, 0.35), 0 8px 30px rgba(245, 148, 31, 0.25);
  --glow-teal: 0 0 0 1px rgba(63, 180, 221, 0.3), 0 8px 30px rgba(30, 134, 168, 0.25);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);

  /* Type */
  --font-display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Scale */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --container: 1240px;

  color-scheme: dark;
}

/* ---------- Reset / base ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * , *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: #fff;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

p { color: var(--text-dim); margin: 0 0 1em; }
a { color: var(--teal-bright); text-decoration: none; }
img { max-width: 100%; display: block; }

.accent { color: var(--orange); }
.accent-teal { color: var(--teal-bright); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { position: relative; padding: 110px 0; }
.section-tight { padding: 70px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02) 50%, transparent); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-bright);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
  border-radius: 2px;
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--text-dim);
  max-width: 62ch;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange-bright), var(--orange) 60%, var(--orange-deep));
  color: var(--on-orange);
  box-shadow: var(--glow-orange);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(245, 148, 31, 0.4); color: var(--on-orange); }
.btn-secondary {
  background: var(--panel);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover { border-color: var(--teal-bright); color: #fff; transform: translateY(-3px); box-shadow: var(--glow-teal); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-block { width: 100%; }

.cta-group { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.risk-reversal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dimmer);
  font-weight: 500;
}
.risk-reversal i { color: var(--teal-bright); }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.site-nav.is-scrolled {
  padding: 12px 0;
  background: rgba(5, 7, 11, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { height: 40px; width: 40px; border-radius: 50%; }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: #fff; letter-spacing: -0.01em; }
.brand span .accent { font-weight: 800; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a.nav-link:hover, .nav-links > li.open a.nav-link { color: #fff; background: var(--panel); }

.mega-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 560px;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-links > li.open .mega-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-dropdown a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
}
.mega-dropdown a:hover { background: var(--panel-strong); }
.mega-dropdown a strong { font-family: var(--font-display); font-size: 0.92rem; color: #fff; }
.mega-dropdown a small { color: var(--text-dimmer); font-size: 0.78rem; }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.lang-dropdown { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 8px 12px; color: var(--text);
  font-size: 0.85rem; cursor: pointer;
}
.lang-btn img { width: 18px; height: 18px; border-radius: 50%; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: var(--bg-3); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 8px; max-height: 320px; overflow-y: auto; min-width: 180px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 50;
}
.lang-dropdown.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--text-dim); font-size: 0.88rem; }
.lang-menu a:hover { background: var(--panel-strong); color: #fff; }
.lang-menu img { width: 16px; height: 16px; border-radius: 50%; }

.nav-burger { display: none; background: none; border: 1px solid var(--border); color: #fff; border-radius: 10px; padding: 10px 12px; cursor: pointer; }

/* Mobile nav */
.mobile-panel {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5, 7, 11, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s;
}
.mobile-panel.open { opacity: 1; visibility: visible; }
.mobile-sheet {
  position: absolute; top: 0; right: 0; height: 100%; width: min(360px, 88vw);
  background: var(--bg-2); border-left: 1px solid var(--border-strong);
  padding: 26px 22px; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.3s ease;
}
.mobile-panel.open .mobile-sheet { transform: translateX(0); }
.mobile-sheet ul { list-style: none; margin: 0; padding: 0; }
.mobile-sheet li { border-bottom: 1px solid var(--border); }
.mobile-sheet a { display: block; padding: 14px 4px; color: var(--text); font-weight: 600; }
.mobile-sheet .mobile-sub { padding-left: 14px; }
.mobile-sheet .mobile-sub a { color: var(--text-dim); font-weight: 500; font-size: 0.92rem; }
.mobile-close { background: none; border: 1px solid var(--border); color: #fff; border-radius: 10px; padding: 8px 10px; float: right; cursor: pointer; }

@media (max-width: 991px) {
  .nav-links, .nav-cta .lang-dropdown { display: none; }
  .nav-burger { display: inline-flex; align-items: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 190px 0 120px;
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 15% -10%, rgba(30, 134, 168, 0.28), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(245, 148, 31, 0.16), transparent 55%),
    linear-gradient(100deg, rgba(5,7,11,0.96) 0%, rgba(5,7,11,0.86) 30%, rgba(5,7,11,0.5) 62%, rgba(5,7,11,0.72) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%),
    url('/images/splash.jpg') center right / cover no-repeat,
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 30% 20%, black, transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.hero-grid-solo { grid-template-columns: 1fr; max-width: 780px; margin: 0 auto; text-align: center; }
.hero-grid-solo .cta-group, .hero-grid-solo .risk-reversal { justify-content: center; }
.hero-grid-solo .hero-descriptor { margin-left: auto; margin-right: auto; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-descriptor { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--text-dim); max-width: 56ch; margin-bottom: 32px; }
.hero-cta-row { margin-bottom: 18px; }

.hero-visual { position: relative; min-height: 420px; }
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; z-index: 0;
}
.hero-blob.b1 { width: 340px; height: 340px; background: var(--orange); top: -20px; right: 10%; }
.hero-blob.b2 { width: 260px; height: 260px; background: var(--teal); bottom: 0; left: 0; }

.hero-illustration { position: relative; z-index: 1; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border-strong); }

.phone-stage { position: relative; z-index: 1; height: 460px; }
.phone-mock {
  position: absolute;
  width: 190px;
  border-radius: 30px;
  border: 6px solid #10151f;
  background: #10151f;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.phone-mock img { width: 100%; display: block; }
.phone-mock.p1 { top: 0; left: 6%; transform: rotate(-7deg); z-index: 3; }
.phone-mock.p2 { top: 60px; left: 42%; transform: rotate(3deg); z-index: 2; width: 210px; }
.phone-mock.p3 { top: 130px; left: 5%; transform: rotate(9deg); z-index: 1; opacity: 0.85; margin-left: 150px; }

@media (max-width: 991px) {
  .hero { padding: 150px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; margin-top: 20px; }
  .phone-stage { height: 340px; }
  .phone-mock { width: 150px; }
  .phone-mock.p2 { width: 170px; }
}

/* ---------- Trust strip ---------- */
.trust-strip { padding: 26px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 34px; opacity: 0.85; }
.trust-row .trust-item { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 0.9rem; font-weight: 600; }
.trust-row i { color: var(--orange); }

/* ---------- Cards / glass ---------- */
.glass-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(8px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.glass-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.value-card .icon-badge {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(245,148,31,0.18), rgba(30,134,168,0.18));
  border: 1px solid var(--border-strong);
  color: var(--orange-bright); font-size: 1.3rem; margin-bottom: 18px;
}
.value-card h3 { margin-bottom: 10px; }
.value-card p { margin-bottom: 0; }

/* ---------- Segment router (home) ---------- */
.segment-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-3);
  min-height: 260px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.segment-card:hover { transform: translateY(-6px); border-color: var(--orange); }
.segment-card .bg-image { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; opacity: 0.5; transition: opacity .35s ease, transform .5s ease; }
.segment-card:hover .bg-image { opacity: 0.68; transform: scale(1.04); }
.segment-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,7,11,0.95), rgba(5,7,11,0.15) 60%); }
.segment-card .content { position: relative; z-index: 2; }
.segment-card h3 { margin-bottom: 6px; }
.segment-card p { font-size: 0.92rem; margin-bottom: 14px; }
.segment-card .go { font-family: var(--font-display); font-weight: 700; color: var(--orange-bright); font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.segment-card .go i { transition: transform 0.25s ease; }
.segment-card:hover .go i { transform: translateX(5px); }

/* ---------- How it works ---------- */
.how-it-works { position: relative; }
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; position: relative; }
@media (max-width: 991px) { .how-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .how-steps { grid-template-columns: 1fr; } }
.how-step { position: relative; text-align: left; }
.how-step .num {
  font-family: var(--font-display); font-weight: 800; font-size: 2.4rem;
  background: linear-gradient(135deg, var(--orange-bright), var(--teal-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px; display: block;
}
.how-step h3 { font-size: 1.15rem; }

/* ---------- Game carousel ---------- */
.game-scroller { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 26px; margin: 0 -4px; }
.game-scroller::-webkit-scrollbar { height: 8px; }
.game-scroller::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; }
.game-card {
  scroll-snap-align: start;
  flex: 0 0 260px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.game-card:hover { transform: translateY(-6px); border-color: var(--teal-bright); }
.game-card .thumb { aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-2); }
.game-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.game-card:hover .thumb img { transform: scale(1.06); }
.game-card .body { padding: 16px 18px 20px; }
.game-card .body h4 { font-family: var(--font-display); font-size: 1.02rem; color: #fff; margin-bottom: 4px; }
.game-card .body span.cat { font-size: 0.78rem; color: var(--orange-bright); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 880px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  padding: 22px 40px 22px 0; position: relative; cursor: pointer;
}
.faq-q::after {
  content: "+"; position: absolute; right: 6px; top: 18px; font-size: 1.6rem; color: var(--orange);
  transition: transform 0.25s ease;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p { padding-bottom: 22px; margin-bottom: 0; }

/* ---------- Final CTA banner ---------- */
.final-cta {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 70px 40px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-deep), #071018 60%);
  border: 1px solid var(--border-strong);
}
.final-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 80% 0%, rgba(245,148,31,0.28), transparent 60%);
}
.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 { margin-bottom: 14px; }
.final-cta p { max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-1); border-top: 1px solid var(--border); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--font-display); color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-dim); font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { height: 36px; width: 36px; border-radius: 50%; }
.footer-brand span { font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 1.1rem; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--text-dimmer); font-size: 0.85rem; }
.social-row { display: flex; gap: 12px; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-dim); }
.social-row a:hover { color: #fff; border-color: var(--teal-bright); }

/* ---------- Forms ---------- */
.form-control-dark {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 14px 16px; font-size: 0.98rem; transition: border-color 0.2s ease;
}
.form-control-dark:focus { outline: none; border-color: var(--teal-bright); }
label.form-label-dark { display: block; margin-bottom: 8px; font-size: 0.88rem; color: var(--text-dim); font-weight: 600; }
.form-row { margin-bottom: 20px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); }
.reveal-ready [data-reveal] { transition: opacity 0.7s ease, transform 0.7s ease; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1 !important; transform: none !important; } }

/* ---------- Breadcrumb / inner-page header ---------- */
.page-header {
  padding: 180px 0 70px;
  background: radial-gradient(900px 500px at 90% -10%, rgba(30,134,168,0.22), transparent 60%), var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-header h1 { margin-bottom: 14px; }

/* ---------- Utility ---------- */
.mt-0{margin-top:0} .mb-0{margin-bottom:0}
.text-dim{color:var(--text-dim)}
.pill-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel); border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill); padding: 6px 14px; font-size: 0.8rem; font-weight: 600; color: var(--text-dim);
}

/* ---------- Atmosphere backgrounds (faded full-bleed image behind a section) ---------- */
/* Set --atmosphere-img inline per-section: style="--atmosphere-img:url(/images/generated/bg-atmosphere-stage.png)" */
/* Deliberately do NOT give .section-atmosphere or its .container a z-index: doing so would
   establish a new stacking context that traps any position:fixed descendant (e.g. a Bootstrap
   modal) below its own z-index - while the modal's backdrop, which Bootstrap appends directly
   to <body>, escapes to the real root stacking context and paints over it. Instead, push the
   background layers behind with a negative z-index so plain in-flow content (.container and
   everything in it, including modals) naturally stacks above without needing a context of its own. */
.section-atmosphere { position: relative; overflow: hidden; }
.section-atmosphere::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--atmosphere-img);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: saturate(1.1);
  z-index: -1;
}
.section-atmosphere::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(5,7,11,0.55) 22%, rgba(5,7,11,0.55) 78%, var(--bg) 100%);
  z-index: -1;
}

/* ---------- Setup explainer (laptop -> HUD/TV -> phone flow) ---------- */
.setup-flow { display: flex; align-items: stretch; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.setup-step {
  flex: 1 1 240px; max-width: 280px; text-align: center; padding: 34px 24px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}
.setup-step .setup-icon {
  width: 84px; height: 84px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(245,148,31,0.2), rgba(30,134,168,0.2));
  border: 1px solid var(--border-strong);
  font-size: 2rem; color: var(--orange-bright);
  margin: 0 auto 20px;
  box-shadow: var(--glow-orange);
}
.setup-step .setup-tag { font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-bright); margin-bottom: 8px; display: block; }
.setup-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.setup-step p { font-size: 0.92rem; margin-bottom: 0; }
.setup-arrow { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; color: var(--orange-bright); font-size: 1.5rem; opacity: 0.75; }
@media (max-width: 860px) {
  .setup-flow { flex-direction: column; align-items: center; }
  .setup-arrow { transform: rotate(90deg); margin: -6px 0; }
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column; height: 100%;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.testimonial-card .stars { color: var(--orange-bright); margin-bottom: 16px; font-size: 0.85rem; letter-spacing: 3px; }
.testimonial-card blockquote { font-size: 1rem; color: var(--text); margin: 0 0 22px; font-style: italic; flex: 1; }
.testimonial-card .who strong { display: block; color: #fff; font-family: var(--font-display); font-size: 0.95rem; }
.testimonial-card .who span { color: var(--text-dimmer); font-size: 0.82rem; }
.testimonial-card .tag { margin-top: 16px; }
.testimonial-more {
  display: inline; background: none; border: none; padding: 0; margin-left: 4px;
  color: var(--teal-bright); font-weight: 700; font-size: 0.9rem; cursor: pointer; text-decoration: underline;
}
.testimonial-more:hover { color: var(--orange-bright); }

/* ---------- Dark-themed Bootstrap modal (used by testimonial "Read more") ---------- */
.modal-content {
  background: var(--bg-3); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); color: var(--text);
}
.modal-header { border-bottom: 1px solid var(--border); padding: 20px 24px; }
.modal-body { padding: 24px; }
.modal-body blockquote { font-size: 1.05rem; color: var(--text); font-style: italic; margin: 0 0 20px; }
.modal-backdrop.show { opacity: 0.75; }
.btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: 0.7; }
.btn-close:hover { opacity: 1; }

/* ---------- Live stat tiles (real platform numbers as social proof) ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 860px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat-tile {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 22px; text-align: center; backdrop-filter: blur(8px);
}
.stat-tile .stat-value {
  font-family: var(--font-display); font-weight: 800; font-size: 2.3rem;
  background: linear-gradient(135deg, var(--orange-bright), var(--teal-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1;
}
.stat-tile .stat-label { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; margin-top: 10px; }
.stat-tile .stat-hint { font-size: 0.78rem; color: var(--text-dimmer); margin-top: 6px; }
.stat-map-line { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; font-size: 0.9rem; color: var(--text-dim); flex-wrap: wrap; }
.stat-map-line i { color: var(--orange-bright); }

/* ---------- Community map (host activity, world map) ---------- */
.map-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; backdrop-filter: blur(8px);
}
.map-card__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.map-card__badges { display: flex; gap: 10px; flex-wrap: wrap; }
.map-canvas { height: 440px; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-2); }
@media (max-width: 640px) { .map-canvas { height: 320px; } }
.jvectormap-tip {
  background: var(--bg-3) !important; color: var(--text) !important;
  border: 1px solid var(--border-strong) !important; border-radius: 8px !important;
  padding: 6px 10px !important; font-size: 0.82rem !important; font-family: var(--font-body);
}

/* ---------- Feature request cards (Custom Game Development page) ---------- */
.request-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; display: flex; flex-direction: column; height: 100%;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.request-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.request-card__badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.request-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.request-card p { font-size: 0.9rem; flex: 1; }
.request-card__meta { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-dimmer); }
.request-card__votes { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--orange-bright); }
.badge-status {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: var(--radius-pill);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  border: 1px solid transparent;
}
.badge-status--open { background: rgba(63,180,221,0.14); color: var(--teal-bright); border-color: rgba(63,180,221,0.3); }
.badge-status--in-progress { background: rgba(245,148,31,0.16); color: var(--orange-bright); border-color: rgba(245,148,31,0.35); }
.badge-status--resolved { background: rgba(76,209,141,0.16); color: #4cd18d; border-color: rgba(76,209,141,0.35); }
.badge-status--closed { background: rgba(255,255,255,0.06); color: var(--text-dimmer); border-color: var(--border); }
.badge-type { background: var(--panel-strong); color: var(--text-dim); }

/* ---------- Shared "watch the demo" video modal (YouTube plays embedded, not a new tab) ---------- */
.video-trigger { cursor: pointer; }
.video-modal-dialog { max-width: 900px; }
.video-modal-dialog .modal-content {
  background: transparent; border: none; border-radius: 0; box-shadow: none; overflow: visible;
}
.video-modal-frame {
  position: relative; width: 100%; padding-top: 56.25%; /* 16:9 */
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lg); background: #000;
  border: 1px solid var(--border-strong);
}
.video-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal-close {
  position: absolute; top: -46px; right: -4px; z-index: 2;
  background: var(--panel); border: 1px solid var(--border-strong); border-radius: 50%;
  width: 36px; height: 36px; padding: 0;
}
@media (max-width: 600px) { .video-modal-close { top: -42px; right: 0; } }
