/* ============================================================
   SportBox — white & green theme
   ============================================================ */

:root {
  --green: #16a34a;
  --green-dark: #15803d;
  --green-light: #22c55e;
  --green-soft: #dcfce7;
  --green-faint: #f0fdf4;
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e2e8f0;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(22, 163, 74, 0.18);
  --radius: 18px;
  --container: 1120px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Sora", var(--font-sans);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--lg svg { width: 20px; height: 20px; }

.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.btn--primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.btn--ghost {
  background: var(--green-faint);
  color: var(--green-dark);
}
.btn--ghost:hover {
  background: var(--green-soft);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}
.btn--dark:hover {
  background: #1e293b;
  transform: translateY(-2px);
}

/* ---------- Eyebrow / section head ---------- */
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--green-light); }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
  margin-bottom: 12px;
}
.section-head p { color: var(--ink-soft); font-size: 17px; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; font-family: var(--font-display); }
.nav__logo-icon {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  box-shadow: var(--shadow-sm);
}
.nav__logo-img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.nav__logo-icon--fallback { display: none; }
.nav__links { display: flex; gap: 32px; }
.nav__links a { font-weight: 500; color: var(--ink-soft); transition: color 0.15s ease; }
.nav__links a:hover { color: var(--green-dark); }
.nav__cta { padding: 9px 20px; font-size: 14px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
}
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.25s ease; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 80px; background: linear-gradient(180deg, var(--green-faint) 0%, var(--white) 100%); }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; pointer-events: none; }
.hero__blob--1 { width: 420px; height: 420px; background: var(--green-soft); top: -140px; right: -80px; }
.hero__blob--2 { width: 360px; height: 360px; background: #bbf7d0; bottom: -160px; left: -100px; }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--green-soft);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 26px;
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15); }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 58px);
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.text-accent { color: var(--green); }

.hero__subtitle { color: var(--ink-soft); font-size: 18px; max-width: 480px; margin-bottom: 32px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero__stats { display: flex; gap: 40px; }
.stat strong {
  display: inline;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--green-dark);
}
.stat span { font-size: 14px; color: var(--ink-soft); }

/* Phone mockup */
.hero__phone { position: relative; display: flex; justify-content: center; }
.phone {
  width: 250px;
  padding: 12px;
  border-radius: 36px;
  background: var(--ink);
  box-shadow: var(--shadow-md), 0 30px 60px rgba(22, 163, 74, 0.25);
  position: relative;
}
.phone__notch { width: 90px; height: 22px; background: var(--ink); border-radius: 12px; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); z-index: 2; }
.phone__screen {
  border-radius: 26px;
  background: linear-gradient(160deg, var(--green-faint), #fff 55%);
  padding: 40px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 500px;
  overflow: hidden;
}

/* App listing screen */
.app__top { display: flex; align-items: center; gap: 12px; }
.app__logo { width: 52px; height: 52px; border-radius: 14px; box-shadow: var(--shadow-md); object-fit: cover; }
.app__logo--fallback {
  display: none;
  place-items: center;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  font-weight: 800;
  font-size: 26px;
}
.app__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; }

.app__meta { display: flex; flex-direction: column; gap: 4px; }
.app__rating { display: flex; align-items: center; gap: 8px; }
.app__stars { color: #f59e0b; letter-spacing: 1px; font-size: 15px; }
.app__rating strong { font-family: var(--font-display); font-size: 15px; color: var(--ink); }
.app__downloads { font-size: 12px; color: var(--ink-soft); }

.app__install { flex: 1; display: flex; align-items: center; }
.install-btn {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: center;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.install-btn:hover { transform: translateY(-2px); box-shadow: 0 24px 60px rgba(22, 163, 74, 0.28); }

.app__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.app__features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
}
.app__features svg { width: 13px; height: 13px; color: var(--green); flex-shrink: 0; }

.float-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.float-card--1 { top: 18%; left: 0; animation: floaty 5s ease-in-out infinite; }
.float-card--2 { bottom: 16%; right: 0; animation: floaty 6s ease-in-out 1s infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Features ---------- */
.features { padding: 96px 0; }
.features__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 24px;
  background: var(--green-soft);
  border-radius: 14px;
  margin-bottom: 18px;
}
.card h3 { font-family: var(--font-display); font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Download ---------- */
.download { padding: 40px 0 96px; }
.download__panel {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: 28px;
  padding: 64px 32px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.download__panel h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 38px); margin-bottom: 12px; }
.download__panel > p { color: rgba(255,255,255,0.9); margin-bottom: 32px; }

.download__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 22px; }
.download__platform { background: #fff; color: var(--ink); }
.download__platform:hover { background: var(--green-faint); color: var(--green-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.download__note { font-size: 14px; color: rgba(255,255,255,0.8); margin: 0 0 28px; }

.download__features {
  list-style: none;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255,255,255,0.25);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}
.download__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.95);
  font-size: 14px;
  font-weight: 500;
}
.download__feature-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.16);
  font-size: 16px;
}
@media (max-width: 520px) {
  .download__features { grid-template-columns: 1fr; }
}

/* ---------- WhatsApp ---------- */
.whatsapp { padding: 0 0 40px; margin-top: -56px; position: relative; z-index: 1; }
.whatsapp-card {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 22px;
  text-align: left;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18); }
.whatsapp-card__left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.whatsapp-card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
}
.whatsapp-card__icon svg { width: 28px; height: 28px; }
.whatsapp-card__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.whatsapp-card__info strong { font-size: 16px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.whatsapp-card__info span { font-size: 13px; color: var(--ink-soft); }
.whatsapp-card__btn {
  flex-shrink: 0;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 26px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.whatsapp-card__btn:hover { background: #1fbb5c; transform: translateY(-2px); box-shadow: var(--shadow-md); }
@media (max-width: 400px) {
  .whatsapp-card { flex-direction: column; text-align: center; }
  .whatsapp-card__left { justify-content: center; }
  .whatsapp-card__btn { width: 100%; }
}

/* ---------- Reviews ---------- */
.reviews { padding: 96px 0; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.review:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.review__top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.review__avatar {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.review h3 { font-family: var(--font-display); font-size: 16px; }
.review__stars { color: #f59e0b; font-size: 13px; }
.review p { color: var(--ink-soft); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { padding: 96px 0; background: var(--green-faint); }
.faq__list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 22px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq__item[open] { border-color: var(--green-light); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--green);
  transition: transform 0.25s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--ink-soft); padding: 0 0 20px; }

/* ---------- Footer ---------- */
.footer { padding: 28px 0; border-top: 1px solid var(--line); }
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}
.footer a { color: var(--green-dark); font-weight: 600; }
.footer a:hover { text-decoration: underline; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 72px; }
  .hero__subtitle { margin: 0 auto 32px; }
  .hero__actions, .hero__stats { justify-content: center; }
  .hero__stats { gap: 28px; }
  .float-card--1 { left: 4%; }
  .float-card--2 { right: 4%; }
  .features__grid { grid-template-columns: 1fr 1fr; }
  .reviews__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 12px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .features__grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .download__panel { padding: 48px 24px; }
  .footer__inner { flex-direction: column; text-align: center; }
}
