/* ═══════════════════════════════════════════════════════════════ */
/* Landing Page                                                    */
/* ═══════════════════════════════════════════════════════════════ */

.landing-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

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

.landing-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 4rem 0 3rem;
}

.landing-badge {
  display: inline-block;
  font-family: var(--font-family);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-colorful-bright);
  border: 1px solid var(--border-colorful-bright);
  border-radius: 20px;
  padding: 0.3rem 1rem;
  margin-bottom: 1.25rem;
}

.landing-title {
  font-family: var(--heading-font);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-light);
  margin: 0 0 1.25rem;
}

.landing-subtitle {
  font-family: var(--font-family);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.landing-hero-actions {
  display: flex;
  gap: 1rem;
}

/* ── Insights ─────────────────────────────────────────────────── */

.landing-insights {
  padding: 3rem 0 1rem;
}

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

.landing-insight {
  background: var(--bg-muted);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: border-color 0.2s ease;
}

.landing-insight:hover {
  border-color: var(--border-colorful-bright);
}

.landing-insight-stat {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  min-height: 2.5rem;
}

.insight-value {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 700;
}

.insight-good {
  color: var(--color-sand-100);
}

.insight-warn {
  color: #c0645a;
}

.insight-vs {
  font-family: var(--font-family);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.insight-label {
  font-family: var(--font-family);
  font-size: 0.75rem;
  color: var(--text-muted);
  align-self: center;
}

.insight-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  font-family: var(--heading-font);
  font-size: 0.8rem;
  font-weight: 700;
}

.insight-win {
  background: var(--color-water-300);
  color: var(--color-white-100);
}

.insight-loss {
  background: #7a3b3b;
  color: var(--color-white-100);
}

.landing-insight h3 {
  font-family: var(--heading-font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  margin: 0 0 0.4rem;
}

.landing-insight p {
  font-family: var(--font-family);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* Responsive - stack on smaller screens */
@media (max-width: 768px) {
  .landing-insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .landing-insights-grid {
    grid-template-columns: 1fr;
  }
}


/* ── Buttons ──────────────────────────────────────────────────── */

.landing-btn {
  display: inline-block;
  font-family: var(--heading-font);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.7rem 1.8rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.landing-btn-primary {
  background: var(--bg-colorful-light);
  color: var(--color-white-100);
  border: 1px solid var(--bg-colorful-light);
}

.landing-btn-primary:hover {
  background: var(--bg-colorful-dark);
  border-color: var(--bg-colorful-dark);
}

.landing-btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-default);
}

.landing-btn-outline:hover {
  color: var(--text-light);
  border-color: var(--text-muted);
}

/* ── Court Graphic ────────────────────────────────────────────── */

.landing-hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.landing-court {
  width: 220px;
  position: relative;
}

.court-surface {
  position: relative;
  width: 100%;
  padding-bottom: 180%;
  background: rgba(34, 85, 50, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Court lines */
.court-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
}

.court-line-top {
  top: 0; left: 0; right: 0;
  height: 1px;
}

.court-line-bottom {
  bottom: 0; left: 0; right: 0;
  height: 1px;
}

.court-line-left {
  top: 0; bottom: 0; left: 50%;
  width: 1px;
}

.court-line-right {
  /* center service line */
  display: none;
}

.court-line-mid {
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* Kitchen (NVZ) zones */
.court-kitchen {
  position: absolute;
  left: 0; right: 0;
  background: rgba(200, 159, 97, 0.06);
  border: 1px dashed rgba(200, 159, 97, 0.15);
}

.court-kitchen-top {
  top: 35%;
  height: 15%;
  border-top: none;
}

.court-kitchen-bottom {
  bottom: 35%;
  height: 15%;
  border-bottom: none;
}

/* Net */
.court-net-line {
  position: absolute;
  top: 50%;
  left: -4px;
  right: -4px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%);
  border-radius: 1px;
}

/* Players */
.court-player {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.court-player-1 {
  background: var(--color-water-200);
  box-shadow: 0 0 12px rgba(168, 208, 219, 0.4);
  left: 25%;
  top: 72%;
  transform: translate(-50%, -50%);
  animation: player-pulse-1 3s ease-in-out infinite;
}

.court-player-2 {
  background: var(--color-sand-100);
  box-shadow: 0 0 12px rgba(200, 159, 97, 0.4);
  left: 75%;
  top: 72%;
  transform: translate(-50%, -50%);
  animation: player-pulse-2 3s ease-in-out infinite 0.5s;
}

.court-player-label {
  position: absolute;
  bottom: -20px;
  font-family: var(--font-family);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

@keyframes player-pulse-1 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes player-pulse-2 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.08); }
}

/* Distance indicator */
.court-distance-line {
  position: absolute;
  top: 72%;
  left: 30%;
  width: 40%;
  height: 0;
  border-top: 1.5px dashed var(--color-sand-100);
  opacity: 0.7;
}

.court-distance-tag {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-family);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-sand-100);
  background: rgba(0, 0, 0, 0.5);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

/* ── Features ─────────────────────────────────────────────────── */

.landing-features {
  padding: 3rem 0;
}

.landing-section-heading {
  font-family: var(--heading-font);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-light);
  text-align: center;
  margin: 0 0 2.5rem;
}

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

