/* ============================================================
   FC-OS — "Matchday control-room" presentation site
   Dark stadium-night · tactical chalk-line signature
   ============================================================ */

:root {
  /* palette */
  --bg:        #0A0E0C;
  --bg-2:      #0E1512;
  --surface:   #121a16;
  --surface-2: #16211b;
  --line:      #223029;
  --chalk:     #EDF2EE;
  --muted:     #8A9A90;
  --muted-2:   #7a8a80;

  /* accents */
  --green: #16E06A;
  --amber: #F4B740;
  --cyan:  #35D0E0;
  --coral: #FF6B5C;
  --violet:#A78BFA;

  /* type */
  --display: "Montserrat", system-ui, sans-serif;
  --body:    "Manrope", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 80px);
  --radius: 18px;
}

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

body {
  font-family: var(--body);
  color: var(--chalk);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* subtle pitch-line texture across the whole page */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    linear-gradient(transparent 0 39px, rgba(255,255,255,.014) 39px 40px),
    linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.014) 39px 40px);
  background-size: 40px 40px;
  pointer-events: none; z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

section { position: relative; z-index: 1; }

/* scroll sentinel that toggles the nav's stuck state */
#stick-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.1rem;
}
.eyebrow--center { text-align: center; }

.section__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -.02em;
}
.accent { color: var(--green); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--display); font-weight: 700;
  font-size: .98rem; letter-spacing: .01em;
  padding: .85em 1.6em; border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  will-change: transform;
}
.btn--primary {
  background: var(--green); color: #04160c;
  box-shadow: 0 0 0 rgba(22,224,106,0);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(22,224,106,.7); }
.btn--ghost { border: 1px solid var(--line); color: var(--chalk); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--green); transform: translateY(-2px); }
.btn--lg { font-size: 1.05rem; padding: 1em 2em; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  background: rgba(10,14,12,.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.is-stuck { border-color: var(--line); background: rgba(10,14,12,.85); }
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 900; letter-spacing: .02em; font-size: 1.15rem; }
.nav__mark { width: 16px; height: 16px; border-radius: 4px; background: var(--green); box-shadow: 0 0 18px rgba(22,224,106,.8); }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); font-size: .95rem; }
.nav__links a { color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--chalk); }
.nav__cta { color: var(--chalk) !important; border: 1px solid var(--line); padding: .5em 1.1em; border-radius: 999px; }
.nav__cta:hover { border-color: var(--green); }
@media (max-width: 760px) { .nav__links a:not(.nav__cta) { display: none; } }

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
  padding: clamp(40px, 8vh, 90px) var(--pad) 60px;
  max-width: var(--maxw); margin-inline: auto;
  overflow: hidden;
}
.hero__grid {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(transparent 0 79px, rgba(22,224,106,.05) 79px 80px),
    linear-gradient(90deg, transparent 0 79px, rgba(22,224,106,.05) 79px 80px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 70% at 65% 55%, #000, transparent 70%);
  transform: perspective(600px) rotateX(2deg);
}
.hero__glow {
  position: absolute; top: -10%; right: 8%; width: 55%; aspect-ratio: 1; z-index: 0;
  background: radial-gradient(circle, rgba(22,224,106,.20), transparent 62%);
  filter: blur(20px); pointer-events: none;
}
.hero__copy { position: relative; z-index: 2; }
.hero__title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: .98; letter-spacing: -.03em;
  margin-bottom: 1.3rem;
}
.hero__sub { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.22rem); max-width: 34ch; margin-bottom: 2rem; }

