@font-face { font-family: "Red Hat Display"; src: url(/fonts/red-hat-display-latin-wght-normal.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url(/fonts/red-hat-text-latin-wght-normal.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Red Hat Mono"; src: url(/fonts/red-hat-mono-latin-wght-normal.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }

/* SecFleet tokens, night watch. Teal is the one brand colour; orange means hostile; blue is ordinary traffic. */
:root {
  --bg: #0b1110;
  --bg-2: #0f1715;
  --line: #1f2b28;
  --line-2: #2a3935;
  --fg: #ecf1ef;
  --fg-2: #b4c1bd;
  --fg-3: #7d8c88;
  --teal: #58c7b8;
  --teal-ink: #06211e;
  --hostile: #f07a45;
  --normal: #5b9be6;
  --good: #4fc28f;
  --bad: #f06b62;
  --radius: 14px;
  --display: "Red Hat Display", ui-sans-serif, system-ui, sans-serif;
  --text: "Red Hat Text", ui-sans-serif, system-ui, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f6f5; --bg-2: #ffffff; --line: #dce3e0; --line-2: #c9d3cf;
    --fg: #131b19; --fg-2: #3d4946; --fg-3: #66726f;
    --teal: #0f6b62; --teal-ink: #ffffff; --hostile: #d4561f; --normal: #2a78d6;
    --good: #1f7a55; --bad: #b3261e;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4f6f5; --bg-2: #ffffff; --line: #dce3e0; --line-2: #c9d3cf;
  --fg: #131b19; --fg-2: #3d4946; --fg-3: #66726f;
  --teal: #0f6b62; --teal-ink: #ffffff; --hostile: #d4561f; --normal: #2a78d6;
  --good: #1f7a55; --bad: #b3261e;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--text); font-feature-settings: "kern"; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--teal) 35%, transparent); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 19px/1 var(--display); letter-spacing: -0.01em; text-decoration: none; }
.brand .mark { width: 32px; height: 32px; }
.brand .on-light { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .brand .on-light { display: block; } :root:not([data-theme="dark"]) .brand .on-dark { display: none; } }

.top-nav { display: flex; gap: 22px; }
.top-nav a { font: 500 15px/1 var(--text); color: var(--fg-2); text-decoration: none; }
.top-nav a:hover { color: var(--fg); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.notfound { padding: 18vh 0; }
.notfound h1 { font-size: clamp(34px, 5vw, 54px); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 40px 0 72px; }
.kicker { font: 600 15px/1.4 var(--text); color: var(--teal); margin: 0 0 18px; }
h1 { font: 800 clamp(38px, 5vw, 62px)/1.03 var(--display); letter-spacing: -0.035em; margin: 0 0 22px; text-wrap: balance; }
h1 .knock { display: inline-block; }
.lead { font-size: 19px; line-height: 1.6; color: var(--fg-2); margin: 0 0 32px; max-width: 34em; text-wrap: pretty; }

/* Sign-up */
.notify { max-width: 520px; }
.notify label.title { display: block; font: 700 16px/1.3 var(--display); margin-bottom: 10px; }
.field { display: flex; gap: 8px; padding: 6px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); transition: border-color .2s; }
.field:focus-within { border-color: var(--teal); }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font: 400 17px/1 var(--text); padding: 12px 12px; outline: none; }
.field input::placeholder { color: var(--fg-3); }
.btn { appearance: none; border: 0; border-radius: 10px; background: var(--teal); color: var(--teal-ink); font: 700 16px/1 var(--display); padding: 0 20px; min-height: 46px; cursor: pointer; white-space: nowrap; transition: transform .15s, filter .15s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fine { font-size: 14px; color: var(--fg-3); margin: 10px 2px 0; }
.result { margin-top: 14px; display: none; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; }
.result.show { display: flex; animation: rise .35s ease-out; }
.result .mark { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--good); }
.result.err .mark { border-radius: 2px; background: var(--bad); transform: rotate(45deg); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.banner { display: none; border: 1px solid var(--line-2); background: var(--bg-2); border-radius: var(--radius); padding: 14px 16px; margin: 4px 0 0; font-size: 15px; gap: 12px; align-items: center; flex-wrap: wrap; }
.banner.show { display: flex; }
.banner b { font-family: var(--display); }
.banner .btn { min-height: 38px; font-size: 14px; }

/* Radar */
.radar-card { position: relative; }
.radar { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 600px; margin-inline: auto; touch-action: manipulation; }
.radar canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.tip { position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; font: 400 13px/1.4 var(--text); white-space: nowrap; opacity: 0; transition: opacity .12s; z-index: 2; }
.tip.show { opacity: 1; }
.tip code { font-family: var(--mono); font-size: 12.5px; }
.tip .k { color: var(--fg-3); }
.radar-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 14px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--bg-2); }
.seg button { appearance: none; border: 0; background: transparent; color: var(--fg-2); font: 600 14px/1 var(--text); padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--line); color: var(--fg); }
.tally { display: flex; gap: 22px; font-size: 13px; color: var(--fg-3); }
.tally b { display: block; font: 700 22px/1.1 var(--display); color: var(--fg); font-variant-numeric: tabular-nums; }
.tally .h b { color: var(--hostile); }
.tally .s b { color: var(--teal); }
.hint { font-size: 14px; color: var(--fg-3); margin: 10px 0 0; }
.log { list-style: none; margin: 14px 0 0; padding: 0; font: 400 13px/1.5 var(--mono); border-top: 1px solid var(--line); min-height: 140px; }
.log li { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); align-items: baseline; animation: rise .3s ease-out; }
.log .t { color: var(--fg-3); }
.log .p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-2); }
.log .v { font-family: var(--text); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.log .v::before { content: ""; width: 7px; height: 7px; background: currentColor; }
.log .v.blocked { color: var(--teal); }
.log .v.blocked::before { transform: rotate(45deg); }
.log .v.would { color: var(--hostile); }
.log .v.would::before { background: transparent; border: 1.5px solid currentColor; transform: rotate(45deg); width: 6px; height: 6px; }
.log .v.yours { color: var(--teal); }
.log .v.yours::before { border-radius: 50%; }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
h2 { font: 800 clamp(30px, 3.6vw, 44px)/1.08 var(--display); letter-spacing: -0.03em; margin: 0 0 14px; text-wrap: balance; }
.sub { color: var(--fg-2); font-size: 18px; margin: 0 0 32px; max-width: 38em; }

/* Try a request */
.try { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.try-input { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); padding: 6px 6px 6px 14px; }
.try-input:focus-within { border-color: var(--teal); }
.try-input .m { font: 600 14px/1 var(--mono); color: var(--fg-3); }
.try-input input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font: 400 16px/1 var(--mono); padding: 12px 6px; outline: none; }
.examples { margin: 14px 0 0; font-size: 14px; color: var(--fg-3); line-height: 2; }
.examples button { appearance: none; border: 0; background: none; padding: 0; margin-right: 14px; color: var(--fg-2); font: 400 14px/1 var(--mono); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; cursor: pointer; }
.examples button:hover { color: var(--fg); text-decoration-color: var(--teal); }
.verdict { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); padding: 22px 22px 20px; min-height: 196px; }
.verdict .head { display: flex; align-items: center; gap: 10px; font: 700 22px/1.2 var(--display); letter-spacing: -0.01em; margin-bottom: 8px; }
.verdict .shape { width: 12px; height: 12px; flex: none; }
.verdict.hostile .shape { background: var(--hostile); transform: rotate(45deg); }
.verdict.fine .shape { background: var(--normal); border-radius: 50%; }
.verdict.idle .shape { border: 1.5px solid var(--fg-3); border-radius: 50%; }
.verdict p { margin: 0 0 10px; color: var(--fg-2); }
.verdict .act { font-size: 15px; color: var(--fg); }
.verdict .act b { font-family: var(--display); }
.verdict .send { margin-top: 14px; appearance: none; background: none; border: 1px solid var(--line-2); color: var(--fg); border-radius: 10px; padding: 9px 12px; font: 600 14px/1 var(--text); cursor: pointer; }
.verdict .send:hover { border-color: var(--teal); }

