/* Football Tracker 2026 — page styles */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--leading-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* dot texture, toggled via [data-texture] on <html> */
.dots { background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.2px); background-size: 24px 24px; }
html[data-texture="off"] .dots { background-image: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-bright);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent-line); }

.section-head { max-width: 620px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--h2);
  line-height: var(--leading-snug);
  letter-spacing: -.02em;
  margin-top: 16px;
}
.section-head p { color: var(--text-2); font-size: var(--fs-lead); margin-top: 14px; }

section { position: relative; }
.pad { padding-block: clamp(72px, 11vw, 150px); }

/* ============ Top nav ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), backdrop-filter var(--dur);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,9,11,.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; letter-spacing: -.01em; }
.brand .ball { width: 30px; height: 30px; color: var(--accent); flex: none; }
.brand .yr { color: var(--accent-bright); }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  padding: 9px 15px; border-radius: var(--r-pill); font-size: var(--fs-small); font-weight: 500;
  color: var(--text-2); transition: color var(--dur-fast), background var(--dur-fast);
}
.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__get { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font-weight: 600; font-size: var(--fs-small); color: var(--text); padding: 9px 6px; transition: color var(--dur-fast); }
.nav__get svg { width: 18px; height: 18px; }
.nav__get:hover { color: var(--accent-bright); }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-small);
  padding: 13px 22px; border-radius: var(--r-pill); border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur-fast), border-color var(--dur-fast); white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--glow-blue); }
.btn--primary:hover { background: var(--accent-bright); }
.btn--ghost { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--surface-3); border-color: var(--line-3); }
.btn--lg { padding: 16px 28px; font-size: var(--fs-body); }
.btn--block { width: 100%; }
.btn .codepill { font-family: var(--font-mono); font-weight: 700; font-size: .92em; letter-spacing: .1em;
  background: var(--accent-ghost); color: var(--accent-bright); border: 1px solid var(--accent-line);
  padding: 3px 9px; border-radius: 8px; margin-left: 2px; }

/* non-interactive "button" used only to display the downloader code */
.btn--static { cursor: default; }
.btn--static:hover { transform: none; background: var(--surface-2); border-color: var(--line-2); }

/* ============ HERO ============ */
.hero { position: relative; overflow: hidden; padding-top: 128px; padding-bottom: clamp(60px, 9vw, 120px); }
.hero__glow {
  position: absolute; pointer-events: none; z-index: 0;
  width: 80vw; max-width: 1100px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(91,127,232,.30), rgba(91,127,232,.06) 60%, transparent 72%);
  filter: blur(8px);
}
.hero__pitch { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5; }

.hero__inner { position: relative; z-index: 2; }
.hero-copy { max-width: 600px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 800; font-size: var(--display-1);
  line-height: var(--leading-tight); letter-spacing: -.03em; margin: 22px 0 0;
}
.hero h1 em { font-style: normal; color: var(--accent-bright); }
.hero .sub { color: var(--text-2); font-size: var(--fs-lead); margin-top: 22px; max-width: 30em; }
.hero .actions { display: flex; flex-wrap: nowrap; gap: 14px; margin-top: 34px; align-items: center; }
@media (max-width: 560px) { .hero .actions { flex-wrap: wrap; } }
.hero .meta { display: flex; flex-wrap: wrap; gap: 20px 28px; margin-top: 30px; color: var(--text-3); font-size: var(--fs-small); }
.hero .meta b { color: var(--text); font-family: var(--font-mono); font-weight: 600; }
.hero .meta span { display: inline-flex; align-items: center; gap: 9px; }
.hero .meta i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 4px rgba(70,200,109,.18); flex: none; }

.hero__visual { position: relative; }
.hero__ticker { display: none; }

