@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@300;400;500;600;700&display=swap');

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

:root {
  --green:      #007018;
  --green-dark: #003C06;
  --grey:       #343434;
  --grey-light: #EDF3EC;
  --white:      #ffffff;
  --text-dark:  #0D1F0E;
  --text-body:  rgba(15, 35, 20, 0.78);
  --radius:     14px;
  --max-w:      1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', 'Readex Pro', sans-serif;
  color: var(--text-dark);
  background: #EDF3EC;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* ── Layout Helpers ───────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #EDF3EC;
  color: #0D1F0E;
  overflow: hidden;
  padding-top: 108px;
  box-sizing: border-box;
}

/* Court diagram — right half only, never touches text */
.hero-court {
  position: absolute;
  left: 50%;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-court svg {
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
}

/* Soft gradient edge so court fades cleanly into left half */
.hero-court::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(to right, #EDF3EC, transparent);
  z-index: 1;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 28px 0;
}

.hero-logo {
  display: block;
  height: 52px;
  width: auto;
}

.hero-inner {
  max-width: 620px;
  margin: 0;
  padding: 0;
}

.hero-title {
  font-family: 'Barlow Condensed', 'Readex Pro', sans-serif;
  font-size: clamp(4.2rem, 8vw, 8rem);
  font-weight: 700;
  line-height: 1.0;
  color: #0D1F0E;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.hero-accent {
  color: #007018;
}

.hero-desc {
  font-family: 'Barlow', 'Readex Pro', sans-serif;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 400;
  color: rgba(15, 35, 20, 0.78);
  line-height: 1.7;
  margin-bottom: 44px;
  max-width: 420px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: hero-bounce 2.2s ease-in-out infinite;
}
@keyframes hero-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-hint { animation: none; }
}

/* Mobile court — hidden on desktop */
.hero-court-mobile {
  display: none;
  width: 224px;
  height: 224px;
  margin: -100px auto 20px;
}
.hero-court-mobile svg { width: 100%; height: 100%; }

/* Mobile: small court above title */
@media (max-width: 768px) {
  .hero { text-align: center; }
  .hero-court-desktop { display: none; }
  .hero-court-mobile { display: block; }
  .hero-inner { max-width: 100%; margin: 0 auto; }
  .hero-logo { margin: 0 auto 40px; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(0,149,33,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,149,33,0.35); }

.btn-secondary {
  background: transparent;
  color: var(--grey);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid #d1d1d1;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--green); color: var(--green); }

/* ── Store badge buttons ──────────────────────────────── */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1.5px solid var(--grey);
  background: transparent;
  color: var(--grey);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-store:hover {
  border-color: #C5E600;
  color: #C5E600;
  transform: translateY(-2px);
}

.btn-store-light {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-store-light:hover {
  border-color: #C5E600;
  color: #C5E600;
  transform: translateY(-2px);
}

.store-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.store-sub {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.7;
}

.store-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ── Section shared ───────────────────────────────── */
section { padding: 96px 0; }

.section-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Barlow Condensed', 'Readex Pro', sans-serif;
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-subtitle {
  font-family: 'Barlow', 'Readex Pro', sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--text-body);
  max-width: 560px;
  line-height: 1.7;
}

/* ── How It Works ─────────────────────────────────── */
.how {
  background: #ffffff;
  position: relative;
}

.how-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.how-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.how .container {
  position: relative;
  z-index: 1;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 72px;
}

.how-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.how-step-reverse {
  direction: rtl;
}
.how-step-reverse > * {
  direction: ltr;
}

.how-step-content {
  display: flex;
  flex-direction: column;
}

.how-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  /* Tennis ball yellow-green base */
  background-color: #C5E600;
  /* Two arcs on opposite diagonal quadrants — the real tennis ball seam */
  /* Arc 1: top-center → left-center, sweeping through upper-left quadrant */
  /* Arc 2: bottom-center → right-center, sweeping through lower-right quadrant */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24,0 Q8,8 0,24' fill='none' stroke='rgba(255,255,255,0.65)' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M24,48 Q40,40 48,24' fill='none' stroke='rgba(255,255,255,0.65)' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  color: #0D3008;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.how-step-content h3 {
  font-family: 'Barlow Condensed', 'Readex Pro', sans-serif;
  font-size: clamp(2.8rem, 4.5vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
  line-height: 1.1;
}

.how-step-content p {
  font-family: 'Barlow', 'Readex Pro', sans-serif;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  color: var(--text-body);
  line-height: 1.7;
}

.how-step-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 264px;
  height: 528px;
  background: var(--grey);
  border-radius: 36px;
  padding: 14px 10px;
  box-shadow:
    0 0 0 2px #555,
    0 24px 60px rgba(0,0,0,0.18);
  margin: 0 auto;
}

.phone-notch {
  width: 80px;
  height: 22px;
  background: var(--grey);
  border-radius: 0 0 14px 14px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #e8f5e9;
  border-radius: 26px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .how-step,
  .how-step.how-step-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    direction: ltr;
  }
  .how-step.how-step-reverse .how-step-image {
    order: 1;
  }
  .how-step.how-step-reverse .how-step-content {
    order: 0;
  }
}