/* Why */
.harm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-bottom: 40px; }
.harm div { padding: 24px 24px 6px 0; }
.harm div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.harm h3, .caps h3 { font: 700 19px/1.25 var(--display); margin: 0 0 8px; letter-spacing: -0.01em; }
.harm p, .caps p { margin: 0; color: var(--fg-2); font-size: 15.5px; }
.harm h3::before { content: ""; display: inline-block; width: 9px; height: 9px; background: var(--hostile); transform: rotate(45deg); margin: 0 10px 2px 1px; }
.versus { border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.vrow { display: grid; grid-template-columns: 1fr 1fr; }
.vrow + .vrow { border-top: 1px solid var(--line); }
.vrow span { padding: 16px 20px; font-size: 15.5px; }
.vrow span:first-child { color: var(--fg-3); }
.vrow span + span { border-left: 1px solid var(--line); color: var(--fg); }
.vhead span { font: 700 14px/1.3 var(--display); color: var(--fg-2) !important; padding-block: 12px; }
.vhead span + span { color: var(--teal) !important; }
.vrow code { font-family: var(--mono); font-size: 13.5px; }

/* The whole machine */
.whole { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
.score { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); padding: 24px; position: sticky; top: 20px; }
.ring { position: relative; width: 168px; height: 168px; margin: 0 auto 18px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .track { stroke: var(--line); }
.ring .arc { stroke: var(--teal); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .9s cubic-bezier(.2,.8,.2,1), stroke .4s; }
.ring-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-num b { font: 800 46px/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ring-num span { font-size: 13px; color: var(--fg-3); margin-top: 4px; }
.fixes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fixes li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.fx-mark { flex: none; width: 9px; height: 9px; background: var(--hostile); transform: rotate(45deg); transition: all .3s; }
.fixes li.done .fx-mark { background: var(--good); border-radius: 50%; transform: none; }
.fx-text { flex: 1; min-width: 0; }
.fixes li.done .fx-text { color: var(--fg-3); }
.fixes button { appearance: none; border: 1px solid var(--line-2); background: transparent; color: var(--fg); border-radius: 8px; padding: 6px 10px; font: 600 13px/1 var(--text); cursor: pointer; white-space: nowrap; }
.fixes button:hover { border-color: var(--teal); }
.fixes li.done button { border-color: transparent; color: var(--good); cursor: default; }
.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.caps div { padding: 20px 0; border-top: 1px solid var(--line); }
.caps h3::before { content: ""; display: inline-block; width: 8px; height: 8px; border: 2px solid var(--teal); border-radius: 50%; margin: 0 10px 2px 0; }

/* A night on one server */
.night { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 48px; align-items: start; }
.ghost { appearance: none; background: none; border: 1px solid var(--line-2); color: var(--fg-2); border-radius: 10px; padding: 9px 12px; font: 600 14px/1 var(--text); cursor: pointer; }
.ghost:hover { color: var(--fg); border-color: var(--teal); }
.night-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 47.5px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.timeline li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 26px; padding: 0 0 22px; }
.timeline time { font: 500 13px/1.6 var(--mono); color: var(--fg-3); position: relative; }
.timeline time::after { content: ""; position: absolute; right: -7px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--teal); }
.timeline .what { margin: 0 0 4px; font-size: 16px; }
.timeline .did { margin: 0; color: var(--fg-2); font-size: 15px; display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.timeline code, .faq code, .morning code { font-family: var(--mono); font-size: .9em; }
.js .timeline li, .js .morning { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.js .timeline li.on, .js .morning.on { opacity: 1; transform: none; }
.mk { flex: none; display: inline-block; width: 8px; height: 8px; }
.mk.ok { background: var(--good); border-radius: 50%; }
.mk.warn { background: var(--hostile); transform: rotate(45deg); }
.mk.idle { border: 1.5px solid var(--fg-3); border-radius: 50%; }
.morning { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); padding: 18px 18px 8px; }
.m-head { font: 700 17px/1.3 var(--display); margin: 0 0 10px; }
.morning ul { list-style: none; margin: 0; padding: 0; }
.morning li { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.morning b { color: var(--teal); font-weight: 600; }

/* FAQ */
.qs { max-width: 820px; margin-top: 26px; border-bottom: 1px solid var(--line); }
.qs details { border-top: 1px solid var(--line); padding: 4px 0; }
.qs summary { cursor: pointer; list-style: none; font: 700 18px/1.35 var(--display); padding: 14px 28px 14px 0; position: relative; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: ""; position: absolute; right: 4px; top: 22px; width: 8px; height: 8px; border-right: 2px solid var(--fg-3); border-bottom: 2px solid var(--fg-3); transform: rotate(45deg); transition: transform .2s; }
.qs details[open] summary::after { transform: rotate(-135deg); top: 26px; }
.qs p { margin: 0 0 16px; color: var(--fg-2); font-size: 15.5px; }

/* Closing */
.closing { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.facts li span:first-child { color: var(--fg-3); }
.facts li span:last-child { text-align: right; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--fg-3); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--fg-2); text-underline-offset: 3px; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 12px; }
  .radar { max-width: 460px; }
  .try, .closing { grid-template-columns: 1fr; gap: 28px; }
  .harm { grid-template-columns: 1fr; }
  .harm div, .harm div + div { padding: 18px 0 6px; border-left: 0; }
  .harm div + div { border-top: 1px solid var(--line); }
  .whole, .night { grid-template-columns: 1fr; gap: 32px; }
  .night { gap: 18px; }
  .score { position: static; }
}
@media (max-width: 560px) {
  .field { flex-direction: column; }
  .btn { min-height: 48px; }
  .caps, .night-body { grid-template-columns: 1fr; }
  .vrow { grid-template-columns: 1fr; }
  .vrow span + span { border-left: 0; padding-top: 0; }
  .vhead { display: none; }
  .vrow span:first-child::before { content: "Today: "; font-weight: 600; }
  .vrow span + span::before { content: "SecFleet: "; font-weight: 600; color: var(--teal); }
  .log { font-size: 12px; }
  .log li { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 8px; }
  .tally { gap: 16px; }
  section { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.cta { display: inline-flex; align-items: center; text-decoration: none; }
.facts code { font-family: var(--mono); font-size: 14px; }
