/* G.O.A.T — grounded in the court itself: baselines, tramlines, one serve arc */
:root {
  --forest: #0F2A24;
  --forest-deep: #091915;
  --forest-mid: #163931;
  --gold: #C4A35A;
  --gold-soft: #DCC086;
  --gold-line: rgba(196, 163, 90, 0.32);
  --ball: #D7E24C;
  --cream: #F5F0E6;
  --cream-muted: #A9BEB3;
  --max: 1080px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--forest);
  color: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-soft); }
:focus-visible { outline: 2px solid var(--ball); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Film grain — a court is never a flat colour */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 25, 21, 0.78);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid var(--gold-line);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--cream); }
.brand img { border-radius: 8px; }
.brand:hover { color: var(--cream); }
.header-nav { display: flex; gap: 1.75rem; }
.header-nav a { color: var(--cream-muted); font-size: 0.94rem; font-weight: 500; }
.header-nav a:hover { color: var(--cream); }
@media (max-width: 720px) { .header-nav { display: none; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-family: var(--font-body);
  padding: 0.7rem 1.35rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
  cursor: pointer;
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.88rem; }
.btn-lg { padding: 0.85rem 1.7rem; font-size: 1.02rem; }
.btn-primary { background: var(--gold); color: var(--forest-deep); }
.btn-primary:hover { background: var(--gold-soft); color: var(--forest-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--gold-line); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--cream); transform: translateY(-1px); }

/* ===== HERO ===== */
.hero { position: relative; padding: 4.5rem 0 3.5rem; overflow: hidden; }
.court-fade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 78% -10%, rgba(196, 163, 90, 0.16), transparent 60%),
    radial-gradient(ellipse 700px 480px at 8% 20%, rgba(22, 57, 49, 0.9), transparent 65%);
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; max-width: 260px; margin-inline: auto; }
}

.hero-tag {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-soft);
  font-size: 0.95rem;
  margin: 0 0 0.9rem;
}
#hero-title { font-size: clamp(2.5rem, 5.4vw, 4rem); }
.serve-line { position: relative; display: inline-block; }
.serve-arc { position: absolute; left: 2%; top: 92%; width: 96%; height: 0.85em; pointer-events: none; overflow: visible; }
.serve-arc path {
  fill: none;
  stroke: var(--ball);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: draw-serve 1.3s 0.5s var(--ease) forwards;
}
.serve-ball {
  fill: var(--ball);
  offset-path: path("M4 66 C 90 12, 300 12, 416 62");
  animation: fly-ball 1.3s 0.5s var(--ease) forwards;
  opacity: 0;
}
@keyframes draw-serve { to { stroke-dashoffset: 0; } }
@keyframes fly-ball {
  0% { opacity: 1; offset-distance: 0%; }
  95% { opacity: 1; }
  100% { opacity: 0; offset-distance: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .serve-arc path { stroke-dashoffset: 0; animation: none; }
  .serve-ball { display: none; }
}

.hero-lead { font-size: 1.12rem; color: var(--cream-muted); max-width: 46ch; margin: 2.1rem 0 0; }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-note { margin-top: 1.4rem; font-size: 0.9rem; color: var(--cream-muted); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.court-lines {
  position: absolute;
  inset: -16%;
  width: 132%;
  height: 132%;
  z-index: 0;
  fill: none;
  stroke: var(--gold-soft);
  stroke-width: 2;
  opacity: 0.4;
}
.phone-glow {
  position: absolute;
  inset: -15%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-line), transparent 65%);
  filter: blur(6px);
  z-index: 0;
}
.phone-chassis {
  position: relative;
  z-index: 1;
  width: min(62%, 280px);
  aspect-ratio: 9 / 18.5;
  margin-inline: auto;
  background: linear-gradient(180deg, #13281f, #0a1a15);
  border: 1.5px solid var(--gold);
  border-radius: 11% / 4.6%;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55), 0 0 0 1px var(--gold-line);
  padding: 2.2% 2%;
  animation: float 6s ease-in-out infinite;
}
.phone-notch {
  position: absolute;
  top: 1.6%;
  left: 50%;
  transform: translateX(-50%);
  width: 26%;
  height: 1.3%;
  background: #0a1a15;
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 9% / 3.6%;
  overflow: hidden;
  background: #000;
}
.screen-reel { display: flex; flex-direction: column; height: 1000%; animation: reel-scroll 34s linear infinite; }
.screen-reel img { width: 100%; height: 10%; flex: none; object-fit: contain; object-position: center; background: #000; display: block; }
.phone-chassis:hover .screen-reel { animation-play-state: paused; }
@keyframes reel-scroll { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .phone-chassis { animation: none; } .screen-reel { animation: none; } }

.baseline {
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold-line) 0 14px, transparent 14px 26px);
  margin-top: 3.5rem;
}

/* ===== SCOREBOARD STRIP ===== */
.scoreboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2.5rem;
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--forest-mid);
}
.score-cell {
  padding: 1.1rem 1.3rem;
  border-left: 1px solid var(--gold-line);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.score-cell:first-child { border-left: none; }
.score-label { font-size: 0.78rem; color: var(--cream-muted); font-weight: 500; }
.score-value { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--cream); }
@media (max-width: 720px) {
  .scoreboard { grid-template-columns: 1fr 1fr; }
  .score-cell:nth-child(3) { border-left: none; }
  .score-cell:nth-child(3), .score-cell:nth-child(4) { border-top: 1px solid var(--gold-line); }
}

/* ===== SECTIONS shared ===== */
section { padding: 5.5rem 0; }
.jobs-head, .how h2, .contrast-copy, .cta-block { text-align: left; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.35rem); max-width: 22ch; }
.jobs-sub { color: var(--cream-muted); font-size: 1.02rem; max-width: 50ch; margin: 0.9rem 0 0; }

