/* ============================================================
   PADEL PAL – Marketing Page (Dark Theme)
   Matches dark-mode iOS app:
     green-accent: #C9FD69
     team1: #F05AA5 (pink)
     team2: #5AF0F0 (cyan)
     orange: #FF9F0A
     bg: #000000
     surface: #1C1C1E
     border: #3A3A3C
     muted: #8E8E93
     text: #FFFFFF
   ============================================================ */

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

:root {
  --green: #C9FD69;
  --team1: #F05AA5;
  --team2: #5AF0F0;
  --orange: #FF9F0A;
  --bg: #000000;
  --surface: #1C1C1E;
  --border: #3A3A3C;
  --text: #FFFFFF;
  --muted: #A1A1A6;
  --radius: 16px;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-heading);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* =================== SKIP LINK =================== */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--green); color: #000; padding: 12px 24px;
  border-radius: 0 0 8px 8px; font-weight: 700; font-size: 14px;
  text-decoration: none; z-index: 200; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* =================== FOCUS STYLES =================== */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-dark:focus-visible,
.nav-cta:focus-visible {
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(201,253,105,0.3);
}

/* =================== REDUCED MOTION =================== */
@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; }
}

/* =================== NAV =================== */
nav[aria-label="Main"] {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(0,0,0,0.78);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-ball {
  width: 26px; height: 26px; flex-shrink: 0;
}
.logo-ball img { width: 100%; height: 100%; display: block; border-radius: 6px; }
.logo-text { font-weight: 900; font-size: 20px; letter-spacing: -0.5px; color: #fff; }
.logo-text span { color: var(--green); }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none;
  color: var(--muted); transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--green) !important; color: #000 !important;
  padding: 10px 22px; border-radius: 100px; font-weight: 700 !important;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--border); border-radius: 8px;
  width: 40px; height: 40px; cursor: pointer; color: var(--text);
}
.nav-toggle svg { width: 20px; height: 20px; }

/* =================== HERO =================== */
.hero {
  max-width: 1200px; margin: 0 auto; padding: 140px 32px 60px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.hero-content { max-width: 520px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: 6px 16px 6px 8px; margin-bottom: 28px;
}
.hero-badge-dot {
  width: 8px; height: 8px; background: var(--green);
  border-radius: 50%; animation: pulse 2s infinite;
}
.hero-badge span {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted);
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.hero h1 {
  font-size: clamp(42px, 5vw, 64px); font-weight: 900;
  line-height: 1.05; letter-spacing: -2px; margin-bottom: 24px;
}
.hero h1 .accent { color: var(--green); }

.hero p {
  font-family: var(--font-mono); font-size: 14px; line-height: 1.8;
  color: var(--muted); margin-bottom: 40px; max-width: 440px;
}

.hero-actions { display: flex; gap: 14px; align-items: center; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green); color: #000; padding: 16px 32px;
  border-radius: 100px; font-weight: 800; font-size: 15px;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(201,253,105,0.2); }
.btn-primary svg { width: 18px; height: 18px; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--text); padding: 16px 28px;
  border-radius: 100px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
}
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--muted); }

/* =================== HERO VISUALS =================== */
.hero-visual {
  position: relative;
  min-height: 580px;
}

.phone-frame {
  width: 260px; background: #000; border-radius: 38px; padding: 9px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
  position: relative; z-index: 1;
}
.phone-frame img {
  width: 100%; display: block; border-radius: 30px;
}

.landscape-frame {
  width: 500px; background: #000; border-radius: 20px; padding: 8px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 0 1px var(--border);
  position: absolute; bottom: 168px; right: -120px; z-index: 2;
}
.landscape-frame img {
  width: 100%; display: block; border-radius: 14px;
}

/* =================== SCREENS SHOWCASE =================== */
.showcase {
  max-width: 1200px; margin: 0 auto; padding: 80px 32px 100px;
}
.showcase .section-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
  margin-bottom: 12px;
}
.showcase h2 {
  font-size: clamp(32px, 4vw, 46px); font-weight: 900;
  letter-spacing: -1.5px; line-height: 1.1; max-width: 500px; margin-bottom: 48px;
}

.screen-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}

.screen-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.screen-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(201,253,105,0.06);
}

.screen-phone {
  background: #000; margin: 20px 20px 0; border-radius: 24px;
  overflow: hidden; display: flex;
  flex-direction: column; border: 1px solid var(--border);
}

/* Image-based screen cards */
.screen-phone-img {
  width: 100%; display: block; border-radius: 23px;
}
.screen-phone.img-frame {
  position: relative; overflow: hidden;
}
.screen-phone.img-frame .screen-phone-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 2;
}

/* Landscape image card */
.screen-card-landscape .screen-phone {
  aspect-ratio: auto; border-radius: 16px;
}
.screen-card-landscape .screen-phone img {
  border-radius: 14px;
}

.screen-card-info { padding: 20px; }
.screen-card-info h3 {
  font-size: 16px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.3px;
}
.screen-card-info p {
  font-family: var(--font-mono); font-size: 13px; color: var(--muted); line-height: 1.6;
}

