/* ===========================================================================
   LastMinutesAI — "Matchday Terminal"
   A live broadcast data-sheet. Navy base, blue→amber temperature, the page
   heats up as you scroll. Anton (display) · Hanken Grotesk (body) ·
   Spline Sans Mono (data). Plain CSS, no build.
   =========================================================================== */

:root {
  --bg:        #070D1A;
  --bg-2:      #0A1326;
  --surface:   #0E1A30;
  --surface-2: #14233D;
  --line:      rgba(150, 180, 220, 0.14);
  --line-soft: rgba(150, 180, 220, 0.08);

  --text:    #F4F7FB;
  --text-2:  #AEBBD0;
  --muted:   #76859C;

  --blue: #6BABDE;
  --ice:  #B3EFFF;
  --amber:      #FEC75D;
  --amber-deep: #F4A93A;
  --live:  #21E07A;
  --error: #FF8A6B;

  --grad-hot:  linear-gradient(135deg, #FEC75D 0%, #F4A93A 100%);
  --grad-heat: linear-gradient(90deg, #6BABDE 0%, #B3EFFF 44%, #FEC75D 100%);
  --grad-heatv: linear-gradient(180deg, #FEC75D 0%, #B3EFFF 50%, #6BABDE 100%);

  --display: "Anton", "Arial Narrow", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --shell: 1100px;
  --heat: 0.14;            /* page temperature 0–1, driven by scroll in main.js */
}

/* ---- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--body);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(900px 600px at 84% -6%, rgba(107,171,222,.16), transparent 60%),
    radial-gradient(760px 520px at 0% 116%, rgba(254,199,93,calc(.05 + var(--heat) * .14)), transparent 58%),
    repeating-linear-gradient(90deg, rgba(150,180,220,.035) 0 1px, transparent 1px 84px),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  background-attachment: fixed;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- helpers -------------------------------------------------------------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.skip-link { position: absolute; left: 12px; top: -48px; z-index: 10000; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 6px; font-weight: 700; transition: top .15s ease; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(33,224,122,.6); animation: pulse 2s infinite; vertical-align: middle; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(33,224,122,.5)} 70%{box-shadow:0 0 0 7px rgba(33,224,122,0)} 100%{box-shadow:0 0 0 0 rgba(33,224,122,0)} }

/* ---- vidiprinter ticker --------------------------------------------------- */
.ticker {
  position: relative; overflow: hidden; z-index: 60;
  background: #04070F; border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: .76rem; letter-spacing: .02em;
}
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, #04070F, transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, #04070F, transparent); }
.ticker-track { display: inline-flex; gap: 34px; padding: 9px 0; white-space: nowrap; animation: marquee 38s linear infinite; will-change: transform; }
.tick { color: var(--text-2); display: inline-flex; gap: 9px; align-items: center; }
.tick b { color: var(--live); font-weight: 700; letter-spacing: .08em; }
.tick i { font-style: normal; font-weight: 600; }
.tick i.hot { color: var(--amber); }
.tick i.warm { color: var(--ice); }
.tick i.cool { color: var(--blue); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---- header --------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); background: linear-gradient(180deg, rgba(7,13,26,.9), rgba(7,13,26,.5)); border-bottom: 1px solid var(--line-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-logo { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line), 0 4px 14px rgba(0,0,0,.45); }
.brand-name { font-family: var(--body); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.brand-ai { color: var(--amber); }
.header-right { display: flex; align-items: center; gap: 18px; }
.header-meta { font-family: var(--mono); font-size: .74rem; color: var(--muted); letter-spacing: .04em; }
.header-cta { font-family: var(--mono); font-weight: 600; font-size: .8rem; letter-spacing: .02em; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--line); color: var(--text); transition: border-color .2s, background .2s, color .2s; }
.header-cta:hover { border-color: var(--amber); color: var(--amber); }
@media (max-width: 540px) { .header-meta { display: none; } }

/* ---- heat rail ------------------------------------------------------------ */
.rail { display: none; }
@media (min-width: 1280px) {
  .rail {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    position: fixed; left: 20px; top: 132px; bottom: 56px; width: 46px; z-index: 30;
    font-family: var(--mono);
  }
  .rail-label, .rail-foot { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; }
  .rail-foot { color: var(--amber); }
  .rail-scale { position: absolute; top: 26px; bottom: 34px; left: 0; display: flex; flex-direction: column; justify-content: space-between; font-size: .56rem; color: var(--muted); }
  .rail-track { position: relative; flex: 1; width: 6px; margin: 26px 0 34px auto; border-radius: 99px; background: rgba(150,180,220,.12); overflow: visible; }
  .rail-fill { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--heat) * 100%); border-radius: 99px; background: var(--grad-heatv); box-shadow: 0 0 14px rgba(254,199,93,.4); transition: height .25s linear; }
  .rail-bug { position: absolute; left: 50%; transform: translate(-50%, 50%); bottom: calc(var(--heat) * 100%); width: 13px; height: 13px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(254,199,93,.18), 0 0 16px rgba(254,199,93,.6); transition: bottom .25s linear; }
}

/* ---- kicker / section heads ----------------------------------------------- */
.kicker { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.sec-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.sec-no { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; color: var(--amber); }
.sec-title { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 4.6vw, 3rem); letter-spacing: .01em; text-transform: uppercase; line-height: 1; }
.sec-meta { margin-left: auto; font-family: var(--mono); font-size: .74rem; color: var(--muted); letter-spacing: .06em; }

/* ---- buttons / form ------------------------------------------------------- */
.signup { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.signup-input { flex: 1 1 220px; min-width: 0; font: inherit; color: var(--text); background: rgba(8,14,28,.7); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; transition: border-color .2s, background .2s; }
.signup-input::placeholder { color: var(--muted); }
.signup-input:focus { border-color: var(--blue); background: var(--surface-2); outline: none; }
.signup-input:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; gap: 9px; font: inherit; font-weight: 800; cursor: pointer; white-space: nowrap; border: 0; border-radius: 10px; padding: 14px 22px; transition: transform .15s, box-shadow .2s, filter .2s; }
.btn-primary { color: #18120A; background: var(--grad-hot); box-shadow: 0 6px 22px rgba(254,199,93,.26); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(254,199,93,.42); filter: saturate(1.06); }
.btn-primary:active { transform: translateY(0); }
.btn-arrow { transition: transform .2s; }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.form-msg { flex-basis: 100%; font-family: var(--mono); font-size: .82rem; margin-top: 2px; min-height: 1.1em; }
.form-msg.is-error { color: var(--error); }
.form-msg.is-ok { color: var(--live); }
.micro { font-family: var(--mono); color: var(--muted); font-size: .76rem; margin-top: 14px; letter-spacing: .01em; }
.cf-turnstile { flex-basis: 100%; margin-top: 4px; } /* invisible until a challenge is needed (data-appearance="interaction-only") */

/* ---- hero ----------------------------------------------------------------- */
.hero { position: relative; padding: clamp(40px, 7vw, 84px) 0 clamp(56px, 9vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 56px); align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.12fr .88fr; } }

.hero-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .9; letter-spacing: .005em; font-size: clamp(3.1rem, 9vw, 6.2rem); margin-top: 20px; }
.hero-title span { display: block; }
.hero-title .l2 { color: var(--text); }
.hero-title em { font-style: normal; background: var(--grad-heat); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.04rem, 1.9vw, 1.22rem); color: var(--text-2); max-width: 40ch; margin-top: 22px; }

