@font-face {
  font-family: "Manrope";
  src: url("/ui/manrope-variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #08121f;
  --surface: #0c1d2f;
  --surface-soft: #10283d;
  --line: #25465d;
  --text: #eef4f8;
  --muted: #b4c3cf;
  --brand: #75dfff;
  --signal: #9af3ff;
  --teal: #9cdaca;
  --warning: #f4d297;
  --danger: #ffbbb4;
  --font-body: "Manrope", "Trebuchet MS", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 92px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font-body); }
a { color: inherit; text-underline-offset: 4px; }
button, input { color: inherit; font: inherit; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 7px;
  background: transparent; cursor: pointer; font-weight: 700; text-decoration: none; line-height: 1.4;
}
button:hover, .button:hover { background: var(--surface-soft); border-color: var(--brand); }
button:disabled { cursor: progress; opacity: .65; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
h1, h2, h3, p, dl { margin: 0; }

.shell { min-height: 100svh; display: flex; flex-direction: column; }
.page-shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.masthead { position: sticky; top: 0; z-index: 5; background: #08121ff2; border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.masthead::after { content: ""; position: absolute; inset: auto 0 -1px; height: 1px; background: linear-gradient(90deg, transparent 6%, #75dfffa0 44%, transparent 78%); pointer-events: none; }
.masthead-inner { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 1.25rem; font-weight: 800; letter-spacing: -.025em; }
.brand-logo { display: flex; align-items: center; justify-content: center; width: 57px; height: 40px; overflow: hidden; }
.brand-logo img { flex: none; object-fit: contain; filter: brightness(1.5); }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 5px; color: var(--muted); font-size: .88rem; font-weight: 650; text-decoration: none; }
.site-nav a:hover { color: var(--brand); }
.site-nav .contact-link { padding-inline: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); color: var(--text); }
#nav-toggle { display: none; }
.skip-link { position: fixed; z-index: 10; top: 8px; left: 12px; padding: 10px 16px; color: var(--bg); background: var(--brand); translate: 0 -160%; }
.skip-link:focus { translate: 0; }
.service { border: 1px solid var(--line); border-radius: 99px; padding: .24rem .7rem; background: var(--surface); font-size: .78rem; font-weight: 700; }
.service::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .5em; border-radius: 50%; background: currentColor; vertical-align: .06em; }
.service[data-state="ready"] { color: var(--teal); }
.service[data-state="offline"] { color: var(--danger); }
main { flex: 1; min-width: 0; }
.hero { padding-block: clamp(36px, 5vw, 70px); background: radial-gradient(ellipse at 78% 44%, #102f4b 0%, transparent 62%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4.6vw, 66px); align-items: center; }
.hero-copy { animation: appear .65s ease-out both; }
h1 { font-size: clamp(2rem, 4.5vw, 4.3rem); line-height: 1.08; font-weight: 800; letter-spacing: -.06em; overflow-wrap: anywhere; }
.hero h1 span { display: block; color: var(--signal); }
.eyebrow { margin-bottom: 16px; color: var(--brand); font: 650 .73rem/1.4 var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.hero-description { color: var(--muted); max-width: 48ch; margin-top: 18px; font-size: 1.05rem; }
.visualizer { position: relative; margin: 0; aspect-ratio: 1.36; min-height: 300px; isolation: isolate; animation: appear .8s .1s ease-out both; }
.visualizer-scene { position: absolute; inset: 0; overflow: hidden; border: 1px solid #234d674d; background: radial-gradient(ellipse, #0a315a 0%, #081b2f 52%, #071321 77%); }
.visualizer-scene::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#79cdff0a 1px, transparent 1px), linear-gradient(90deg, #79cdff0a 1px, transparent 1px); background-size: 25px 25px; mask-image: radial-gradient(ellipse, black, transparent 82%); }
.visualizer::after { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(var(--brand), var(--brand)) left top / 16px 1px,
  linear-gradient(var(--brand), var(--brand)) left top / 1px 16px,
  linear-gradient(var(--brand), var(--brand)) right top / 16px 1px,
  linear-gradient(var(--brand), var(--brand)) right top / 1px 16px,
  linear-gradient(var(--brand), var(--brand)) left bottom / 16px 1px,
  linear-gradient(var(--brand), var(--brand)) left bottom / 1px 16px,
  linear-gradient(var(--brand), var(--brand)) right bottom / 16px 1px,
  linear-gradient(var(--brand), var(--brand)) right bottom / 1px 16px; background-repeat: no-repeat; }
.visualizer canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.visualizer figcaption { position: absolute; top: 16px; left: 17px; color: var(--text); font: .72rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .11em; }
.visualizer figcaption small { display: block; color: var(--muted); font-size: .63rem; }
.motion-control { position: absolute; right: 11px; bottom: 11px; min-height: 36px; padding: 6px 9px; color: var(--muted); background: #081a2be8; font: .67rem var(--mono); }
.capabilities { border-block: 1px solid var(--line); background: #091725; }
.capabilities ol { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; margin-block: 0; }
.capabilities li { display: flex; align-items: baseline; gap: 14px; padding: 19px 20px; border-right: 1px solid var(--line); }
.capabilities li:first-child { padding-left: 0; }
.capabilities li:last-child { padding-right: 0; border: 0; }
.capabilities li > span { color: var(--brand); font: 650 .78rem var(--mono); }
.capabilities h2 { font-size: .98rem; }
.capabilities p { color: var(--muted); font-size: .82rem; line-height: 1.45; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

#scan-form { margin-top: 23px; padding: 15px; border: 1px solid #316784; border-radius: 9px; background: linear-gradient(125deg, #0d2338, #091827); box-shadow: inset 0 1px 0 #93e6ff16; }
#scan-form:focus-within { border-color: var(--brand); }
#scan-form label { display: block; margin-bottom: 8px; color: var(--signal); font: .73rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 12px; }
.target-field { display: flex; align-items: center; gap: 9px; min-width: 0; padding-left: 10px; border: 1px solid var(--line); border-radius: 7px; background: #081523; }
.target-field:focus-within { border-color: var(--brand); }
.target-field svg { width: 20px; flex: none; fill: none; stroke: var(--brand); stroke-width: 1.5; stroke-linecap: round; }
.form-row input { width: 100%; min-width: 0; padding: 9px 10px 9px 0; border: 0; border-radius: 7px; background: transparent; outline: none; }
.form-row input::placeholder { color: var(--muted); }
button.primary { border-color: var(--brand); background: var(--brand); color: #061626; transition: box-shadow .2s, background .2s; }
button.primary:hover { background: #9de8ff; box-shadow: 0 0 26px #75dfff55; }
button.primary[aria-busy="true"] .arrow { animation: sending .9s ease-in-out infinite alternate; }
@keyframes sending { to { transform: translateX(4px); opacity: .4; } }
.arrow { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; }
#scope, .provider-note { margin-top: 10px; color: var(--muted); font-size: .83rem; }
footer { border-top: 1px solid var(--line); background: #060f1a; font-size: .83rem; color: var(--muted); }
.footer-inner, .footer-inner > div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-inner { padding-block: 22px; }

#report { padding-block: 34px 55px; animation: appear .55s ease-out both; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 17px; font-size: .88rem; color: var(--brand); font-weight: 700; text-decoration: none; }
.back:hover { text-decoration: underline; }
.back .arrow { width: 18px; }
.report-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; }
.report-heading h1 { font-size: clamp(1.85rem, 4.5vw, 3.8rem); }
.report-heading .eyebrow { margin-bottom: 9px; }
#report-meta { color: var(--muted); margin-top: 8px; font: .75rem/1.5 var(--mono); overflow-wrap: anywhere; }
.exports { display: flex; gap: 8px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 25px; border: 1px solid #39718f; border-radius: 9px; background: linear-gradient(115deg, #102b41, #091b2c 65%); box-shadow: inset 0 1px #94eaff26; }
.stats > div { padding: 3px clamp(10px, 2vw, 23px); margin: 14px 0; border-left: 1px solid var(--line); min-width: 0; }
.stats > div:first-child { border-left: 0; }
.stats dt { font: .73rem/1.4 var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.stats dd { margin: 0; font-size: 1.9rem; font-weight: 750; line-height: 1.3; overflow-wrap: anywhere; }
.stats small { font: 500 .8rem/1.2 var(--mono); margin-left: .45em; }
.stats .score { color: var(--brand); }
.report-nav { display: flex; gap: 4px; margin-top: 16px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.report-nav button { flex: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); }
.report-nav button[aria-pressed="true"] { border-color: var(--brand); background: linear-gradient(0deg, #75dfff18, transparent 85%); color: var(--signal); }
.report-nav button:focus-visible { outline-offset: -4px; }
.report-panel { padding-bottom: 14px; }
.report-panel:not([hidden]) { animation: appear .25s ease-out both; }
.finding, .data-section { border-bottom: 1px solid var(--line); }
.finding { margin-block: 6px; border: 1px solid var(--line); border-radius: 7px; background: #0a1929; overflow: clip; }
.finding[open] { border-color: #4e93b3; background: linear-gradient(145deg, #102b44, #0a1b2d 70%); }
.finding[open] > summary { border-bottom: 1px solid var(--line); }
.finding summary:focus-visible { outline-offset: -4px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 7px; padding-block: 13px 6px; }
.filter-bar button { min-height: 36px; padding: 6px 10px; font: .75rem var(--mono); }
.filter-bar button[aria-pressed="true"] { border-color: var(--brand); color: var(--signal); background: #132d41; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 8px; height: 8px; border: solid var(--brand); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin-left: auto; flex: none; }
details[open] > summary::after { transform: rotate(225deg); }
.finding summary, .data-section summary { display: flex; align-items: center; gap: 14px; padding: 12px; font-weight: 700; overflow-wrap: anywhere; }
.finding summary:hover, .data-section summary:hover { background: var(--surface); }
.severity { display: inline-block; min-width: 7.8ch; text-align: center; background: var(--surface-soft); color: var(--muted); padding: 2px 8px; border-radius: 6px; font-size: .75rem; flex: none; }
.severity[data-level="critical"], .severity[data-level="high"] { background: #35202b; color: var(--danger); }
.severity[data-level="medium"] { background: #312a25; color: var(--warning); }
.severity[data-level="low"] { background: #142e33; color: var(--teal); }
.finding-body { padding: 13px 14px 16px; overflow-wrap: anywhere; }
.finding-body > p:first-child { color: var(--muted); font: .73rem/1.5 var(--mono); }
.finding-body p { margin-bottom: .65rem; }
.finding-body strong { display: block; }
.finding-body .data-section { border-top: 1px solid var(--line); border-bottom: 0; }
.data-list { padding: 0 12px 10px 27px; margin: 0; overflow-wrap: anywhere; }
.data-list li + li { margin-top: 4px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 24rem; overflow: auto; margin: 0 0 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line); font: .83rem/1.55 var(--mono); }
.snapshot { display: block; max-width: 100%; max-height: 480px; margin: 10px 0; border: 1px solid var(--line); }
.notice { border: 1px solid var(--line); border-left: 3px solid var(--teal); padding: 13px 15px; margin-top: 16px; background: var(--surface); overflow-wrap: anywhere; }
.notice[data-kind="error"] { border-left-color: var(--danger); }
.scan-pulse { display: grid; place-items: center; height: clamp(155px, 26vw, 255px); overflow: hidden; background: radial-gradient(ellipse, #123454 0%, transparent 63%); }
.scan-pulse span { grid-area: 1/1; width: 10%; min-width: 40px; aspect-ratio: 1; border: 1px solid var(--brand); border-radius: 50%; opacity: .3; animation: ping 2.5s ease-out both; }
.scan-pulse span:nth-child(2) { animation-delay: .3s; width: 13%; }
.scan-pulse span:nth-child(3) { animation-delay: .6s; width: 16%; }
.scan-pulse span:nth-child(4) { animation-delay: .9s; width: 19%; }
@keyframes ping { from { transform: scale(.55); opacity: .8; } to { transform: scale(1); opacity: .3; } }
.empty { margin-top: 16px; color: var(--muted); }

@media (max-width: 760px) {
  .page-shell { width: calc(100% - 36px); }
  .masthead-inner { min-height: 70px; position: relative; }
  #nav-toggle { display: inline-flex; min-height: 44px; padding: 8px 14px; }
  .site-nav { display: none; position: absolute; inset: 100% 0 auto; align-items: stretch; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
  #nav-toggle[aria-expanded="true"] + .site-nav { display: grid; }
  .hero { padding-block: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .visualizer { aspect-ratio: 1.65; min-height: 200px; }
  .capabilities ol { grid-template-columns: 1fr; }
  .capabilities li { padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(odd) { border-left: 0; }
  .report-nav button { font-size: .85rem; padding-inline: 12px; }
}
@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
