@font-face {
  font-family: 'Rubik';
  src: url('assets/fonts/rubik-latin.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  /* red, blue and background come from the PitBoard logo */
  --bg: #12151c;
  --bg-alt: #161a22;
  --surface: #1a1e26;
  --surface-2: #232832;
  --line: #2e3440;
  --text: #e6e8eb;
  --muted: #9aa1ab;
  --tagline: #b9c0cc;
  --red: #d42b2b;
  --red-strong: #a61f1f;
  --red-soft: rgba(212, 43, 43, 0.14);
  --blue: #1d4fbf;
  --blue-strong: #173f99;
  --blue-soft: rgba(29, 79, 191, 0.18);
  --green: #2e9e5b;
  --accent: #f57e25;
  --radius: 12px;
  --display: 'Rubik', 'Segoe UI', system-ui, sans-serif;
  color-scheme: dark;
}

* { 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 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; font-weight: 700; }

code {
  font-family: Consolas, 'Cascadia Mono', ui-monospace, monospace;
  font-size: 0.88em;
  background: var(--surface-2);
  padding: 0.1em 0.4em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}

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

.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;
}

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--accent); color: #000; padding: 8px 14px; border-radius: 6px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { padding: 8px 16px; font-size: 0.92rem; background: var(--surface-2); }
.btn-small:hover { background: var(--line); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 8px 24px -10px rgba(212, 43, 43, 0.7); }
.btn-red:hover { background: var(--red-strong); }
.btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 8px 24px -10px rgba(29, 79, 191, 0.8); }
.btn-blue:hover { background: var(--blue-strong); }
.btn-block { width: 100%; }
.btn-icon { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 21, 28, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(46, 52, 64, 0.6);
}
.nav-inner { display: flex; align-items: center; gap: 10px; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em;
}
.nav nav { margin-left: auto; margin-right: 12px; }
.btn-docs { gap: 8px; }
.btn-docs .btn-icon { width: 17px; height: 17px; }
.btn-docs-wide { margin-top: 24px; background: var(--surface); }
.btn-docs-wide:hover { background: var(--surface-2); }
.hero-note a { color: var(--tagline); text-underline-offset: 3px; }
.hero-note a:hover { color: var(--text); }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-size: 0.95rem;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }

