/* ============================================
   THE GAUNTLET GAMES — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --black: #0a0a0a;
  --charcoal: #1c1c1c;
  --charcoal-light: #262625;
  --gold: #c9a04c;
  --gold-bright: #d9b76a;
  --off-white: #e8e4dc;
  --steel: #8c8c8c;
  --steel-dim: #5a5a58;

  --display: 'Bebas Neue', sans-serif;
  --body: 'Inter', sans-serif;

  --max-width: 1280px;
  --section-pad: clamp(80px, 12vw, 160px);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--black);
  color: var(--off-white);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

::selection {
  background: var(--gold);
  color: var(--black);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* ---------- Texture ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.02;
}

h1 { font-size: clamp(2.8rem, 9vw, 6.5rem); }
h2 { font-size: clamp(2.2rem, 6vw, 4rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }

p { color: var(--steel); font-size: 1.05rem; max-width: 60ch; }
p.lead { color: var(--off-white); font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 400; }

.rule {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 24px 0;
}
.rule.center { margin-left: auto; margin-right: auto; }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: clamp(24px, 5vw, 64px);
  padding-right: clamp(24px, 5vw, 64px);
}

section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  position: relative;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(24px, 5vw, 64px);
  background: transparent;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(201, 160, 76, 0.15);
}

.nav-mark {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-mark img { height: 32px; width: auto; }

.nav-links {
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--off-white);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-links a.active { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--off-white);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(75vw, 320px);
    background: var(--black);
    border-left: 1px solid rgba(201,160,76,0.2);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; z-index: 101; }
}

/* ---------- Buttons ---------- */
.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}
.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border-color: var(--steel-dim);
  color: var(--off-white);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 120px;
  padding-bottom: 80px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(201,160,76,0.08), transparent 60%),
    var(--black);
}

.hero-badge {
  width: clamp(140px, 22vw, 220px);
  margin-bottom: 32px;
  opacity: 0;
  animation: rise 1s ease forwards 0.1s;
}

.hero h1 {
  opacity: 0;
  animation: rise 1s ease forwards 0.3s;
}

.hero-sub {
  font-family: var(--display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-top: 8px;
  opacity: 0;
  animation: rise 1s ease forwards 0.5s;
}

.hero-statement {
  margin-top: 24px;
  opacity: 0;
  animation: rise 1s ease forwards 0.7s;
}

.hero .btn-group {
  margin-top: 44px;
  justify-content: center;
  opacity: 0;
  animation: rise 1s ease forwards 0.9s;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--steel-dim));
  opacity: 0;
  animation: rise 1s ease forwards 1.2s;
}
.scroll-cue::after {
  content: '';
  position: absolute;
  top: 0; left: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: 0; opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- What Is section ---------- */
.about-block {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

/* ---------- Mission band ---------- */
.mission {
  background: var(--charcoal);
  text-align: center;
}
.mission-statement {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.25;
  color: var(--off-white);
  text-transform: none;
  letter-spacing: 0.005em;
}

/* ---------- Countdown ---------- */
.countdown-section {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(201,160,76,0.06), transparent 70%),
    var(--black);
  border-top: 1px solid rgba(201,160,76,0.12);
  border-bottom: 1px solid rgba(201,160,76,0.12);
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 5vw, 56px);
  margin-top: 48px;
  flex-wrap: wrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-num {
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  margin-top: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ---------- Footer ---------- */
footer {
  padding: 56px clamp(24px,5vw,64px) 40px;
  text-align: center;
}

.footer-mark {
  width: 56px;
  margin: 0 auto 24px;
  opacity: 0.85;
}

.social-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 24px 0;
}
.social-row a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--steel-dim);
  border-radius: 50%;
  color: var(--steel);
  transition: all 0.25s ease;
}
.social-row a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--steel-dim);
  margin-top: 16px;
}
.footer-meta a:hover { color: var(--gold); }

/* ---------- About page specific ---------- */
.page-header {
  padding-top: clamp(160px, 20vw, 220px);
  padding-bottom: 60px;
  text-align: center;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  max-width: 820px;
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: rgba(201,160,76,0.15);
  border: 1px solid rgba(201,160,76,0.15);
  margin-top: 48px;
}

