/* The website's own styles: the landing page and the map page's scan screen. The report keeps report.css. */
:root {
  --bg: #050b08;
  --surface: #08120d;
  --surface-2: #0d1d14;
  --text: #d3f5de;
  --muted: #6b9a7b;
  --border: #15301f;
  --green: #3dff8f;
  --green-dim: #1f8a4c;
  --direct: #ff5f4a;
  --indirect: #ffb340;
  --glow: 0 0 18px color-mix(in srgb, var(--green) 45%, transparent);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.65 var(--mono); -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--green) 35%, transparent); }
code { font-family: var(--mono); font-size: 0.92em; color: var(--green); }
.muted { color: var(--muted); }

/* Top bar */

.nav { position: absolute; inset: 0 0 auto; z-index: 3; display: flex; align-items: center; gap: 22px; padding: 18px 28px; font-size: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: 0.02em; text-shadow: 0 0 12px color-mix(in srgb, var(--green) 40%, transparent); }
.brand:hover { text-decoration: none; }
.logo {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--green); flex: none;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px color-mix(in srgb, var(--green) 35%, transparent), 0 0 16px 2px color-mix(in srgb, var(--green) 45%, transparent);
}
.nav .links { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav .links a { color: var(--muted); }
.nav .links a:hover { color: var(--green); text-decoration: none; }
.nav .star { color: var(--text) !important; border: 1px solid var(--border); padding: 6px 12px; border-radius: 8px; background: color-mix(in srgb, var(--surface) 80%, transparent); }
.nav .star:hover { border-color: var(--green); box-shadow: var(--glow); }

/* Hero: the moving web sits behind the headline */

.hero { position: relative; min-height: min(100svh, 860px); display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--border); }
#web { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::before {
  /* Darkens the side the text sits on, so the web never fights the headline. */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 38%, color-mix(in srgb, var(--bg) 20%, transparent) 75%, transparent 100%),
    linear-gradient(0deg, var(--bg), transparent 30%);
}
.hero::after {
  /* Faint scanlines. */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.35;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0 1px, transparent 1px 3px);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto; padding: 120px 28px 80px; }
.eyebrow { color: var(--green); font-size: 13px; letter-spacing: 0.08em; margin: 0 0 18px; opacity: 0.85; }
h1 {
  font-size: clamp(32px, 5.4vw, 64px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 22px; max-width: 760px; font-weight: 800;
}
h1 .hl { color: var(--green); text-shadow: 0 0 24px color-mix(in srgb, var(--green) 55%, transparent); }
.lede { font-size: 16px; color: var(--muted); max-width: 600px; margin: 0 0 34px; }
.lede b { color: var(--text); font-weight: 600; }

.prompt {
  display: flex; align-items: center; max-width: 680px; border: 1px solid color-mix(in srgb, var(--green) 45%, var(--border)); border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: var(--glow), inset 0 0 30px rgba(0, 0, 0, 0.5); padding: 6px 6px 6px 18px;
  backdrop-filter: blur(6px);
}
.prompt:focus-within { border-color: var(--green); box-shadow: 0 0 28px color-mix(in srgb, var(--green) 55%, transparent); }
.ps1 { color: var(--muted); white-space: nowrap; user-select: none; }
.ps1 b { color: var(--green); font-weight: 500; }
.prompt input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: 600 16px var(--mono); padding: 12px 10px; caret-color: var(--green);
}
.prompt input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); font-weight: 400; }
.prompt button {
  border: 0; border-radius: 8px; background: var(--green); color: #02140a; font: 700 15px var(--mono); padding: 12px 20px; cursor: pointer; white-space: nowrap;
}
.prompt button:hover { box-shadow: var(--glow); filter: brightness(1.08); }
.prompt-hint { font-size: 13px; color: var(--muted); margin: 14px 0 0; max-width: 680px; }
.prompt-hint .err { color: var(--direct); }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--muted); align-items: center; }
.examples button {
  font: inherit; color: var(--text); background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--border); border-radius: 999px; padding: 3px 11px; cursor: pointer;
}
.examples button:hover { border-color: var(--green); color: var(--green); }

/* Sections */

.section { max-width: 1180px; margin: 0 auto; padding: 80px 28px 0; }
.section h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em; margin: 0 0 10px; }
.section h2::before { content: "// "; color: var(--green-dim); }
.section > p.sub { color: var(--muted); margin: 0 0 30px; max-width: 700px; }

.orgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.org {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; border-radius: 14px; color: var(--text);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); overflow: hidden;
  transition: border-color 150ms, box-shadow 150ms, transform 150ms;
}
.org:hover { text-decoration: none; border-color: color-mix(in srgb, var(--green) 55%, var(--border)); box-shadow: var(--glow); transform: translateY(-2px); }
.org-head { display: flex; align-items: baseline; gap: 10px; }
.org-name { font-weight: 700; font-size: 17px; color: var(--green); }
.org-size { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.org-about { color: var(--muted); font-size: 13px; margin: 0; }
.org-hit { margin: 6px 0 0; padding: 12px 14px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); font-size: 13px; }
.org-hit .cmd { color: var(--muted); }
.org-hit .cmd b { color: var(--text); font-weight: 600; }
.org-hit .big { display: block; margin-top: 4px; font-size: 22px; font-weight: 800; color: var(--direct); text-shadow: 0 0 18px color-mix(in srgb, var(--direct) 40%, transparent); }
.org-hit .big span { font-size: 14px; font-weight: 500; color: var(--text); text-shadow: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.org .go { position: absolute; right: 18px; bottom: 16px; color: var(--green); opacity: 0; transition: opacity 150ms; font-size: 13px; }
.org:hover .go { opacity: 1; }
.orgs .loading { color: var(--muted); }

.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card { padding: 20px 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.card h3 { margin: 0 0 8px; font-size: 15px; color: var(--green); }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.term { border: 1px solid var(--border); border-radius: 12px; background: #030806; overflow: hidden; margin: 14px 0; max-width: 820px; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface); font-size: 12px; color: var(--muted); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: inline-block; }
.term-bar span { margin-left: 8px; }
.term pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 14px/1.6 var(--mono); color: var(--text); }
.term .c { color: var(--muted); }
.term .p { color: var(--green); user-select: none; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 40px; }
.cols p { color: var(--muted); font-size: 14px; max-width: 520px; }

.reads { display: flex; flex-wrap: wrap; gap: 8px; }
.reads span { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; }

footer { max-width: 1180px; margin: 0 auto; padding: 80px 28px 48px; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer .grow { flex: 1; }

@media (max-width: 640px) {
  body { font-size: 14px; }
  .nav { padding: 14px 16px; gap: 14px; }
  .nav .links { gap: 14px; }
  .nav .links .wide { display: none; }
  .hero { min-height: auto; }
  .hero::before { background: linear-gradient(0deg, var(--bg) 5%, color-mix(in srgb, var(--bg) 75%, transparent) 60%, color-mix(in srgb, var(--bg) 45%, transparent)); }
  .hero-inner { padding: 96px 16px 56px; }
  .ps1 .long { display: none; }
  .prompt { padding-left: 14px; }
  .prompt button { padding: 12px 14px; }
  .section { padding: 56px 16px 0; }
  .orgs { grid-template-columns: 1fr; }
  footer { padding: 56px 16px 40px; }
}

/* Map page: the scan screen shown before the report */

.scan { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.scan .term { width: 100%; max-width: 720px; margin: 0; box-shadow: var(--glow); }
.scan pre { min-height: 180px; white-space: pre-wrap; word-break: break-word; }
.scan .ok { color: var(--green); }
.scan .bad { color: var(--direct); }
.scan .warn { color: var(--indirect); }
.bar { display: inline-block; color: var(--green); }
.cursor { display: inline-block; width: 0.6em; height: 1.1em; vertical-align: text-bottom; background: var(--green); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.token { padding: 0 18px 18px; font-size: 13px; }
.token p { color: var(--muted); margin: 0 0 12px; }
.token p b { color: var(--text); }
.token .row { display: flex; gap: 8px; }
.token input {
  flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font: 13px var(--mono); padding: 10px 12px; outline: none;
}
.token input:focus { border-color: var(--green); box-shadow: var(--glow); }
.token button { border: 0; border-radius: 8px; background: var(--green); color: #02140a; font: 700 13px var(--mono); padding: 10px 14px; cursor: pointer; }
.token .alt { margin-top: 12px; }
.source .mode { margin-left: 10px; font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.source .mode a { color: var(--green); }
@media (max-width: 1180px) { .source .mode { display: none; } }
.notice-web { flex: none; padding: 8px 20px; font-size: 12px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--indirect) 12%, var(--surface)); }

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  .org, .org:hover { transition: none; transform: none; }
}
