/* ============================================
   Padel Pill Rally – Placeholder
   Colors: yellow, orange, blue, sky blue
   ============================================ */

:root {
  --yellow: #ffd54f;
  --orange: #ff8f00;
  --blue: #1565c0;
  --sky: #4fc3f7;
  --sky-light: #b3e5fc;
  --white: #fff;
  --dark: #0d2137;
  --font: 'Outfit', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: linear-gradient(160deg, var(--sky-light) 0%, var(--sky) 35%, var(--blue) 100%);
  color: var(--dark);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--orange);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

/* Header */
.site-header {
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 60rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-container {
  display: inline-block;
  width: 3.5rem;
  flex-shrink: 0;
  text-align: center;
}

.logo-ball {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--yellow), var(--orange));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: sphere-to-pill 3s ease-in-out infinite;
  display: inline-block;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--blue);
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.nav a:hover {
  background: var(--sky);
  color: var(--white);
}

/* Main */
.main {
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  flex: 1;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 0rem 0rem;
  position: relative;
}

.court-graphic {
  position: relative;
  width: 100%;
  height: 300px;
  margin-top: 2rem;
  pointer-events: none;
  overflow: hidden;
}

.court-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}
.court-line--h {
  width: 80%;
  height: 4px;
  left: 10%;
  top: 50%;
  transform: translateY(-50%);
  animation: line-glow 3s ease-in-out infinite;
}
.court-line--v {
  width: 4px;
  height: 60%;
  left: 50%;
  top: 20%;
  transform: translateX(-50%);
  animation: line-glow 3s ease-in-out infinite 0.5s;
}

.ball {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--yellow), var(--orange));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.ball--hero {
  width: 2.5rem;
  height: 2.5rem;
  right: 15%;
  top: 35%;
  animation: ball-rally 4s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--blue);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
  animation: title-in 0.8s ease-out;
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--dark);
  margin: 0 0 1rem;
  opacity: 0.95;
  position: relative;
  z-index: 1;
  animation: title-in 0.8s ease-out 0.15s both;
}

/* Waitlist */
.waitlist {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  margin-top: -1rem;
  border: 2px solid var(--sky);
  position: relative;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.waitlist h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: var(--blue);
}

.waitlist > p {
  margin: 0 0 1.5rem;
  color: var(--dark);
  opacity: 0.9;
}

.waitlist-form {
  max-width: 28rem;
  margin: 0 auto;
}

.form-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.waitlist-input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font);
  border: 2px solid var(--sky);
  border-radius: 0.5rem;
  background: var(--white);
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.waitlist-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.waitlist-input::placeholder {
  color: rgba(13, 33, 55, 0.5);
}

.waitlist-button {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-family: var(--font);
  font-weight: 600;
  color: var(--white);
  background: var(--orange);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.waitlist-button:hover:not(:disabled) {
  background: #e65100;
  transform: translateY(-1px);
}

.waitlist-button:active:not(:disabled) {
  transform: translateY(0);
}

.waitlist-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.5rem;
}

.form-message--success {
  color: #2e7d32;
}

.form-message--error {
  color: #c62828;
}

.pill-graphic {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Footer */
.site-footer {
  padding: 1.5rem 1.5rem;
  text-align: center;
  background: var(--dark);
  color: var(--sky-light);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

/* Animations */
@keyframes sphere-to-pill {
  0%, 100% {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
  }
  50% {
    width: 3.5rem;
    height: 2rem;
    border-radius: 1rem;
  }
}

@keyframes ball-rally {
  0%, 100% { right: 15%; top: 35%; transform: scale(1); }
  25% { right: 75%; top: 40%; transform: scale(1.05); }
  50% { right: 70%; top: 60%; transform: scale(1); }
  75% { right: 20%; top: 55%; transform: scale(1.05); }
}

@keyframes line-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

@keyframes title-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pill-bob {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo-ball,
  .ball--hero,
  .court-line--h,
  .court-line--v,
  .pill { animation: none; }
  .hero-title,
  .hero-tagline { animation: none; }
}