/* ===== JOB SWITCHER ===== */
.jobs-panel { margin-top: 3rem; }
.job-tabs { display: flex; gap: 0.4rem; border-bottom: 1px solid var(--gold-line); margin-bottom: 2.5rem; flex-wrap: wrap; }
.job-tab {
  background: none;
  border: none;
  color: var(--cream-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.9rem 1.1rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  position: relative;
  transition: color 0.2s var(--ease);
}
.job-tick { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-line); transition: background 0.2s var(--ease); }
.job-tab:hover { color: var(--cream); }
.job-tab.is-active { color: var(--cream); }
.job-tab.is-active .job-tick { background: var(--ball); box-shadow: 0 0 8px var(--ball); }
.job-tab.is-active::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
}

.jobs-stage { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .jobs-stage { grid-template-columns: 1fr; } .jobs-phone { max-width: 240px; margin-inline: auto; } }

.jobs-phone { position: relative; }
.phone-glow-sm { inset: -10%; }
.jobs-phone-stack { position: relative; }
.job-shot {
  border-radius: 9% / 5%;
  box-shadow: 0 24px 48px -18px rgba(0,0,0,0.55), 0 0 0 1px var(--gold-line);
  opacity: 0;
  position: absolute;
  inset: 0;
  transition: opacity 0.35s var(--ease);
}
.job-shot.is-active { position: relative; opacity: 1; }

.job-eyebrow { font-size: 0.85rem; color: var(--gold-soft); font-weight: 700; margin: 0 0 0.5rem; }
.jobs-copy h3 { font-size: 1.65rem; margin-bottom: 0.7rem; }
.jobs-copy p { color: var(--cream-muted); max-width: 42ch; margin: 0 0 1.8rem; }
.job-panel[hidden] { display: none; }

/* ===== MODES: Light / Pro Tour ===== */
.modes-head { max-width: 56ch; }
.modes-sub { color: var(--cream-muted); font-size: 1.02rem; margin: 0.9rem 0 0; }

.mode-toggle {
  position: relative;
  display: inline-flex;
  margin-top: 2.5rem;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 4px;
  background: var(--forest-mid);
}
.mode-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--gold);
  border-radius: 999px;
  transition: transform 0.32s var(--ease);
}
.mode-toggle.is-pro .mode-thumb { transform: translateX(100%); }
.mode-btn {
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cream-muted);
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s var(--ease);
  min-width: 132px;
}
.mode-btn.is-active { color: var(--forest-deep); }

.mode-panels { margin-top: 2.75rem; position: relative; }
.mode-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem 2.5rem;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.mode-list.is-active { opacity: 1; }
.mode-list[hidden] { display: none; }
@media (max-width: 720px) { .mode-list { grid-template-columns: 1fr; } }

.mode-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--gold-line);
}
.mode-list li:nth-child(-n+2) { border-top: 1px solid var(--gold-line); }
.mode-list-note {
  grid-column: 1 / -1;
  border-top: none !important;
  padding: 0 0 0.4rem !important;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-soft);
  font-size: 1.02rem;
}
.mode-list li strong { display: block; font-family: var(--font-display); font-size: 1.04rem; margin-bottom: 0.25rem; }
.mode-list li span { color: var(--cream-muted); font-size: 0.94rem; }
.mode-icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mode-icon-heat { stroke: none; }
.mode-icon-heat rect { fill: var(--gold); }

/* ===== CONTRAST ===== */
.contrast { background: var(--forest-deep); }
.contrast-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 780px) { .contrast-grid { grid-template-columns: 1fr; } }
.contrast-copy p { color: var(--cream-muted); font-size: 1.05rem; margin-top: 1.1rem; max-width: 46ch; }
.contrast-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.contrast-list li { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; display: flex; align-items: baseline; gap: 0.7rem; }
.contrast-list .x { color: var(--cream-muted); text-decoration: line-through; text-decoration-color: rgba(169,190,179,0.55); font-size: 0.85em; font-weight: 600; }
.contrast-list .check { color: var(--ball); font-size: 0.85em; font-weight: 700; }

/* ===== HOW IT WORKS ===== */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.75rem; }
@media (max-width: 780px) { .how-grid { grid-template-columns: 1fr; } }
.how-card {
  padding: 1.75rem;
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}
.how-stage { font-family: var(--font-display); font-weight: 700; color: var(--gold-soft); font-size: 0.88rem; }
.how-card strong { font-size: 1.2rem; font-family: var(--font-display); }
.how-card span:not(.how-stage) { color: var(--cream-muted); font-size: 0.96rem; }

/* ===== PRIVACY ===== */
.privacy { padding: 0 0 5rem; }
.privacy-line {
  border-left: 2px solid var(--gold);
  padding-left: 1.1rem;
  color: var(--cream-muted);
  font-size: 1rem;
  max-width: 56ch;
}

/* ===== CTA ===== */
.cta { background: var(--forest-mid); }
.cta-block { max-width: 560px; }
.cta-block p { color: var(--cream-muted); font-size: 1.05rem; margin: 0.9rem 0 1.8rem; }
.cta-note { display: block; margin-top: 1rem; color: var(--cream-muted); font-size: 0.85rem; }

/* ===== FOOTER ===== */
.site-footer { border-top: 1px solid var(--gold-line); padding: 2.75rem 0; }
.footer-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.footer-row strong { font-family: var(--font-display); font-size: 1.05rem; }
.footer-row p { color: var(--cream-muted); font-size: 0.92rem; margin: 0.4rem 0 0; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a { color: var(--cream-muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--cream); }
