/* ============================================================
   GhostPro — you vs. the pro who mains your champion
   Visual language: a precise measuring instrument / scoreboard.
   Teal = YOU. Gold = the PRO standard. The gap is the point.
   ============================================================ */

:root {
  /* surfaces */
  --bg-0: #070b11;   /* page */
  --bg-1: #0b121b;   /* raised */
  --bg-2: #0f1925;   /* panel */
  --bg-3: #15222f;   /* inset / hover */

  /* hairlines */
  --line:   rgba(170,188,204,0.11);
  --line-2: rgba(170,188,204,0.20);
  --line-gold: rgba(200,170,110,0.30);

  /* brand / semantic */
  --gold:    #c8aa6e;   /* the pro standard */
  --gold-2:  #ecdcb4;   /* bright gold (large text) */
  --teal:    #14c8c0;   /* you */
  --teal-2:  #61e7df;   /* bright teal (large text) */

  /* text */
  --text:   #eef3f7;
  --text-2: #b8c4d0;    /* muted — >7:1 on bg-0 */
  --text-3: #7e8c9a;    /* labels / small caps — ~5.5:1 */

  /* radii — sharper than the default rounded-SaaS look */
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 12px;
  --r-full: 999px;

  --maxw: 1180px;
  --ease: cubic-bezier(0.4, 0, 0.1, 1);

  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Archivo", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 800;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
strong { color: var(--text); font-weight: 600; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 3px; }

/* ---------- Background: a single faint HUD grid, nothing else ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(170,188,204,0.030) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170,188,204,0.030) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% -5%, #000 35%, transparent 80%);
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; }
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(72px, 9vw, 120px) 24px; }
.section--narrow { max-width: 780px; }

/* indexed, left-aligned section heads — replaces the repeated glowing pill */
.kicker {
  font-family: var(--mono);
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--text-3); text-transform: uppercase;
  display: inline-flex; align-items: baseline; gap: 9px; margin-bottom: 18px;
}
.kicker b { color: var(--gold); font-weight: 600; }
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--line-gold); align-self: center; }

.section__head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 60px); }
.section__title { font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--text); }
.lead { color: var(--text-2); font-size: 1.08rem; margin-top: 16px; max-width: 56ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em;
  padding: 12px 20px; border-radius: var(--r-2); cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .16s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn--lg { padding: 15px 26px; font-size: 1.02rem; }
.btn--primary { color: #0a1118; background: var(--gold); }
.btn--primary:hover { background: var(--gold-2); transform: translateY(-1px); }
.btn--ghost { color: var(--text); border-color: var(--line-2); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.ow-mark { flex: none; }

/* pre-launch state: button reads disabled, quiet tag beside it (no pulse, no glow) */
.dl { display: inline-flex; align-items: center; gap: 11px; }
.btn--soon { cursor: default; opacity: 0.78; }
.btn--soon:hover { transform: none; background: var(--gold); }
.tag-soon {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal-2);
  border: 1px solid rgba(20,200,192,0.35); border-radius: var(--r-1); padding: 4px 9px;
}
.tag-soon--sm { font-size: 0.62rem; padding: 3px 7px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  backdrop-filter: blur(10px);
}
.nav::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,11,17,0.9), rgba(7,11,17,0));
  border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-1);
  color: var(--gold); border: 1px solid var(--line-gold); background: rgba(200,170,110,0.06); }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand__accent { color: var(--gold); }