.hero__stage { position: relative; z-index: 1; justify-self: center; width: 100%; height: min(76svh, 640px); display: grid; place-items: center; }
.stage__ring {
  position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%);
  width: 82%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, rgba(22,224,106,.16), transparent 58%);
  border-bottom: 2px solid rgba(22,224,106,.18);
}
.stage__player {
  position: relative; z-index: 1; width: 100%; height: 100%;
  display: grid; place-items: center;
}
.stage__poster {
  width: auto; height: 100%; max-width: 100%; object-fit: contain;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,.6));
  -webkit-mask-image: linear-gradient(#000 90%, transparent);
  mask-image: linear-gradient(#000 90%, transparent);
}
/* interactive spinning 3D football at the player's feet */
.stage__ball {
  position: absolute; z-index: 2;
  bottom: 7%; left: 52%; transform: translateX(-50%);
  width: clamp(96px, 23%, 168px); aspect-ratio: 1;
  filter: drop-shadow(0 16px 22px rgba(0,0,0,.7));
}
.stage__ball model-viewer { width: 100%; height: 100%; background: transparent; --poster-color: transparent; }

.hero__scrollcue {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 26px; height: 42px; border: 2px solid var(--muted-2); border-radius: 14px;
  display: grid; justify-items: center; padding-top: 7px;
}
.hero__scrollcue span { width: 4px; height: 8px; border-radius: 2px; background: var(--green); animation: scrolldot 1.6s ease-in-out infinite; }
@keyframes scrolldot { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(9px); opacity: .3; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 10px; padding-top: 40px; }
  .hero__sub { margin-inline: auto; }
  .hero__stage { order: -1; height: min(52svh, 460px); }
  .hero__glow { right: auto; left: 50%; transform: translateX(-50%); top: 0; }
}

/* ============================================================
   Section rhythm
   ============================================================ */
.problem, .solution, .modules, .compliance, .compare, .cta {
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(70px, 12vh, 140px) var(--pad);
}

/* ============================================================
   2. PROBLEM
   ============================================================ */
.problem { text-align: center; }
.problem .section__title { color: var(--muted); }
.problem__scatter { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 2.4rem 0; }
.chip {
  font-family: var(--mono); font-size: .95rem;
  padding: .7em 1.3em; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  transform: rotate(calc((var(--i) - 1.5) * 2.5deg));
  transition: transform .3s ease, color .3s, border-color .3s;
}
.chip:hover { transform: rotate(0) translateY(-3px); color: var(--chalk); border-color: var(--coral); }
.problem__lead {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.4rem, 3.2vw, 2.3rem); line-height: 1.25;
  max-width: 20ch; margin: 0 auto; letter-spacing: -.01em;
}
.problem__lead strong { color: var(--coral); }

/* ============================================================
   3. SOLUTION / DASHBOARD
   ============================================================ */
.solution__intro { max-width: 42ch; margin-bottom: 3rem; }
.solution__lead { color: var(--muted); font-size: 1.15rem; margin-top: 1rem; }

.dashboard {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.metric {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 30px; min-height: 180px;
  display: flex; flex-direction: column; gap: .4rem;
}
.metric::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); box-shadow: 0 0 20px var(--accent); opacity: .9; }
.metric__label { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.metric__value { font-family: var(--mono); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.1rem); color: var(--chalk); line-height: 1; margin-top: auto; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.metric__value::after { content: attr(data-suffix); font-size: .5em; color: var(--accent); margin-left: .15em; }
.metric__foot { font-size: .8rem; color: var(--muted-2); }
.metric__spark { height: 22px; background: linear-gradient(90deg, transparent, var(--accent)); opacity: .25; margin-top: .5rem; border-radius: 3px; mask: repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 6px); }
.solution__note { text-align: center; margin-top: 2rem; color: var(--muted); font-family: var(--mono); font-size: .82rem; letter-spacing: .04em; }

@media (max-width: 900px) { .dashboard { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .dashboard { grid-template-columns: 1fr; } .metric { min-height: 0; } }

/* ============================================================
   4. MODULES — bento grid
   ============================================================ */
.modules__head { max-width: 46ch; margin-bottom: 3.2rem; }
.modules__lead { color: var(--muted); font-size: 1.12rem; margin-top: 1rem; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

.mcard {
  position: relative; overflow: hidden;
  grid-column: span 2;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
  min-height: 168px;
}
.mcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 100% 0%, var(--accent), transparent 42%);
  opacity: .06; transition: opacity .3s ease;
}
.mcard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--surface-2); }
.mcard:hover::after { opacity: .13; }

/* size variety — spans tile the 6-col grid cleanly (rows sum to 6) */
.mcard--wide    { grid-column: span 3; }
.mcard--feature { grid-column: span 4; }
.mcard--full    { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 18px 40px; }
.mcard--full .mcard__top { flex: 0 0 100%; }

