:root {
  --bg: #05080f;
  --panel: #0a1220;
  --panel-2: #0d1628;
  --line: rgba(63, 240, 255, .25);
  --cyan: #3ff0ff;
  --amber: #ffb020;
  --red: #ff4d5e;
  --info: #8fb3c9;
  --text: #d8e6f0;
  --muted: #8aa0b4;
  --mono: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 10px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--mono); color: #fff; line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h2::before { content: "// "; color: var(--cyan); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
p, li, h1, h2, h3, td, th { overflow-wrap: anywhere; }
.hero__in > *, .grid3 > *, .grid4 > *, .steps > li, .pipe li > div { min-width: 0; }
body { overflow-x: clip; }
a { color: var(--cyan); }
a:focus-visible, button:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 2px;
}
code, pre, kbd { font-family: var(--mono); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; border-top: 1px solid rgba(63, 240, 255, .08); }
.lead { color: var(--muted); max-width: 70ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 8, 15, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; min-height: 44px; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 1.1rem var(--mono); }
.brand img { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); object-fit: cover; }
.nav__links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav__links a { display: block; padding: 10px 10px; color: var(--text); text-decoration: none; font: .9rem var(--mono); border-radius: 6px; }
.nav__links a:hover { color: var(--cyan); background: rgba(63, 240, 255, .06); }
.nav__toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--cyan); border-radius: 6px; width: 44px; height: 44px; font-size: 1.2rem; cursor: pointer; }
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__in { flex-wrap: wrap; }
  .nav__links { display: none; width: 100%; flex-direction: column; margin: 0 0 12px; }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 12px; min-height: 44px; }
  .btn--sm { min-height: 44px; }
  .limits a, .steps p a { display: inline-block; padding: 11px 0; }
  .nav__x { display: none; }
  .nav.is-open .nav__x { display: inline-flex; margin-bottom: 14px; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 8px;
  font: 600 .9rem var(--mono); text-decoration: none; cursor: pointer;
  border: 1px solid var(--cyan); background: transparent; color: var(--cyan);
  transition: background .15s, box-shadow .15s;
}
.btn:hover { background: rgba(63, 240, 255, .1); }
.btn--primary { background: var(--cyan); color: #05080f; box-shadow: 0 0 18px rgba(63, 240, 255, .35); }
.btn--primary:hover { background: #8ff7ff; }
.btn--sm { min-height: 44px; padding: 6px 12px; font-size: .8rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* hero */
.hero { position: relative; padding: 0; border: 0; overflow: hidden; min-height: 620px; display: flex; align-items: center; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(5, 8, 15, .97) 0%, rgba(5, 8, 15, .88) 45%, rgba(5, 8, 15, .45) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero__in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; width: 100%; }
.hero h1 { font: 700 clamp(3.2rem, 9vw, 6rem)/1 "Chakra Petch", var(--mono); color: #fff; letter-spacing: .02em; text-shadow: 0 0 28px rgba(63, 240, 255, .45); margin-bottom: 14px; }
.tagline { font: 600 clamp(1.15rem, 2.4vw, 1.5rem)/1.3 var(--mono); color: var(--cyan); }
.hero__line { max-width: 56ch; }
.chip { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 18, 32, .85); font: .82rem var(--mono); color: var(--text); margin-bottom: 18px; }
.chip b { color: var(--cyan); font-weight: 600; }

.ca { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(10, 18, 32, .9); margin: 0 0 20px; max-width: 620px; }
.ca__label { font: .75rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.ca__val { font: .9rem var(--mono); color: #fff; word-break: break-all; flex: 1 1 200px; }

/* lightbox */
.lightbox {
  position: relative; aspect-ratio: 1; max-width: 380px; width: 100%; justify-self: center;
  padding: 22px; border-radius: 14px; background: #0b1a26;
  border: 2px solid rgba(63, 240, 255, .5);
  box-shadow: 0 0 40px rgba(63, 240, 255, .28), inset 0 0 60px rgba(63, 240, 255, .18);
  overflow: hidden;
}
.lightbox::before { content: ""; position: absolute; inset: 8px; border: 1px dashed rgba(63, 240, 255, .25); border-radius: 8px; pointer-events: none; z-index: 2; }
.lightbox img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; filter: contrast(1.05) brightness(1.05); }
.scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 18px; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(63, 240, 255, .25) 40%, rgba(63, 240, 255, .95) 50%, rgba(63, 240, 255, .25) 60%, transparent);
  box-shadow: 0 0 24px 6px rgba(63, 240, 255, .45);
  animation: sweep 3.2s linear infinite;
}
@keyframes sweep { 0% { top: -20px; } 100% { top: 100%; } }
.lightbox__tag { position: absolute; z-index: 4; bottom: 10px; right: 14px; font: .78rem var(--mono); color: var(--cyan); letter-spacing: .1em; }
@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero::before { background: linear-gradient(180deg, rgba(5, 8, 15, .92), rgba(5, 8, 15, .85)); }
  .lightbox { max-width: 280px; }
}

/* cards */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid3, .grid4 { grid-template-columns: 1fr; } }
@media (min-width: 600px) and (max-width: 860px) { .grid4 { grid-template-columns: 1fr 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.card p:last-child { margin-bottom: 0; }
.card h3 { color: var(--cyan); }
.card--stat .k { font: .75rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.card--stat .v { font: 600 1.05rem/1.35 var(--mono); color: #fff; margin: 0; }
.label { font: .8rem var(--mono); color: var(--amber); text-transform: uppercase; letter-spacing: .08em; margin: 28px 0 12px; }

/* tool */
.tool { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 960px) { .tool { grid-template-columns: 1fr; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.src {
  width: 100%; min-height: 380px; resize: vertical; padding: 14px;
  background: #050b14; color: var(--text); border: 1px solid var(--line); border-radius: 8px;
  font: 13px/1.5 var(--mono); white-space: pre; tab-size: 4;
}
.src::placeholder { color: var(--muted); }
.counter { font: .8rem var(--mono); color: var(--muted); margin: 8px 0 14px; }
.tool .btns + .btns { margin-top: 10px; }
.placeholder { color: var(--muted); font-family: var(--mono); font-size: .9rem; padding: 30px 6px; text-align: center; }
.err { color: var(--red); font-family: var(--mono); padding: 14px; border: 1px solid rgba(255, 77, 94, .5); border-radius: 8px; background: rgba(255, 77, 94, .06); }
.notice { font: .85rem var(--mono); color: var(--amber); border-left: 3px solid var(--amber); padding: 6px 10px; margin: 8px 0; background: rgba(255, 176, 32, .06); }
.export-msg { font: .8rem var(--mono); color: var(--cyan); margin-left: 4px; align-self: center; }

.summary { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 16px; }
.counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.count { border: 1px solid; border-radius: 8px; padding: 10px; text-align: center; font-family: var(--mono); }
.count b { display: block; font-size: 1.8rem; line-height: 1.1; }
.count span { font-size: .75rem; letter-spacing: .08em; }
.count--h { border-color: var(--red); color: var(--red); }
.count--m { border-color: var(--amber); color: var(--amber); }
.count--i { border-color: var(--cyan); color: var(--cyan); }
.verdict { font: 700 1.4rem/1.25 var(--mono); color: #fff; margin: 0 0 4px; }
.meta { font: .8rem var(--mono); color: var(--muted); margin: 0 0 4px; }
.fixed-note { font: .78rem var(--mono); color: var(--amber); margin: 6px 0 0; }

.findings { display: grid; gap: 14px; margin-bottom: 18px; }
.empty { color: var(--muted); font-family: var(--mono); padding: 14px; border: 1px dashed var(--line); border-radius: 8px; }
.film {
  --sev: var(--info);
  position: relative; cursor: pointer; background: #0b1424;
  border: 1px solid var(--line); border-left: 4px solid var(--sev); border-radius: 6px;
  padding: 26px 16px 26px 16px; min-width: 0;
}
.film::before, .film::after {
  content: ""; position: absolute; left: 0; right: 0; height: 14px;
  background: repeating-radial-gradient(circle at 9px 7px, rgba(216, 230, 240, .32) 0 3px, transparent 3.5px 40px) 0 0 / 18px 14px repeat-x;
  background-color: rgba(0, 0, 0, .35);
}
.film::before { top: 0; border-bottom: 1px solid rgba(63, 240, 255, .12); }
.film::after { bottom: 0; border-top: 1px solid rgba(63, 240, 255, .12); }
.film:hover { background: #0e1a2e; }
.film--HIGH { --sev: var(--red); }
.film--MEDIUM { --sev: var(--amber); }
.film--INFO { --sev: var(--info); }
.film__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.sev { font: 700 .72rem var(--mono); letter-spacing: .08em; padding: 3px 8px; border-radius: 4px; color: #05080f; background: var(--sev); }
.film__name { font: 600 .98rem var(--mono); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.lchip { font: .75rem var(--mono); min-height: 30px; padding: 4px 9px; border-radius: 4px; border: 1px solid var(--line); background: #071019; color: var(--cyan); cursor: pointer; }
.lchip:hover { background: rgba(63, 240, 255, .12); }
.more { font: .75rem var(--mono); color: var(--muted); align-self: center; }
.snip { font: 12.5px/1.5 var(--mono); background: #050b14; border: 1px solid rgba(63, 240, 255, .15); border-radius: 4px; padding: 8px 10px; overflow-x: auto; white-space: pre; color: #e8f4ff; margin: 0 0 10px; }
.film p { font-size: .9rem; margin: 0 0 6px; }
.film p b { color: var(--sev); font-family: var(--mono); font-weight: 600; }

.viewer-head { font: .8rem var(--mono); color: var(--muted); margin: 0 0 8px; }
.viewer {
  position: relative;
  max-height: 480px; overflow: auto; background: #050b14; border: 1px solid var(--line); border-radius: 8px;
  font: 13px/1.55 var(--mono); white-space: pre; padding: 6px 0;
}
.vl { display: flex; min-width: max-content; }
.vl__n { position: sticky; left: 0; flex: 0 0 auto; width: 64px; padding: 0 12px 0 8px; text-align: right; color: #5f7890; background: #050b14; border-right: 2px solid transparent; user-select: none; }
.vl__c { padding: 0 14px; color: var(--text); }
.vl--HIGH .vl__n { border-right-color: var(--red); color: var(--red); }
.vl--MEDIUM .vl__n { border-right-color: var(--amber); color: var(--amber); }
.vl--INFO .vl__n { border-right-color: var(--info); color: var(--info); }
.vl.is-hl { background: rgba(63, 240, 255, .12); }
.vl.is-hl .vl__n { background: #0c2230; }
.vl.flash { animation: flash 1s ease-out; }
@keyframes flash { 0% { background: rgba(63, 240, 255, .55); } 100% { background: rgba(63, 240, 255, .12); } }
.report { margin-top: 16px; }
.report textarea { width: 100%; min-height: 220px; background: #050b14; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 12px; font: 12.5px/1.5 var(--mono); }
.report .btns { margin-top: 10px; }
[hidden] { display: none !important; }

/* pipeline */
.pipe { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.pipe li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.pipe .n { font: 700 1.6rem/1 var(--mono); color: var(--cyan); text-shadow: 0 0 12px rgba(63, 240, 255, .4); }
.pipe h3 { margin-bottom: 4px; }
.pipe p { margin: 0; color: var(--text); }
.limits { border: 1px solid var(--amber); border-left-width: 4px; border-radius: var(--r); background-color: #120f0a; padding: 20px 22px; }
.limits h3 { color: var(--amber); }
.limits ul { margin: 0; padding-left: 20px; }
.limits li { margin-bottom: 6px; }

/* status */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid rgba(63, 240, 255, .12); vertical-align: top; }
thead th { font: .75rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--panel-2); }
tbody th { font-weight: 500; color: #fff; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td.note { color: var(--muted); font-size: .9rem; }
.st { display: inline-block; white-space: nowrap; font: 700 .78rem var(--mono); letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; }
.st--live { background: var(--cyan); color: #05080f; }
.st--building { background: var(--amber); color: #05080f; }
.st--planned { background: #2a3c50; color: #cfe0ee; }
.st--not { border: 1px solid var(--red); color: var(--red); }

/* proof */
.code { background: #050b14; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; overflow-x: auto; font: 13px/1.55 var(--mono); color: #cfe6f5; margin: 0 0 10px; }
.cap { font: .8rem var(--mono); color: var(--muted); margin-bottom: 26px; }
.log { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.log li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.log b { font-family: var(--mono); color: var(--cyan); }

/* buy */
.steps { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.steps .n { font: 700 .8rem var(--mono); color: var(--cyan); letter-spacing: .1em; }
.steps .btns { margin-top: 12px; }
.steps .ca { margin: 12px 0 0; }

/* faq */
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font: 600 .98rem var(--mono); color: #fff; list-style: none; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--cyan); }
.faq details[open] summary::before { content: "- "; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--text); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 44px 0 56px; background: var(--bg); }
.foot__top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 18px; }
.foot .ca { margin: 0 0 18px; }
.foot p { color: var(--muted); font-size: .85rem; max-width: 80ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .scanline { top: 50%; }
}
