/* ============================================
   Slide Sports — Splash Page Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a1a;
  --bg-secondary: #111128;
  --pink: #FF6EC7;
  --cyan: #00E5FF;
  --white: #FFFFFF;
  --gray: #8a8aad;
  --gray-light: #b0b0cc;
  --error: #ff4d6a;
  --success: #00E5FF;
  --font: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --gradient: linear-gradient(135deg, var(--pink), var(--cyan));
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

a {
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--white);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 2rem;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: var(--white);
}

.logo-slide {
  font-weight: 700;
}

.logo-sports {
  font-weight: 300;
}

/* --- Hero --- */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 6rem 2rem 4rem;
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  width: 100%;
  position: relative;
  z-index: 10;
}

.headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: var(--gray);
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

/* --- CTA Button --- */
.cta-wrapper {
  margin-bottom: 1rem;
}

.btn-cta {
  display: inline-block;
  padding: 1rem 3rem;
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white);
  background: var(--gradient);
  border: none;
  border-radius: 60px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.02em;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 110, 199, 0.3), 0 8px 30px rgba(0, 229, 255, 0.2);
}

.btn-cta:active {
  transform: translateY(0);
}

.btn-cta.hidden {
  display: none;
}

/* --- Waitlist Form --- */
.waitlist-form {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  margin-top: 0;
}

.waitlist-form.visible {
  max-height: 300px;
  opacity: 1;
  margin-top: 1.5rem;
}

.waitlist-form form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 420px;
  margin: 0 auto;
}

.form-group {
  width: 100%;
}

#email-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#email-input::placeholder {
  color: var(--gray);
}

#email-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
}

#email-input.input-error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(255, 77, 106, 0.15);
}

/* --- Checkbox --- */
.checkbox-group {
  text-align: left;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--gray-light);
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkmark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  margin-top: 1px;
}

.checkbox-label input:checked + .checkmark {
  background: var(--gradient);
  border-color: transparent;
}

.checkmark::after {
  content: '';
  display: none;
  width: 5px;
  height: 9px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.checkbox-label input:checked + .checkmark::after {
  display: block;
}

/* --- Form Error --- */
.form-error {
  font-size: 0.85rem;
  color: var(--error);
  min-height: 0;
  overflow: hidden;
  transition: min-height 0.2s;
  text-align: center;
  width: 100%;
}

.form-error:empty {
  min-height: 0;
}

/* --- Submit Button --- */
.btn-submit {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  background: var(--gradient);
  border: none;
  border-radius: 60px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  letter-spacing: 0.02em;
  width: 100%;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 110, 199, 0.3), 0 8px 30px rgba(0, 229, 255, 0.2);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --- Success Message --- */
.success-msg {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
}

.success-msg.visible {
  opacity: 1;
  max-height: 100px;
  margin-top: 1.5rem;
}

.success-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  color: var(--cyan);
  font-weight: 500;
}

.success-icon {
  width: 24px;
  height: 24px;
  color: var(--cyan);
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  font-size: 0.8rem;
  color: var(--gray);
}

/* --- Animations --- */
.anim-fade {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Particle Canvas --- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  display: none;
}

/* ============================================
   THEME A — Gradient Mesh / Aurora
   ============================================ */
.theme-a {
  background: var(--bg);
}

.theme-a::before,
.theme-a::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  animation: auroraFloat 12s ease-in-out infinite alternate;
}

.theme-a::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 110, 199, 0.18) 0%, transparent 70%);
  top: -10%;
  right: -5%;
}

.theme-a::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, transparent 70%);
  bottom: -10%;
  left: -5%;
  animation-delay: -6s;
}

@keyframes auroraFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ============================================
   THEME B — Animated Particles / Grid
   ============================================ */
.theme-b #particle-canvas {
  display: block;
}

/* ============================================
   THEME C — Football Field Gradient Wash
   ============================================ */
.theme-c {
  background: var(--bg);
}

.theme-c::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  /* Simulated field lines with CSS */
  background:
    /* Horizontal yard lines */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 8vh,
      rgba(255, 255, 255, 0.02) 8vh,
      rgba(255, 255, 255, 0.02) 8.2vh
    ),
    /* Center line accent */
    linear-gradient(
      0deg,
      transparent 48%,
      rgba(255, 255, 255, 0.04) 49.5%,
      rgba(255, 255, 255, 0.04) 50.5%,
      transparent 52%
    ),
    /* Miami Vice gradient wash */
    linear-gradient(
      135deg,
      rgba(255, 110, 199, 0.12) 0%,
      rgba(10, 10, 26, 0.8) 40%,
      rgba(10, 10, 26, 0.8) 60%,
      rgba(0, 229, 255, 0.1) 100%
    );
}

.theme-c::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  /* Vertical hash marks */
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 25%,
      rgba(255, 255, 255, 0.015) 25%,
      rgba(255, 255, 255, 0.015) 25.15%
    );
}

/* ============================================
   THEME D — Geometric / Low-Poly
   ============================================ */
.theme-d {
  background: var(--bg);
}

.theme-d::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background:
    /* Diamond grid */
    linear-gradient(45deg, rgba(255, 110, 199, 0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0, 229, 255, 0.04) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 110, 199, 0.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0, 229, 255, 0.04) 75%);
  background-size: 80px 80px;
  background-position: 0 0, 0 40px, 40px -40px, -40px 0;
  animation: geoShift 20s linear infinite;
}

.theme-d::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 110, 199, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(0, 229, 255, 0.08) 0%, transparent 50%);
}

@keyframes geoShift {
  0% { background-position: 0 0, 0 40px, 40px -40px, -40px 0; }
  100% { background-position: 80px 80px, 80px 120px, 120px 40px, 40px 80px; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .header {
    padding: 1rem 1.25rem;
  }

  .hero {
    padding: 5rem 1.25rem 3rem;
  }

  .btn-cta {
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
  }

  .footer {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
  }

  /* Scale down aurora blobs on mobile */
  .theme-a::before {
    width: 350px;
    height: 350px;
  }

  .theme-a::after {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 4rem 1rem 2rem;
  }

  .headline {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1rem;
  }
}
