/* ==========================================================================
   WORLD 23 — Spectrum Games
   Layout modeled on playshapeofdreams.com with Sci-Fi Cyberpunk Palette
   ========================================================================== */

:root {
  --bg-deep: #06070b;
  --bg-panel: #0d1018;
  --bg-panel-alt: #131824;
  --gold-light: #f3d486;
  --gold-main: #d4af37;
  --gold-dark: #99741c;
  --cyan-glow: #38bdf8;
  --text-white: #f8fafc;
  --text-silver: #94a3b8;
  --text-dim: #64748b;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-gold: rgba(212, 175, 55, 0.4);

  /* ========================================================================
     FONT SWITCHER:
     Change 'Chakra Petch' below to 'Orbitron' or 'Rajdhani' (or any Google
     Font you import in index.html) to change the title/logo font site-wide!
     ======================================================================== */
  --font-display: 'Chakra Petch', 'Orbitron', 'Rajdhani', sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-white);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.section-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(6, 7, 11, 0.94) 0%, rgba(6, 7, 11, 0.72) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  height: 76px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.brand-logo-text {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-white);
}

.brand-logo-text em {
  font-style: normal;
  color: var(--gold-light);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.main-nav a {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-silver);
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--gold-light);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-buy-nav {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-main) 100%);
  color: #06070b;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  border-radius: 2px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-buy-nav:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-white);
}

/* --- Hero Section & Looping Video --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 76px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-art-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(56, 189, 248, 0.2) 0%, transparent 55%),
    radial-gradient(circle at 65% 25%, rgba(212, 175, 55, 0.15) 0%, transparent 45%),
    linear-gradient(160deg, #0b132b 0%, #090c15 50%, #06070b 100%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(6,7,11,0.35) 0%, rgba(6,7,11,0.55) 65%, #06070b 100%);
}

.hero-center {
  position: relative;
  z-index: 3;
  margin: auto 0;
  padding: 80px 24px 60px;
  text-align: center;
}

.hero-logo-img {
  max-width: 460px;
  width: 90%;
  height: auto;
  margin-bottom: 32px;
}

.logo-eyebrow {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--cyan-glow);
  margin-bottom: 16px;
}

.logo-main {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8.5vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.02;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.9);
  margin-bottom: 42px;
}

.logo-main span {
  background: linear-gradient(180deg, #fff6d1 0%, var(--gold-main) 65%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-main) 100%);
  color: #06070b;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.13em;
  border: 1px solid var(--gold-light);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-gold:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.45);
  transform: translateY(-2px);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: rgba(13, 16, 24, 0.72);
  color: var(--text-white);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.13em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.btn-outline-light:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
  transform: translateY(-2px);
}

/* Product Information Bar */
.product-info-bar {
  position: relative;
  z-index: 3;
  background: rgba(13, 16, 24, 0.9);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.product-info-grid {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.35fr 1.45fr 1.6fr;
}

.info-cell {
  padding: 22px 26px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.info-cell:last-child {
  border-right: none;
}

.info-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  font-weight: 700;
}

.info-value {
  font-size: 0.88rem;
  color: var(--text-white);
  font-weight: 600;
}

/* --- GAME Feature Showcase Rows --- */
.game-section {
  padding: 120px 0 80px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 120px;
}

.feature-row.reverse {
  grid-template-columns: 1.25fr 1fr;
}

.feature-row.reverse .feature-text {
  order: 2;
}

.feature-row.reverse .feature-visual {
  order: 1;
}

.feature-index {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cyan-glow);
  margin-bottom: 14px;
}

.feature-heading {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
  color: var(--text-white);
}

.feature-text p {
  color: var(--text-silver);
  font-size: 1rem;
  margin-bottom: 16px;
}

.feature-text strong {
  color: var(--gold-light);
}

.visual-frame {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border-gold);
  background-color: var(--bg-panel);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.visual-frame img, .visual-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.frame-caption {
  font-size: 0.88rem;
  color: var(--text-silver);
  letter-spacing: 0.06em;
  padding: 16px;
  text-align: center;
}

