/* ===== Home (Dark Blue Theme) ===== */

/* 0) Normalize + sideways overflow guards */
*, *::before, *::after { box-sizing: border-box; }
:root { --sbw: calc(100vw - 100%); }     /* scrollbar width for centering fix */
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #08111f;
  color: #e6f0ff;
  overflow-x: hidden !important;
  touch-action: pan-y;
  overscroll-behavior-x: none;
}

/* 1) Sticky, centered header/footer */
.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
main.home-page { flex: 1; display: flex; flex-direction: column; }

/* Prevent 100vw shift: keep header/footer centered across browsers */
header, #header, footer, .site-footer {
  width: calc(100vw - var(--sbw)) !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  left: 0 !important; right: 0 !important;
  transform: none !important;
}
footer .footer-inner,
.site-footer .footer-inner,
footer > .container,
.site-footer > .container {
  max-width: 1480px;
  margin: 0 auto;
  padding-inline: 16px;
}

/* 2) Page container */
.home-page {
  max-width: 1480px;
  width: calc(100% - 32px);
  margin: 0 auto;
  padding: 24px 0;
}

/* 3) Hero */
.hero {
  background: radial-gradient(1200px 800px at -10% -20%, #12223d 0%, #0b1220 40%, #08111f 100%);
  border: 1px solid #12305a;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(3,12,28,.55), inset 0 1px 0 rgba(255,255,255,.04);
  padding: 28px;
  margin: 0 0 22px;
}
.hero-inner {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;              /* mobile: stacked */
  align-items: center;
}
.hero-text h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  color: #eaf3ff;
}
.hero-text p {
  margin: 0 0 16px;
  color: #b9cbe8;
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-media .media-frame {
  border: 1px solid #12305a;
  background: #0b1325;
  border-radius: 16px;
  padding: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  -webkit-user-drag: none; user-drag: none;
}

/* ≥900px: split hero left/right */
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; }
  .hero-text h1 { font-size: 32px; }
}

/* 4) Section title */
.section-title {
  font-size: 22px;
  font-weight: 800;
  margin: 10px 0 14px;
  color: #eaf3ff;
  text-align: center;
}

/* 5) Feature grid */
.features {
  background: linear-gradient(180deg, #0b1325 0%, #0a1a31 100%);
  border: 1px solid #163a70;
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(3,12,28,.45), inset 0 1px 0 rgba(255,255,255,.03);
  padding: 22px;
  margin: 0 0 22px;
}
.feature-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;            /* mobile */
}
@media (min-width: 720px) {
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.feature-card {
  background: linear-gradient(180deg, #0b1428 0%, #0b1c36 100%);
  border: 1px solid #12305a;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 18px rgba(3,12,28,.35), inset 0 1px 0 rgba(255,255,255,.03);
}
.feature-card:hover { transform: translateY(-2px); border-color: #2a53c7; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  margin: 0 auto 10px;
  background: #132444; border: 1px solid #1b3e72;
  color: #89b4ff; font-size: 18px;
}
.feature-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; color: #e6f0ff; }
.feature-card p  { margin: 0; font-size: 14px; color: #9fb3c8; }

/* 6) Upcoming grid */
.upcoming {
  background: linear-gradient(180deg, #0b1325 0%, #0a1a31 100%);
  border: 1px solid #163a70;
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(3,12,28,.45), inset 0 1px 0 rgba(255,255,255,.03);
  padding: 22px;
  margin: 0 0 8px;
}
.upcoming-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;            /* mobile */
}
@media (min-width: 640px) {
  .upcoming-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .upcoming-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.upcoming-card {
  background: linear-gradient(180deg, #0b1428 0%, #0b1c36 100%);
  border: 1px solid #12305a;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(3,12,28,.35), inset 0 1px 0 rgba(255,255,255,.03);
}
.up-title { font-size: 16px; font-weight: 800; color: #e6f0ff; }
.up-meta  { font-size: 13px; color: #9fb3c8; }
.up-prize { font-size: 13px; color: #bfd3ff; }
.up-prize i { margin-right: 6px; }

/* 7) Buttons (match blue theme) */
.cta-button {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 6px 18px rgba(2,8,23,.45);
  transition: transform .12s ease, filter .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.cta-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.cta-button.small { padding: 8px 12px; border-radius: 9px; font-size: 13px; }
.cta-button.ghost {
  background: #0c1a33; color: #cfe1ff; border-color: #1e3a8a;
}

/* 8) Mobile nav overflow guard */
@media (max-width: 768px) {
  #menu { white-space: normal !important; width: 100% !important; }
}

/* 9) Footer font weight normalization (avoid “boldish” look) */
footer, .site-footer {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
  font-weight: 400 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
footer p, footer a, footer li, footer span, footer small { font-weight: 400 !important; }
footer strong, footer b { font-weight: 600 !important; }
