/* ============================================================
   Pakistan Pickleball Federation — Coming Soon
   Palette:
     --court-deep   #0B2E1B  (background, deep court green)
     --court-shadow #06200F  (darker edge / gradient)
     --lime         #CFEA3D  (signature accent, ball/lime)
     --lime-soft    #E9FF9C  (glow highlight)
     --mint         #CFE9C6  (secondary text)
     --paper        #F5FBEF  (near-white)
   ============================================================ */

* { box-sizing: border-box; }

:root{
  --court-deep:   #0B2E1B;
  --court-shadow: #06200F;
  --lime:         #CFEA3D;
  --lime-soft:    #E9FF9C;
  --mint:         #CFE9C6;
  --paper:        #F5FBEF;

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body{
  margin: 0;
  padding: 0;
  height: 100%;
  background: radial-gradient(120% 140% at 50% -10%, #123D24 0%, var(--court-deep) 45%, var(--court-shadow) 100%);
  color: var(--paper);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection{ background: var(--lime); color: var(--court-shadow); }

/* ---------- Ambient court texture ---------- */
.court-lines{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.14;
}
.court-lines .line{
  position: absolute;
  background: var(--paper);
}
.line-h{
  top: 50%;
  left: 5%;
  right: 5%;
  height: 2px;
  transform: translateY(-50%);
}
.line-v{
  left: 50%;
  top: 8%;
  bottom: 8%;
  width: 2px;
  transform: translateX(-50%);
}
.kitchen{
  position: absolute;
  left: 5%;
  right: 5%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--paper) 0 14px, transparent 14px 26px);
}
.kitchen-top{ top: 32%; }
.kitchen-bottom{ bottom: 32%; }

.floating-balls{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.fball{
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--lime-soft), var(--lime) 55%, #9CC22B 100%);
  filter: blur(1px);
  opacity: 0.16;
  animation: drift 16s ease-in-out infinite;
}
.fb1{ top: 12%; left: 8%;  width: 60px; height: 60px; animation-duration: 18s; }
.fb2{ top: 68%; left: 4%;  width: 30px; height: 30px; animation-duration: 13s; animation-delay: -4s;}
.fb3{ top: 20%; right: 8%; width: 38px; height: 38px; animation-duration: 15s; animation-delay: -7s;}
.fb4{ top: 74%; right: 12%;width: 52px; height: 52px; animation-duration: 20s; animation-delay: -2s;}

@keyframes drift{
  0%,100%{ transform: translate(0,0); }
  50%{ transform: translate(18px, -26px); }
}

/* ---------- Layout ---------- */
.wrap{
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(28px, 6vw, 64px) 24px 32px;
}

.badge-header{
  display: flex;
  justify-content: center;
  margin-bottom: clamp(8px, 2vw, 16px);
}
.badge-logo{
  width: clamp(120px, 18vw, 190px);
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.45));
  animation: badgeIn 900ms cubic-bezier(.2,.9,.25,1) both;
}
@keyframes badgeIn{
  from{ opacity: 0; transform: translateY(-14px) scale(0.94); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

.hero{
  width: 100%;
  max-width: 780px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 16px;
  border: 1px solid rgba(207,233,198,0.28);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  background: rgba(255,255,255,0.03);
  animation: fadeUp 700ms 120ms cubic-bezier(.2,.9,.25,1) both;
}
.dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(207,234,61,0.6);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(207,234,61,0.55); }
  70%{ box-shadow: 0 0 0 8px rgba(207,234,61,0); }
  100%{ box-shadow: 0 0 0 0 rgba(207,234,61,0); }
}

.headline{
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.01em;
  font-size: clamp(38px, 9vw, 84px);
  margin: 0 0 20px;
  color: var(--paper);
  animation: fadeUp 750ms 220ms cubic-bezier(.2,.9,.25,1) both;
}
.headline .accent{
  color: var(--lime);
  text-shadow: 0 0 44px rgba(207,234,61,0.35);
}

.subhead{
  max-width: 560px;
  margin: 0 0 clamp(28px, 5vw, 44px);
  font-size: clamp(15px, 2vw, 17.5px);
  line-height: 1.6;
  color: var(--mint);
  font-weight: 500;
  animation: fadeUp 800ms 320ms cubic-bezier(.2,.9,.25,1) both;
}

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

