/* ============================================================
   GameReps Marketing Site — site.css
   ============================================================ */

/* --- Fonts --- */
@font-face {
  font-family: 'Satoshi';
  src: url('/site/assets/fonts/satoshi-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/site/assets/fonts/satoshi-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/site/assets/fonts/satoshi-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Custom Properties --- */
:root {
  --color-dark: #0A1628;
  --color-green: #267332;
  --color-green-light: #34A047;
  --color-green-dark: #1E6B2A;
  --color-gold: #FFB830;
  --color-white: #FFFFFF;
  --color-light: #F4F5F7;
  --color-text-dark: #1A1A2E;
  --color-text-light: #E8ECF1;
  --color-text-muted: #5F6570;

  --font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.6;

  --max-width: 1140px;
  --section-pad: 5rem 1.5rem;
  --section-pad-mobile: 3.5rem 1.25rem;
  --radius: 10px;
  --radius-sm: 6px;
  --transition: 0.2s ease;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-dark);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-green-light); }

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.5rem;
  background: var(--color-green);
  color: var(--color-white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text-dark);
}
h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark p,
.section-dark li { color: var(--color-text-light); }

.section-dark a { color: var(--color-green-light); }
.section-dark a:hover { color: var(--color-gold); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--section-pad);
}

.section-dark {
  background: var(--color-dark);
  color: var(--color-text-light);
}

.section-light {
  background: var(--color-white);
}

.section-alt {
  background: var(--color-light);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  min-height: 48px;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--color-green);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-green-light);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(45, 140, 60, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-outline:hover {
  border-color: var(--color-white);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.nav-logo svg { height: 32px; width: auto; }

.nav-wordmark {
  font-family: var(--font-family);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav-wordmark .game { color: var(--color-white); }
.nav-wordmark .reps { color: var(--color-green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--color-white); }

.nav-cta {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  margin: 6px 0;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-dark);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.nav-overlay.active { display: flex; }
.nav-overlay a {
  color: var(--color-text-light);
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
}
.nav-overlay a:hover { color: var(--color-white); }
.nav-overlay .btn { font-size: 1.125rem; min-width: 200px; text-align: center; }
.nav-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

/* --- Hero --- */
.hero {
  padding: 8rem 1.5rem 5rem;
  text-align: center;
}
.hero h1 {
  font-size: 3.25rem;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hero .subhead {
  font-size: 1.1875rem;
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto 2rem;
  opacity: 0.85;
}
.hero .btn-group {
  justify-content: center;
  margin-bottom: 1.5rem;
}
.hero .proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(45, 140, 60, 0.15);
  border: 1px solid rgba(45, 140, 60, 0.3);
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-green-light);
}
.hero .proof-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-visual {
  max-width: 720px;
  margin: 2.5rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-visual img {
  width: 100%;
  display: block;
}

/* --- Content Sections --- */
.content-section {
  padding: var(--section-pad);
}
.content-section .container {
  max-width: 760px;
}
.content-section .lead {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.25rem;
}
.content-section p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}
.content-section p:last-child { margin-bottom: 0; }

.section-cta {
  margin-top: 2rem;
}

/* --- Game Modes Cards --- */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.mode-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.mode-card h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.mode-card .mode-sport {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}
.mode-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mode-badge-live {
  background: rgba(45, 140, 60, 0.15);
  color: var(--color-green-light);
  border: 1px solid rgba(45, 140, 60, 0.3);
}
.mode-badge-soon {
  background: rgba(255, 184, 48, 0.1);
  color: var(--color-gold);
  border: 1px solid rgba(255, 184, 48, 0.2);
}
.mode-card-live {
  border-color: rgba(45, 140, 60, 0.25);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.mode-card-live:hover {
  border-color: var(--color-green);
  box-shadow: 0 4px 24px rgba(45, 140, 60, 0.15);
}

/* --- League Pitch --- */
.league-pitch {
  padding: var(--section-pad);
}
.league-pitch .container { max-width: 760px; }
.league-pitch h2 { margin-bottom: 1.5rem; }
.league-pitch p {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
}
.league-pitch .price-anchor {
  font-weight: 700;
  color: var(--color-text-dark);
}

/* --- Safety --- */
.safety-section {
  padding: 3rem 1.5rem;
}
.safety-section .container {
  max-width: 760px;
  text-align: center;
}
.safety-section p {
  font-size: 1rem;
  color: var(--color-text-muted);
}
.safety-section a {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 500;
}

/* --- Tailwind Section (market stats) --- */
.tailwind-section {
  padding: var(--section-pad);
  text-align: center;
}
.tailwind-section .container { max-width: 700px; }
.tailwind-section p {
  font-size: 1.0625rem;
  margin-bottom: 0.75rem;
}
.tailwind-section .stat {
  color: var(--color-text-light);
  font-weight: 600;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem 1.5rem 2rem;
  color: var(--color-text-light);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}
.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}
.footer-links a:hover { color: var(--color-white); }
.footer-tagline {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.footer-copy {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }
  h3 { font-size: 1.25rem; }

  section { padding: var(--section-pad-mobile); }

  .hero { padding: 6rem 1.25rem 3.5rem; }
  .hero h1 { font-size: 2.25rem; }
  .hero .subhead { font-size: 1.0625rem; }

  .btn { width: 100%; text-align: center; }
  .btn-group { flex-direction: column; align-items: stretch; }

  /* Nav */
  .nav-links { display: none; }
  .nav-cta.desktop { display: none; }
  .nav-hamburger { display: block; }

  .modes-grid { grid-template-columns: 1fr 1fr; }

  .content-section .lead { font-size: 1.25rem; }

  .footer-links { gap: 1rem; }
}

@media (max-width: 374px) {
  .hero h1 { font-size: 1.875rem; }
  .modes-grid { grid-template-columns: 1fr; }
}
