/* ========================================================
   PLAYMATCH — Shared Stylesheet
   ======================================================== */

/* ────────────────────────────────────────────────────────
   1. CUSTOM PROPERTIES
   ──────────────────────────────────────────────────────── */
:root {
  --color-primary: #45a25e;
  --color-primary-hover: #3a8b4f;
  --color-dark: #0F172A;
  --color-light: #F8FAFC;
  --color-white: #FFFFFF;
  --color-text-on-dark: #F1F5F9;
  --color-text-on-light: #0F172A;
  --color-text-secondary: #64748B;
  --color-text-muted: #94A3B8;
  --color-border: #E2E8F0;

  --font-display: 'Lexend', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --max-width: 1120px;
  --radius-card: 12px;
  --radius-pill: 9999px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.25s ease;

  --nav-height: 72px;
}

/* ────────────────────────────────────────────────────────
   2. RESET & BASE
   ──────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--color-dark);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-on-light);
  background: var(--color-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ────────────────────────────────────────────────────────
   3. TYPOGRAPHY
   ──────────────────────────────────────────────────────── */
h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
}

/* ────────────────────────────────────────────────────────
   4. LAYOUT
   ──────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

/* ────────────────────────────────────────────────────────
   5. NAVBAR
   ──────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo .dot {
  color: var(--color-primary);
}

.nav-link {
  color: var(--color-text-on-dark);
  font-size: 0.9375rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ────────────────────────────────────────────────────────
   6. BUTTONS
   ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform var(--transition-fast),
              background-color var(--transition-fast);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Primary (green) */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

/* Store buttons */
.btn-store {
  padding: 12px 24px;
  font-weight: 500;
}

.btn-store svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-store--apple {
  background: var(--color-white);
  color: var(--color-dark);
}

.btn-store--apple:hover {
  background: var(--color-border);
}

.btn-store--google {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-store--google:hover {
  background: var(--color-primary-hover);
}

/* ────────────────────────────────────────────────────────
   7. CARDS
   ──────────────────────────────────────────────────────── */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px;
  transition: transform var(--transition-fast);
}

.card:hover {
  transform: translateY(-4px);
}

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card h3 {
  margin-bottom: 12px;
  color: var(--color-text-on-light);
}

.card p {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ────────────────────────────────────────────────────────
   8. BADGES
   ──────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(69, 162, 94, 0.1);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.badge--on-dark {
  background: rgba(69, 162, 94, 0.15);
  color: #6bc580;
}

/* ────────────────────────────────────────────────────────
   9. FOOTER
   ──────────────────────────────────────────────────────── */
.footer {
  background: var(--color-dark);
  color: var(--color-text-on-dark);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 12px;
  display: inline-block;
  font-size: 1.25rem;
}

.footer-brand p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col a {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-links-col a:hover {
  color: var(--color-primary);
}

.footer-contact a {
  color: var(--color-primary);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-contact a:hover {
  color: #6bc580;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
}

/* ────────────────────────────────────────────────────────
   10. HERO
   ──────────────────────────────────────────────────────── */
.hero {
  min-height: 100dvh;
  margin-top: calc(var(--nav-height) * -1);
  padding-top: var(--nav-height);
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Radial green glow */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(69, 162, 94, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Subtle diagonal gradient overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(30, 41, 59, 0.5) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 0 24px;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 24px;
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-highlight {
  position: relative;
  display: inline;
}

.hero-highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), #6bc580);
  border-radius: 2px;
  transform-origin: left;
  animation: expandWidth 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-subtitle {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* ────────────────────────────────────────────────────────
   11. CLUBS PAGE SECTIONS
   ──────────────────────────────────────────────────────── */

/* Hero badge animation */
.hero .badge {
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Benefits */
.section-benefits {
  background: var(--color-white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}

.benefit-icon {
  width: 64px;
  height: 64px;
  background: rgba(69, 162, 94, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--color-primary);
}

.benefit-icon svg {
  width: 28px;
  height: 28px;
}

.benefit h3 {
  margin-bottom: 12px;
  color: var(--color-text-on-light);
}

.benefit p {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Section header (shared pattern) */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  color: var(--color-text-on-light);
}

/* Features — YA DISPONIBLE */
.section-features {
  background: var(--color-light);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* Roadmap — PRÓXIMAMENTE */
.section-roadmap {
  background: var(--color-white);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.roadmap-item {
  padding: 24px;
  border-left: 2px dashed var(--color-border);
  transition: opacity var(--transition-fast);
}

.roadmap-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.roadmap-item h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--color-text-on-light);
}

.roadmap-item p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Plan Fundadores */
.section-founders {
  background: var(--color-dark);
  color: var(--color-text-on-dark);
  text-align: center;
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

.section-founders h2 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.founders-subtitle {
  color: var(--color-primary);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  margin-bottom: 32px;
}

.founders-description {
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.founders-trust {
  margin-top: 24px;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.founders-trust svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Pre-footer CTA */
.section-cta {
  background: var(--color-light);
  text-align: center;
  padding: 64px 0;
}

.section-cta p {
  color: var(--color-text-secondary);
  font-size: 1.0625rem;
}

.section-cta a {
  color: var(--color-primary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.section-cta a:hover {
  color: var(--color-primary-hover);
}

/* ────────────────────────────────────────────────────────
   12. ANIMATIONS
   ──────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandWidth {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

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

  html {
    scroll-behavior: auto;
  }
}

/* ────────────────────────────────────────────────────────
   13. RESPONSIVE
   ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid {
    gap: 24px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  section {
    padding: 64px 0;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-content {
    padding: 0 16px;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
    padding: 0 8px;
  }

  .cta-row .btn {
    width: 100%;
  }

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

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-contact {
    grid-column: auto;
  }

  .section-cta {
    padding: 48px 0;
  }

  .navbar .container {
    padding: 0 16px;
  }
}
