/* ============================================================
   FootyMate Landing Page — style.css
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:        #0d1117;
  --surface:   #161b22;
  --surface-2: #21262d;
  --primary:   #2bde73;
  --primary-dim: rgba(43, 222, 115, 0.12);
  --primary-border: rgba(43, 222, 115, 0.28);
  --text:      #e6edf3;
  --muted:     #7d8590;
  --border:    rgba(255, 255, 255, 0.07);

  --radius:    12px;
  --radius-lg: 20px;
  --gap:       1.5rem;
  --max-w:     1100px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Utility ────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Navbar ─────────────────────────────────────────────────── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.85rem 0;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
#navbar.scrolled {
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 200ms ease;
}
.nav-brand:hover { opacity: 0.7; text-decoration: none; }
.nav-logo { height: 28px; width: auto; }

.nav-links {
  display: flex;
  gap: 0.125rem;
  align-items: center;
  list-style: none;
  margin-left: auto;
}

.nav-link {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  transition: color 200ms ease;
  text-decoration: none;
}
.nav-link:hover { color: var(--text); text-decoration: none; }

.nav-right { display: flex; align-items: center; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────────────── */
#hero {
  padding: 5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

/* Subtle pitch-line background texture */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgba(43, 222, 115, 0.03) 59px,
      rgba(43, 222, 115, 0.03) 60px
    );
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero-app-icon {
  margin-bottom: 1.25rem;
}
.hero-app-icon img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-dim);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  border-radius: 9999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow-dot { animation: none; }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
  max-width: 700px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), #6ef7a5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2.25rem;
  max-width: 520px;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.store-badge-lg {
  height: 52px;
  width: auto;
  transition: opacity 0.2s, transform 0.2s;
}
.store-badge-lg:hover { opacity: 0.85; transform: translateY(-2px); }

/* Hero screenshot strip */
.hero-screens {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 1.25rem 1.75rem;
  width: 100%;
  justify-content: safe center;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-2) transparent;
  -webkit-overflow-scrolling: touch;
}
.hero-screens::-webkit-scrollbar { height: 4px; }
.hero-screens::-webkit-scrollbar-track { background: transparent; }
.hero-screens::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 9999px;
}

.hero-screen {
  flex-shrink: 0;
  width: 200px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 24px 60px rgba(0,0,0,0.7),
    0 0 40px rgba(43, 222, 115, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.hero-screen:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px var(--primary-border),
    0 28px 64px rgba(0,0,0,0.75),
    0 0 40px rgba(43, 222, 115, 0.1);
}
.hero-screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Feature Pills ───────────────────────────────────────────── */
#pills {
  padding: 2.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pills-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  cursor: default;
  transition: border-color 0.2s, background 0.2s;
}
.pill:hover {
  border-color: var(--primary-border);
  background: var(--surface-2);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ── Section Labels ──────────────────────────────────────────── */
.section-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.65rem;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.65rem;
  line-height: 1.2;
}

.section-sub {
  text-align: center;
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 3rem;
  line-height: 1.65;
}

/* ── Features Grid ───────────────────────────────────────────── */
#features {
  padding: 5.5rem 0;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  cursor: default;
}
.feature-card:hover {
  border-color: var(--primary-border);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px var(--primary-border);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--primary-dim);
  border: 1px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}


/* ── Final CTA ───────────────────────────────────────────────── */
#cta {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(43, 222, 115, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

#cta h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.85rem;
  position: relative;
}

#cta p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}
.footer-sep { opacity: 0.3; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  #hero { padding: 3.5rem 0 2.5rem; }
  #features, #cta { padding: 3.5rem 0; }

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

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 1.5rem 1.25rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .nav-link { padding: 0.65rem 1rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2rem, 9vw, 2.6rem); }
}
