:root {
  --bg: #0a0a0a;
  --bg-panel: #101010;
  --bg-panel-2: #141414;
  --line: rgba(57, 255, 20, 0.12);
  --line-strong: rgba(57, 255, 20, 0.28);
  --text: #f3f7f1;
  --muted: #a4b2a0;
  --phosphor: #39ff14;
  --phosphor-soft: #78ff63;
  --warn: #facc15;
  --danger: #ff6b6b;
  --max: 1040px;
}

@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  line-height: 1.72;
  position: relative;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
code, pre, input, button, select { font-family: "JetBrains Mono", monospace; }

/* Overlay Effects */
.crt-overlay,
.noise-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 999;
}
.crt-overlay {
  opacity: 0.03;
  background: repeating-linear-gradient(to bottom, rgba(57, 255, 20, 0.6) 0px, rgba(57, 255, 20, 0.6) 1px, transparent 1px, transparent 4px);
}
.noise-overlay {
  opacity: 0.025;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.8) 0.4px, transparent 0.6px), radial-gradient(circle at 80% 30%, rgba(255,255,255,0.8) 0.4px, transparent 0.6px);
  background-size: 180px 180px;
}

.frame {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Panel & Borders */
.panel {
  background: var(--bg-panel);
  border: 1px solid #1a1a1a;
}
.double-border {
  position: relative;
}
.double-border::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(57, 255, 20, 0.08);
  pointer-events: none;
}
.dashed-border {
  border-style: dashed;
  border-color: rgba(57, 255, 20, 0.18);
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  padding: 14px 20px;
}
.brand {
  color: var(--phosphor-soft);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 0 12px rgba(57, 255, 20, 0.18);
  font-size: 1.2rem;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}
.nav a:hover { color: var(--phosphor); }

/* Hero */
.section { padding: 92px 0; }
.hero {
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.badge, .kicker {
  display: inline-flex;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  color: var(--phosphor-soft);
  background: rgba(57, 255, 20, 0.04);
  font-size: 0.75rem;
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.28);
}
h1 {
  margin: 24px 0;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--phosphor-soft);
  text-shadow: 0 0 10px rgba(51, 255, 51, 0.3);
}
h1 .highlight { color: var(--text); text-shadow: none; }
.subhead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 52ch;
  margin-bottom: 32px;
}