/* =================== LIVE SHARING =================== */
.live-steps {
  grid-column: span 2;
  display: flex; flex-direction: column; gap: 28px;
  justify-content: center;
}
.live-step { display: flex; align-items: flex-start; gap: 16px; }
.live-step-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #000;
}
.live-step-icon svg { width: 20px; height: 20px; fill: currentColor; }
.live-step-icon.pink-bg { background: var(--team1); }
.live-step-icon.cyan-bg { background: var(--team2); }
.live-step-icon.green-bg { background: var(--green); }
.live-step-title { font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.live-step-desc {
  font-family: var(--font-mono); font-size: 14px; color: #B0B0B4; line-height: 1.6;
}

@media (max-width: 1024px) {
  .live-steps { grid-column: span 1; }
}
@media (max-width: 600px) {
  .live-steps { grid-column: span 1; }
}

/* =================== FEATURES ROW =================== */
.features-section {
  max-width: 1200px; margin: 0 auto; padding: 0 32px 100px;
}
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(201,253,105,0.04);
}
.feature-card.accent-card {
  background: var(--green); border-color: var(--green);
}
.feature-card.accent-card .feature-label,
.feature-card.accent-card h3,
.feature-card.accent-card p { color: #000; }
.feature-card.accent-card .feature-label { color: #3d5a00; opacity: 1; }

.feature-label {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 22px;
}
.feature-icon svg {
  width: 24px; height: 24px; fill: currentColor;
}
.feature-icon.green-bg { background: var(--green); color: #000; }
.feature-icon.pink-bg { background: var(--team1); color: #000; }
.feature-icon.cyan-bg { background: var(--team2); color: #000; }
.feature-icon.dark-bg { background: #8E8E93; color: #000; }

.feature-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.3px; }
.feature-card p { font-family: var(--font-mono); font-size: 14px; line-height: 1.7; color: var(--muted); }

/* =================== STATS BANNER =================== */
.stats-banner { max-width: 1200px; margin: 0 auto 0; padding: 0 32px 100px; }
.stats-inner {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; padding: 60px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  position: relative; overflow: hidden;
}
.stats-inner::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 280px; height: 280px; background: var(--green);
  border-radius: 50%; opacity: 0.04;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 48px; font-weight: 900; color: var(--green);
  letter-spacing: -2px; line-height: 1; margin-bottom: 8px;
}
.stat-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
}

/* =================== CTA =================== */
.cta-section { max-width: 1200px; margin: 0 auto; padding: 0 32px 120px; }
.cta-inner {
  background: var(--green); border-radius: 24px;
  padding: 80px 60px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-inner::before {
  content: ''; position: absolute; bottom: -100px; left: -100px;
  width: 300px; height: 300px; background: #000;
  border-radius: 50%; opacity: 0.06;
}
.cta-inner h2 {
  font-size: clamp(36px, 4vw, 52px); font-weight: 900;
  letter-spacing: -2px; line-height: 1.1; margin-bottom: 20px;
  color: #000; position: relative;
}
.cta-inner p {
  font-family: var(--font-mono); font-size: 15px; color: #4a6b00;
  margin-bottom: 36px; max-width: 480px;
  margin-left: auto; margin-right: auto; line-height: 1.7; position: relative;
}
.btn-dark {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; padding: 18px 36px;
  border-radius: 100px; font-weight: 800; font-size: 16px;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.btn-dark svg { width: 20px; height: 20px; }

/* =================== FOOTER =================== */
footer { border-top: 1px solid var(--border); padding: 40px 32px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-left { display: flex; align-items: center; gap: 24px; }
.footer-copy { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
  .screen-cards { grid-template-columns: repeat(2, 1fr); }

  /* Tablet hero: keep side-by-side grid, scale devices proportionally */
  .hero { gap: 32px; padding: 130px 24px 60px; }
  .phone-frame { width: 220px; }
  .landscape-frame { width: 400px; right: -80px; bottom: 140px; }
}

@media (max-width: 900px) {
  /* Navigation collapses */
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(0,0,0,0.95); border-bottom: 1px solid var(--border); padding: 16px 32px; }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 12px 0; }
  .nav-toggle { display: flex; }

  /* Tablet: stack to single column, but keep the desktop device composition */
  .hero { grid-template-columns: 1fr; padding: 120px 24px 40px; gap: 40px; }
  .hero-content { max-width: 600px; }

  .hero-visual {
    position: relative;
    min-height: 500px;
    width: 100%;
  }
  .phone-frame { width: 260px; }
  .landscape-frame { width: 480px; right: -40px; bottom: 120px; }

  .features-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); padding: 40px; }
  .cta-inner { padding: 48px 24px; }
}

@media (max-width: 700px) {
  .features-grid { grid-template-columns: 1fr; }

  /* Scale the device composition down but keep the same layout */
  .hero { padding: 110px 20px 40px; gap: 36px; }
  .hero-visual { min-height: 420px; }
  .phone-frame { width: 220px; }
  .landscape-frame { width: 400px; right: -60px; bottom: 100px; }
}

@media (max-width: 600px) {
  .hero { padding: 100px 16px 32px; gap: 28px; }

  /* Phone: keep devices left-aligned with landscape overlapping from right */
  .hero-visual { min-height: 360px; }
  .phone-frame { width: 48vw; max-width: 210px; }
  .landscape-frame {
    width: 78vw; max-width: 360px;
    right: -24px; bottom: 80px;
  }

  .hero-actions { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .screen-cards { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 400px) {
  .hero { padding: 96px 12px 24px; }
  .hero-visual { min-height: 300px; }
  .phone-frame { width: 46vw; max-width: 180px; }
  .landscape-frame { width: 75vw; max-width: 300px; right: -16px; bottom: 60px; }
}

@media (max-width: 600px) and (orientation: landscape) {
  .hero-visual { min-height: 260px; }
  .phone-frame { width: 140px; }
  .landscape-frame { width: 260px; right: -16px; bottom: 40px; }
}