/* --- direction: spotlight (default) --- */
.hero[data-hero="spotlight"] .hero__inner { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero[data-hero="spotlight"] .hero__glow { top: -22%; right: -14%; }
.hero[data-hero="spotlight"] .appframe { transform: perspective(1700px) rotateY(-13deg) rotateX(3deg); }

/* --- direction: stadium --- */
.hero[data-hero="stadium"] { text-align: center; }
.hero[data-hero="stadium"] .hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero[data-hero="stadium"] .hero-copy { max-width: 880px; }
.hero[data-hero="stadium"] .hero h1 { font-size: clamp(3rem, 9vw, 7rem); }
.hero[data-hero="stadium"] .hero .sub { margin-inline: auto; }
.hero[data-hero="stadium"] .hero .actions, .hero[data-hero="stadium"] .hero .meta { justify-content: center; }
.hero[data-hero="stadium"] .hero__visual { margin-top: clamp(40px, 6vw, 72px); width: 100%; max-width: 940px; }
.hero[data-hero="stadium"] .hero__glow { top: -30%; left: 50%; transform: translateX(-50%); }
.hero[data-hero="stadium"] .hero__pitch { display: block; }

/* --- direction: ticker --- */
.hero[data-hero="ticker"] .hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero[data-hero="ticker"] .hero__glow { top: -10%; right: -20%; }
.hero[data-hero="ticker"] .appframe { display: none; }
.hero[data-hero="ticker"] .hero__ticker { display: flex; flex-direction: column; gap: 14px; }

/* pitch lines (stadium variant) */
.hero__pitch { display: none; }
.hero__pitch svg { width: 100%; height: 100%; }

@media (max-width: 940px) {
  .hero[data-hero="spotlight"] .hero__inner,
  .hero[data-hero="ticker"] .hero__inner { grid-template-columns: 1fr; }
  .hero[data-hero="spotlight"] .appframe { transform: none; }
  .hero__visual { margin-top: 48px; }
  .hero-copy { max-width: 100%; }
}

/* ============ marquee strip ============ */
.strip { border-block: 1px solid var(--line); background: var(--bg-1); padding-block: 22px; overflow: hidden; }
.marquee { display: flex; gap: 0; width: max-content; animation: marquee 38s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 46px; padding-right: 46px; }
.marquee .item { display: inline-flex; align-items: center; gap: 12px; color: var(--text-2); font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.marquee .item .fb { width: 30px; height: 30px; }
.marquee .item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; } }

/* ============ Features (bento) ============ */
.features { background: var(--bg-1); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 28px; position: relative; overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-2); }
.card__tag { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-bright); display: flex; align-items: center; gap: 9px; }
.card__tag svg { width: 17px; height: 17px; }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--h3); letter-spacing: -.01em; margin-top: 14px; }
.card p { color: var(--text-2); font-size: var(--fs-small); margin-top: 8px; }
.card__mock { margin-top: 22px; }

.col-3 { grid-column: span 3; }
.col-2 { grid-column: span 2; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } .col-3,.col-2,.col-4 { grid-column: span 1; } .col-6 { grid-column: span 2; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .col-6 { grid-column: span 1; } }

/* ============ Install / Downloader code ============ */
.install { background: var(--bg); }
.install__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (max-width: 940px) { .install__grid { grid-template-columns: 1fr; } }

.steps { display: flex; flex-direction: column; gap: 8px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 22px 4px; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step__n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: .92rem; color: var(--accent-bright); background: var(--accent-ghost); border: 1px solid var(--accent-line); }
.step h4 { font-size: 1.1rem; font-weight: 600; }
.step p { color: var(--text-2); font-size: var(--fs-small); margin-top: 5px; }
.step code { font-family: var(--font-mono); background: var(--surface-2); padding: 2px 8px; border-radius: 6px; color: var(--accent-bright); font-size: .92em; }

/* the code "design element" */
.codecard {
  position: relative; background:
    radial-gradient(120% 90% at 80% -10%, rgba(91,127,232,.22), transparent 55%),
    linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2); border-radius: var(--r-2xl); padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-3);
}
.codecard__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.codecard__app { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.codecard__app .ball { width: 34px; height: 34px; color: var(--accent); }
.codecard__app small { display: block; color: var(--text-3); font-weight: 500; font-size: .8rem; }
.codecard__badge { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: var(--green-bright); border: 1px solid rgba(70,200,109,.35); background: rgba(70,200,109,.10); padding: 6px 11px; border-radius: var(--r-pill); }
.codecard__label { margin-top: 30px; color: var(--text-3); font-size: var(--fs-small); }
.codecard__code { display: flex; align-items: center; gap: clamp(8px, 1.6vw, 16px); margin-top: 12px; }
.digit {
  flex: 1; aspect-ratio: 3/4; display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: clamp(2.2rem, 6vw, 4rem);
  color: var(--text); background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--r-md);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 -18px 30px -20px rgba(91,127,232,.5);
}
.codecard__row { display: flex; gap: 12px; align-items: center; margin-top: 26px; flex-wrap: wrap; }
.codecard__hint { color: var(--text-3); font-size: var(--fs-small); }
.copybtn { display: inline-flex; align-items: center; gap: 8px; }
.copybtn.copied { color: var(--green-bright); border-color: rgba(70,200,109,.4); }

