/* ============================================
   PADER Landing — style.css
   Design tokens derived from PADER brand system
   ============================================ */

/* --- Tokens --- */
:root {
  /* Brand palette */
  --pd-primary: #ea5262;
  --pd-primary-hover: #f06e7c;
  --pd-primary-glow: rgba(234, 82, 98, 0.25);
  --pd-cream: #f0ede5;
  --pd-cream-soft: rgba(240, 237, 229, 0.7);
  --pd-cream-muted: rgba(240, 237, 229, 0.35);

  /* Dark base (warm charcoal from PADER dark theme) */
  --pd-bg: #1c1818;
  --pd-bg-deep: #141111;
  --pd-surface: rgba(255, 255, 255, 0.04);

  /* Court lines */
  --pd-court: rgba(234, 82, 98, 0.07);

  /* Typography */
  --font-display: 'Josefin Sans', sans-serif;
  --font-body: 'Raleway', sans-serif;

  /* Timing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --stagger: 0.12s;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background: var(--pd-bg);
  color: var(--pd-cream);
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

/* --- Court SVG background --- */
.court-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--pd-court);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: court-reveal 2.5s var(--ease-out) 0.3s forwards;
}

@keyframes court-reveal {
  to { opacity: 1; }
}

/* --- Background Decorations --- */
.bg-decorations {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-decor {
  position: absolute;
  color: var(--pd-primary);
  opacity: 0.035;
  filter: blur(1px);
  pointer-events: none;
}

/* --- Particles canvas --- */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* --- Landing container --- */
.landing {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* --- Hero --- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  gap: 0;
}

/* Logo wrapper */
.hero__logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  animation: reveal-up 0.9s var(--ease-out) 0.2s forwards;
}

.hero__stiker {
  width: clamp(100px, 15vw, 120px);
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 20px var(--pd-primary-glow));
}

.hero__brand-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--pd-cream);
  margin: 0;
  line-height: 1;
}

/* Tagline */
.hero__tagline {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pd-cream-muted);
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(10px);
  animation: reveal-up 0.8s var(--ease-out) calc(0.2s + var(--stagger) * 2) forwards;
}

.hero__tagline-sep {
  display: inline-block;
  margin: 0 0.75em;
  color: var(--pd-primary);
  font-weight: 700;
}

/* Headline */
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--pd-cream);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(10px);
  animation: reveal-up 0.8s var(--ease-out) calc(0.2s + var(--stagger) * 3) forwards;
}

.hero__accent {
  font-weight: 700;
  color: var(--pd-primary);
  position: relative;
}

/* Sub copy */
.hero__sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--pd-cream-soft);
  max-width: 480px;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(10px);
  animation: reveal-up 0.8s var(--ease-out) calc(0.2s + var(--stagger) * 4) forwards;
}

.hero__sub em {
  font-style: normal;
  color: var(--pd-cream);
  font-weight: 600;
}

/* CTA button */
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--pd-primary);
  border: none;
  border-radius: 100px;
  padding: 0.85rem 2rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  box-shadow: 0 0 0 0 var(--pd-primary-glow);
  opacity: 0;
  transform: translateY(10px);
  animation: reveal-up 0.8s var(--ease-out) calc(0.2s + var(--stagger) * 5) forwards;
}

.hero__cta:hover {
  background: var(--pd-primary-hover);
  box-shadow: 0 8px 40px var(--pd-primary-glow);
  transform: translateY(-2px);
}

.hero__cta:active {
  transform: translateY(0);
}

.hero__cta svg {
  transition: transform 0.3s var(--ease-out);
}

.hero__cta:hover svg {
  transform: translateX(4px);
}

/* Coming soon / Labels footer */
.hero__footer-labels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  opacity: 0;
  transform: translateY(8px);
  animation: reveal-up 0.8s var(--ease-out) calc(0.2s + var(--stagger) * 6) forwards;
}

.hero__soon, .hero__club-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pd-cream-muted);
}

.hero__label-sep {
  color: var(--pd-primary);
  opacity: 0.3;
  font-weight: 300;
}

.hero__soon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pd-primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--pd-cream-muted);
}

/* --- Animations --- */
@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 var(--pd-primary-glow);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 6px transparent;
  }
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .hero {
    padding: 2.5rem 1.25rem 1.5rem;
  }

  .hero__stiker {
    width: clamp(80px, 25vw, 100px);
  }

  .hero__brand-name {
    font-size: 2.2rem;
    letter-spacing: 0.12em;
  }

  .hero__tagline {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    margin-bottom: 2rem;
  }

  .hero__headline {
    font-size: 1.75rem;
  }

  .hero__sub {
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }

  .hero__cta {
    font-size: 0.88rem;
    padding: 0.8rem 1.6rem;
  }

  .hero__footer-labels {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 2.5rem;
  }

  .hero__label-sep {
    display: none;
  }

  .hero__soon, .hero__club-label {
    font-size: 0.7rem;
  }

  .bg-decor {
    width: clamp(100px, 40vw, 150px) !important;
  }
}

@media (min-width: 1200px) {
  .hero__stiker {
    width: 220px;
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  .court-bg {
    opacity: 1;
  }
}