.mcard__top { display: flex; align-items: center; justify-content: space-between; }
.mcard__num { font-family: var(--mono); font-size: .78rem; color: var(--muted-2); letter-spacing: .1em; }
.mcard__icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); color: var(--accent); flex: none; }
.mcard__icon svg { width: 21px; height: 21px; }
.mcard__title { font-family: var(--display); font-weight: 700; font-size: 1.18rem; letter-spacing: -.01em; line-height: 1.15; }
.mcard--feature .mcard__title, .mcard--full .mcard__title { font-size: 1.5rem; }
.mcard--full .mcard__title { flex: 1 1 280px; }
.mcard__desc { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.mcard--feature .mcard__desc, .mcard--full .mcard__desc { font-size: 1.05rem; color: #b4c2ba; max-width: 40ch; }
.mcard--full .mcard__desc { flex: 2 1 340px; }

/* the "flows" feature card: mini tactical passing lines */
.mcard__flow { margin-top: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.mcard--full .mcard__flow { flex: 0 0 100%; margin-top: 4px; }
.mcard--flowcard {
  background: linear-gradient(120deg, var(--surface-2), var(--bg-2));
  border-color: color-mix(in srgb, var(--green) 26%, var(--line));
}
.mcard__flow span { padding: .35em .7em; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-2); }
.mcard__flow em { color: var(--accent); font-style: normal; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .mcard { grid-column: span 2; min-height: 150px; }
  .mcard--wide { grid-column: span 2; }
  .mcard--feature, .mcard--full { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .mcard, .mcard--wide, .mcard--feature, .mcard--full { grid-column: 1 / -1; min-height: 0; }
  .mcard--full { flex-direction: column; gap: 12px; }
  .mcard--full .mcard__title, .mcard--full .mcard__desc { flex: 1 1 auto; }
}

/* ============================================================
   5. COMPLIANCE
   ============================================================ */
.compliance { }
.compliance__inner {
  background:
    radial-gradient(ellipse 60% 100% at 0% 0%, rgba(22,224,106,.08), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(32px, 6vw, 64px);
}
.compliance__lead { color: #b4c2ba; font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 52ch; margin-top: 1.2rem; }
.badges { list-style: none; padding: 0; margin-top: 2.6rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.badges li {
  padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
  border-left: 3px solid var(--green);
}
.badge__k { font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; }
.badge__d { font-size: .82rem; color: var(--muted); }
@media (max-width: 760px) { .badges { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   6. COMPARE
   ============================================================ */
.compare__table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare__row { display: grid; grid-template-columns: 1.1fr 1.7fr 1.2fr; align-items: center; }
.compare__row > span { padding: 20px 22px; border-bottom: 1px solid var(--line); font-size: .96rem; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.compare__row:last-child > span { border-bottom: 0; }
.compare__row--head > span { background: var(--bg-2); color: var(--muted-2); font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.compare__k { color: var(--chalk) !important; font-weight: 600; }
.col-fcos { background: rgba(22,224,106,.05); color: var(--chalk) !important; border-left: 1px solid var(--line); }
.compare__row--head .col-fcos { color: var(--green) !important; }
.cell-yes { color: var(--green) !important; }
.cell-no { color: var(--coral); }
@media (max-width: 760px) {
  .compare__row { grid-template-columns: 1fr; }
  .compare__row > span { padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .compare__row--head { display: none; }
  .compare__k { background: var(--bg-2); }
}

/* ============================================================
   7. CTA
   ============================================================ */
.cta { text-align: center; overflow: hidden; }
.cta__glow { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 50% 70% at 50% 100%, rgba(22,224,106,.16), transparent 65%); pointer-events: none; }
.cta__title { position: relative; z-index: 1; font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 5.5vw, 4rem); line-height: 1.02; letter-spacing: -.02em; max-width: 18ch; margin: 0 auto; }
.cta__sub { position: relative; z-index: 1; color: var(--muted); font-size: 1.15rem; margin-top: 1.2rem; }
.cta .eyebrow { position: relative; z-index: 1; }
.cta__mark {
  position: relative; z-index: 1; margin-top: 2.6rem;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 900; letter-spacing: .06em;
  font-size: 1.15rem; color: var(--muted);
  padding: 12px 22px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.02);
}
.cta__mark .nav__mark { width: 12px; height: 12px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 48px var(--pad); max-width: var(--maxw); margin-inline: auto; display: grid; gap: 14px; text-align: center; }
.footer__brand { font-family: var(--display); font-weight: 900; font-size: 1.2rem; letter-spacing: .04em; }
.footer__disc { color: var(--muted-2); font-size: .82rem; max-width: 60ch; margin: 0 auto; }
.footer__copy { color: var(--muted-2); font-size: .8rem; }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