.value-card {
  background: var(--black);
  padding: 40px 32px;
  transition: background 0.3s ease;
}
.value-card:hover { background: var(--charcoal); }

.value-num {
  font-family: var(--display);
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  opacity: 0.8;
}

.value-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.value-card p { font-size: 0.95rem; }

.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 48px;
}

.promise-card {
  border-left: 2px solid var(--gold);
  padding-left: 24px;
}
.promise-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.promise-card p { font-size: 0.95rem; }

/* ---------- Founding Partners page ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.category-card {
  border: 1px solid rgba(201,160,76,0.18);
  padding: 36px 28px;
  text-align: left;
  transition: all 0.3s ease;
}
.category-card:hover {
  border-color: var(--gold);
  background: rgba(201,160,76,0.04);
}
.category-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.category-card p { font-size: 0.9rem; }

.partner-form {
  max-width: 640px;
  margin: 56px auto 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel);
}
.field input, .field select, .field textarea {
  background: var(--charcoal);
  border: 1px solid var(--steel-dim);
  color: var(--off-white);
  padding: 14px 16px;
  font-family: var(--body);
  font-size: 0.95rem;
  border-radius: 2px;
  transition: border-color 0.25s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 120px; }

.form-submit {
  margin-top: 8px;
  width: 100%;
}

@media (max-width: 600px) {
  .form-row { margin-bottom: 0; }
}

/* ============================================
   REVISION 2 — Additional components
   ============================================ */

/* Hero tag / discipline label */
.hero-tag {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,160,76,0.4);
  display: inline-block;
  padding: 6px 18px;
  margin-bottom: 20px;
}

/* Discipline pills */
.hero-pills {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.pill {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel);
}
.pill-div { color: var(--gold); opacity: 0.6; }

/* Arena hero background — uses an Unsplash cinematic arena photo */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(201,160,76,0.07), transparent 55%),
    var(--black);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1567427017947-545c5f8d16ad?w=1800&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.12;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 0 clamp(24px,5vw,64px);
}

/* Faster reveal for hero (doesn't use IntersectionObserver) */
.reveal-fast { opacity: 0; animation: rise 0.9s ease forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* Hero badge size — bigger, main logo */
.hero-badge {
  width: clamp(160px, 26vw, 260px);
  margin-bottom: 28px;
}

/* Logo divider between sections */
.logo-divider {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  border-top: 1px solid rgba(201,160,76,0.1);
  border-bottom: 1px solid rgba(201,160,76,0.1);
}
.logo-divider img {
  width: 80px;
  opacity: 0.5;
}

/* Three pillars on homepage */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px;
  margin-top: 56px;
}
.pillar { text-align: center; }
.pillar-icon {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0.85;
}
.pillar h3 { margin-bottom: 12px; font-size: 1.25rem; }
.pillar p { margin: 0 auto; }

/* Launch/Summer 2027 section */
.launch-section {
  position: relative;
  overflow: hidden;
  padding: var(--section-pad) 0;
  background: var(--charcoal);
  border-top: 1px solid rgba(201,160,76,0.12);
  border-bottom: 1px solid rgba(201,160,76,0.12);
}
.launch-logo-bg {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.04;
  pointer-events: none;
}
.launch-logo-bg img { width: min(500px, 60vw); }

.launch-date {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-top: 12px;
}

/* Mailing list form — stacked 3 fields */
.mailing-form {
  max-width: 480px;
  margin: 36px auto 0;
  text-align: left;
}
.mailing-fields { display: flex; flex-direction: column; gap: 16px; }

/* Page header with large logo */
.page-header {
  padding-top: clamp(140px, 18vw, 200px);
  padding-bottom: 60px;
  text-align: center;
}
.page-header-logo {
  width: clamp(100px, 16vw, 160px);
  margin: 0 auto 28px;
}

