/* PitchPilot Video Website
   Dark navy + teal baseball analytics aesthetic */

:root {
  --navy-deep: #070f1a;
  --navy: #0a1628;
  --navy-mid: #0d2137;
  --navy-lift: #132a45;
  --teal: #2ec4b6;
  --teal-dim: #1a9e92;
  --teal-soft: rgba(46, 196, 182, 0.14);
  --teal-line: rgba(46, 196, 182, 0.28);
  --white: #f4f7fb;
  --muted: #9aadc2;
  --muted-soft: #6d8299;
  --max: 920px;
  --font-display: "Outfit", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--white);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(46, 196, 182, 0.09), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 60%, rgba(19, 42, 69, 0.8), transparent 50%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 40%, var(--navy-mid) 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(var(--teal-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--teal-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 35%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 35%, black 10%, transparent 70%);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  flex-shrink: 0;
  display: block;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: var(--white);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.75rem 1.5rem 2rem;
  text-align: center;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--teal);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.lede {
  max-width: 36rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.0625rem;
}

.video-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem 1.5rem 3rem;
}

.video-frame {
  position: relative;
}

.video-glow {
  position: absolute;
  inset: -8% -4%;
  background: radial-gradient(ellipse at center, rgba(46, 196, 182, 0.18), transparent 65%);
  z-index: 0;
  pointer-events: none;
}

.video-embed {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--navy-deep);
  border: 1px solid var(--teal-line);
  box-shadow:
    0 0 0 1px rgba(7, 15, 26, 0.6),
    0 24px 48px rgba(0, 0, 0, 0.45);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.prototype-label {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid var(--teal-line);
  border-radius: 4px;
}

.video-copy {
  margin-top: 1.75rem;
  max-width: 38rem;
}

.video-copy p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.video-copy p:last-child {
  margin-bottom: 0;
}

.credit {
  color: var(--white) !important;
  font-weight: 500;
}

.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  text-align: center;
  border-top: 1px solid rgba(46, 196, 182, 0.15);
}

.contact h2 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin-bottom: 1rem;
}

.contact-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.contact-email {
  display: inline-block;
  color: var(--teal);
  text-decoration: none;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  transition: color 0.15s ease;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: #5ee0d4;
  text-decoration: underline;
  outline: none;
}

.btn-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy-deep);
  background: var(--teal);
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-email:hover,
.btn-email:focus-visible {
  background: #5ee0d4;
  outline: none;
}

.btn-email:active {
  transform: translateY(1px);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  border-top: 1px solid rgba(46, 196, 182, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
}

.footer-tag {
  font-size: 0.9375rem;
  color: var(--teal);
}

.copyright {
  font-size: 0.875rem;
  color: var(--muted-soft);
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 1.25rem;
  }

  .hero {
    padding: 2rem 1.25rem 1.5rem;
  }

  .video-section {
    padding: 0.25rem 1.25rem 2.5rem;
  }

  .video-embed {
    border-radius: 8px;
  }

  .video-copy {
    margin-top: 1.5rem;
  }

  .contact {
    padding: 2rem 1.25rem 3rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.75rem 1.25rem 2rem;
  }
}

@media (min-width: 768px) {
  .hero {
    padding-top: 3.5rem;
  }

  .lede {
    font-size: 1.125rem;
  }

  .video-copy {
    font-size: 1.0625rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn-email,
  .contact-email {
    transition: none;
  }
}
