/* FortyYard — Performance Speed Coaching */
:root {
  --bg: #0E0E0E;
  --fg: #F0EEE8;
  --accent: #C4FF4A;
  --accent-dim: rgba(196, 255, 74, 0.12);
  --muted: #7A7870;
  --surface: #181818;
  --border: rgba(255,255,255,0.07);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 5vw 60px;
  position: relative;
  background: var(--bg);
}

.hero-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 28px;
}

.hero-lede {
  font-size: 1.1rem;
  color: rgba(240, 238, 232, 0.65);
  max-width: 480px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.hero-timer {
  display: inline-block;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 20px 28px;
  background: var(--surface);
}

.timer-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.timer-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  color: var(--fg);
  line-height: 1;
}

.timer-value small {
  font-size: 1.2rem;
  color: var(--muted);
}

.timer-target {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--accent);
}

.timer-target strong { font-weight: 700; }

/* Track graphic */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.track-graphic {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/3;
}

.track-field {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #111 0%, #1a1a1a 60%, #0d0d0d 100%);
  border: 1px solid var(--border);
}

.track-lines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 20% 0;
}

.track-line {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.04);
}

.athlete-silhouette {
  position: absolute;
  bottom: 25%;
  left: 38%;
  width: 80px;
  transform: translateX(-50%);
  animation: athlete-run 1.2s ease-in-out infinite alternate;
}

@keyframes athlete-run {
  from { transform: translateX(-50%) scaleX(1); }
  to   { transform: translateX(-30%) scaleX(1.05); }
}

.time-stamp {
  position: absolute;
  top: 20%;
  right: 18%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
}

.speed-burst {
  position: absolute;
  bottom: 30%;
  left: 55%;
  transform: translateY(-50%);
}

.burst-line {
  position: absolute;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.5;
  transform-origin: left center;
  animation: burst-fade 1.5s ease-out infinite;
}

.l1 { width: 60px; top: -8px; animation-delay: 0s; }
.l2 { width: 40px; top: 0px; animation-delay: 0.2s; }
.l3 { width: 25px; top: 8px; animation-delay: 0.4s; }

@keyframes burst-fade {
  0%   { opacity: 0.8; transform: scaleX(0.3); }
  100% { opacity: 0; transform: scaleX(1); }
}

/* MANIFESTO */
.manifesto {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 5vw;
}

.manifesto-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.manifesto-stat-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.m-stat {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 0 32px;
}

.m-stat:first-child { text-align: left; padding-left: 0; }
.m-stat:last-child { text-align: right; padding-right: 0; }

.m-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--accent);
  display: block;
  line-height: 1;
}

.m-unit {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
  margin-left: 2px;
}

.m-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.4;
}

.m-divider {
  width: 1px;
  height: 80px;
  background: var(--border);
  align-self: center;
  flex-shrink: 0;
}

.manifesto-quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--fg);
  line-height: 1.5;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}

/* SPLIT SECTION */
.split-section {
  padding: 100px 5vw;
  background: var(--bg);
}

.split-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-tag {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}

.split-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--fg);
  margin-bottom: 56px;
  line-height: 1.15;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.split-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px 36px;
  transition: border-color 0.2s;
}

.split-card:hover {
  border-color: rgba(196, 255, 74, 0.25);
}

.card-icon {
  margin-bottom: 20px;
  opacity: 0.9;
}

.split-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--fg);
  margin-bottom: 12px;
}

.split-card p {
  font-size: 0.9rem;
  color: rgba(240,238,232,0.6);
  line-height: 1.65;
}

/* RESULTS */
.results {
  padding: 100px 5vw;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.results-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.results-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--fg);
  margin-bottom: 20px;
  line-height: 1.2;
}

.results-body {
  font-size: 0.95rem;
  color: rgba(240,238,232,0.6);
  line-height: 1.7;
  margin-bottom: 40px;
}

.progress-visual {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}

.progress-track {
  height: 6px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 16px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(196,255,74,0.4) 100%);
  transform-origin: left;
  animation: fill-progress 2s ease-out 0.5s both;
}

@keyframes fill-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.progress-labels {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-labels span {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 700;
}

.result-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 28px 32px;
  margin-bottom: 16px;
}

.rc-athlete {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--fg);
}

.rc-position {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 20px;
  margin-top: 4px;
}

.rc-change {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.rc-from {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: rgba(240,238,232,0.4);
}

.rc-arrow { color: var(--accent); }

.rc-to {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent);
}

.rc-gain {
  font-size: 0.85rem;
  color: var(--fg);
  font-weight: 500;
}

.rc-time {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}

/* CLOSING */
.closing {
  padding: 100px 5vw 80px;
  background: var(--bg);
}

.closing-inner {
  max-width: 900px;
  margin: 0 auto;
}

.closing-rule {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 48px;
}

.closing-statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: rgba(240,238,232,0.75);
  text-align: center;
  line-height: 1.6;
}

/* CTA SECTION */
.cta-section {
  padding: 120px 5vw;
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta-inner { max-width: 680px; margin: 0 auto; }

.cta-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--fg);
  line-height: 1.05;
  margin-bottom: 20px;
}

.cta-body {
  font-size: 1rem;
  color: rgba(240,238,232,0.55);
  line-height: 1.7;
  margin-bottom: 40px;
}

.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #0E0E0E;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 18px 40px;
  transition: opacity 0.2s;
}
.cta-btn:hover { opacity: 0.88; }

.cta-footnote {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 5vw;
  background: var(--surface);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-links span {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-right { order: -1; }

  .track-graphic { max-width: 280px; margin: 0 auto; }

  .manifesto-stat-row { flex-direction: column; gap: 32px; }
  .m-stat { text-align: left !important; padding: 0 !important; }
  .m-divider { display: none; }

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

  .results-inner { grid-template-columns: 1fr; gap: 48px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .manifesto-quote { padding: 0; }
}

@media (max-width: 480px) {
  .hero { padding: 60px 6vw 40px; }
  .hero-headline { font-size: 3.5rem; }
  .split-section, .results, .closing { padding: 64px 6vw 48px; }
  .manifesto { padding: 56px 6vw; }
  .result-card { padding: 20px 24px; }
}