/* Partner pillars on partners page */
.partner-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  margin-top: 56px;
  border: 1px solid rgba(201,160,76,0.15);
}
.partner-pillar {
  padding: 40px 32px;
  border-right: 1px solid rgba(201,160,76,0.1);
  border-bottom: 1px solid rgba(201,160,76,0.1);
  transition: background 0.3s ease;
}
.partner-pillar:hover { background: rgba(201,160,76,0.03); }
.partner-pillar-num {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 16px;
  opacity: 0.7;
}
.partner-pillar h3 { font-size: 1.2rem; margin-bottom: 12px; }
.partner-pillar p { font-size: 0.95rem; }

/* Larger footer logo using main shield */
.footer-mark-large {
  width: 80px;
  margin: 0 auto 24px;
  opacity: 0.8;
}

/* Story grid spacing fix */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  max-width: 820px;
  margin: 0 auto;
}

/* ============================================
   CENTERING FIX + LOGO TRANSPARENCY PATCH
   ============================================ */

/* Force full center alignment on hero content at all sizes */
.hero-content {
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Logo — remove any box shadow or bg bleed, force centered */
.hero-badge,
.page-header-logo,
.footer-mark-large,
.logo-divider img,
.launch-logo-bg img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  background: transparent !important;
  box-shadow: none !important;
}

/* Nav coin logo — transparent bg fix */
.nav-mark img {
  background: transparent !important;
  box-shadow: none !important;
}

/* Hero tag — fix width so it doesn't stretch full width on mobile */
.hero-tag {
  display: inline-block !important;
  width: auto !important;
  max-width: 90vw;
  text-align: center;
}

/* Ensure btn-group centers properly on mobile */
.btn-group {
  justify-content: center !important;
}

/* Hero pills centering fix */
.hero-pills {
  width: 100%;
  justify-content: center !important;
}

/* Page header — force center on inner pages */
.page-header {
  text-align: center !important;
}
.page-header * {
  margin-left: auto;
  margin-right: auto;
}


/* ============================================
   NEW HERO LOGO — larger, dramatic, centered
   ============================================ */

.hero-badge {
  width: clamp(260px, 70vw, 480px) !important;
  max-width: 90vw !important;
  margin: 0 auto 24px !important;
  display: block !important;
  /* the image has its own dark bg that blends perfectly */
  border-radius: 8px;
}

/* Page header logo — use slightly smaller crop version */
.page-header-logo {
  width: clamp(120px, 30vw, 200px) !important;
  margin: 0 auto 28px !important;
}

/* Footer coin — keep compact */
.footer-mark-large {
  width: 64px !important;
  opacity: 0.75;
}

/* ============================================
   HERO V2 — Full bleed, no card, edge to edge
   ============================================ */

.hero-v2 {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

/* Logo image fills the entire hero */
.hero-v2-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero-bg.jpg');
  background-size: cover;
  background-position: center top;
  z-index: 0;
}

/* Dark gradient fades the bottom so text reads clearly */
.hero-v2-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.0) 0%,
    rgba(10,10,10,0.0) 40%,
    rgba(10,10,10,0.7) 65%,
    rgba(10,10,10,0.97) 100%
  );
  z-index: 1;
}

/* Text sits at the bottom, over the gradient */
.hero-v2-content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(24px, 6vw, 80px) clamp(60px, 10vw, 100px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-v2-content h1 {
  animation: rise 0.9s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}
.hero-v2-content .hero-tag {
  animation: rise 0.9s ease forwards;
  opacity: 0;
  margin-bottom: 16px;
  display: inline-block;
  width: auto;
}
.hero-v2-content .hero-sub {
  animation: rise 0.9s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}
.hero-v2-content .hero-statement {
  animation: rise 0.9s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
  margin-top: 16px;
}
.hero-v2-content .btn-group {
  animation: rise 0.9s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
  margin-top: 32px;
  justify-content: center;
}

/* Gold horizontal rule divider */
.gold-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.4;
}

/* ============================================
   CLOSING STATEMENT
   ============================================ */

.closing-statement {
  padding: var(--section-pad) 0;
  background: var(--black);
  border-top: 1px solid rgba(201,160,76,0.12);
}

.closing-line {
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  color: var(--off-white);
  line-height: 1.2;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Pillar SVG icon sizing */
.pillar-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 24px;
}
.pillar-icon svg {
  width: 100%;
  height: 100%;
}
