/* TacAM HUD website – same palette and font as the control panel. */

@font-face {
  font-family: Montserrat;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/montserrat-regular.woff2) format('woff2');
}
@font-face {
  font-family: Montserrat;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/montserrat-semibold.woff2) format('woff2');
}
@font-face {
  font-family: Montserrat;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/montserrat-bold.woff2) format('woff2');
}

:root {
  --bg: #16181c;
  --bg-alt: #1b1e23;
  --panel: #23272d;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f0f0;
  --muted: #a3a9b1;
  --primary: #c13a3a;
  --primary-hover: #d95454;
  --radius: 8px;
  --wrap: 1180px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 Montserrat, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #ff8a8a;
  text-underline-offset: 3px;
}
a:hover {
  color: #ffb3b3;
}
:focus-visible {
  outline: 2px solid var(--primary-hover);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
}
h3 {
  font-size: 1.05rem;
  font-weight: 700;
}
p {
  margin: 0 0 1em;
}
code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.9em;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  overflow-wrap: anywhere;
}
.muted {
  color: var(--muted);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--primary);
  color: #fff;
}
.skip:focus {
  left: 8px;
}

/* --- buttons ---------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.button:hover {
  background: #2e333a;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}
.button--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.button--primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}
.button--small {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 0.9rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 14px;
}
.actions--center {
  justify-content: center;
}

/* --- header ----------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(22, 24, 28, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}
.brand b {
  color: var(--primary);
}
.topbar__nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.topbar__nav a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.topbar__nav a:hover {
  color: var(--text);
}
@media (max-width: 640px) {
  .topbar__nav {
    display: none;
  }
  .topbar .button {
    margin-left: auto;
  }
}

/* --- hero ------------------------------------------------------------- */

.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(1000px 420px at 85% -10%, rgba(193, 58, 58, 0.22), transparent 70%),
    linear-gradient(180deg, #121417, var(--bg));
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
}
.eyebrow {
  margin-bottom: 14px;
  color: #ff8a8a;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lead {
  font-size: 1.12rem;
  color: #d4d8dd;
}
.fineprint {
  color: var(--muted);
  font-size: 0.85rem;
}
.hero__shot {
  margin: 0;
}
.hero__shot img,
.shot img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #3a3f46; /* the transparent HUD is shown on gray, like in OBS tests */
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
@media (max-width: 900px) {
  .hero {
    padding-top: 48px;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* --- sections --------------------------------------------------------- */

.why {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.why__inner {
  max-width: 820px;
  text-align: center;
}
.why__inner p:first-of-type {
  font-size: 1.12rem;
}

.section {
  padding: 72px 0;
}
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section h2 {
  margin-bottom: 32px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.feature {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
}
.feature p {
  margin: 0;
  color: #c9ced4;
  font-size: 0.95rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.shot {
  margin: 0;
}
.shot--wide {
  grid-column: span 3;
}
.shot figcaption,
.phone figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}
@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shot--wide {
    grid-column: span 2;
  }
}
@media (max-width: 560px) {
  .gallery {
    grid-template-columns: 1fr;
  }
  .shot--wide {
    grid-column: auto;
  }
}

.start {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 56px;
  align-items: center;
}
.steps {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 0 0 18px 52px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}
.phone {
  margin: 0;
  text-align: center;
}
.phone img {
  margin: 0 auto;
  max-width: 240px;
  border-radius: 22px;
  border: 6px solid #2b2f35;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
@media (max-width: 800px) {
  .start {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.oss {
  max-width: 760px;
  text-align: center;
}
.oss h2 {
  margin-bottom: 16px;
}

/* --- footer ----------------------------------------------------------- */

.footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 40px;
}
.brand--footer {
  margin-bottom: 6px;
  font-size: 1rem;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-content: flex-start;
  justify-content: flex-end;
}
.footer__links a {
  color: var(--muted);
}
.footer__links a:hover {
  color: var(--text);
}
.footer__legal {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}
.footer__legal a {
  color: var(--muted);
}
@media (max-width: 700px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }
  .footer__links {
    justify-content: flex-start;
  }
}

/* --- what runs where -------------------------------------------------- */

.intro {
  max-width: 820px;
  margin-top: -16px;
  color: #d4d8dd;
}
.runs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 20px;
}
.runs__col {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.runs__col h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-weight: 600;
  color: var(--muted);
}
.runs__col ul {
  margin: 0;
  padding-left: 1.2em;
}
.runs__col li + li {
  margin-top: 6px;
}
.tag {
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.tag--ok {
  background: #2f7d4f;
}
.tag--warn {
  background: #a8661c;
}
.small {
  font-size: 0.85rem;
}
@media (max-width: 760px) {
  .runs {
    grid-template-columns: 1fr;
  }
}
code.nowrap {
  white-space: nowrap;
  overflow-wrap: normal;
}

/* --- audience, get involved, roadmap, FAQ ----------------------------- */

.audience,
.involve,
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.audience__item h3 {
  color: #ff8a8a;
}
.audience__item p {
  margin: 0;
  color: #c9ced4;
}
.involve {
  margin: 28px 0 0;
}
.involve__item {
  display: block;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.involve__item:hover {
  color: var(--text);
  border-color: var(--primary);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .involve__item:hover {
    transform: none;
  }
}
.involve__item h3::after {
  content: ' →';
  color: var(--primary-hover);
}
.involve__item p {
  margin: 0;
  color: #c9ced4;
  font-size: 0.95rem;
}
.roadmap {
  margin-bottom: 20px;
}
.roadmap__col {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.roadmap__col ul {
  margin: 0;
  padding-left: 1.2em;
}
.roadmap__col li + li {
  margin-top: 8px;
}
.roadmap__col .muted {
  font-size: 0.85rem;
  white-space: nowrap;
}
.tag--next {
  background: var(--primary);
}
.tag--later {
  background: #4a515b;
}
.faq {
  max-width: 860px;
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq details:first-of-type {
  border-top: 1px solid var(--border);
}
.faq summary {
  position: relative;
  padding: 16px 36px 16px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 12px;
  color: var(--primary-hover);
  font-size: 1.4rem;
  font-weight: 400;
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  color: #c9ced4;
}
.faq > p {
  margin-top: 24px;
}
@media (max-width: 900px) {
  .audience,
  .involve,
  .roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .audience,
  .involve,
  .roadmap {
    grid-template-columns: 1fr;
  }
}
