/* ═══════════════════════════════════════════════════
   HOMEPAGE — Hero, Trust Bar, All Sections
   SportSweeper Theme
   ═══════════════════════════════════════════════════ */

/* ─── Hero ────────────────────────────────────────── */

.hero {
  background: var(--green-950);
  position: relative;
  overflow: hidden;
  min-height: auto;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(22, 163, 74, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(22, 163, 74, 0.08) 0%, transparent 60%);
}

/* Turf texture overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2322c55e' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 2.5rem 0 3rem;
}

.hero-text {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green-400);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: var(--green-400);
  font-weight: 500;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--slate-300);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-proof {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.proof-item {
  display: flex;
  flex-direction: column;
}

.proof-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.proof-label {
  font-size: 0.75rem;
  color: var(--slate-400);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Hero visual / image frame */
.hero-visual {
  position: relative;
}

.hero-image-frame {
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.03));
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-image-frame::before {
  content: '[ Product Hero Image ]';
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green-600);
  opacity: 0.5;
}

.hero-image-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.hero-image-frame:has(img)::before {
  display: none;
}

.hero-floating-badge {
  position: absolute;
  bottom: -1rem;
  left: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.floating-icon {
  width: 40px;
  height: 40px;
  background: var(--green-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.floating-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-800);
}

.floating-text span {
  display: block;
  font-weight: 400;
  color: var(--slate-500);
  font-size: 0.72rem;
}

/* ─── Problem / Pain Points ───────────────────────── */

.problems {
  padding: 6rem 0;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ─── Products Section ────────────────────────────── */

.products-section {
  padding: 6rem 0;
  background: var(--slate-50);
}

.products-section .section-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.products-section .section-label {
  display: block;
  text-align: center;
}

.products-section .section-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* ─── Surfaces / Use Cases ────────────────────────── */

.surfaces-section {
  padding: 6rem 0;
}

.surface-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* ─── How It Works ────────────────────────────────── */

.how-it-works {
  padding: 6rem 0;
  background: var(--green-950);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2322c55e' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  opacity: 0.5;
}

.how-it-works .container {
  position: relative;
  z-index: 2;
}

.how-it-works .section-label {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.25);
  color: var(--green-400);
}

.how-it-works .section-title {
  color: var(--white);
}

.how-it-works .section-subtitle {
  color: var(--slate-400);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.step {
  counter-increment: step;
  position: relative;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--green-500);
  opacity: 0.2;
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}

.step h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.step p {
  font-size: 0.85rem;
  color: var(--slate-400);
  line-height: 1.65;
}

/* ─── Testimonial ─────────────────────────────────── */

.testimonial-section {
  padding: 6rem 0;
  background: var(--white);
}

/* ─── Resources ───────────────────────────────────── */

.resources-section {
  padding: 6rem 0;
  background: var(--slate-50);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ─── CTA Section ─────────────────────────────────── */

.cta-section {
  padding: 6rem 0;
  background: var(--green-800);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(34, 197, 94, 0.15) 0%, transparent 70%);
}

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

.cta-section h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-section p {
  font-size: 1.1rem;
  color: var(--green-200);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ─── Responsive ──────────────────────────────────── */

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .surface-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .pain-grid {
    grid-template-columns: 1fr;
  }

  .surface-grid {
    grid-template-columns: 1fr;
  }

  .steps-row {
    grid-template-columns: 1fr;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-proof {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.85rem;
  }

  .hero {
    min-height: 70vh;
  }
}
