/* =========================================================
   BASECATCH — stylesheet
   Organized by section. Fonts: Anton (display), Inter (body).
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --navy: #16294d;
  --navy-deep: #0c1a33;
  --ink: #08101f;
  --red: #cf2c3b;
  --red-bright: #e63c48;
  --cream: #f5f1e8;
  --muted: #9fb0c8;
  --stitch: #d13a48;

  --radius: 16px;
  --radius-sm: 10px;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ol, ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; }
section { position: relative; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, var(--red-bright), var(--red));
  color: var(--cream);
  box-shadow: 0 10px 24px rgba(207, 44, 59, 0.4);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(207, 44, 59, 0.55); }

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); }

.btn-lg { padding: 1em 2.2em; font-size: 1.05rem; }

/* ---------- Section shell ---------- */
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.25rem, 4vw, 2.5rem);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  color: var(--cream);
}
.section-kicker {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  max-width: 46ch;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   NAV
   ========================================================= */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease), padding 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(8, 16, 31, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
  padding: 0.6rem clamp(1rem, 4vw, 2.5rem);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
}
.nav-logo { height: 34px; width: auto; }
.nav-wordmark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--cream);
}
.nav-links {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  font-weight: 600;
  font-size: 0.92rem;
}
.nav-links a { color: var(--muted); transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--cream); }
.nav-cta { padding: 0.6em 1.35em; font-size: 0.85rem; }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-wordmark { display: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  padding: 6rem 1.25rem 4rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/stadium.jpg");
  background-size: cover;
  background-position: center 65%;
  z-index: -3;
  transform: scale(1.08);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(8, 16, 31, 0.55) 0%, rgba(8, 16, 31, 0.55) 30%, var(--ink) 96%),
    linear-gradient(0deg, var(--navy-deep) 0%, rgba(12, 26, 51, 0.15) 55%);
}
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 50% 20%, rgba(207, 44, 59, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 35% at 15% 85%, rgba(22, 41, 77, 0.5), transparent 65%);
  pointer-events: none;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 780px;
}
.hero-logo {
  width: clamp(90px, 14vw, 150px);
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.55));
  margin-bottom: 0.75rem;
}
.hero-wordmark {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(3rem, 12vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--cream);
  text-shadow: 0 6px 0 rgba(0,0,0,0.25), 0 22px 46px rgba(0, 0, 0, 0.55);
}
.hero-tagline {
  margin-top: 0.9rem;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.hero-subline {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  max-width: 44ch;
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Flying baseball — behind the wordmark for depth, above the bg */
.hero-ball {
  position: absolute;
  z-index: 2;
  width: clamp(50px, 7vw, 88px);
  top: 30%;
  left: -10%;
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5)) drop-shadow(-14px 0 14px rgba(255,255,255,0.06));
  animation: pitch-across 5.5s ease-in-out infinite;
  animation-delay: 0.5s;
}
@keyframes pitch-across {
  0%   { transform: translate(0, 40px) rotate(0deg) scale(0.8); opacity: 0; }
  8%   { opacity: 1; }
  50%  { transform: translate(60vw, -60px) rotate(680deg) scale(1.15); }
  92%  { opacity: 1; }
  100% { transform: translate(122vw, 30px) rotate(1400deg) scale(0.85); opacity: 0; }
}

/* Resting glove, lower-left, partly cropped */
.hero-glove {
  position: absolute;
  z-index: 1;
  left: clamp(-90px, -6vw, -20px);
  bottom: clamp(-70px, -8vw, -20px);
  width: clamp(220px, 30vw, 420px);
  opacity: 0.92;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
  animation: glove-float 6s ease-in-out infinite;
}
@keyframes glove-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}

.scroll-cue {
  position: absolute;
  bottom: clamp(1.25rem, 3vw, 2.25rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--cream);
  opacity: 0.75;
  animation: bounce-chevron 2.2s ease-in-out infinite;
}
@keyframes bounce-chevron {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

@media (max-width: 700px) {
  .hero-glove { width: 190px; opacity: 0.7; }
}

/* =========================================================
   INTRO STRIP
   ========================================================= */
.intro {
  background: var(--navy-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.intro-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 4.5rem) clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
}
.intro-lead {
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--cream);
}
.intro-lead strong { color: var(--red-bright); }
.intro-sub {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  line-height: 1.6;
}

/* =========================================================
   RULES
   ========================================================= */
.rules {
  background:
    radial-gradient(ellipse 70% 40% at 85% 0%, rgba(207, 44, 59, 0.1), transparent 60%),
    radial-gradient(ellipse 60% 40% at 5% 100%, rgba(22, 41, 77, 0.6), transparent 65%),
    var(--ink);
  position: relative;
  overflow: hidden;
}
/* faint diagonal seam texture */
.rules::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.05;
  background-image: repeating-linear-gradient(
    45deg,
    var(--stitch) 0px,
    var(--stitch) 1px,
    transparent 1px,
    transparent 34px
  );
  pointer-events: none;
}
.rules .section-inner { position: relative; z-index: 1; }

.rules-grid {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.rule-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.rule-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 60, 72, 0.4);
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
}
.rule-card-wide { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .rule-card-wide { grid-column: span 2; }
}

.rule-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(207, 44, 59, 0.55);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.rule-glyph {
  position: absolute;
  top: 1.5rem;
  right: 1.4rem;
  font-size: 1.3rem;
  opacity: 0.35;
}
.rule-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--cream);
}
.rule-card p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
  margin: 0;
}

/* =========================================================
   HOW TO PLAY
   ========================================================= */
.how {
  background: linear-gradient(180deg, var(--ink), var(--navy-deep));
  border-top: 1px solid var(--border);
}
.how-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) {
  .how-inner { grid-template-columns: 1fr; }
  .how-media { order: -1; }
}

.how-steps {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.how-step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.how-step-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--red-bright), var(--red));
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  box-shadow: 0 8px 18px rgba(207, 44, 59, 0.35);
}
.how-step h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 0.25rem;
}
.how-step p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  max-width: 46ch;
}

.how-media {
  display: flex;
  justify-content: center;
}
.how-image {
  width: min(100%, 440px);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
}

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 55%, var(--ink) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 70% at 90% 50%, rgba(207, 44, 59, 0.28), transparent 65%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-logo {
  width: 64px;
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.4));
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.1;
  color: var(--cream);
}
.cta-sub {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  max-width: 44ch;
}
.cta-inner .btn { margin-top: 1.75rem; }

.cta-ball {
  position: absolute;
  top: 12%;
  right: 8%;
  width: 54px;
  opacity: 0.85;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
  animation: spin-ball 3.5s linear infinite;
}
@keyframes spin-ball {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (max-width: 700px) {
  .cta-ball { display: none; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.footer-logo { height: 30px; width: auto; opacity: 0.85; }
.footer-copy { color: var(--muted); font-size: 0.85rem; margin: 0; }
.footer-links { display: flex; gap: 1.25rem; font-size: 0.85rem; }
.footer-links a { color: var(--muted); transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--cream); }
.footer-disclaimer {
  flex-basis: 100%;
  margin: 0.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 70ch;
}

@media (max-width: 560px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-disclaimer { text-align: center; margin-left: auto; margin-right: auto; }
}
