/* PadelMe marketing site — aligned with PadelDesignSystem + docs/design POCs */

:root {
  /* Surfaces — match docs/design POCs exactly */
  --bg-page:        #161618;
  --bg-card:        #1f1f22;
  --bg-card-2:      #26262a;
  --bg-card-3:      #232325;
  --watch-bg:       #000000;

  /* Text */
  --text:           #eaeaea;
  --text-strong:    #ffffff;
  --text-muted:     #9c9ca0;
  --text-dim:       #6c6c70;

  /* Team identity (dark mode values from PadelPalette) */
  --team-blue:      #1c3a6e;
  --team-orange:    #5c2a0e;
  --team-blue-2:    #2c5da8;
  --team-orange-2:  #b3551c;
  --team-blue-text: #60a5fa;
  --team-orange-text: #fb923c;

  /* Status / accents (identical light & dark, see Color+Semantic.swift) */
  --accent-lime:    #b6ff3c;
  --ball-yellow:    #ffe066;
  --victory:        #22c55e;
  --defeat:         #ef4444;

  --border:         rgba(255, 255, 255, 0.08);
  --border-strong:  rgba(255, 255, 255, 0.16);

  --radius:         14px;
  --radius-lg:      22px;
  --max-w:          880px;

  --shadow-card:    0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, sans-serif;
  font-feature-settings: "tnum", "ss01";
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-lime);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover, a:focus-visible { text-decoration: underline; }

/* ---------- Layout shell ---------- */
.shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 24px 80px;
}

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

header.top .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

header.top .brand .dot {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--team-blue-2) 0%, var(--team-orange-2) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

nav.top-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

nav.top-nav a {
  color: var(--text-muted);
}

nav.top-nav a:hover,
nav.top-nav a[aria-current="page"] {
  color: var(--text-strong);
  text-decoration: none;
}

/* ---------- Section label (uppercase, tracked, lime) ---------- */
.section-label {
  font-size: 11px;
  margin: 0 0 6px;
  color: var(--accent-lime);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 24px 0 48px;
  align-items: center;
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1fr 220px;
    gap: 56px;
  }
}

.hero h1 {
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  font-weight: 800;
  color: var(--text-strong);
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--team-blue-text) 0%, var(--team-orange-text) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 28px;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1px solid var(--border-strong);
  background: var(--bg-card-2);
  color: var(--text-strong);
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: var(--text-dim);
}

.btn.primary {
  background: var(--accent-lime);
  color: #062911;
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(182, 255, 60, 0.18);
}

.btn.primary:hover { background: #c5ff5c; }

/* ---------- Watch mockup (inspired by docs/design POCs) ---------- */
.watch {
  width: 184px;
  height: 224px;
  background: var(--watch-bg);
  border-radius: 38px;
  border: 6px solid #111;
  box-shadow: 0 0 0 2px #2b2b2b inset, 0 12px 36px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  font-feature-settings: "tnum";
}

.watch .crown {
  position: absolute;
  right: -10px;
  top: 60px;
  width: 8px;
  height: 26px;
  background: #1a1a1a;
  border-radius: 2px;
}

.watch .screen {
  padding: 14px 10px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #fff;
}

.watch .scorebar {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.watch .grid {
  flex: 1;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}

.watch .row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0 6px;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}

.watch .row.blue   { background: var(--team-blue); }
.watch .row.orange { background: var(--team-orange); }

.watch .row .name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

.watch .row .points {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.watch .sets {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding-top: 2px;
}

.watch .sets span {
  font-size: 8.5px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  letter-spacing: 0.05em;
}

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-card);
}

.feature .ico {
  font-size: 22px;
  margin-bottom: 10px;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--text-strong);
}

.feature p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---------- Content pages ---------- */
.page-head {
  padding: 8px 0 28px;
}

.page-title {
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -0.02em;
  margin: 4px 0 6px;
  font-weight: 800;
  color: var(--text-strong);
}

.page-subtitle {
  color: var(--text-muted);
  margin: 0;
  font-size: 14px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
  max-width: 720px;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--accent-lime);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
}

.card h3 {
  margin: 20px 0 6px;
  font-size: 16px;
  color: var(--text-strong);
  letter-spacing: -0.005em;
}

.card h3:first-of-type { margin-top: 4px; }

.card p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
}

.card p:last-child { margin-bottom: 0; }

.card strong { color: var(--text-strong); font-weight: 600; }

.card ul {
  padding-left: 18px;
  margin: 6px 0 12px;
}

.card li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.card li + li { margin-top: 4px; }

.card li::marker { color: var(--text-dim); }

/* Note callout — lime left-border (from docs/design POCs) */
.note {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.55;
  background: var(--bg-card-3);
  border-left: 3px solid var(--accent-lime);
  padding: 12px 16px;
  border-radius: 6px;
  margin: 0 0 20px;
  max-width: 720px;
}

.note b, .note strong { color: var(--text-strong); }

/* Email pill button reuse */
.email-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent-lime);
  color: #062911 !important;
  font-weight: 700;
  font-size: 14px;
  margin: 4px 0 4px;
  box-shadow: 0 0 0 2px rgba(182, 255, 60, 0.18);
}

.email-cta:hover { background: #c5ff5c; text-decoration: none; }

/* ---------- Footer ---------- */
footer.bottom {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}

footer.bottom nav {
  display: flex;
  gap: 16px;
}

footer.bottom nav a { color: var(--text-muted); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
