/* soccerwithmarat.com — design tokens + layout
   Palette derived from YouTube profile photo (blue #49A1DE → tuned #55ADEF).
   RULE: green = progress only. blue = interaction only. */

:root {
  --ink: #0C1420;
  --ink-2: #101A28;
  --green: #46E884;
  --blue: #55ADEF;
  --paper: #F2F3EE;
  --paper-ink: #1A2430;
  --grey: #97A3B0;      /* on ink */
  --grey-2: #5A646E;    /* on paper */
  --white: #F5F7FA;
  --hair: rgba(151,163,176,.18);

  --font-d: 'Archivo Exp', system-ui, sans-serif;
  --font-s: 'Newsreader', Georgia, serif;
  --font-m: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  /* 1.25 scale from 16 */
  --t-0: 0.8rem;    /* 12.8 */
  --t-1: 1rem;
  --t-2: 1.25rem;
  --t-3: 1.563rem;
  --t-4: 1.953rem;
  --t-5: 2.441rem;
  --t-6: 3.052rem;
}

@font-face { font-family: 'Archivo Exp'; src: url('../fonts/archivo-exp-vf.woff2') format('woff2'); font-weight: 500 900; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('../fonts/newsreader-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/plexmono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/plexmono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-s);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px;
}

.eyebrow {
  font-family: var(--font-m); font-size: var(--t-0); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--grey);
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-img { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.hero-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,20,32,.28) 0%, rgba(12,20,32,.05) 26%, rgba(12,20,32,.55) 52%, rgba(12,20,32,.94) 78%, var(--ink) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 0 20px calc(10px + env(safe-area-inset-bottom)); max-width: 640px; }
.hero h1 {
  font-family: var(--font-d); font-weight: 800; font-stretch: 125%;
  font-size: clamp(1.45rem, 6.2vw, 2.6rem);
  line-height: 1.05; letter-spacing: -0.015em; text-wrap: balance;
  margin-bottom: 8px;
}
.hero-sub {
  font-size: clamp(.88rem, 3.4vw, 1.06rem); line-height: 1.38; color: #C9D2DB;
  margin-bottom: 10px; max-width: 46ch;
}
.hero-proof {
  font-family: var(--font-m); font-size: .74rem; color: var(--green);
  margin-bottom: 12px; letter-spacing: .02em;
}
.hero-proof .n { font-weight: 500; }

/* form (shared hero + ask) */
.sub-form { display: flex; gap: 8px; max-width: 430px; }
.sub-form input[type=email] {
  flex: 1; min-width: 0; font-family: var(--font-m); font-size: .95rem;
  padding: 13px 14px; border-radius: 6px;
  background: rgba(245,247,250,.07); border: 1px solid rgba(151,163,176,.35);
  color: var(--white); caret-color: var(--blue);
}
.sub-form input::placeholder { color: var(--grey); }
.sub-form button {
  font-family: var(--font-d); font-stretch: 125%; font-weight: 700; font-size: .95rem;
  padding: 13px 18px; border-radius: 6px; border: 0; cursor: pointer;
  background: var(--blue); color: var(--ink); white-space: nowrap;
}
.sub-form button:hover { filter: brightness(1.08); }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-note { font-size: .8rem; line-height: 1.3; color: var(--grey); margin-top: 7px; font-family: var(--font-s); }
.form-msg { font-family: var(--font-m); font-size: .84rem; margin-top: 8px; display: none; }
.form-msg.ok { color: var(--green); display: block; }   /* progress semantics: you moved the project forward */
.form-msg.err { color: #F2A6A6; display: block; }

/* ---------- STATUS STRIP ---------- */
.strip {
  border-top: 2px solid var(--green);
  background: rgba(16,26,40,.85);
  font-family: var(--font-m);
  padding: 9px 0 10px;
}
.hero .strip { margin: 12px -20px 0; padding-left: 20px; padding-right: 20px; backdrop-filter: blur(4px); }
@media (max-height: 760px) and (max-width: 899px) {
  .hero h1 { font-size: clamp(1.3rem, 5.6vw, 1.6rem); }
  .hero-sub { font-size: .84rem; }
}
.strip-row { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; font-size: .72rem; letter-spacing: .08em; }
.strip-row .lab { color: var(--grey); }
.strip-row .val { color: var(--white); font-weight: 500; }
.strip-row .val.live { color: var(--green); }
.strip-row .arrow { color: var(--grey); }
.strip.stale .val.live { color: var(--grey); }

/* ---------- SECTIONS ---------- */
section { padding: 72px 0; }
.sec-head { margin-bottom: 28px; }

/* proof strip */
.proof { border-top: 1px solid var(--hair); }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 22px; margin-top: 30px; }
.proof-fig { font-family: var(--font-m); padding-left: 12px; border-left: 2px solid var(--green); }
.proof-fig .n { display: block; font-size: clamp(1.45rem, 5.6vw, 2.2rem); font-weight: 500; color: var(--green); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.proof-fig .l { display: block; font-size: .8rem; color: var(--grey); margin-top: 6px; line-height: 1.45; font-family: var(--font-s); }
.proof-fig .spark { display: block; margin-top: 8px; }

/* story */
.story { background: var(--paper); color: var(--paper-ink); padding: 84px 0; }
.story .eyebrow { color: var(--grey-2); }
.story-prose { max-width: 34em; margin-top: 28px; font-size: clamp(1.19rem, 4.6vw, 1.3rem); line-height: 1.62; }
.story-prose p + p { margin-top: 1.25em; }
.story-prose p:first-child { font-size: 1.16em; }

/* scoreboard strip: broadcast columns */
.board .strip-row { font-size: .78rem; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 7px; vertical-align: 1px; }
.strip.stale .live-dot { background: var(--grey); }

/* scoreboard */
.board .strip { margin-top: 26px; padding: 14px 0; }
.board .strip .wrap > div + div { margin-top: 8px; }
.board-note { margin-top: 18px; font-style: italic; color: var(--grey); font-size: 1.02rem; max-width: 40em; }
.board-rows { margin-top: 6px; font-family: var(--font-m); font-size: .85rem; }
.board-rows div { padding: 10px 0; border-bottom: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 12px; }
.board-rows .k { color: var(--grey); }
.board-rows .v { color: var(--green); font-weight: 500; }
.strip.stale + .board-rows .v, .board.stale .board-rows .v { color: var(--grey); }

/* content clips */
.clips { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 720px) { .clips { grid-template-columns: repeat(3, 1fr); } }
.clip { position: relative; border: 1px solid var(--hair); border-radius: 8px; overflow: hidden; background: var(--ink-2); aspect-ratio: 9/16; max-height: 430px; }
.clip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip button.play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, transparent 55%, rgba(12,20,32,.72));
  border: 0; cursor: pointer; display: flex; align-items: flex-end; padding: 14px;
}
.clip .pb {
  width: 44px; height: 44px; border-radius: 50%; background: var(--blue);
  display: grid; place-items: center; flex: none;
}
.clip .pb svg { display: block; margin-left: 3px; }
.clip .cl-t { font-family: var(--font-m); font-size: .78rem; color: var(--white); text-align: left; margin-left: 12px; }
.clip iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.clip .views {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  font-family: var(--font-m); font-size: .68rem; font-weight: 500; letter-spacing: .08em;
  color: var(--green); background: rgba(12,20,32,.82); border: 1px solid rgba(70,232,132,.35);
  padding: 4px 7px; border-radius: 4px;
}
.follow { margin-top: 22px; font-family: var(--font-m); font-size: .84rem; }
.follow a { color: var(--blue); text-decoration: none; margin-right: 18px; }
.follow a:hover { text-decoration: underline; }

