:root {
  --bg: #070708;
  --panel: #101214;
  --line: #262826;
  --text: #f3f4ef;
  --muted: #8d9189;
  --lime: #c6ff00;
  --lime2: #d8ff4a;
  --ink: #0b0c09;
  --orange: #ffb52e;
  --danger: #ff5b5b;
  --font: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); }
button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer; }
.gridbg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 78% 10%, rgba(198,255,0,.08), transparent 26%),
    linear-gradient(180deg, #070708, #0b0c0b 70%);
}
.gridbg:after {
  content: ""; position: absolute; inset: 0; opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
main { position: relative; z-index: 1; max-width: 1240px; margin: auto; padding: 22px 28px 56px; }

.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: flex; gap: 12px; align-items: center; }
.tag { margin: 0; font-size: 13px; color: var(--muted); }
.eyebrow, .kicker, .panelKicker {
  font-size: 10px; letter-spacing: .18em; color: var(--muted); font-weight: 800; text-transform: uppercase;
}
.eyebrow span, .panelStatus { color: var(--lime); }
.topRight { display: flex; align-items: center; gap: 16px; }
.status { display: flex; gap: 8px; align-items: center; font-size: 10px; letter-spacing: .16em; color: var(--muted); }
#dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 14px var(--lime); }
.srcLink { color: var(--text); text-decoration: none; font-size: 10px; letter-spacing: .16em; }
.srcLink:hover { color: var(--lime); }

.mascot {
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff 0%, #f0f0ee 46%, #b8b8b6 100%);
  box-shadow: 0 12px 28px rgba(0,0,0,.4), inset -8px -10px 16px rgba(0,0,0,.2);
  display: flex; justify-content: center; gap: 7px; position: relative;
}
.mascot i { display: block; background: #111; border-radius: 8px; transform: skew(-6deg); }
.mascot.sm { width: 42px; height: 42px; padding-top: 12px; }
.mascot.sm i { width: 6px; height: 15px; }
.mascot.md { width: 54px; height: 54px; padding-top: 16px; }
.mascot.md i { width: 6px; height: 16px; }
.mascot.lg {
  width: 132px; height: 132px; padding-top: 42px; gap: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.55), inset -14px -18px 24px rgba(0,0,0,.22), 0 0 40px rgba(198,255,0,.08);
}
.mascot.lg i { width: 14px; height: 38px; border-radius: 12px; }
body.scanning .mascot.lg { box-shadow: 0 20px 50px rgba(0,0,0,.55), 0 0 48px rgba(198,255,0,.28); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 36px; padding: 46px 0 28px; align-items: center; }
.pill {
  display: inline-block; border: 1px solid rgba(198,255,0,.45); color: var(--lime);
  border-radius: 999px; padding: 5px 10px; font-size: 10px; letter-spacing: .16em; font-weight: 800;
}
.hero h1 {
  font-family: var(--display); font-size: clamp(64px, 10vw, 118px); line-height: .82;
  letter-spacing: .02em; margin: 14px 0 18px; font-weight: 400;
}
.hero h1 span { color: var(--lime); }
.lede { font-size: 18px; color: #c5c8bf; max-width: 540px; margin: 0; }
.actions { display: flex; align-items: center; gap: 16px; margin: 28px 0 26px; flex-wrap: wrap; }
#run {
  border: 1px solid var(--lime); background: var(--lime); color: var(--ink);
  border-radius: 8px; padding: 13px 22px; font-weight: 800; letter-spacing: .04em;
  font-size: 15px; display: inline-flex; gap: 8px; align-items: center;
  box-shadow: 0 0 28px rgba(198,255,0,.18);
  transition: background 160ms var(--ease), transform 150ms ease-out, box-shadow 160ms var(--ease);
}
#run:hover { background: var(--lime2); box-shadow: 0 0 36px rgba(198,255,0,.28); }
#run:active { transform: scale(0.96); }
#run:disabled { opacity: .6; cursor: wait; transform: none; }
#runNote { color: var(--muted); font-size: 12px; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; list-style: none; padding: 0; margin: 8px 0 0; }
.feats li { border-top: 1px solid var(--line); padding-top: 10px; }
.feats b { display: block; font-size: 11px; letter-spacing: .12em; }
.feats span { color: var(--muted); font-size: 12px; }

