/* RAPID-SURVEY member-build site, styled after aiworkshopapps.com (COVERT). No build step. */
:root {
  --bg: #020617; --fg: #f8fafc; --s900: #0f172a; --s800: #1e293b; --s700: #334155; --s400: #94a3b8; --s300: #cbd5e1;
  --blue: #3E6188; /* covert-blue: borders, fills */
  --blue-t: #6f93bd; /* covert-blue lifted for small text, 6.3:1 on --bg */
  --accent: #3388ff; --grey: #7B8B9E;
  --real: #10b981; --partial: #f59e0b; --sim: #c084fc; --miss: #f87171; --unm: var(--grey);
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --r: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* 40 px engineering grid (COVERT GeometricGrid) */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .04;
  background: linear-gradient(to right, #fff 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(#fff 1px, transparent 1px) 0 0 / 40px 40px; }
::selection { background: var(--blue); color: #fff; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.1; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
code { font: 500 .85em var(--mono); color: var(--s300); background: var(--s900); border: 1px solid var(--s800); border-radius: 4px; padding: 0 .3em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { display: none; }
.ic { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-s { width: .85rem; height: .85rem; }
.ic-l { width: 2rem; height: 2rem; }
.wrap { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--fg); color: var(--bg); font-weight: 600; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 1rem; }
main:focus { outline: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(2, 6, 23, .8); border-bottom: 1px solid transparent; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--s800); }
.nav-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; min-height: 4.25rem; }
.nav-inner > nav { width: 100%; }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; }
.brand img { width: 96px; height: auto; filter: brightness(1.5); transition: opacity .2s; }
.brand:hover img { opacity: .8; }
.wordmark { font: 700 .8rem var(--mono); letter-spacing: .25em; padding-left: .85rem; border-left: 1px solid var(--s700); }
.nav-links { list-style: none; margin: 0; padding: 0 0 .75rem; display: flex; gap: 1.25rem; overflow-x: auto; font: 500 .75rem var(--mono); text-transform: uppercase; letter-spacing: .15em; }
.nav-links a { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; text-decoration: none; color: var(--s300); padding: .35rem 0; transition: color .2s; }
.nav-links a:hover { color: var(--blue-t); }
.nav-links .nav-cta { color: var(--fg); font-weight: 700; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; background: none; border: 1px solid var(--s800); border-radius: 8px; color: var(--fg); cursor: pointer; }
.nav-toggle[hidden] { display: none; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
[aria-expanded="true"] .bars { background: transparent; }
[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
/* With JS, small screens collapse the links behind the toggle (COVERT mobile menu) */
.js .nav-links { display: none; flex-direction: column; gap: 0; padding: .25rem 0 1rem; font-size: .95rem; }
.js .nav-links.open { display: flex; }
.js .nav-links li { border-bottom: 1px solid var(--s800); }
.js .nav-links a { padding: .9rem 0; width: 100%; color: var(--fg); }

/* Type */
.eyebrow { font: 500 .8rem var(--mono); color: var(--blue-t); text-transform: uppercase; letter-spacing: .2em; margin-bottom: 1rem; }
.section h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 700; margin-bottom: 1.25rem; max-width: 40ch; }
.sub { color: var(--s400); font-size: 1.05rem; max-width: 62rem; margin-bottom: 2.5rem; }
.fine { color: var(--s400); font-size: .8rem; margin-top: 1rem; }
.meta { font: 500 .72rem var(--mono); color: var(--grey); text-transform: uppercase; letter-spacing: .15em; margin-bottom: .5rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 5rem 0 4.5rem; text-align: center; border-bottom: 1px solid var(--s800); }
.hero::before { content: ""; position: absolute; left: 50%; top: 40%; width: min(60rem, 120vw); height: 30rem; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(62, 97, 136, .28), transparent); pointer-events: none; }
/* CRT scanlines (COVERT TacticalMap) */
.hero::after, .play-shade::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .3; mix-blend-mode: overlay;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, .25) 50%) 0 0 / 100% 4px, linear-gradient(90deg, rgba(255, 0, 0, .06), rgba(0, 255, 0, .02), rgba(0, 0, 255, .06)) 0 0 / 3px 100%; }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 5rem); font-weight: 700; letter-spacing: -.02em; max-width: 18ch; margin-bottom: 1.75rem; }
.lead { color: var(--s300); font-weight: 300; font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 50rem; margin-bottom: 2.25rem; }
.corner { display: none; position: absolute; width: 8rem; height: 8rem; border: 0 solid var(--s800); opacity: .6; }
.corner.tl { top: 2rem; left: 2rem; border-width: 1px 0 0 1px; }
.corner.tr { top: 2rem; right: 2rem; border-width: 1px 1px 0 0; }
.corner.bl { bottom: 2rem; left: 2rem; border-width: 0 0 1px 1px; }
.corner.br { bottom: 2rem; right: 2rem; border-width: 0 1px 1px 0; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-bottom: 3rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 8px; font-weight: 600; text-decoration: none; transition: transform .2s, background-color .2s; }
.btn .ic { width: 1rem; height: 1rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #4a71a0; transform: scale(1.03); }
.btn-ghost { border: 1px solid var(--s700); font: 500 .8rem var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.btn-ghost:hover { background: var(--s800); }
.stats, .cov-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--s800); border: 1px solid var(--s800); border-radius: var(--r); overflow: hidden; }
.stats { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 52rem; }
.stats li { background: rgba(2, 6, 23, .85); padding: 1.1rem .75rem; display: flex; flex-direction: column; gap: .2rem; }
.stat-n { font: 700 1.6rem var(--display); }
.stat-l { font: 500 .68rem var(--mono); color: var(--s400); text-transform: uppercase; letter-spacing: .12em; }