.nav__links { display: flex; gap: 26px; font-size: 0.9rem; color: var(--text-2); }
.nav__links a { transition: color .18s; }
.nav__links a:hover { color: var(--gold); }
.nav__cta .btn { font-size: 0.85rem; padding: 9px 16px; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) 24px clamp(40px, 5vw, 72px);
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero__kicker { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-3); display: inline-flex; align-items: center; gap: 9px; }
.hero__kicker b { color: var(--gold); font-weight: 600; }
.hero__title { font-size: clamp(2.5rem, 5.6vw, 4.1rem); font-weight: 900; margin: 20px 0 18px; color: var(--text); }
.hero__title .hl { color: #0a1118; background: var(--gold); padding: 0 0.1em; border-radius: 5px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero__lead { font-size: clamp(1.04rem, 1.5vw, 1.16rem); color: var(--text-2); max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 30px 0 26px; }

/* hero key figures — data, in mono, with hairline dividers */
.keyfigs { display: flex; align-items: stretch; gap: 0; }
.keyfigs > div { padding-right: 22px; margin-right: 22px; border-right: 1px solid var(--line); }
.keyfigs > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.keyfigs dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.keyfigs dd { font-family: var(--mono); font-size: 1.5rem; font-weight: 600; color: var(--gold-2); margin-top: 4px; }

/* ---------- Hero scorecard (the protagonist) ---------- */
.scorecard {
  position: relative; padding: 20px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-3);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.75);
}
/* HUD corner ticks — top-left + bottom-right */
.scorecard::before, .scorecard::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border-color: var(--gold); border-style: solid; opacity: 0.55;
}
.scorecard::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.scorecard::after  { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }

.scorecard__head { display: flex; align-items: center; gap: 11px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.scorecard__champ { width: 42px; height: 42px; border-radius: var(--r-1); border: 1px solid var(--line-gold); }
.scorecard__title { font-family: var(--display); font-weight: 700; font-size: 0.98rem; color: var(--text); }
.scorecard__sub { font-family: var(--mono); font-size: 0.72rem; color: var(--text-3); margin-top: 1px; }
.scorecard__pill { margin-left: auto; font-family: var(--mono); font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3);
  border: 1px solid var(--line); border-radius: var(--r-1); padding: 4px 8px; }

.matchup { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 18px 0 14px; }
.matchup__side { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.chip { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.04em; }
.chip--you { color: var(--teal-2); border: 1.5px solid var(--teal); background: rgba(20,200,192,0.08); }
.matchup__face { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--gold); }
.matchup__name { font-family: var(--display); font-weight: 700; font-size: 0.94rem; }
.matchup__side--pro .matchup__name { color: var(--gold-2); }
.matchup__side:not(.matchup__side--pro) .matchup__name { color: var(--teal-2); }
.matchup__rank { font-family: var(--mono); font-size: 0.68rem; color: var(--text-3); }
.matchup__vs { font-family: var(--mono); font-size: 0.72rem; color: var(--text-3); padding: 0 4px; }

/* the statline — real tabular data, gap column emphasized */
.statline { width: 100%; border-collapse: collapse; margin-top: 4px; }
.statline th, .statline td { padding: 9px 0; text-align: center; }
.statline thead th {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--line); padding-bottom: 8px;
}
.statline thead th:first-child, .statline tbody th { text-align: left; }
.statline tbody th { font-family: var(--body); font-weight: 500; font-size: 0.82rem; color: var(--text-2); }
.statline tbody td { font-family: var(--mono); font-size: 0.98rem; font-weight: 500; color: var(--text); }
.statline tbody tr { border-bottom: 1px solid rgba(170,188,204,0.06); }
.statline tbody tr:last-child { border-bottom: 0; }
.statline .gap { font-weight: 600; }
.statline .gap--behind { color: var(--gold); }   /* pro leads this metric */
.statline .gap--ahead  { color: var(--teal-2); }  /* you lead this metric */

.scorecard__foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.74rem; color: var(--text-3); }
.scorecard__foot strong { color: var(--gold); font-weight: 600; }

/* ---------- Logo strip (teams) ---------- */
.strip { max-width: var(--maxw); margin: 0 auto; padding: 26px 24px; border-block: 1px solid var(--line); }
.strip__label { text-align: center; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--text-3); margin-bottom: 18px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 46px; width: max-content; animation: scroll 46s linear infinite; }
.marquee--slow .marquee__track { animation-duration: 70s; gap: 20px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.team-logo { height: 42px; width: auto; object-fit: contain; transition: transform .25s; }
.team-logo:hover { transform: scale(1.06); }

/* ---------- Split (compare) ---------- */
.split { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.split__copy .section__head { margin-bottom: 0; }
.speclist { list-style: none; display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.speclist li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 0.98rem; }
.speclist li::before { content: ""; width: 7px; height: 7px; margin-top: 8px; border-radius: 1px;
  background: var(--teal); box-shadow: 0 0 0 3px rgba(20,200,192,0.12); }
.speclist strong { color: var(--text); }

/* champion splash as an editorial frame (no fake app UI) */
.art-frame { position: relative; border-radius: var(--r-3); overflow: hidden;
  border: 1px solid var(--line-2); aspect-ratio: 4 / 3.4; background: var(--bg-1); }
.art-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.art-frame::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(7,11,17,0.9)); }
.art-frame__tag { position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font-family: var(--mono); font-size: 0.76rem; color: var(--gold-2);
  background: rgba(7,11,17,0.6); border: 1px solid var(--line-gold);
  border-radius: var(--r-1); padding: 7px 12px; }

