:root {
  --bg: #070a08;
  --bg-2: #0d140f;
  --ink: #e9f6e4;
  --muted: #93a898;
  --lime: #c6f135;
  --lime-dim: rgba(198, 241, 53, 0.16);
  --gold: #f0c56a;
  --line: rgba(198, 241, 53, 0.22);
  --panel: rgba(10, 16, 12, 0.78);
  --danger: #ffb4a8;
  --nav: 76px;
  --font: "Outfit", "Segoe UI", sans-serif;
  --display: "Syne", "Outfit", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  color-scheme: dark;
}
body.is-booting { overflow: hidden; }
#spikes {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 12;
}
body.is-booting #spikes { visibility: hidden; }
img, video { max-width: 100%; display: block; }
button, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--lime); color: #102000; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

#intro {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #000;
  display: grid;
  place-items: center;
}
#intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#bootVideo {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #000;
}
.intro-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 30%);
  pointer-events: none;
}
.intro-top {
  position: absolute;
  top: 22px;
  left: 22px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.intro-top img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.intro-top strong {
  display: block;
  font-family: var(--display);
  letter-spacing: 0.14em;
  font-size: 14px;
}
.intro-top span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--lime);
  letter-spacing: 0.12em;
}
.intro-bottom {
  position: absolute;
  right: 22px;
  bottom: 28px;
  display: flex;
  gap: 8px;
}
.ghost {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.ghost:hover { border-color: var(--lime); color: var(--lime); }
.intro-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
}
#introBar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
}
.enter-gate {
  position: absolute;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 14px;
  background: transparent;
  border: 0;
  color: white;
}
.enter-gate img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--lime);
  box-shadow: 0 0 40px rgba(198, 241, 53, 0.35);
}
.enter-gate span {
  font-family: var(--display);
  letter-spacing: 0.18em;
  font-size: 14px;
}

.site { min-height: 100svh; }
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 28px;
  background: linear-gradient(to bottom, rgba(7, 10, 8, 0.92), rgba(7, 10, 8, 0.72));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.nav.is-solid { border-bottom-color: var(--line); }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  letter-spacing: 0.12em;
  font-size: 15px;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}
.nav nav {
  display: flex;
  gap: 18px;
  margin-right: auto;
  font-size: 14px;
  color: var(--muted);
}
.nav nav a:hover { color: var(--lime); }
.socials { display: flex; align-items: center; gap: 8px; }
.socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
}
.socials a:hover { color: var(--lime); border-color: var(--lime); }
.socials svg { width: 16px; height: 16px; display: block; }
.ca-v {
  max-width: 148px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ca-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--lime-dim);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px 8px 14px;
  font-family: var(--mono);
  font-size: 12px;
}
.ca-k { color: var(--lime); letter-spacing: 0.08em; }
.ca-go {
  background: var(--lime);
  color: #132000;
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 500;
}

.hero {
  position: relative;
  display: grid;
  min-height: 0;
}
.banner {
  grid-area: 1 / 1;
  align-self: start;
  position: relative;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #070a08 0%, rgba(7, 10, 8, 0.55) 22%, rgba(7, 10, 8, 0.05) 48%),
    linear-gradient(to right, rgba(7, 10, 8, 0.35), transparent 42%);
  pointer-events: none;
}
.hero-copy {
  grid-area: 1 / 1;
  align-self: end;
  position: relative;
  z-index: 1;
  padding: 48px 28px 56px;
  max-width: 680px;
}
.eyebrow {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}
h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.lede {
  margin: 16px 0 0;
  max-width: 46ch;
  color: #d5e6cf;
  font-size: 18px;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.btn {
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 15px;
}
.btn.solid { background: var(--lime); color: #142000; border-color: var(--lime); font-weight: 600; }
.btn.line:hover { border-color: var(--lime); color: var(--lime); }

section { scroll-margin-top: calc(var(--nav) + 12px); }
.section-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0 28px;
  margin-bottom: 18px;
}
.section-label span {
  font-family: var(--mono);
  color: var(--lime);
  font-size: 12px;
}
.section-label h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.03em;
}

.agent { padding: 28px 0 10px; }
.agent-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
  padding: 0 28px 20px;
}
.dossier {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}
.portrait {
  position: relative;
  width: 148px;
  height: 148px;
}
.portrait img {
  width: 148px;
  height: 148px;
  border-radius: 28px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.live-dot {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px #0d140f;
}
.live-dot.is-local { background: var(--gold); }
.dossier-kicker {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--lime);
}
.dossier h3 {
  margin: 4px 0 8px;
  font-family: var(--display);
  font-size: 32px;
}
.dossier-bio { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.dossier dl { margin: 0; display: grid; gap: 8px; }
.dossier dl div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
  font-size: 14px;
}
.dossier dt { color: var(--muted); }
.dossier dd {
  margin: 0;
  min-width: 0;
  font-family: var(--mono);
  font-size: 13px;
  text-align: right;
  overflow-wrap: anywhere;
}
.inline-ca {
  background: none;
  border: 0;
  padding: 0;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
}