.cockpit {
  position: relative; min-height: 460px;
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, rgba(16,18,16,.92), rgba(8,9,8,.88));
  padding: 16px 16px 18px; overflow: hidden;
}
.chiefWrap { display: flex; flex-direction: column; align-items: center; margin-top: 36px; position: relative; z-index: 2; }
.links { position: absolute; left: 4%; right: 4%; top: 178px; height: 108px; width: 92%; z-index: 1; }
.team { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-top: 4px; position: relative; z-index: 2; padding: 0 4px; }
.agent span { font-size: 9px; letter-spacing: .06em; font-weight: 800; color: var(--muted); white-space: nowrap; }
.panel {
  position: absolute; right: 14px; top: 14px; width: 168px; z-index: 3;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px;
  background: rgba(8,9,8,.86);
}
.panelStatus { margin: 4px 0 10px; font-size: 11px; letter-spacing: .14em; font-weight: 800; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li {
  position: relative; padding: 5px 0 5px 16px; font-size: 10px; color: var(--muted); letter-spacing: .04em;
}
.checks li:before {
  content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%;
  border: 1px solid #4a4e48;
}
.checks li.on { color: var(--text); }
.checks li.on:before { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 8px var(--lime); }
.panelOut { margin: 12px 0 0; font-size: 9px; letter-spacing: .16em; color: var(--muted); }
.panelOut strong { display: block; color: var(--lime); font-size: 12px; margin-top: 4px; letter-spacing: .12em; }

.orbLabel { display: block; margin-top: 8px; font-size: 10px; letter-spacing: .18em; font-weight: 800; }
.links path { fill: none; stroke: #3a3d38; stroke-width: 1.4; stroke-dasharray: 3 5; }
body.scanning .links path { stroke: rgba(198,255,0,.45); }

.agent {
  background: transparent; border: 0; color: var(--text); padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: transform 180ms var(--ease);
}
.agent .mascot { box-shadow: 0 10px 22px rgba(0,0,0,.4), 0 0 0 1px #2a2c28, 0 0 18px color-mix(in srgb, var(--g) 35%, transparent); }
.agent:hover { transform: translateY(-4px); }
.agent:hover span, .agent.live span { color: var(--text); }
.agent.live .mascot { box-shadow: 0 10px 22px rgba(0,0,0,.4), 0 0 22px var(--g); }
.hint { text-align: center; color: var(--muted); font-size: 11px; margin: 14px 0 0; min-height: 18px; }

.dash { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; margin: 10px 0 28px; }
.dashCard {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  background: rgba(13,15,13,.78); min-height: 132px;
}
.queue { list-style: none; padding: 0; margin: 10px 0 0; }
.queue li { font-size: 13px; padding: 4px 0 4px 14px; position: relative; color: #c9ccc4; }
.queue li:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); position: absolute; left: 0; top: 9px; }
.queue li.idle { color: var(--muted); }
.queue li.idle:before { background: #3a3d38; }
.meter { height: 6px; border-radius: 99px; background: #1c1e1b; overflow: hidden; margin: 16px 0 10px; }
#heroMeter { display: block; height: 100%; width: 0; background: var(--lime); box-shadow: 0 0 12px var(--lime); transition: width 400ms var(--ease); }
.pct { font-size: 28px; margin: 0; letter-spacing: -.04em; }
.tiny { color: var(--muted); font-size: 11px; letter-spacing: .12em; margin: 6px 0 0; }
.outTitle { font-size: 20px; letter-spacing: .1em; margin: 10px 0 8px; }
#heroCount { color: var(--lime); font-size: 13px; }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 48px; background: rgba(13,15,13,.75); }
.stats div { padding: 20px; border-right: 1px solid var(--line); }
.stats div:last-child { border: 0; }
.stats b { display: block; font-size: 32px; letter-spacing: -.05em; }
.stats span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .16em; }

.section { border-top: 1px solid var(--line); padding-top: 26px; }
.sectionHead { display: flex; justify-content: space-between; align-items: end; margin-bottom: 20px; gap: 12px; }
.sectionHead h3 { margin: 6px 0 0; font-size: 24px; letter-spacing: -.03em; }
.sectionHead a { color: var(--text); text-decoration: none; font-size: 10px; letter-spacing: .15em; }
.sectionHead a:hover { color: var(--lime); }
.liveTag { font-size: 8px; color: var(--lime); border: 1px solid rgba(198,255,0,.25); border-radius: 20px; padding: 4px 7px; margin-left: 8px; letter-spacing: .1em; }
.signals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card {
  background: linear-gradient(145deg, rgba(18,20,18,.95), rgba(12,14,12,.9));
  border: 1px solid var(--line); border-radius: 10px; padding: 18px;
  transition: border-color 150ms var(--ease), transform 150ms var(--ease);
}
.card:hover { border-color: #4a4e46; transform: translateY(-2px); }
.meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.card h4 { font-size: 17px; line-height: 1.25; margin: 0 0 10px; }
.card a { color: #eef0e9; text-decoration: none; }
.card a:hover { color: var(--lime); }
.card p { color: var(--muted); font-size: 13px; margin: 0; }
.card p.src { margin-top: 10px; font-size: 11px; }
.card p.src a { color: var(--lime); }
.unavailable, .unavailable-title { color: var(--orange); }
.empty { border: 1px dashed var(--line); border-radius: 10px; padding: 42px; color: var(--muted); grid-column: 1/-1; text-align: center; }

.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 56px; }
.principles > div { border-top: 1px solid var(--line); padding-top: 18px; }
.principles strong { display: block; font-size: 22px; letter-spacing: -.03em; margin: 8px 0; }
.principles p { margin: 0; color: var(--muted); font-size: 14px; max-width: 520px; }

footer {
  display: flex; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line); margin-top: 56px; padding-top: 18px;
  color: var(--muted); font-size: 10px; letter-spacing: .14em;
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .panel { position: static; width: auto; margin-bottom: 12px; }
  .dash { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  main { padding: 16px 16px 40px; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: clamp(52px, 18vw, 84px); }
  .signals, .principles, .stats { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(odd) { border-right: 1px solid var(--line); }
  .stats div { border-bottom: 1px solid var(--line); }
  .team { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .links { display: none; }
  .mascot.lg { width: 100px; height: 100px; padding-top: 30px; }
  .mascot.lg i { width: 11px; height: 28px; }
  .chiefWrap { margin-top: 8px; }
  .cockpit { min-height: 0; }
  .actions { flex-direction: column; align-items: flex-start; }
  .sectionHead, footer { flex-direction: column; align-items: flex-start; }
  #run { min-height: 44px; }
}
@media (max-width: 520px) {
  .feats, .signals, .principles, .stats { grid-template-columns: 1fr; }
  .stats div { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}


.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 8px 12px; font-size: 11px; letter-spacing: .12em; font-weight: 800;
  min-height: 40px; transition: border-color 150ms var(--ease), color 150ms var(--ease), background 150ms var(--ease);
}
.chip.on { border-color: var(--lime); color: var(--ink); background: var(--lime); }
.card { position: relative; cursor: pointer; }
.card .tier {
  display: inline-flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: .12em; font-weight: 800;
}
.card.hot { border-color: rgba(198,255,0,.45); box-shadow: 0 0 0 1px rgba(198,255,0,.12); }
.card.hot:before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 4px;
  background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: hotPip 2.8s ease-in-out infinite;
}
@keyframes hotPip { 50% { opacity: .35; } }
.card .why { margin-top: 8px; font-size: 12px; color: #b4b8ae; }
.feed { display: flex; flex-direction: column; gap: 22px; }
.feedBlock h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .16em; color: var(--muted); }
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 20; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); z-index: 21;
  background: #0d0f0d; border-left: 1px solid var(--line); padding: 22px; overflow: auto;
}
.drawer .close {
  border: 1px solid var(--line); background: transparent; color: var(--text);
  border-radius: 8px; padding: 8px 12px; margin-bottom: 16px;
}
.drawer h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.03em; }
.drawer .row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.drawer .act {
  border: 1px solid var(--line); background: #141614; color: var(--text);
  border-radius: 8px; padding: 10px 12px; font-size: 12px; letter-spacing: .08em; font-weight: 700;
}
.drawer .act.primary { border-color: var(--lime); color: var(--ink); background: var(--lime); }
.drawer dt { font-size: 10px; letter-spacing: .16em; color: var(--muted); margin-top: 14px; }
.drawer dd { margin: 4px 0 0; font-size: 14px; }
.comments { list-style: none; padding: 0; margin: 10px 0; }
.comments li { border-top: 1px solid var(--line); padding: 8px 0; font-size: 13px; }
.commentBox { display: flex; gap: 8px; margin-top: 8px; }
.commentBox input {
  flex: 1; background: #101211; border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 10px;
}
.toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: var(--lime); color: var(--ink); padding: 8px 14px; border-radius: 8px;
  font-size: 12px; font-weight: 800; z-index: 30;
}
@media (prefers-reduced-motion: reduce) {
  .card.hot:before { animation: none; }
}