/* ============ FAQ ============ */
.faq { background: var(--bg-1); }
.faq__list { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: 0; text-align: left; padding: 24px 4px; font-size: var(--fs-lead); font-weight: 600; }
.faq__q:hover { color: var(--accent-bright); }
.faq__ic { width: 26px; height: 26px; flex: none; position: relative; }
.faq__ic::before, .faq__ic::after { content: ""; position: absolute; inset: 0; margin: auto; background: currentColor; transition: transform var(--dur) var(--ease); }
.faq__ic::before { width: 14px; height: 2px; }
.faq__ic::after { width: 2px; height: 14px; }
.faq__item.open .faq__ic::after { transform: rotate(90deg) scaleX(0); }
.faq__item.open .faq__q { color: var(--accent-bright); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height var(--dur-slow) var(--ease); }
.faq__a p { padding: 0 4px 26px; color: var(--text-2); max-width: 70ch; }

/* ============ Final CTA ============ */
.finale { position: relative; overflow: hidden; }
.finale__card {
  position: relative; border-radius: var(--r-2xl); overflow: hidden;
  border: 1px solid var(--accent-line);
  background: radial-gradient(120% 140% at 50% -30%, rgba(91,127,232,.4), transparent 60%), linear-gradient(180deg, #11162b, #0a0c14);
  padding: clamp(48px, 8vw, 96px) var(--gutter); text-align: center;
}
.finale__card h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--display-2); letter-spacing: -.025em; line-height: var(--leading-snug); }
.finale__card p { color: var(--text-2); font-size: var(--fs-lead); margin: 16px auto 0; max-width: 46ch; }
.finale__card .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); padding-block: 56px 40px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.footer .brand { font-size: 1.05rem; }
.footer__tag { color: var(--text-3); font-size: var(--fs-small); margin-top: 12px; max-width: 34ch; }
.footer__cols { display: flex; gap: clamp(36px, 6vw, 80px); flex-wrap: wrap; }
.footer__col h5 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-family: var(--font-mono); font-weight: 500; }
.footer__col a { display: block; color: var(--text-2); font-size: var(--fs-small); margin-top: 11px; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-3); font-size: var(--fs-small); }

/* ============ reveal-on-scroll ============
   Content is visible by default. The hidden→animate state is only armed once
   JS confirms the animation clock is live (html.anim) — so if rAF is frozen or
   JS is disabled, nothing is ever hidden. */
.reveal { opacity: 1; transform: none; }
html.anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
html.anim .reveal.in { opacity: 1; transform: none; }
html.anim .reveal[data-d="1"] { transition-delay: .08s; }
html.anim .reveal[data-d="2"] { transition-delay: .16s; }
html.anim .reveal[data-d="3"] { transition-delay: .24s; }

/* ============ Tweaks panel (vanilla) ============ */
#tweaks { position: fixed; right: 18px; bottom: 18px; z-index: 2147483646; width: 278px; display: none;
  background: rgba(18,21,27,.86); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 24px 70px -20px rgba(0,0,0,.8);
  color: var(--text); font-family: var(--font-sans); font-size: 12px; overflow: hidden; }
#tweaks.open { display: block; }
#tweaks .tk-hd { display: flex; align-items: center; justify-content: space-between; padding: 13px 12px 13px 16px; border-bottom: 1px solid var(--line); }
#tweaks .tk-hd b { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .01em; }
#tweaks .tk-x { background: none; border: 0; color: var(--text-3); width: 24px; height: 24px; border-radius: 7px; font-size: 14px; }
#tweaks .tk-x:hover { background: var(--surface-2); color: var(--text); }
#tweaks .tk-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
#tweaks .tk-sect { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
#tweaks .tk-lbl { color: var(--text-2); font-weight: 500; margin-bottom: 7px; display: block; white-space: nowrap; }
#tweaks .tk-row .tk-lbl { flex: 1; }
#tweaks .tk-seg { display: flex; gap: 4px; background: var(--bg-1); border: 1px solid var(--line); padding: 3px; border-radius: 10px; }
#tweaks .tk-seg button { flex: 1; border: 0; background: none; color: var(--text-2); padding: 7px 4px; border-radius: 7px; font-weight: 600; font-size: 11.5px; transition: all var(--dur-fast); }
#tweaks .tk-seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
#tweaks .tk-chips { display: flex; gap: 8px; }
#tweaks .tk-chip { flex: 1; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); position: relative; }
#tweaks .tk-chip[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--text), 0 0 0 4px var(--bg); }
#tweaks .tk-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#tweaks .tk-toggle { width: 38px; height: 22px; border-radius: 999px; background: var(--surface-3); border: 0; position: relative; transition: background var(--dur-fast); flex: none; }
#tweaks .tk-toggle[aria-pressed="true"] { background: var(--green); }
#tweaks .tk-toggle i { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform var(--dur-fast) var(--ease); }
#tweaks .tk-toggle[aria-pressed="true"] i { transform: translateX(16px); }
#tweaks .tk-field { width: 100%; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 11px; color: var(--text); font: inherit; }
#tweaks .tk-field:focus { outline: none; border-color: var(--accent-line); }