.console {
  position: relative;
  background: rgba(8, 12, 9, 0.92);
  border: 1px solid var(--line);
  border-radius: 22px;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tick {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--lime);
  z-index: 2;
  pointer-events: none;
}
.tick.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.tick.tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.tick.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.tick.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.console-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.console-mid { color: var(--lime); }
.thread {
  flex: 1;
  overflow: auto;
  padding: 8px 22px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  max-height: 520px;
}
.msg { display: flex; gap: 10px; max-width: min(680px, 92%); }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  margin-top: 2px;
}
.bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 10px 14px;
}
.msg.user .bubble {
  background: var(--lime-dim);
  border-color: var(--line);
}
.who {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--lime);
  margin-bottom: 4px;
}
.msg.user .who { color: var(--gold); text-align: right; }
.bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble p + p { margin-top: 8px; }
.bubble code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--lime);
}
.typing {
  display: inline-flex;
  gap: 4px;
  padding: 4px 0;
}
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  animation: blink 1s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink {
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 12px;
}
.chips button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--muted);
}
.chips button:hover { color: var(--ink); border-color: var(--lime); }
.composer {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}
.composer textarea {
  flex: 1;
  resize: none;
  background: #101610;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  min-height: 48px;
  max-height: 140px;
}
.composer textarea:focus { border-color: var(--lime); }
.composer button {
  background: var(--lime);
  color: #142000;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 600;
}
.composer button:disabled { opacity: 0.45; cursor: default; }

.token, .signals, .archive { padding-top: 28px; }
.token-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 28px;
}
.token-grid article {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  min-height: 140px;
}
.token-grid p {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.token-grid strong {
  display: block;
  margin-top: 10px;
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.03em;
  word-break: break-all;
}
.token-grid button {
  margin-top: 12px;
  background: var(--lime);
  color: #142000;
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
}
.token-grid .ca-full {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
}

.market { padding-top: 28px; }
.market-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 0 28px 14px;
}
.fine {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.market-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 12px;
  padding: 0 28px;
  align-items: start;
}
.chart-frame {
  background: #000;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  min-height: 560px;
}
.chart-frame iframe {
  width: 100%;
  height: 560px;
  border: 0;
  display: block;
}
.tweet-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  min-height: 280px;
}
.tweet-card .twitter-tweet { margin: 0 !important; }

.signal-row, .archive-grid { padding: 0 28px; }
.signal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}
.signal-row figure {
  margin: 0;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.signal-row figure { min-width: 0; }
.signal-row video {
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: #000;
}
.signal-row figcaption {
  padding: 10px 12px 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.archive-grid {
  columns: 3;
  column-gap: 12px;
}
.archive-grid .shot {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  break-inside: avoid;
  position: relative;
  cursor: zoom-in;
  color: #fff;
}
.archive-grid img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.archive-grid .shot span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}
.archive-grid .shot:hover img,
.archive-grid .shot:focus-visible img { border-color: var(--lime); }

.foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 36px 28px 42px;
  color: var(--muted);
}
.foot .socials { margin-left: auto; }
.foot img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.foot strong { display: block; color: var(--ink); font-family: var(--display); }
.foot span { font-family: var(--mono); font-size: 12px; }

#light {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
}
#light::backdrop { background: rgba(0, 0, 0, 0.88); }
#light img {
  position: absolute;
  inset: 48px 72px;
  margin: auto;
  max-width: calc(100% - 144px);
  max-height: calc(100% - 96px);
  object-fit: contain;
  border-radius: 12px;
}
#light button {
  position: absolute;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 999px;
}
#lightPrev, #lightNext {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  font-size: 28px;
}
#lightPrev { left: 16px; }
#lightNext { right: 16px; }
#lightClose { top: 90px; right: 18px; padding: 8px 12px; }

#toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  background: var(--lime);
  color: #142000;
  font-weight: 600;
  border-radius: 999px;
  padding: 10px 16px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 50;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 980px) {
  .agent-layout, .token-grid, .signal-row, .market-grid { grid-template-columns: 1fr; }
  .archive-grid { columns: 2; }
  .nav { gap: 12px; }
  .nav nav { gap: 12px; font-size: 13px; }
  .console-mid { display: none; }
}
@media (max-width: 720px) {
  :root { --nav: 152px; }
  .hero { display: block; }
  .banner, .hero-copy { grid-area: auto; }
  .hero-copy { padding-top: 22px; }
  .nav {
    height: auto;
    flex-wrap: wrap;
    row-gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .brand { margin-right: auto; }
  .nav nav { width: 100%; order: 3; margin-right: 0; }
}
@media (max-width: 640px) {
  .nav, .hero-copy, .section-label, .agent-layout, .token-grid, .market-bar, .market-grid, .signal-row, .archive-grid, .foot {
    padding-left: 16px;
    padding-right: 16px;
  }
  .nav { gap: 10px; }
  .ca-v { max-width: 92px; }
  .chart-frame, .chart-frame iframe { height: 480px; min-height: 480px; }
  .archive-grid { columns: 1; }
  h1 { font-size: 42px; }
  #light img { inset: 64px 16px; max-width: calc(100% - 32px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .typing i { animation: none; }
  #intro.is-done { transition: none; }
  #spikes { display: none; }
}