/* ---------- Rally animation (signature element) ---------- */
.rally{
  position: relative;
  width: min(100%, 460px);
  height: 120px;
  margin: 0 0 clamp(32px, 5vw, 48px);
  animation: fadeUp 900ms 420ms cubic-bezier(.2,.9,.25,1) both;
}
.net{
  position: absolute;
  left: 50%;
  top: 18px;
  bottom: 26px;
  width: 3px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, rgba(245,251,239,0.55) 0 6px, transparent 6px 12px);
  border-radius: 3px;
}
.net::before{
  content: '';
  position: absolute;
  top: -8px;
  left: -9px;
  right: -9px;
  height: 4px;
  background: var(--paper);
  border-radius: 2px;
  opacity: 0.65;
}
.paddle{
  position: absolute;
  bottom: 22px;
  width: 34px;
  height: 46px;
  border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%;
  background: linear-gradient(160deg, var(--lime) 0%, #9CC22B 100%);
  box-shadow: inset 0 -6px 10px rgba(0,0,0,0.18), 0 6px 16px rgba(0,0,0,0.35);
}
.paddle::after{
  content: '';
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 6px;
  height: 16px;
  transform: translateX(-50%);
  background: #6f8a24;
  border-radius: 3px;
}
.paddle-left{ left: 4%; animation: paddleHitLeft 2.6s ease-in-out infinite; transform-origin: bottom center; }
.paddle-right{ right: 4%; animation: paddleHitRight 2.6s ease-in-out infinite; transform-origin: bottom center; }

@keyframes paddleHitLeft{
  0%, 8%{ transform: rotate(0deg); }
  14%{ transform: rotate(-22deg); }
  22%, 100%{ transform: rotate(0deg); }
}
@keyframes paddleHitRight{
  0%, 46%{ transform: rotate(0deg); }
  52%{ transform: rotate(22deg); }
  60%, 100%{ transform: rotate(0deg); }
}

.ball{
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  bottom: 40px;
  left: 15%;
  background: radial-gradient(circle at 32% 28%, var(--lime-soft), var(--lime) 60%, #9CC22B 100%);
  box-shadow: 0 0 14px rgba(207,234,61,0.55);
  animation: rallyPath 2.6s cubic-bezier(.42,0,.58,1) infinite;
}
.hole{
  position: absolute;
  width: 2.4px;
  height: 2.4px;
  border-radius: 50%;
  background: rgba(20,50,10,0.55);
}
.h1{ top: 4px; left: 8px; } .h2{ top: 9px; left: 3px; } .h3{ top: 9px; left: 14px; }
.h4{ top: 14px; left: 8px; } .h5{ top: 6px; left: 13px; } .h6{ top: 15px; left: 13px; }

@keyframes rallyPath{
  0%   { left: 15%; bottom: 40px; transform: scale(1); }
  22%  { left: 42%; bottom: 92px; transform: scale(1.05); }
  50%  { left: 68%; bottom: 40px; transform: scale(1); }
  73%  { left: 42%; bottom: 92px; transform: scale(1.05); }
  100% { left: 15%; bottom: 40px; transform: scale(1); }
}

.ball-shadow{
  position: absolute;
  bottom: 20px;
  left: 15%;
  width: 22px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  filter: blur(1px);
  animation: shadowPath 2.6s cubic-bezier(.42,0,.58,1) infinite;
}
@keyframes shadowPath{
  0%   { left: 15%; opacity: 0.4; transform: scale(1); }
  22%  { left: 42%; opacity: 0.18; transform: scale(0.6); }
  50%  { left: 68%; opacity: 0.4; transform: scale(1); }
  73%  { left: 42%; opacity: 0.18; transform: scale(0.6); }
  100% { left: 15%; opacity: 0.4; transform: scale(1); }
}

.hit-flash{
  position: absolute;
  bottom: 36px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0;
  filter: blur(2px);
}
.flash-left{ left: 12%; animation: flash 2.6s ease-in-out infinite; }
.flash-right{ right: 12%; animation: flash 2.6s ease-in-out infinite 1.3s; }
@keyframes flash{
  0%, 6%{ opacity: 0; transform: scale(0.6); }
  10%{ opacity: 0.55; transform: scale(1.2); }
  16%, 100%{ opacity: 0; transform: scale(0.6); }
}

/* ---------- CTA ---------- */
.cta-row{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  animation: fadeUp 900ms 520ms cubic-bezier(.2,.9,.25,1) both;
}

.cta-primary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--court-shadow);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(207,234,61,0.25);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}
.cta-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(207,234,61,0.38);
  background: var(--lime-soft);
}
.cta-primary:active{ transform: translateY(0); }

.social-row{
  display: flex;
  gap: 14px;
}
.social-icon{
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(207,233,198,0.28);
  color: var(--mint);
  text-decoration: none;
  transition: border-color 200ms ease, color 200ms ease, transform 200ms ease, background 200ms ease;
}
.social-icon svg{ width: 18px; height: 18px; }
.social-icon:hover{
  color: var(--court-shadow);
  background: var(--lime);
  border-color: var(--lime);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.site-footer{
  position: relative;
  z-index: 1;
  margin-top: clamp(24px, 6vw, 40px);
  font-size: 12.5px;
  color: rgba(207,233,198,0.55);
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px){
  .rally{ height: 104px; }
  .paddle{ width: 26px; height: 36px; bottom: 20px; }
  .badge-logo{ width: 108px; }
  .social-row{ gap: 10px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