.landing-feature {
  background: var(--bg-muted);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 1.75rem;
  transition: border-color 0.2s ease;
}

.landing-feature:hover {
  border-color: var(--border-colorful-bright);
}

.landing-feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-colorful-bright);
  margin-bottom: 1rem;
}

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

.landing-feature h3 {
  font-family: var(--heading-font);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-light);
  margin: 0 0 0.6rem;
}

.landing-feature p {
  font-family: var(--font-family);
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* ── Tech Strip ───────────────────────────────────────────────── */

.landing-tech {
  padding: 3rem 0;
  text-align: center;
}

.landing-tech-desc {
  font-family: var(--font-family);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.landing-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.landing-tag {
  font-family: var(--font-family);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-muted);
  border: 1px solid var(--border-default);
  border-radius: 4px;
  padding: 0.35rem 0.75rem;
}

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

.landing-cta {
  text-align: center;
  padding: 3rem 0 1rem;
  border-top: 1px solid var(--border-default);
}

.landing-cta h2 {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  margin: 0 0 0.6rem;
}

.landing-cta p {
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

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

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

@media (max-width: 768px) {
  .landing-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.5rem 0 2rem;
  }

  .landing-hero-actions {
    justify-content: center;
  }

  .landing-hero-visual {
    order: -1;
    justify-content: center;
  }

  .landing-court {
    width: 160px;
  }

  .landing-title {
    font-size: 2rem;
  }

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

@media (max-width: 480px) {
  .landing-page {
    padding: 0 1.25rem 2rem;
  }

  .landing-title {
    font-size: 1.7rem;
  }

  .landing-hero-actions,
  .landing-cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .landing-btn {
    width: 100%;
    max-width: 240px;
    text-align: center;
  }
}

/* ── Light Mode Overrides ─────────────────────────────────────── */

:root .landing-title,
:root .landing-section-heading,
:root .landing-feature h3,
:root .landing-insight h3,
:root .landing-cta h2 {
  color: var(--text-default);
}

:root .landing-subtitle,
:root .landing-feature p,
:root .landing-insight p,
:root .landing-tech-desc,
:root .landing-cta p,
:root .court-player-label,
:root .insight-vs,
:root .insight-label {
  color: var(--text-muted);
}

/* Court graphic - needs darker lines in light mode */
html:not(.dark-mode) .court-surface {
  background: rgba(34, 85, 50, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
}

html:not(.dark-mode) .court-line {
  background: rgba(0, 0, 0, 0.1);
}

html:not(.dark-mode) .court-line-mid {
  background: rgba(0, 0, 0, 0.06);
}

html:not(.dark-mode) .court-kitchen {
  background: rgba(200, 159, 97, 0.06);
  border-color: rgba(200, 159, 97, 0.2);
}

html:not(.dark-mode) .court-net-line {
  background: rgba(0, 0, 0, 0.25);
}

html:not(.dark-mode) .court-distance-line {
  border-top-color: var(--color-sand-200);
}

html:not(.dark-mode) .court-distance-tag {
  color: var(--color-sand-200);
  background: rgba(255, 255, 255, 0.8);
}

html:not(.dark-mode) .court-player-1 {
  box-shadow: 0 0 12px rgba(168, 208, 219, 0.5);
}

html:not(.dark-mode) .court-player-2 {
  box-shadow: 0 0 12px rgba(200, 159, 97, 0.5);
}

/* Badge */
html:not(.dark-mode) .landing-badge {
  color: var(--color-sand-200);
  border-color: var(--color-sand-200);
}

/* Tags */
html:not(.dark-mode) .landing-tag {
  color: var(--text-muted);
  background: var(--bg-muted);
  border-color: var(--border-default);
}

/* Buttons */
html:not(.dark-mode) .landing-btn-primary {
  color: #fff;
}

html:not(.dark-mode) .landing-btn-outline {
  color: var(--text-default);
  border-color: var(--border-default);
}

html:not(.dark-mode) .landing-btn-outline:hover {
  color: var(--text-default);
  border-color: var(--color-sand-200);
}

/* Insight badges */
html:not(.dark-mode) .insight-good {
  color: var(--color-sand-200);
}

html:not(.dark-mode) .insight-warn {
  color: #b5453c;
}