.v-bg-1 { background: radial-gradient(circle at 30% 40%, #1e293b 0%, #090d16 100%); }
.v-bg-2 { background: radial-gradient(circle at 70% 30%, #31102f 0%, #090d16 100%); }
.v-bg-3 { background: radial-gradient(circle at 40% 60%, #0f292e 0%, #090d16 100%); }
.v-bg-4 { background: radial-gradient(circle at 60% 40%, #2a1f0d 0%, #090d16 100%); }

/* --- Section Headings --- */
.center-heading {
  text-align: center;
  margin-bottom: 52px;
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--cyan-glow);
  margin-bottom: 10px;
}

.center-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.08em;
}

/* --- CHARACTERS Section (Theo & Leo 2-Agent Layout) --- */
.characters-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #0b0f19 50%, var(--bg-deep) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.char-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 680px;
  margin: 0 auto 32px;
  gap: 16px;
}

.char-tab {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  padding: 20px 24px;
  text-align: center;
  color: var(--text-white);
  cursor: pointer;
  transition: all 0.2s ease;
}

.char-tab:hover, .char-tab.active {
  border-color: var(--gold-main);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.16) 0%, rgba(13, 16, 24, 0.95) 100%);
}

.tab-role {
  display: block;
  font-size: 0.74rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.tab-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
}

.char-panel {
  display: none;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  padding: 48px;
}

.char-panel.active {
  display: grid;
}

.char-subtitle {
  display: block;
  color: var(--cyan-glow);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.char-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.char-desc {
  color: var(--text-silver);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 22px;
}

.char-stats {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.char-stats li {
  font-size: 0.92rem;
  color: var(--text-silver);
  margin-bottom: 8px;
}

.char-stats strong {
  color: var(--gold-light);
}

.char-art {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-silver);
  font-size: 0.9rem;
  overflow: hidden;
}

.char-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.char-art-1 { background: radial-gradient(circle, #1e293b 0%, #090c14 100%); }
.char-art-2 { background: radial-gradient(circle, #31102f 0%, #090c14 100%); }

/* --- OFFICIAL MEDIA Section (Trailer + 8 Screenshots) --- */
.media-section {
  padding: 110px 0;
}

.featured-trailer-box {
  margin-bottom: 24px;
}

.media-grid-8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.media-thumb {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-silver);
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-thumb:hover {
  border-color: var(--gold-main);
  transform: translateY(-2px);
}

.play-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.2);
  border: 2px solid var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold-light);
}

.m-bg-main { background: radial-gradient(circle, #1e1b4b 0%, #090c14 100%); max-height: 500px; width: 100%; }
.m-bg-1 { background: linear-gradient(135deg, #111827, #1f2937); }
.m-bg-2 { background: linear-gradient(135deg, #1e1b4b, #0f172a); }
.m-bg-3 { background: linear-gradient(135deg, #0f292e, #090d16); }
.m-bg-4 { background: linear-gradient(135deg, #2a1f0d, #090d16); }

/* --- COMMUNITY & NEWSLETTER Section --- */
.community-section {
  padding: 90px 0 110px;
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  border-top: 1px solid var(--border-subtle);
}

.community-banner {
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.community-left h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.community-left p {
  color: var(--text-silver);
  margin-bottom: 28px;
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-discord {
  padding: 14px 24px;
  background: #5865F2;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
}

.btn-discord:hover {
  background: #4752c4;
}

.btn-social {
  padding: 14px 20px;
  background: var(--bg-panel-alt);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
}

.btn-social:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.newsletter-box {
  background: rgba(6, 7, 11, 0.65);
  border: 1px solid var(--border-subtle);
  padding: 32px;
}

.newsletter-box h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.newsletter-box > p {
  font-size: 0.9rem;
  color: var(--text-silver);
  margin-bottom: 20px;
}

/* Brevo Form Styling Overrides */
:where(.sib-form-message-panel) {
  display: none;
}
.sib-form-message-panel--active {
  display: block !important;
  padding: 10px 14px;
}
.brevo-input-row {
  display: flex;
  gap: 10px;
}
#sib-container .entry__field {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
#sib-container input#EMAIL {
  width: 100%;
  background: #06070b !important;
  border: 1px solid var(--border-subtle) !important;
  padding: 14px 16px !important;
  color: var(--text-white) !important;
  font-family: var(--font-sans) !important;
  font-size: 0.92rem !important;
  border-radius: 2px !important;
  height: auto !important;
  outline: none !important;
}
#sib-container input#EMAIL:focus {
  border-color: var(--gold-main) !important;
}
#sib-container input#EMAIL::placeholder {
  color: var(--text-dim) !important;
}
.sib-form-block__button {
  padding: 14px 24px !important;
  font-size: 0.82rem !important;
  white-space: nowrap;
}

/* --- Simple Indie Footer & Legal Modals --- */
.site-footer {
  background: #040508;
  border-top: 1px solid var(--border-subtle);
  padding: 44px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-contact {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-silver);
}

.footer-contact a {
  color: var(--gold-light);
}

.footer-copy {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.legal-link-btn {
  background: none;
  border: none;
  color: var(--text-silver);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.legal-link-btn:hover {
  color: var(--gold-light);
}

/* Modals */
.legal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.legal-modal-backdrop.open {
  display: flex;
}

.legal-modal {
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.legal-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-modal-header h3 {
  font-family: var(--font-display);
  color: var(--gold-light);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.legal-modal-body {
  padding: 24px;
  overflow-y: auto;
  color: var(--text-silver);
  font-size: 0.92rem;
}

.legal-modal-body p {
  margin-bottom: 14px;
}

.legal-modal-body a {
  color: var(--gold-light);
  text-decoration: underline;
}

/* --- Responsive Layout --- */
@media (max-width: 980px) {
  .product-info-grid {
    grid-template-columns: 1fr 1fr;
  }
  .info-cell {
    border-bottom: 1px solid var(--border-subtle);
  }
  .feature-row, .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 72px;
  }
  .feature-row.reverse .feature-text {
    order: 1;
  }
  .feature-row.reverse .feature-visual {
    order: 2;
  }
  .char-panel.active {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .media-grid-8 {
    grid-template-columns: 1fr 1fr;
  }
  .community-banner {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  .main-nav {
    display: none;
  }
  .main-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: #06070b;
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  .product-info-grid {
    grid-template-columns: 1fr;
  }
  .char-tabs {
    grid-template-columns: 1fr;
  }
  .brevo-input-row {
    flex-direction: column;
  }
  .media-grid-8 {
    grid-template-columns: 1fr;
  }
}