/* CTA Compounds */
.cta-block { display: flex; flex-direction: column; gap: 14px; }
.waitlist-form { display: flex; gap: 0; padding: 0; overflow: hidden; border: 1px solid #222; }
.waitlist-form input {
  flex: 1;
  background: #000;
  color: var(--text);
  padding: 16px 20px;
  border: none;
  border-right: 1px solid #222;
  outline: none;
}
.waitlist-form button {
  background: var(--phosphor);
  color: #000;
  padding: 16px 24px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.waitlist-form button:hover { background: #fff; }
.cta-alt { color: var(--muted); font-size: 0.85rem; }
.cta-alt a { color: var(--phosphor); text-decoration: underline; }

/* Visuals */
.hero-visual { position: relative; }
.status-overlay {
  position: absolute;
  top: -40px;
  left: -20px;
  z-index: 10;
  padding: 16px;
  min-width: 220px;
}
.status-line { display: flex; items-center; gap: 8px; margin-bottom: 8px; }
.status-dot { width: 6px; height: 6px; background: var(--phosphor); border-radius: 50%; }
.status-text { color: var(--phosphor); font-size: 10px; font-weight: bold; }
.status-metadata { font-size: 9px; color: rgba(255,255,255,0.4); line-height: 1.6; }

.terminal-head {
  background: #151515;
  padding: 10px 16px;
  border-bottom: 1px solid #222;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.terminal-body { padding: 20px; }
.line-row { display: flex; gap: 14px; margin-bottom: 4px; font-size: 12px; }
.ln { color: var(--phosphor); opacity: 0.4; min-width: 2ch; }
.alert-row { background: rgba(57, 255, 20, 0.1); border-left: 2px solid var(--phosphor); margin-left: -20px; padding-left: 18px; color: var(--phosphor); }
.scroll-indicator { position: absolute; bottom: 32px; left: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.scroll-indicator span { font-size: 9px; uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.3); }
.scroll-line { width: 1px; height: 60px; background: linear-gradient(to bottom, var(--phosphor), transparent); }

/* Common Grid & Spacing */
.grid { display: grid; gap: 16px; }
.three { grid-template-columns: repeat(3, 1fr); }
.section-intro { margin-bottom: 48px; }
.section-intro h2 { font-size: 3rem; line-height: 1.1; margin-top: 16px; }
.body-copy { max-width: 62ch; color: var(--muted); }
.flex-between { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }

/* Heterogeneous Pipeline */
.heterogeneous-pipeline { display: grid; grid-template-columns: 1fr 0.1fr 1fr 0.1fr 1fr; align-items: stretch; gap: 0; }
.pipeline-card-wrap { display: flex; flex-direction: column; gap: 24px; }
.pipeline-label-block { display: flex; flex-direction: column; gap: 8px; }
.step-num { font-size: 2.5rem; font-weight: 800; color: var(--phosphor); opacity: 0.8; line-height: 1; }
.pipeline-label-block h3 { font-size: 1.4rem; color: #fff; margin: 0; }
.pipeline-label-block p { font-size: 0.9rem; color: var(--muted); }

.verification-card { padding: 40px 20px; text-align: center; position: relative; overflow: hidden; min-height: 220px; display: flex; align-items: center; justify-content: center; }
.glow-radial { position: absolute; inset: 0; background: radial-gradient(circle, rgba(57, 255, 20, 0.15) 0%, transparent 70%); }
.check-circle { width: 64px; height: 64px; border: 2px solid var(--phosphor); border-radius: 50%; display: flex; items-center; justify-content: center; margin: 0 auto 16px; color: var(--phosphor); box-shadow: 0 0 20px rgba(57,255,20,0.2); }
.check-circle .material-symbols-outlined { font-size: 40px; }
.v-badge { font-size: 10px; color: var(--phosphor); background: rgba(57,255,20,0.1); padding: 4px 10px; border-radius: 4px; display: inline-block; margin-bottom: 8px; }
.v-hash { font-size: 9px; color: rgba(255,255,255,0.4); }

.registry-card { padding: 24px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.reg-head { display: flex; justify-content: space-between; items-start; }
.reg-status { text-align: right; }
.reg-status .l { display: block; font-size: 9px; color: rgba(255,255,255,0.3); }
.reg-status .v { font-size: 10px; color: var(--phosphor); font-weight: bold; }
.reg-body label { font-size: 9px; color: rgba(255,255,255,0.3); text-transform: uppercase; }
.reg-input { background: #080808; border: 1px solid #222; padding: 10px; font-size: 11px; color: #fff; margin: 6px 0 14px; }
.reg-footer { display: flex; justify-content: space-between; font-size: 10px; }
.reg-footer .l { color: rgba(255,255,255,0.4); }
.reg-footer .v { color: var(--phosphor); }

.pipeline-footer { margin-top: 40px; padding: 24px 32px; display: flex; justify-content: space-between; align-items: center; }
.contributor-info { display: flex; items-center; gap: 24px; }
.avatar-cluster { display: flex; -space-x: 10px; }
.avatar-img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--bg); }
.avatar-tag { width: 32px; height: 32px; background: #222; border: 1px solid #333; font-size: 10px; display: grid; place-items: center; border-radius: 4px; }
.l-label { color: var(--phosphor); font-size: 10px; font-weight: bold; margin-bottom: 4px; }
.bracket-cta { color: var(--phosphor); font-size: 13px; font-weight: bold; display: flex; items-center; gap: 10px; }

/* Registry Dashboard */
.kpi-group { display: flex; gap: 12px; }
.kpi-box { padding: 12px 20px; min-width: 140px; }
.kpi-box .l { display: block; font-size: 10px; color: rgba(255,255,255,0.3); }
.kpi-box .v { font-size: 1.5rem; font-weight: 800; margin-top: 4px; }
.phosphor { color: var(--phosphor); }
.registry-controls { margin-top: 24px; padding: 10px; display: flex; justify-content: space-between; align-items: center; border-color: #222; }
.search-input { display: flex; items-center; gap: 12px; flex: 1; }
.search-input .material-symbols-outlined { color: var(--phosphor); }
.search-input input { background: transparent; border: none; outline: none; color: #fff; font-size: 12px; width: 100%; }
.filter-actions { display: flex; gap: 8px; }
.filter-btn, .action-btn { background: #181818; border: none; border-bottom: 2px solid transparent; color: #fff; padding: 10px 16px; font-size: 10px; cursor: pointer; }
.filter-btn:hover { border-color: var(--phosphor); }
.action-btn { color: var(--phosphor); background: #1a1a1a; }

.registry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.agent-card { padding: 20px; border-left-width: 2px; }
.border-compliant { border-left-color: var(--phosphor); }
.border-pending { border-left-color: var(--muted); }
.border-danger { border-left-color: var(--danger); }
.card-head { display: flex; justify-content: space-between; items-start; margin-bottom: 24px; }
.card-head h3 { font-size: 1rem; color: #fff; }
.agent-id { font-size: 10px; color: rgba(255,255,255,0.3); }
.card-body label { font-size: 10px; color: rgba(255,255,255,0.3); text-transform: uppercase; margin-bottom: 6px; display: block; }
.hash-box { background: #080808; padding: 8px; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 20px; }
.card-footer { display: flex; justify-content: space-between; align-items: flex-end; }
.timestamp span { display: block; font-size: 11px; color: #fff; }
.card-footer .material-symbols-outlined { color: rgba(57, 255, 20, 0.4); }
.add-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; opacity: 0.6; cursor: pointer; }
.add-card:hover { opacity: 1; border-color: var(--phosphor); }

/* Waitlist Card */
.waitlist-card { position: relative; overflow: hidden; padding: 64px 40px; }
.glow-radial-corner { position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(57, 255, 20, 0.08) 0%, transparent 70%); }
.waitlist-content { position: relative; z-index: 10; text-align: center; display: flex; flex-direction: column; align-items: center; }
.waitlist-content h2 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1; margin: 24px 0; }
.waitlist-content .body-copy { margin-bottom: 40px; }
.flex-center { align-items: center; }
.social-links-row { display: flex; gap: 32px; margin-top: 32px; }
.social-links-row a { color: var(--muted); font-size: 12px; text-decoration: underline; }
.social-links-row a:hover { color: var(--phosphor); }

/* Footer */
.footer { margin-top: 80px; padding: 48px; position: relative; margin-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.footer-brand span { font-weight: 800; font-size: 1.5rem; color: var(--phosphor); }
.footer-badges { display: flex; gap: 10px; }
.footer-links-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.link-group { display: flex; flex-direction: column; gap: 14px; }
.link-group label { color: var(--phosphor); font-size: 12px; font-weight: bold; text-transform: uppercase; margin-bottom: 4px; }
.link-group a { color: rgba(255,255,255,0.4); font-size: 12px; }
.link-group a:hover { color: var(--phosphor); }
.footer-status-bar { border-top: 1px solid #1a1a1a; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: rgba(255,255,255,0.3); }
.node-side { display: flex; items-center; gap: 20px; }
.node-side span { display: flex; items-center; gap: 6px; }

/* Global Utilities */
.phosphor-text { color: var(--phosphor); }
.danger-text { color: var(--danger); }
.flicker { animation: flicker 8s infinite; }
@keyframes flicker {
  0%, 96%, 100% { opacity: 1; }
  97% { opacity: 0.94; }
  97.5% { opacity: 1; }
  98% { opacity: 0.9; }
  98.5% { opacity: 1; }
}

/* Feature Stack */
.feature-row { display: flex; gap: 32px; padding: 32px; align-items: flex-start; }
.feature-row.reverse { flex-direction: row-reverse; }
.feature-icon { font-size: 2rem; }
.feature-label { color: var(--phosphor-soft); font-size: 11px; margin-bottom: 8px; text-transform: uppercase; font-weight: bold; }
.feature-row h3 { font-size: 1.4rem; color: #fff; margin-bottom: 8px; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .footer-links-grid, .registry-grid { grid-template-columns: 1fr; }
  .heterogeneous-pipeline { grid-template-columns: 1fr; gap: 48px; }
  .pipeline-link { display: none; }
  .registry-grid { grid-template-columns: 1fr 1fr; }
  .footer-status-bar { flex-direction: column; gap: 16px; align-items: flex-start; }
  .hero-visual { order: -1; }
}
@media (max-width: 640px) {
  .registry-grid { grid-template-columns: 1fr; }
  .flex-between { flex-direction: column; align-items: flex-start; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form input { border-right: none; border-bottom: 1px solid #222; }
}