/* Sections */
.section { padding: 5rem 0; border-top: 1px solid var(--s800); }
.hero + .section { border-top: 0; }
.section-alt { background: rgba(15, 23, 42, .6); }

/* Window-chrome demo card (COVERT RapidSurveyFeature / LucidAgentCard) */
.demo-grid { display: grid; gap: 2.5rem; align-items: start; }
.window { position: relative; overflow: hidden; border: 1px solid var(--s800); border-radius: var(--r); background: rgba(15, 23, 42, .5); transition: border-color .3s; }
.window:hover, .window:focus-within { border-color: var(--blue); }
.chrome { display: flex; align-items: center; gap: .5rem; height: 1.75rem; padding: 0 .75rem; background: var(--bg); border-bottom: 1px solid var(--s800); }
.dot { width: .625rem; height: .625rem; border-radius: 50%; background: var(--s700); }
.chrome-title { margin-left: .75rem; font: 500 .62rem var(--mono); letter-spacing: .2em; color: var(--s400); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(closest-side, rgba(62, 97, 136, .25), transparent),
  linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 32px 32px, var(--bg); }
.play { position: absolute; inset: 0; display: block; color: var(--fg); overflow: hidden; text-decoration: none; }
.play:focus-visible { outline-offset: -4px; }
.play img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .7s, transform .7s; }
.play:hover img, .play:focus-visible img { opacity: 1; transform: scale(1.02); }
.no-poster .play img { display: none; }
.play-shade { position: absolute; inset: 0; background: rgba(2, 6, 23, .3); transition: background-color .3s; }
.play:hover .play-shade { background: rgba(62, 97, 136, .1); }
.play-btn { position: absolute; left: 50%; top: 50%; width: 5rem; height: 5rem; margin: -2.5rem 0 0 -2.5rem; display: flex; align-items: center; justify-content: center; border: 2px solid var(--blue); border-radius: 50%; background: rgba(2, 6, 23, .7); transition: transform .3s; }
.play-btn .ic { margin-left: .25rem; stroke: none; fill: currentColor; }
.play:hover .play-btn, .play:focus-visible .play-btn { transform: scale(1.1); }
.play-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem; background: linear-gradient(to top, var(--bg), transparent); font: 700 .78rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--blue-t); text-shadow: 0 1px 4px #000; }
.demo-video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.demo-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; font: 500 .8rem var(--mono); color: var(--s300); letter-spacing: .1em; text-transform: uppercase; }
.bracket { position: absolute; top: 0; width: 1rem; height: 1rem; margin: .5rem; border: 0 solid rgba(62, 97, 136, .7); pointer-events: none; z-index: 2; }
.bl-tl { left: 0; border-width: 2px 0 0 2px; }
.bl-tr { right: 0; border-width: 2px 2px 0 0; }
.demo-side h3 { font-size: 1.6rem; margin-bottom: 1.25rem; }
.numbered { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; color: var(--s300); }
.numbered li { display: flex; gap: .85rem; }
.numbered li > span:first-child { font: 500 .85rem var(--mono); color: var(--blue-t); padding-top: .15rem; flex: none; }

