/* Layout: a dark dispatch-console page. Full-width bands, content in a 1180px column,
   screenshots framed like monitors, status chips borrowed from the CAD's own priority colours. */
:root {
  --bg: #0c1118;          /* console night, blue-biased */
  --bg-2: #121a24;        /* raised band */
  --panel: #18222f;       /* frames, cards */
  --line: #263345;        /* hairlines */
  --fg: #e7edf5;          /* primary text */
  --muted: #93a2b6;       /* secondary text */
  --amber: #ffb627;       /* the accent: lightbar amber */
  --amber-ink: #1b1300;   /* text on amber */
  --p1: #ff4d4d;          /* priority 1 */
  --p2: #ff9a3c;          /* priority 2 */
  --p3: #4c9dff;          /* priority 3 */
  --ok: #3ddc84;          /* available / connected */
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1180px;
  --radius: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: 0.005em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); text-transform: uppercase; }
h3 { font-size: 1.45rem; text-transform: uppercase; letter-spacing: 0.02em; }
p { margin: 0; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.eyebrow {
  font: 600 0.78rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.mono { font-family: var(--mono); }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font: 700 1.5rem/1 var(--display); letter-spacing: 0.04em; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 8px;
  font: 600 0.98rem/1 var(--body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: var(--amber-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--amber) 88%, white); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 9px 14px; font-size: 0.9rem; }
.nav .btn { color: var(--amber-ink); }

/* ---------- Hero ---------- */
.hero { padding-block: 72px 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 520px; z-index: -1;
  background:
    radial-gradient(40% 60% at 18% 30%, color-mix(in srgb, var(--p1) 22%, transparent), transparent 70%),
    radial-gradient(40% 60% at 82% 20%, color-mix(in srgb, var(--p3) 24%, transparent), transparent 70%);
  animation: lightbar 3.2s ease-in-out infinite alternate;
  opacity: .8;
}
@keyframes lightbar { from { filter: hue-rotate(0deg); opacity: .55; } to { filter: hue-rotate(-12deg); opacity: .9; } }
.hero-grid { display: grid; gap: 28px; }
.hero h1 span { color: var(--amber); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { color: var(--muted); font-size: 0.9rem; }

/* Command line demo */
.cmdline {
  font-family: var(--mono); font-size: 0.95rem;
  background: #05080c; border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; display: flex; gap: 10px; align-items: center; overflow-x: auto; white-space: nowrap;
  max-width: 560px;
}
.cmdline .prompt { color: var(--ok); }
.cmdline .typed { color: var(--fg); }
.cmdline .caret { width: 9px; height: 1.1em; background: var(--amber); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Monitor frame */
.monitor {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.monitor-bar { display: flex; align-items: center; gap: 6px; padding: 2px 4px 8px; font: 500 0.72rem/1 var(--mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.monitor-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.monitor-bar .live { margin-left: auto; color: var(--ok); display: inline-flex; align-items: center; gap: 6px; }
.monitor-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.monitor img { border-radius: 6px; width: 100%; }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.ticker-track { display: flex; gap: 40px; padding-block: 14px; width: max-content; animation: tick 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.tick { font: 500 0.85rem/1 var(--mono); color: var(--muted); display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; }
.chip { font: 700 0.7rem/1 var(--mono); padding: 4px 6px; border-radius: 4px; color: #0b0b0b; letter-spacing: .04em; }
.chip.p1 { background: var(--p1); } .chip.p2 { background: var(--p2); } .chip.p3 { background: var(--p3); } .chip.ok { background: var(--ok); }

/* ---------- Sections ---------- */
.section { padding-block: 88px; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: 1fr 1.25fr; align-items: center; }
  .split { grid-template-columns: 1fr 1.3fr; }
  .split.flip > :first-child { order: 2; }
}
.split > * { min-width: 0; }

.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--muted); }
.ticks li::before { content: ""; width: 14px; height: 14px; margin-top: 5px; border: 2px solid var(--amber); border-radius: 3px; background: linear-gradient(var(--amber), var(--amber)) center/6px 6px no-repeat; }
.ticks strong { color: var(--fg); font-weight: 600; }

.kbd { font: 500 0.82em/1 var(--mono); background: #05080c; border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px; color: var(--fg); white-space: nowrap; }

/* Screens (layouts) tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab {
  font: 600 0.95rem/1 var(--body); padding: 11px 16px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
}
.tab[aria-selected="true"] { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.panel { display: grid; gap: 28px; }
@media (min-width: 940px) { .panel { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.panel > * { min-width: 0; }
.thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.thumbs img { border-radius: 6px; border: 1px solid var(--line); }

/* State returns */
.returns { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 40px; }
.return { background: var(--bg); padding: 20px; display: grid; gap: 6px; align-content: start; }
.return b { font: 700 1.3rem/1 var(--display); letter-spacing: .04em; color: var(--amber); }
.return span { color: var(--muted); font-size: 0.92rem; }

/* FiveM command cards */
.cmds { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 40px; }
.cmd { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--panel); display: grid; gap: 8px; align-content: start; }
.cmd code { font: 600 1.05rem/1.2 var(--mono); color: var(--amber); }
.cmd p { color: var(--muted); font-size: 0.94rem; }

/* Everything else grid */
.grid-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px 28px; }
.more { display: grid; gap: 6px; align-content: start; padding-top: 16px; border-top: 1px solid var(--line); }
.more h3 { font-size: 1.2rem; }
.more p { color: var(--muted); font-size: 0.95rem; }

/* CTA band */
.cta-band { padding-block: 80px; text-align: center; }
.cta-band .wrap { display: grid; gap: 18px; justify-items: center; }
.cta-band .lede { margin-inline: auto; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 32px; color: var(--muted); font-size: 0.9rem; }
.site-foot .wrap { display: flex; gap: 16px 28px; flex-wrap: wrap; align-items: center; }
.site-foot nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--fg); }

/* ---------- Pricing ---------- */
.billing { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; background: var(--panel); gap: 4px; }
.billing button { font: 600 0.92rem/1 var(--body); border: 0; background: transparent; color: var(--muted); padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.billing button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.billing small { color: var(--ok); font-weight: 600; }
.billing button[aria-pressed="true"] small { color: #127a3f; }

.plans { display: grid; gap: 20px; margin-top: 36px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: var(--panel); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.plan.featured { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber), 0 30px 60px -30px color-mix(in srgb, var(--amber) 40%, transparent); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-tag { font: 700 0.7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; background: var(--amber); color: var(--amber-ink); padding: 5px 8px; border-radius: 4px; }
.plan .for { color: var(--muted); font-size: 0.95rem; }
.price { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.price b { font: 700 3.4rem/1 var(--display); }
.price span { color: var(--muted); }
.price-note { color: var(--muted); font-size: 0.85rem; min-height: 1.4em; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 0.95rem; }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.plan .btn { justify-content: center; margin-top: auto; }

.compare-wrap { overflow-x: auto; margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.compare { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 0.95rem; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.compare thead th { font: 700 1.05rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; background: var(--panel); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .group td { font: 600 0.75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); background: var(--bg-2); text-align: left; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: var(--muted); }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--amber); font: 700 1.3rem/1 var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; }

.trial-strip { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; color: var(--muted); font-size: 0.92rem; }
.trial-strip span::before { content: "✓ "; color: var(--ok); font-weight: 700; }
