/* ============================================
   GAMEATHON — Global Stylesheet
   ============================================ */

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

:root {
  --black: #07080A;
  --dark: #0D0F14;
  --card: #131720;
  --card2: #1A1F2E;
  --border: #1E2330;
  --border2: #262D3D;
  --steel: #C8CDD8;
  --silver: #E8ECF4;
  --blue: #1A6BFF;
  --blue-dim: rgba(26,107,255,0.12);
  --blue-border: rgba(26,107,255,0.28);
  --accent: #3D8BFF;
  --text: #F0F2F8;
  --muted: #8892A4;
  --green: #4ADE80;
  --nav-h: 68px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }
h1 { font-size: clamp(32px, 6vw, 58px); font-weight: 800; letter-spacing: -2px; line-height: 1.08; color: var(--silver); }
h2 { font-size: clamp(26px, 4vw, 42px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.12; color: var(--silver); }
h3 { font-size: clamp(18px, 2.5vw, 22px); font-weight: 700; letter-spacing: -0.5px; color: var(--silver); }
h4 { font-size: 16px; font-weight: 700; color: var(--silver); }
p { font-size: 15px; line-height: 1.7; color: var(--muted); }

/* ── LAYOUT ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
.section-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── EYEBROW ── */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ── BUTTONS ── */
.btn { display: inline-block; padding: 14px 28px; border-radius: 10px; font-size: 15px; font-weight: 700; letter-spacing: 0.2px; transition: transform .2s, opacity .2s; cursor: pointer; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { opacity: .88; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--steel); border: 1px solid var(--border2); }
.btn-outline:hover { border-color: var(--accent); color: var(--text); }
.btn-sm { padding: 10px 20px; font-size: 14px; border-radius: 8px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(7,8,10,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: 38px; height: 38px; border-radius: 9px; }
.nav-logo span { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px; color: var(--silver); letter-spacing: -0.5px; }
.nav-menu { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-menu a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-menu a:hover, .nav-menu a.active { color: var(--text); }
.nav-cta { background: var(--blue); color: #fff !important; padding: 9px 22px; border-radius: 8px; font-weight: 600 !important; font-size: 14px; transition: opacity .2s !important; }
.nav-cta:hover { opacity: .85; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--steel); border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--dark); z-index: 199; padding: 32px 24px;
  flex-direction: column; gap: 8px; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--muted); font-size: 18px; font-weight: 500; padding: 14px 0; border-bottom: 1px solid var(--border); transition: color .2s; }
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .m-cta { margin-top: 16px; text-align: center; background: var(--blue); color: #fff; border-radius: 10px; padding: 16px; font-size: 16px; font-weight: 700; border: none; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: calc(var(--nav-h) + 72px) 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(26,107,255,0.1), transparent 70%);
  pointer-events: none;
}

/* ── CARDS ── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 28px; }
.card-hover { transition: border-color .3s, transform .3s; }
.card-hover:hover { border-color: var(--accent); transform: translateY(-4px); }

/* ── BADGE ── */
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 100px; letter-spacing: 0.4px; }
.badge-blue { background: var(--blue-dim); color: #6BA8FF; border: 1px solid var(--blue-border); }
.badge-green { background: rgba(74,222,128,0.1); color: #4ADE80; border: 1px solid rgba(74,222,128,0.25); }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 14px; margin-top: 12px; max-width: 280px; }
.footer-col h5 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--steel); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; color: var(--muted); transition: color .2s; }
.footer-col ul a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p, .footer-bottom span { font-size: 13px; color: var(--muted); }
.footer-disclaimer { font-size: 12px; color: #4A5168; margin-top: 16px; line-height: 1.6; }

/* ── PULSE ANIMATION ── */
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.3} }
@keyframes float { 0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)} }
.fade-up { animation: fadeUp .6s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  /* Inner pages hero smaller on mobile */
  .page-hero { padding: calc(var(--nav-h) + 40px) 0 40px; }
  .page-hero h1 { font-size: clamp(28px, 8vw, 42px); }
  /* Section inner needs breathing room on small screens */
  .section-inner, .container { padding: 0 20px; }
  /* Founder card unstick on mobile */
  .founder-card { position: static !important; }
  /* Founder block stacks vertically */
  .founder-block { grid-template-columns: 1fr !important; gap: 32px !important; }
}
@media (max-width: 480px) {
  section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  /* Don't force full-width buttons everywhere — let hero buttons be natural width */
  .form-submit { width: 100%; }
  /* Touch targets: make sure tap areas are 44px min height */
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .nav-cta { min-height: 36px; }
  /* Footer disclaimer readable */
  .footer-disclaimer { font-size: 11px; }
  /* Stat cols need less padding */
  .stat-col { padding: 0 8px; }
}
