/* Floodlit — the theme for the Freekick AI case study.
   Night pitch: near-black ground, floodlit lime, white goal-frame hairlines.
   Scoped to /freekick so the rest of the site keeps its quiet shell. */

:root {
  --bg: #0B0D10;
  --surface: #141820;
  --surface-2: #1B212B;
  --rule: #262D39;
  --text: #F2F5F7;
  --muted: #98A3B2;
  --lime: #8CFF40;
  --lime-dim: #6FD92F;
  --warm: #FFC56E;
  --blue: #4DA6FF;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 16px;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main { max-width: 52rem; margin: 0 auto; padding: 28px 0 96px; }

a { color: var(--lime); text-decoration-color: color-mix(in srgb, var(--lime) 40%, transparent); }
a:hover { text-decoration-color: var(--lime); }

/* --- nav back to the quiet shell --- */

.back {
  display: inline-block;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  margin-bottom: 40px;
}
.back:hover { color: var(--text); }

/* --- hero --- */

.eyebrow {
  font: 600 0.72rem/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 16px;
}

.lede {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 36px;
}
.lede strong { color: var(--text); font-weight: 600; }

/* --- demo video --- */

figure { margin: 0 0 14px; }

.demo {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #000;
  line-height: 0;
  box-shadow: 0 0 0 1px rgba(140, 255, 64, 0.06), 0 24px 60px -24px rgba(0, 0, 0, 0.9);
}
.demo video { width: 100%; height: auto; display: block; }

figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 12px;
}

/* --- section rhythm --- */

section { margin-top: 72px; }

h2 {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 18px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

p { margin: 0 0 1.1em; max-width: 38rem; }
p.wide { max-width: none; }

.muted { color: var(--muted); }

/* --- stat tiles: the numbers the app actually puts on screen --- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  margin: 28px 0;
}

.stat { background: var(--surface); padding: 18px 18px 16px; }

.stat .value {
  font: 700 1.65rem/1 var(--mono);
  letter-spacing: -0.02em;
  color: var(--lime);
  display: block;
  margin-bottom: 7px;
}
.stat .value .unit {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-left: 4px;
}
.stat .label {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  display: block;
}

/* --- pipeline: numbered steps joined by a trajectory line --- */

.pipeline { list-style: none; padding: 0; margin: 28px 0 0; position: relative; }

.pipeline > li {
  position: relative;
  padding: 0 0 30px 52px;
}

/* the connector between step markers */
.pipeline > li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 30px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--lime-dim), var(--rule));
  opacity: 0.45;
}
.pipeline > li:last-child { padding-bottom: 0; }
.pipeline > li:last-child::before { display: none; }

.pipeline .marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  border: 1px solid var(--lime-dim);
  color: var(--lime);
  font: 600 0.8rem/29px var(--mono);
  text-align: center;
  background: var(--bg);
}

.pipeline p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.pipeline p + p { margin-top: 0.6em; }
.pipeline code { color: var(--text); }

code {
  font: 0.88em/1.4 var(--mono);
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 1px 5px;
}

/* --- notes: honest engineering caveats --- */

.note {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--warm);
  border-radius: 0 10px 10px 0;
  padding: 16px 18px;
  margin: 24px 0;
}
.note p { margin: 0; font-size: 0.94rem; color: var(--muted); max-width: none; }
.note strong { color: var(--text); }

/* --- stack list --- */

.stack { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 20px 0 0; list-style: none; }
.stack li {
  font: 0.82rem/1 var(--mono);
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 8px 13px;
}

/* --- get it / support --- */

.links { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.btn-primary { background: var(--lime); color: #0A0C0F; }
.btn-primary:hover { background: #9DFF5C; }
.btn-secondary { border: 1px solid var(--rule); color: var(--text); background: var(--surface); }
.btn-secondary:hover { border-color: var(--muted); }

dl { margin: 20px 0 0; }
dt { font-weight: 650; font-size: 0.95rem; margin-top: 16px; }
dd { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }

footer {
  margin-top: 80px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.86rem;
}
footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