/* page-load stagger */
.kicker, .hero-title span, .hero-sub, .hero .signup, .hero .micro, .hero-demo { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.kicker { animation-delay: .02s; }
.hero-title .l1 { animation-delay: .08s; }
.hero-title .l2 { animation-delay: .16s; }
.hero-title .l3 { animation-delay: .24s; }
.hero-sub { animation-delay: .34s; }
.hero .signup { animation-delay: .42s; }
.hero .micro { animation-delay: .5s; }
.hero-demo { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---- broadcast match card ------------------------------------------------- */
.hero-demo { display: flex; justify-content: center; perspective: 1200px; }
.match-card {
  position: relative; width: 100%; max-width: 430px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  box-shadow: 0 40px 90px rgba(0,0,0,.6);
  transform: rotate(-1.4deg);
  overflow: hidden;
}
.match-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px); }
.match-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad-heatv); }
.mc-bug { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--live); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.mc-score { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mc-team { display: flex; align-items: center; gap: 10px; flex: 1; }
.mc-team--away { justify-content: flex-end; }
.mc-name { font-weight: 700; font-size: .98rem; }
.mc-badge { font-family: var(--mono); font-weight: 700; font-size: .68rem; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.mc-badge--ars { background: linear-gradient(135deg, #ef0107, #9b0205); }
.mc-badge--che { background: linear-gradient(135deg, #1f6dff, #0a3ea3); }
.mc-goals { font-family: var(--display); font-size: 2.1rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.mc-dash { color: var(--muted); margin: 0 6px; }
.mc-clockline { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 4px 0 18px; }
.mc-clock { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

.heat { background: rgba(8,14,28,.6); border: 1px solid var(--line-soft); border-radius: 11px; padding: 15px; position: relative; }
.heat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 11px; }
.heat-label { font-family: var(--mono); font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.heat-pct { font-family: var(--display); font-size: 1.7rem; color: var(--amber); font-variant-numeric: tabular-nums; }
.heat-track { height: 12px; border-radius: 99px; background: rgba(150,180,220,.12); overflow: hidden; }
.heat-fill { height: 100%; width: 0; border-radius: 99px; background: var(--grad-heat); box-shadow: 0 0 18px rgba(254,199,93,.45); transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.heat-why { font-size: .84rem; color: var(--text-2); margin-top: 12px; }
.heat-tag { font-family: var(--mono); font-weight: 700; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); margin-right: 7px; }
.mc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 16px; }
.mc-stats div { background: rgba(8,14,28,.5); border: 1px solid var(--line-soft); border-radius: 9px; padding: 10px; text-align: center; }
.mc-stats dt { font-family: var(--mono); font-size: .64rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.mc-stats dd { font-family: var(--display); font-size: 1.18rem; margin-top: 3px; font-variant-numeric: tabular-nums; }
.mc-vs { color: var(--muted); margin: 0 3px; }

/* ---- the read (editorial numbered) ---------------------------------------- */
.read { padding: clamp(56px, 9vw, 104px) 0; }
.reads { list-style: none; padding: 0; margin-top: 10px; }
.read-row { display: grid; grid-template-columns: auto 1fr; gap: 18px 26px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--line-soft); }
@media (min-width: 760px) { .read-row { grid-template-columns: 120px 1fr 180px; align-items: center; } }
.r-num { font-family: var(--display); font-size: clamp(3rem, 7vw, 5.4rem); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px rgba(150,180,220,.32); transition: -webkit-text-stroke-color .3s, color .3s; }
.read-row:hover .r-num { -webkit-text-stroke-color: var(--amber); color: rgba(254,199,93,.08); }
.r-title { font-family: var(--body); font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -.01em; }
.r-text { color: var(--text-2); font-size: 1rem; margin-top: 8px; max-width: 52ch; }
.r-tag { font-family: var(--mono); font-size: .74rem; color: var(--muted); letter-spacing: .04em; }
@media (min-width: 760px) { .r-tag { text-align: right; } }

/* ---- cta / kick off (hot end) --------------------------------------------- */
.cta { position: relative; overflow: hidden; padding: clamp(70px, 11vw, 150px) 0; border-top: 1px solid var(--line-soft); }
.cta-heat { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(760px 420px at 50% 128%, rgba(254,199,93,.26), transparent 62%),
  radial-gradient(500px 300px at 50% 128%, rgba(244,169,58,.2), transparent 60%); }
.cta-inner { position: relative; z-index: 1; max-width: 680px; margin-inline: auto; text-align: center; }
.sec-no--center { display: block; text-align: center; margin-bottom: 14px; }
.cta-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .92; letter-spacing: .01em; font-size: clamp(2.6rem, 7vw, 4.8rem); }
.cta-title em { font-style: normal; background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-sub { color: var(--text-2); font-size: clamp(1.02rem, 1.9vw, 1.18rem); margin: 18px auto 0; max-width: 46ch; }
.signup--lg { max-width: 520px; margin-inline: auto; justify-content: center; }
.cta .micro { text-align: center; }

/* ---- footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 52px 0 60px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 680px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand .brand-name { font-family: var(--body); font-weight: 800; font-size: 1.1rem; }
.footer-tag { color: var(--muted); font-size: .88rem; margin-top: 6px; max-width: 30ch; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-h { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--amber); margin-bottom: 4px; }
.footer-col a { color: var(--text-2); font-size: .92rem; transition: color .2s; width: fit-content; }
.footer-col a:hover { color: var(--text); }
.footer-18 { font-family: var(--mono); font-weight: 700; font-size: .72rem; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; width: fit-content; }
.footer-mono { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.footer-legal { color: var(--muted); font-size: .76rem; margin-top: 40px; max-width: 64ch; }