/* ── Tactic Board ─────────────────────────────────── */
.tactic-board {
  background: #0D3008;
  padding: 96px 0;
  overflow: hidden;
}

.tactic-board .section-label {
  color: #C5E600;
  opacity: 1;
}

.tactic-board .section-title {
  color: #ffffff;
}

.tactic-board .section-subtitle {
  color: rgba(255,255,255,0.65);
}

.tactic-board-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px;
  align-items: center;
}

.tactic-board-text {
  display: flex;
  flex-direction: column;
}

.tactic-board-device {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* iPad in landscape orientation */
.ipad-frame {
  position: relative;
  width: 620px;
  height: 450px;
  background: #1a1a1a;
  border-radius: 28px;
  padding: 16px 20px;
  box-shadow:
    0 0 0 2px #444,
    0 0 0 4px #222,
    0 40px 80px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

/* Camera dot — right edge center in landscape */
.ipad-camera {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333;
  border: 1px solid #555;
}

/* Home button — left edge center in landscape */
.ipad-home {
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 48px;
  background: #333;
  border-radius: 3px;
}

.ipad-screen {
  width: 100%;
  height: 100%;
  background: #1b2e1c;
  border-radius: 16px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .tactic-board-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .ipad-frame {
    width: 100%;
    max-width: 560px;
    height: 0;
    padding-bottom: 72%;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    margin: 0 auto;
  }
  .ipad-screen {
    position: absolute;
    inset: 16px 20px;
    width: auto;
    height: auto;
  }
  .ipad-camera {
    right: 6px;
  }
}

/* ── Features ─────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.feature-card {
  background: #ffffff;
  border: 1.5px solid rgba(0, 112, 24, 0.15);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: var(--green);
  box-shadow: 0 4px 24px rgba(0,149,33,0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #C5E600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}

.feature-card h3 {
  font-family: 'Barlow Condensed', 'Readex Pro', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.feature-card p {
  font-family: 'Barlow', 'Readex Pro', sans-serif;
  font-size: 1.3rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* ── CTA Banner ───────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white);
  text-align: center;
  padding: 96px 0;
}

.cta-banner h2 {
  font-family: 'Barlow Condensed', 'Readex Pro', sans-serif;
  font-size: clamp(3.8rem, 7.5vw, 6.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.cta-banner p {
  font-family: 'Barlow', 'Readex Pro', sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  line-height: 1.7;
}

.cta-banner .btn-primary { display: inline-block; }

/* ── Footer ───────────────────────────────────────── */
footer {
  background: var(--grey);
  color: rgba(255,255,255,0.6);
  padding: 48px 0;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo { height: 28px; opacity: 0.7; filter: invert(1) brightness(10); }

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a:hover { color: var(--white); }
footer a:hover { color: var(--white); }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 640px) {
  .hero-inner { padding: 88px 0 72px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