/* Capability cards: glass + corner brackets (COVERT CornerBrackets) */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.card { --c: rgba(62, 97, 136, .55); position: relative; padding: 1.75rem; border: 1px solid rgba(30, 41, 59, .7); border-radius: var(--r); background: rgba(2, 6, 23, .75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; flex-direction: column; gap: .75rem; transition: border-color .3s, transform .3s; }
.card::after { --h: linear-gradient(var(--c), var(--c)); content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background:
  var(--h) top left / 14px 1px no-repeat, var(--h) top left / 1px 14px no-repeat, var(--h) top right / 14px 1px no-repeat, var(--h) top right / 1px 14px no-repeat,
  var(--h) bottom left / 14px 1px no-repeat, var(--h) bottom left / 1px 14px no-repeat, var(--h) bottom right / 14px 1px no-repeat, var(--h) bottom right / 1px 14px no-repeat; }
.card:hover { --c: var(--blue-t); border-color: rgba(62, 97, 136, .6); transform: translateY(-4px); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.icon { width: 3rem; height: 3rem; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: rgba(62, 97, 136, .2); color: var(--blue-t); }
.icon .ic { width: 1.5rem; height: 1.5rem; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--s400); font-size: .9rem; }
.card .limit { margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--s800); font-size: .8rem; color: var(--s300); }
.card .limit::before { content: "LIMIT // "; font: 700 .7rem var(--mono); color: var(--grey); letter-spacing: .1em; }
.chip { display: inline-block; padding: .15rem .55rem; border-radius: 4px; border: 1px solid; font: 700 .66rem var(--mono); letter-spacing: .14em; text-transform: uppercase; vertical-align: .1em; }
.chip.real { color: #34d399; background: rgba(16, 185, 129, .1); }
.chip.partial { color: #fbbf24; background: rgba(245, 158, 11, .1); }
.chip.sim { color: #e879f9; background: rgba(217, 70, 239, .1); }

/* Coverage */
.cov-stats { margin: 0; }
.st { background: var(--bg); padding: 1rem 1.1rem; border-top: 3px solid var(--k); }
.st dt { font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .15em; color: var(--s400); }
.st dd { margin: .2rem 0 0; font: 700 2rem var(--display); }
.real, .k-real { --k: var(--real); } .partial, .k-partial { --k: var(--partial); } .sim, .k-simulated { --k: var(--sim); }
.miss, .k-missing { --k: var(--miss); } .unm, .k-unmapped { --k: var(--unm); }
.cov-bars { margin-top: 2.25rem; display: grid; gap: 1.1rem; }
.cov-bars[hidden] { display: none; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; margin: 0 0 .5rem; padding: 0; font: 500 .72rem var(--mono); color: var(--s400); text-transform: uppercase; letter-spacing: .1em; }
.legend li { display: flex; align-items: center; gap: .45rem; }
.legend i { width: .75rem; height: .75rem; border-radius: 2px; background: var(--k); }
.bar-head { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; margin-bottom: .4rem; }
.bar-head b { font-weight: 500; }
.bar-head span { font: 500 .75rem var(--mono); color: var(--s400); white-space: nowrap; }
.bar { display: flex; height: .9rem; border-radius: 4px; overflow: hidden; background: var(--s900); border: 1px solid var(--s800); }
.total .bar { height: 1.6rem; }
.total .bar-head b { font: 700 1.05rem var(--display); }
.seg { height: 100%; background: var(--k); display: flex; align-items: center; justify-content: center; font: 700 .68rem var(--mono); color: var(--bg); overflow: hidden; transition: width .8s cubic-bezier(.2, .7, .2, 1); }
.seg + .seg { box-shadow: inset 1px 0 0 var(--bg); }
.cov-details { margin-top: 2rem; }
.cov-details summary { cursor: pointer; font: 500 .75rem var(--mono); text-transform: uppercase; letter-spacing: .15em; color: var(--s300); padding: .4rem 0; }
.table-wrap { overflow-x: auto; margin-top: .75rem; border: 1px solid var(--s800); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: .875rem; min-width: 36rem; }
th, td { padding: .6rem .8rem; text-align: right; border-bottom: 1px solid var(--s800); }
th:first-child { text-align: left; font-weight: 500; }
thead th { font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--s400); background: var(--s900); }
td { font-family: var(--mono); color: var(--s300); }
tfoot th, tfoot td { border-bottom: 0; font-weight: 700; color: var(--fg); background: rgba(15, 23, 42, .6); }

/* Architecture */
.arch-wrap { overflow-x: auto; border: 1px solid var(--s800); border-radius: var(--r); background: rgba(2, 6, 23, .7); padding: 1rem; }
.arch { display: block; width: 100%; min-width: 760px; height: auto; }
.arch .grp { fill: rgba(15, 23, 42, .55); stroke: var(--s700); }
.arch .grp-hi { stroke: var(--blue); }
.arch .box { fill: var(--s900); stroke: var(--s800); }
.arch .gate { fill: rgba(62, 97, 136, .25); stroke: var(--blue); stroke-width: 2; }
.arch .h { font: 500 13px var(--mono); letter-spacing: .15em; fill: var(--blue-t); }
.arch .t { font: 600 15px var(--display); fill: var(--fg); }
.arch .t-s { font: 500 13px var(--sans); }
.arch .s { font: 400 12px var(--mono); fill: var(--s400); }
.arch .g { font: 700 13px var(--mono); letter-spacing: .12em; fill: var(--fg); }
.arch .ln { stroke: var(--blue-t); stroke-width: 2; fill: none; }
.arch .dash { stroke-dasharray: 5 5; }
.arch .ah { fill: var(--blue-t); }
.arch .outs rect { fill: rgba(62, 97, 136, .2); stroke: var(--blue); }
.arch .outs text { font: 700 13px var(--mono); fill: var(--fg); text-anchor: middle; }
.arch-notes { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; color: var(--s400); font-size: .925rem; }
.arch-notes b { color: var(--fg); font-weight: 600; }

/* Data & limits */
.data-grid { display: grid; gap: 1.25rem; }
.panel { padding: 1.75rem; border: 1px solid var(--s800); border-radius: var(--r); background: rgba(15, 23, 42, .3); }
.panel h3 { font-size: 1.2rem; margin-bottom: 1.1rem; display: flex; align-items: center; gap: .6rem; }
.panel h3::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--blue); }
.panel:last-child h3::before { background: #ef4444; }
.lic, .limits { margin: 0; padding: 0; list-style: none; display: grid; gap: .85rem; color: var(--s300); font-size: .9rem; }
.lic li, .limits li { padding-left: 1.4rem; position: relative; }
.lic li::before, .limits li::before { content: "//"; content: "//" / ""; position: absolute; left: 0; font: 700 .75rem/1.9 var(--mono); color: var(--blue-t); }
.lic a { color: var(--blue-t); text-underline-offset: 3px; }
.lic a:hover { color: var(--fg); }

/* Footer */
.footer { background: #000; border-top: 1px solid var(--s800); padding: 4rem 0 2rem; }
.foot-grid { display: grid; gap: 2.5rem; margin-bottom: 3rem; }
.foot-brand img { width: 128px; height: auto; margin-bottom: 1.25rem; filter: grayscale(1); opacity: .6; }
.foot-brand p { color: var(--s400); font-size: .875rem; max-width: 28rem; }
.foot-brand .motto { font: 600 1.1rem var(--display); color: var(--fg); margin-bottom: .6rem; }
.foot-h { font: 500 .875rem var(--mono); margin-bottom: 1rem; }
.foot-links, .foot-legal { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .875rem; color: var(--s400); }
.foot-links a { text-decoration: none; transition: color .2s; }
.foot-links a:hover { color: var(--blue-t); }
.copy { text-align: center; font: .75rem var(--mono); color: var(--s400); }

@media (min-width: 640px) {
  .wrap { padding: 0 2rem; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cov-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cards, .arch-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .nav-inner { flex-wrap: nowrap; }
  .nav-inner > nav { width: auto; }
  .js .nav-toggle { display: none; }
  .nav-links, .js .nav-links { display: flex; flex-direction: row; gap: 2rem; padding: 0; font-size: .75rem; overflow: visible; }
  .js .nav-links li { border: 0; }
  .js .nav-links a { padding: .35rem 0; width: auto; color: var(--s300); }
  .js .nav-links .nav-cta { color: var(--fg); }
  .brand img { width: 120px; }
  .hero { padding: 8rem 0 7rem; }
  .corner { display: block; }
  .section { padding: 6rem 0; }
  .demo-grid { grid-template-columns: 3fr 2fr; gap: 3rem; }
  .data-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 2fr 1fr 1.4fr; }
}
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .card:hover, .play:hover img, .play:focus-visible img, .play:hover .play-btn, .play:focus-visible .play-btn, .btn-primary:hover { transform: none; }
}