/* hero */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: -20% -10% auto;
  height: 120%;
  background:
    radial-gradient(40% 50% at 18% 30%, rgba(212, 43, 43, 0.18), transparent 70%),
    radial-gradient(40% 50% at 85% 40%, rgba(29, 79, 191, 0.22), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.lede { margin: 22px 0 32px; font-size: 1.15rem; color: var(--tagline); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 18px 0 0; color: var(--muted); font-size: 0.9rem; }

.hero-visual { position: relative; margin: 0; padding: 0 0 40px 0; }

.laptop { width: 100%; }
.laptop-screen {
  background: #0b0d12;
  border: 10px solid #2a2f3a;
  border-bottom-width: 14px;
  border-radius: 14px 14px 4px 4px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  /* the mockup scales with its width, like a screenshot */
  container-type: inline-size;
}
.laptop-base {
  height: 14px; margin: 0 -6%;
  background: linear-gradient(#3a404c, #20242c);
  border-radius: 0 0 18px 18px;
}

.mock { background: var(--bg); font-size: 1.833cqw; line-height: 1.3; padding: 1.667cqw; aspect-ratio: 16 / 10; display: flex; flex-direction: column; gap: 1.333cqw; }
.mock-top { display: flex; align-items: center; gap: 1.333cqw; padding: 0.333cqw 0.667cqw 1.333cqw; border-bottom: 0.167cqw solid var(--line); }
.mock-top img { width: 3cqw; height: 3cqw; }
.mock-top b { font-family: var(--display); font-size: 2.333cqw; }
.mock-event { color: var(--muted); margin-left: auto; }
.mock-live { color: var(--green); }
.mock-grid {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 0.9fr;
  grid-template-rows: 1fr 1.3fr;
  gap: 1.333cqw;
}
.mp {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.167cqw;
  padding: 1.333cqw;
  min-width: 0; overflow: hidden;
}
.mp small { display: flex; align-items: center; gap: 1cqw; color: var(--muted); font-weight: 600; font-size: 1.667cqw; margin-bottom: 1cqw; white-space: nowrap; }
.mp ul, .mp ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.667cqw; }
.mp-alliance { background: var(--red); border-color: var(--red); display: flex; flex-direction: column; justify-content: center; }
.mp-alliance small { color: rgba(255, 255, 255, 0.85); }
.mp-alliance strong { font-family: var(--display); font-size: 4.333cqw; font-weight: 800; letter-spacing: -0.02em; }
.mp-alliance em { font-style: normal; opacity: 0.85; }
.mp-partner { grid-column: 2 / 4; }
.pill { background: var(--accent); color: #1a1000; padding: 0.167cqw 1cqw; border-radius: 166.5cqw; font-size: 1.5cqw; font-weight: 700; }
.muted { color: var(--muted); font-weight: 500; }
.mock-teams { display: flex; align-items: center; gap: 1cqw; flex-wrap: wrap; margin-top: 1.667cqw; }
.t { font-family: var(--display); font-weight: 700; font-size: 2.833cqw; padding: 0.667cqw 1.5cqw; border-radius: 1cqw; }
.t-red { background: var(--red-soft); color: #ff9c9c; box-shadow: inset 0 0 0 1px rgba(212, 43, 43, 0.5); }
.t-blue { background: var(--blue-soft); color: #9db8ff; box-shadow: inset 0 0 0 1px rgba(29, 79, 191, 0.7); }
.vs { color: var(--muted); font-size: 1.667cqw; margin: 0 0.333cqw; }
.mp-check li { display: flex; align-items: flex-start; gap: 1cqw; line-height: 1.15; }
.mp-check ul { gap: 0.4cqw; }
.mp-check li span { min-width: 0; }
.mp-check li::before { content: ''; width: 1.5cqw; height: 1.5cqw; margin-top: 0.167cqw; border: 1.5px solid var(--muted); border-radius: 0.5cqw; flex: none; }
.mp-check li.done { color: var(--muted); text-decoration: line-through; }
.mp-check li.done::before { background: var(--green); border-color: var(--green); }
.mp-emerg li { display: flex; align-items: center; justify-content: space-between; gap: 1cqw; background: var(--surface-2); padding: 0.667cqw 1cqw; border-radius: 0.833cqw; }
.mock-alert { background: var(--red); color: #fff; font-weight: 700; font-size: 1.5cqw; padding: 0.333cqw 1.333cqw; border-radius: 0.667cqw; }
.mock-alert.ringing { animation: ring-btn 1.6s ease-in-out infinite; }
.mock-ok { color: var(--green); font-weight: 600; font-size: 1.5cqw; }
.mp-matches li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1cqw; padding: 0.5cqw 1cqw; border-radius: 0.833cqw; }
.mp-matches li.next { background: rgba(245, 126, 37, 0.15); box-shadow: inset 0 0 0 1px rgba(245, 126, 37, 0.5); }
.mp-matches li.next b { color: var(--accent); }
.dot { width: 1.333cqw; height: 1.333cqw; border-radius: 50%; }
.dot-red { background: var(--red); }
.dot-blue { background: var(--blue); }
.win { color: var(--green); }
.loss { color: #ff8a93; }

.phone {
  position: absolute;
  right: -8px; bottom: 0;
  width: 27%;
  min-width: 120px;
  aspect-ratio: 9 / 19;
  background: #0b0d12;
  border: 6px solid #2a2f3a;
  border-radius: 26px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transform: rotate(4deg);
}
.phone-screen { position: relative; height: 100%; background: var(--red); }
.phone-flash { position: absolute; inset: 0; background: #ff4a4a; animation: flash 1.2s steps(1) infinite; }
.phone-content {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12%;
  padding: 14% 10%;
  text-align: center;
}
.phone-bell { width: 38%; aspect-ratio: 1; display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); border-radius: 50%; animation: shake 0.6s ease-in-out infinite; }
.phone-bell svg { width: 58%; fill: #fff; }
.phone-msg { margin: 0; font-weight: 800; font-size: clamp(14px, 1.9vw, 22px); line-height: 1.2; color: #fff; }
.phone-btn { background: #fff; color: var(--red); font-weight: 800; font-size: clamp(10px, 1.1vw, 13px); padding: 10% 12%; border-radius: 999px; white-space: nowrap; }

@keyframes flash { 50% { opacity: 0; } }
@keyframes shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@keyframes ring-btn { 0%, 100% { box-shadow: 0 0 0 0 rgba(212, 43, 43, 0.7); } 50% { box-shadow: 0 0 0 5px rgba(212, 43, 43, 0); } }

/* sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid rgba(46, 52, 64, 0.5); }
.section-lede { margin: 14px 0 0; color: var(--tagline); font-size: 1.1rem; max-width: 40em; }

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover { border-color: #3d4554; transform: translateY(-2px); }
.feature h3 { margin: 18px 0 8px; }
.feature p { margin: 0; color: var(--muted); }
.feature-icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; }
.feature-icon svg { width: 22px; height: 22px; fill: currentColor; }
.fi-red { background: var(--red-soft); color: #ff7b7b; }
.fi-blue { background: var(--blue-soft); color: #8fb0ff; }

.callout {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 16px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: rgba(245, 126, 37, 0.08);
  border: 1px solid rgba(245, 126, 37, 0.35);
}
.callout svg { width: 24px; height: 24px; flex: none; fill: var(--accent); margin-top: 1px; }
.callout p { margin: 0; color: var(--tagline); }
.callout strong { color: var(--text); }

.steps {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  counter-reset: none;
}
.step {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.step h3 { margin: 18px 0 8px; }
.step p { margin: 0; color: var(--muted); }
.step-num {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  font-family: var(--display); font-weight: 800; font-size: 1.1rem;
  background: linear-gradient(135deg, var(--red) 0 50%, var(--blue) 50% 100%);
  color: #fff;
}

.network { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.net-card { padding: 22px 26px; border-radius: var(--radius); border: 1px dashed var(--line); }
.net-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.net-card p { margin: 0; color: var(--muted); }

/* downloads */
.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.dl {
  display: flex; flex-direction: column;
  padding: 28px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
}
.dl.is-yours { border-color: #4a5366; box-shadow: 0 0 0 1px #4a5366, 0 20px 50px -30px rgba(0, 0, 0, 0.9); }
.dl-head { display: flex; align-items: center; gap: 16px; }
.dl-head img { border-radius: 13px; }
.dl-meta { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }
.dl-yours { display: block; margin-top: 2px; font-family: inherit; font-size: 0.72rem; font-weight: 600; color: var(--accent); vertical-align: middle; }
.dl-list { margin: 22px 0 24px; padding: 0; list-style: none; display: grid; gap: 8px; flex: 1; }
.dl-list li { display: flex; gap: 10px; color: var(--tagline); }
.dl-list li::before {
  content: ''; flex: none; width: 18px; height: 18px; margin-top: 3px;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dl-help { margin-top: 16px; color: var(--muted); font-size: 0.93rem; }
.dl-help summary { cursor: pointer; color: var(--tagline); }
.dl-help p { margin: 8px 0 0; }
.checksum { margin: 16px 0 0; font-size: 0.75rem; color: var(--muted); overflow-wrap: anywhere; }
.checksum code { font-size: 0.95em; background: none; padding: 0; }

/* setup */
.setup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.setup-col { padding: 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.setup-col h3 { display: flex; align-items: center; gap: 10px; }
.setup-col h3 img { border-radius: 7px; }
.setup-col ol { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.setup-col li { counter-increment: s; position: relative; padding-left: 38px; color: var(--tagline); }
.setup-col li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-2); color: var(--text);
  font-family: var(--display); font-weight: 700; font-size: 0.85rem;
}
.setup-col b { color: var(--text); font-weight: 600; }
.setup-note { margin: 20px 0 0; color: var(--muted); font-size: 0.93rem; }

/* faq */
.faq { margin-top: 32px; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* footer */
.footer { padding: 40px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer p { margin: 0; }
.footer a { color: var(--tagline); }
.brand-footer { color: var(--text); font-size: 1.05rem; }
.credit { flex-basis: 100%; padding-top: 16px; border-top: 1px solid rgba(46, 52, 64, 0.6); color: var(--tagline); }
.credit strong { color: var(--text); font-weight: 600; }

/* responsive */
@media (max-width: 960px) {
  .hero { padding-top: 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 640px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav nav + .btn { margin-left: auto; }
  .btn-docs span { display: none; }
  .btn-docs::after { content: 'Docs'; }
  .section { padding: 72px 0; }
  .features, .network, .downloads, .setup { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { padding-bottom: 28px; }
  .phone { min-width: 96px; border-width: 4px; border-radius: 18px; right: -4px; }
  .phone-msg { font-size: 12px; }
  .phone-btn { font-size: 8px; }
  .dl, .setup-col { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone-flash, .phone-bell, .mock-alert.ringing { animation: none; }
  .phone-flash { opacity: 0; }
  .btn, .feature { transition: none; }
}

@media (max-width: 420px) {
  .nav-inner { gap: 6px; }
  .nav .btn-small { padding: 8px 10px; }
  .btn-docs .btn-icon { display: none; }
  .nav .btn-report, .nav .btn-updates, .nav .btn-suggest { padding-inline: 8px; }
}
@media (max-width: 360px) {
  /* the hero links to the docs too */
  .nav .btn-docs { display: none; }
  .nav .btn-docs + .btn { margin-left: auto; }
}

/* Report button */
.btn-report, .btn-updates, .btn-suggest { gap: 8px; }
.btn-report .btn-icon, .btn-updates .btn-icon, .btn-suggest .btn-icon { width: 16px; height: 16px; }
button.btn { cursor: pointer; font-family: inherit; color: var(--text); }

@media (max-width: 1140px) {
  .btn-report span, .btn-updates span, .btn-suggest span { display: none; }
  .btn-report, .btn-updates, .btn-suggest { padding-inline: 10px; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav nav + .btn { margin-left: auto; }
}
@media (max-width: 420px) {
  .nav .brand span { display: none; }
}