/* ask */
.ask h2 { font-family: var(--font-d); font-stretch: 125%; font-weight: 800; font-size: clamp(1.6rem, 6vw, 2.4rem); letter-spacing: -.015em; margin-bottom: 12px; }
.ask p.lead { color: #C9D2DB; max-width: 44ch; margin-bottom: 20px; font-size: 1.08rem; }

/* trusted by */
.brands { padding-top: 0; }
.brand-row { display: flex; flex-wrap: wrap; gap: 26px 34px; align-items: center; margin-top: 22px; }
.brand-row img { height: 26px; width: auto; filter: grayscale(1) brightness(1.6) opacity(.5); }
.brand-row span.b-txt { font-family: var(--font-d); font-stretch: 125%; font-weight: 600; color: var(--grey); opacity: .65; font-size: 1.05rem; letter-spacing: .02em; }

/* footer */
footer { border-top: 1px solid var(--hair); padding: 40px 0 60px; font-family: var(--font-m); font-size: .84rem; color: var(--grey); }
footer .links a { color: var(--blue); text-decoration: none; margin-right: 18px; }
footer .links a:hover { text-decoration: underline; }
footer .biz { margin-top: 16px; }
footer .biz a { color: var(--blue); text-decoration: none; }
footer .tag { margin-top: 26px; font-family: var(--font-s); font-style: italic; color: var(--white); font-size: 1rem; }
footer .cc { margin-top: 8px; font-size: .75rem; }

/* section headline style */
h2.sec-t { font-family: var(--font-d); font-stretch: 125%; font-weight: 800; font-size: clamp(1.35rem, 5vw, 1.9rem); letter-spacing: -.01em; margin-top: 10px; }

/* reveal (single restrained scroll-reveal) */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
  .rv.in { opacity: 1; transform: none; }
}

/* desktop */
@media (min-width: 900px) {
  .hero { flex-direction: row; align-items: flex-end; }
  .hero-inner { padding: 0 0 40px; margin: 0 auto; max-width: 1080px; width: 100%; padding-left: 20px; padding-right: 20px; }
  .hero-inner .hero-copy { max-width: 560px; }
  .hero .strip { margin: 26px 0 0; border-radius: 4px; border: 1px solid var(--hair); border-top: 2px solid var(--green); max-width: 640px; }
  .proof-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 340px) {
  .sub-form { flex-direction: column; }
}
