/* PitchFire public site. Colours follow the arena: night navy, red sky, neon cyan goals. */
:root {
  --bg: #0a0f1c;
  --bg-2: #0e1526;
  --surface: #121b2f;
  --surface-2: #18233b;
  --line: rgb(255 255 255 / .08);
  --line-strong: rgb(255 255 255 / .16);
  --text: #eef2fb;
  --muted: #9aa6c0;
  --faint: #6b7896;
  --cyan: #45dcff;
  --cyan-ink: #031a24;
  --coral: #ff5f57;
  --sky: #c9566f;
  --blue: #4f9dff;
  --radius: 14px;
  --display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: .01em; }
p { margin: 0; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--surface-2); padding: .1em .4em; border-radius: 5px; }
[hidden] { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap-narrow { --wrap: 820px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border: 1px solid var(--cyan); border-radius: 10px;
  background: var(--cyan); color: var(--cyan-ink); font: 600 .95rem/1 var(--body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s, background .15s, box-shadow .15s;
  box-shadow: 0 0 0 0 rgb(69 220 255 / 0);
}
.btn:hover { background: #7be6ff; box-shadow: 0 8px 30px rgb(69 220 255 / .25); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn-ghost { background: rgb(255 255 255 / .06); color: var(--text); border-color: var(--line-strong); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgb(255 255 255 / .12); box-shadow: none; }
.btn-sm { padding: .55rem 1rem; font-size: .88rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; }

.kicker {
  display: inline-flex; align-items: center; gap: .55rem; color: var(--cyan);
  font: 600 .78rem/1 var(--display); letter-spacing: .22em; text-transform: uppercase;
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 10px #3ddc97; }

/* ---------------------------------------------------------------- header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 20; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.site-header.is-solid { background: rgb(10 15 28 / .86); backdrop-filter: blur(12px); border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 2rem; height: 68px; }
.logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.logo img { height: 34px; width: auto; }
.logo-word { font: 700 1.15rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; transition: color .15s; }
.nav a:hover, .nav a.is-active { color: var(--text); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: min(100vh, 880px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(10 15 28 / .35) 0%, rgb(10 15 28 / 0) 30%, rgb(10 15 28 / .55) 62%, var(--bg) 100%),
    linear-gradient(90deg, rgb(10 15 28 / .85) 0%, rgb(10 15 28 / .25) 55%, rgb(10 15 28 / 0) 100%),
    url("assets/shots/shot-firstperson.jpg") center 35% / cover no-repeat;
  animation: hero-in 1.2s ease-out both;
}
@keyframes hero-in { from { transform: scale(1.06); opacity: .4; } to { transform: none; opacity: 1; } }
.hero-inner { padding: 140px 0 72px; }
.hero-title {
  margin: .9rem 0 1.1rem; font-size: clamp(3.4rem, 11vw, 8.5rem); line-height: .9; letter-spacing: .02em; text-transform: uppercase;
  text-shadow: 0 6px 40px rgb(0 0 0 / .35);
}
.hero-title span { background: linear-gradient(90deg, var(--coral), #ff9a3c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { max-width: 560px; color: #d7deee; font-size: clamp(1.02rem, 1.8vw, 1.2rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 3rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); max-width: 760px; }
.hero-facts li { flex: 1 1 200px; display: grid; gap: .15rem; padding: 1.1rem 1.5rem 0 0; }
.hero-facts strong { font: 600 1.05rem/1.2 var(--display); letter-spacing: .03em; }
.hero-facts span { color: var(--muted); font-size: .88rem; }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 18%, var(--bg-2) 82%, var(--bg) 100%); }
.section-head { max-width: 680px; margin-bottom: 3rem; display: grid; gap: 1rem; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.lead { color: var(--muted); font-size: 1.07rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { padding: 2rem 1.8rem; background: var(--bg); transition: background .2s; }
.feature:hover { background: var(--bg-2); }
.feature h3 { margin: 1.1rem 0 .5rem; font-size: 1.25rem; }
.feature p { color: var(--muted); font-size: .95rem; }
.feature-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgb(69 220 255 / .1); border: 1px solid rgb(69 220 255 / .28); }
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.gallery { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; }
.shot { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; aspect-ratio: 16 / 9; }
.shot:hover img { transform: scale(1.03); }
.shot-main { grid-row: span 2; }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.1rem .9rem; background: linear-gradient(transparent, rgb(5 8 16 / .85)); font: 600 .85rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }

.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.mode { position: relative; padding: 2rem 1.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, var(--surface) 0%, var(--bg) 100%); overflow: hidden; }
.mode::after { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--coral), var(--cyan)); opacity: .8; }
.mode-tag { color: var(--faint); font: 600 .74rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; }
.mode h3 { margin: .7rem 0 .6rem; font-size: 1.5rem; }
.mode p:last-child { color: var(--muted); font-size: .95rem; }

/* ---------------------------------------------------------------- download */
.section-download { background: radial-gradient(60rem 26rem at 80% 0%, rgb(201 86 111 / .18), transparent 70%), var(--bg); }
.download-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.build-card { display: grid; gap: .45rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.build-card h3 { font-size: 1.02rem; }
.build-card p { color: var(--muted); font-size: .9rem; }
.build-card .version-line { color: var(--faint); font-size: .82rem; }
.build-card .btn { justify-self: start; margin-top: .4rem; padding: .6rem 1.1rem; font-size: .88rem; background: transparent; color: var(--cyan); }
.build-card .btn:hover { background: rgb(69 220 255 / .12); box-shadow: none; }
.build-card.is-featured {
  padding: 2rem; gap: .7rem; border-color: rgb(69 220 255 / .4);
  background: linear-gradient(140deg, rgb(69 220 255 / .12), rgb(18 27 47 / .95) 55%), var(--surface);
  box-shadow: 0 20px 60px rgb(0 0 0 / .35);
}
.build-card.is-featured::before { content: "Latest version"; color: var(--cyan); font: 600 .75rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; }
.build-card.is-featured h3 { font-size: 1.6rem; }
.build-card.is-featured p { font-size: 1rem; }
.build-card.is-featured .btn { margin-top: .8rem; padding: 1rem 1.7rem; font-size: 1rem; background: var(--cyan); color: var(--cyan-ink); }
.build-card.is-featured .btn:hover { background: #7be6ff; box-shadow: 0 8px 30px rgb(69 220 255 / .25); }
.more-builds { margin-top: 1rem; border: 1px solid var(--line); border-radius: 12px; background: rgb(255 255 255 / .02); }
.more-builds summary { padding: 1rem 1.25rem; cursor: pointer; color: var(--muted); font-weight: 500; list-style: none; display: flex; align-items: center; gap: .6rem; }
.more-builds summary::-webkit-details-marker { display: none; }
.more-builds summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); color: var(--cyan); font-weight: 700; }
.more-builds[open] summary::before { content: "–"; }
.build-downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .75rem; padding: 0 1rem 1rem; }
.requirements { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); position: sticky; top: 88px; }
.requirements h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.requirements dl { margin: 0; display: grid; gap: .9rem; }
.requirements dt { color: var(--faint); font: 600 .72rem/1 var(--display); letter-spacing: .18em; text-transform: uppercase; }
.requirements dd { margin: .3rem 0 0; color: var(--text); font-size: .95rem; }
.requirements .version-line { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--faint); font-size: .82rem; }

/* ---------------------------------------------------------------- FAQ */
.faq { display: grid; gap: .6rem; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { padding: 1.1rem 1.3rem; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--faint); font-size: .88rem; }
.footer-inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-brand img { height: 30px; width: auto; opacity: .85; }
.footer-nav { display: flex; gap: 1.2rem; margin-left: auto; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--text); }

/* ---------------------------------------------------------------- analytics page */
.analytics-main { padding: 130px 0 90px; }
.analytics-main h1 { margin: .9rem 0 .6rem; font-size: clamp(2.2rem, 5vw, 3.2rem); }
.analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin: 2.5rem 0 1.5rem; }
.stat-card { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stat-card h2 { color: var(--muted); font: 600 .78rem/1 var(--display); letter-spacing: .18em; text-transform: uppercase; }
.stat-value { margin: .8rem 0 .3rem; font: 700 clamp(2.4rem, 6vw, 3.4rem)/1 var(--display); }
.stat-meta { color: var(--faint); font-size: .88rem; }
.analytics-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .download-layout { grid-template-columns: 1fr; }
  .requirements { position: static; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; }
  .shot-main { grid-row: auto; }
}
@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero { min-height: 92vh; }
  .hero-inner { padding: 120px 0 48px; }
  .hero-facts li { padding-right: 0; }
  .build-card.is-featured { padding: 1.4rem; }
  .build-downloads { grid-template-columns: 1fr; padding: 0 .75rem .75rem; }
  .footer-nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media { animation: none; }
  .btn, .shot img { transition: none; }
}