/* ---------- Pro wall ---------- */
.pro-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.pro { position: relative; border-radius: var(--r-2); overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-1); aspect-ratio: 4 / 3.5; transition: transform .22s var(--ease), border-color .22s; }
.pro:hover { transform: translateY(-3px); border-color: var(--line-gold); }
.pro img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .35s var(--ease); }
.pro:hover img { transform: scale(1.05); }
.pro__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 9px 10px; background: linear-gradient(180deg, transparent 48%, rgba(7,11,17,0.94)); }
.pro__name { font-family: var(--display); font-weight: 700; font-size: 0.9rem; color: var(--text); }
.pro__role { font-family: var(--mono); font-size: 0.64rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Steps (a numbered spec, not glass cards) ---------- */
#how .section__head { margin-bottom: 30px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-2); }
.step { padding: 26px 26px 6px 0; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; padding-right: 0; }
.step__num { font-family: var(--mono); font-weight: 600; font-size: 0.82rem; color: var(--gold);
  letter-spacing: 0.06em; display: block; margin-bottom: 18px; }
.step h3 { font-size: 1.18rem; color: var(--text); margin-bottom: 9px; }
.step p { color: var(--text-2); font-size: 0.96rem; }

/* ---------- Champion coverage ---------- */
.champ-cover { padding: clamp(46px, 6vw, 72px) 0; border-block: 1px solid var(--line); }
.champ-thumb { width: 60px; height: 60px; border-radius: var(--r-2); object-fit: cover; border: 1px solid var(--line);
  transition: transform .2s, border-color .2s; }
.champ-thumb:hover { transform: scale(1.07); border-color: var(--line-gold); }

/* ---------- CTA ---------- */
.cta { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 9vw, 116px) 24px; }
.cta__inner { position: relative; text-align: center; padding: clamp(46px, 6vw, 72px) 24px;
  border: 1px solid var(--line-gold); border-radius: var(--r-3); background: var(--bg-1); overflow: hidden; }
.cta__inner::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(200,170,110,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,170,110,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 70% 120% at 50% 0%, #000, transparent 75%); }
.cta__inner > * { position: relative; z-index: 1; }
.cta__title { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--text); }
.cta__lead { color: var(--text-2); font-size: 1.06rem; margin: 14px auto 26px; max-width: 46ch; }
.cta__actions { display: flex; justify-content: center; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; list-style: none; padding: 20px 4px; font-weight: 600; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 1.02rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-family: var(--mono); color: var(--gold); font-size: 1.3rem;
  font-weight: 400; transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--text-2); padding: 0 4px 22px; font-size: 0.98rem; max-width: 68ch; }

/* ---------- Footer ---------- */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 50px 24px 56px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px 40px; }
.footer__brand p { color: var(--text-3); font-size: 0.92rem; max-width: 38ch; margin-top: 14px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 24px; align-content: start; justify-content: flex-end;
  font-size: 0.9rem; color: var(--text-2); }
.footer__links a:hover { color: var(--gold); }
.footer__legal { grid-column: 1 / -1; color: var(--text-3); font-size: 0.76rem; line-height: 1.6;
  border-top: 1px solid var(--line); padding-top: 22px; }

/* ---------- Reveal (subtle) ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) { .pro-wall { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .step { border-right: 0; border-top: 1px solid var(--line); padding: 24px 0; }
  .nav__links { display: none; }
  .footer { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .pro-wall { grid-template-columns: repeat(3, 1fr); }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .keyfigs > div { padding-right: 16px; margin-right: 16px; }
  .keyfigs dd { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, .marquee__track { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
