:root {
  --bg: #080A10;
  --panel: #11151F;
  --panel-2: #161C28;
  --border: #232B3A;
  --border-2: #2E3848;
  --text: #EAEEF6;
  --muted: #8B97AC;
  --dim: #5C6678;
  --accent: #E6A33E;
  --green: #3FB984;
  --red: #E0653E;
  --blue: #4F9DDE;
  --purple: #9B6BDF;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Segoe UI", -apple-system, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* background layers */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(120, 140, 180, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 140, 180, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 380px at 78% 4%, rgba(230, 163, 62, 0.10), transparent 70%),
    radial-gradient(620px 420px at 12% 22%, rgba(79, 157, 222, 0.08), transparent 70%);
}

main { max-width: 1060px; margin: 0 auto; padding: 0 22px 80px; }
section { padding: 60px 0; }

h1 { font-size: 44px; line-height: 1.12; font-weight: 800; letter-spacing: -1px; }
h2 { font-size: 25px; font-weight: 800; letter-spacing: -0.4px; }
h3 { font-size: 16px; font-weight: 700; }
.accent { color: var(--accent); }
.muted { color: var(--muted); font-size: 14px; }
code { font-family: var(--mono); }

.section-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  color: var(--accent); margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.section-tag::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* top bar */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1060px; margin: 0 auto; padding: 18px 22px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  background: linear-gradient(160deg, #1d2433, #11151f);
  border: 1px solid var(--border-2); border-radius: 10px;
  color: var(--accent); font-family: Georgia, serif; font-size: 21px; font-weight: 700;
  box-shadow: 0 0 24px -10px rgba(230, 163, 62, 0.6);
}
.brand-name { font-weight: 800; letter-spacing: 2px; font-size: 18px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  background: var(--panel); border: 1px solid var(--border);
  padding: 6px 13px; border-radius: 999px;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px rgba(63, 185, 132, 0.16);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-link {
  font-size: 13.5px; text-decoration: none; color: var(--muted);
  padding: 6px 11px; border-radius: 8px; border: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.topbar-link:hover { color: var(--text); border-color: var(--border-2); }
.topbar-link.active { color: var(--accent); }

/* hero */
.hero { padding-top: 40px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--dim); margin-bottom: 18px; }
.lede { color: var(--muted); font-size: 18px; margin: 22px 0 30px; max-width: 600px; }
.lede strong { color: var(--text); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* buttons */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 11px;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--border-2); background: var(--panel-2); color: var(--text);
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); border-color: #45526b; }
.btn-primary {
  background: linear-gradient(160deg, #f0b455, #e09a2e);
  color: #1a1305; border-color: transparent;
  box-shadow: 0 8px 26px -12px rgba(230, 163, 62, 0.8);
}

/* ================= FACULTY ROOM ================= */
.room-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px;
}
.room-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 1px; color: var(--green);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 12px var(--green); animation: blink 1.6s ease-in-out infinite;
}
.room-activity { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

.submission-card {
  margin-top: 14px; background: linear-gradient(160deg, #141a26, #10141d);
  border: 1px solid var(--border-2); border-radius: 13px; padding: 18px 20px;
}
.sub-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 2px; color: var(--dim); }
.sub-author { font-weight: 800; font-size: 18px; margin-top: 4px; }
.sub-thesis { color: var(--muted); font-size: 14.5px; margin-top: 6px; font-style: italic; }
.sub-ca {
  display: inline-block; margin-top: 10px; font-family: var(--mono); font-size: 12px;
  color: var(--blue); text-decoration: none;
  background: var(--bg); border: 1px solid var(--border); border-radius: 7px; padding: 4px 9px;
}

.agents { margin-top: 16px; }
.agent-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.flow-link { width: 2px; height: 24px; margin: 6px auto; background: linear-gradient(var(--border-2), transparent); }

.agent {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 13px; padding: 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  opacity: 0.62;
}
.agent.wide { margin: 0; }
.agent.active {
  opacity: 1; border-color: var(--c);
  box-shadow: 0 0 0 1px var(--c), 0 14px 44px -20px var(--c);
}
.agent.done { opacity: 1; border-color: color-mix(in srgb, var(--c) 45%, var(--border)); }

.agent-head { display: flex; align-items: center; gap: 12px; }
.sig {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 10px; color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, var(--panel-2));
  border: 1px solid color-mix(in srgb, var(--c) 40%, var(--border));
}
.sig svg { width: 22px; height: 22px; }
.agent-id { flex: 1; }
.agent-name { font-weight: 800; font-size: 15px; }
.agent-role { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: 0.4px; }
.agent-status {
  flex: none; width: 9px; height: 9px; border-radius: 50%;
  background: var(--dim); transition: background 0.2s ease;
}
.agent.active .agent-status { background: var(--c); box-shadow: 0 0 12px var(--c); animation: blink 1s ease-in-out infinite; }
.agent.done .agent-status { background: var(--c); }

.agent-body {
  margin-top: 13px; padding: 12px 13px; min-height: 116px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 9px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.7;
}
.agent-idle { color: var(--dim); }
.agent.active .agent-body, .agent.done .agent-body { border-color: color-mix(in srgb, var(--c) 30%, var(--border)); }
.line {
  color: var(--muted); animation: lineIn 0.32s ease both;
  display: flex; gap: 8px;
}
.line::before { content: "›"; color: var(--c); }
.line.verdict { color: var(--text); font-weight: 700; }
.line.verdict::before { content: "■"; }
@keyframes lineIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.verdict-banner {
  margin-top: 18px; display: flex; align-items: center; gap: 18px;
  background: linear-gradient(160deg, #161d2b, #10141d);
  border: 1px solid var(--border-2); border-radius: 14px; padding: 18px 22px;
  animation: pop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}
@keyframes pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
.verdict-grade {
  flex: none; width: 64px; height: 64px; border-radius: 14px;
  display: grid; place-items: center; font-size: 36px; font-weight: 800;
}
.verdict-text { font-size: 16px; font-weight: 600; }
.verdict-text .vt-sub { display: block; color: var(--muted); font-size: 13px; font-weight: 400; margin-top: 2px; }

/* ================= DASHBOARD ================= */
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.dash-sub { color: var(--muted); font-size: 14px; margin-top: 3px; }
.wallet-link {
  font-family: var(--mono); font-size: 12px; color: var(--blue); text-decoration: none;
  border: 1px solid var(--border); background: var(--panel); border-radius: 8px; padding: 8px 12px;
}
.wallet-link:hover { border-color: var(--blue); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 22px; }
.stat-card {
  background: linear-gradient(160deg, #141a26, var(--panel));
  border: 1px solid var(--border); border-radius: 13px; padding: 19px;
}
.stat-label { font-family: var(--mono); color: var(--dim); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.stat-value { font-size: 29px; font-weight: 800; margin-top: 7px; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.stat-sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 12px; margin-top: 12px; }
.mini { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 13px 15px; }
.mini-value { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mini-label { color: var(--muted); font-size: 11.5px; margin-top: 2px; }

.funnel-line { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-top: 13px; }
.funnel-line b { color: var(--muted); font-weight: 600; }

.block-title { margin: 36px 0 4px; display: flex; align-items: center; gap: 9px; }
.block-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.count-chip {
  font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--muted);
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px; padding: 1px 9px;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; margin-top: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.data-table th {
  text-align: left; color: var(--dim); font-family: var(--mono); font-weight: 600; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.6px;
  padding: 11px 14px; background: var(--panel-2); border-bottom: 1px solid var(--border);
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--panel); }
.data-table .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tok { color: var(--blue); text-decoration: none; font-family: var(--mono); }
.tok:hover { text-decoration: underline; }
.empty { color: var(--muted); font-size: 14px; padding: 16px 2px; }

.pos { color: var(--green); }
.neg { color: var(--red); }
.badge { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.grade-A { background: rgba(63,185,132,.16); color: var(--green); }
.grade-B { background: rgba(79,157,222,.16); color: var(--blue); }
.grade-C { background: rgba(230,163,62,.16); color: var(--accent); }
.grade-D { background: rgba(224,101,62,.16); color: var(--red); }
.grade-F { background: rgba(224,101,62,.22); color: var(--red); }
.buy { background: rgba(63,185,132,.16); color: var(--green); }
.skip { background: var(--panel-2); color: var(--muted); border: 1px solid var(--border); }

.feed { display: grid; gap: 10px; }
.feed-item { background: var(--panel); border: 1px solid var(--border); border-radius: 11px; padding: 14px 16px; }
.feed-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.feed-handle { font-weight: 700; }
.feed-scores { font-family: var(--mono); color: var(--muted); font-size: 12px; }
.feed-time { font-family: var(--mono); color: var(--dim); font-size: 11.5px; margin-left: auto; }
.feed-rationale { color: var(--muted); font-size: 13.5px; margin-top: 7px; }
.feed-skip { color: var(--accent); font-size: 12.5px; margin-top: 5px; }

.dist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 12px; }
.dist-card { background: var(--panel); border: 1px solid var(--border); border-top: 3px solid var(--c); border-radius: 11px; padding: 16px; }
.dist-pct { font-family: var(--mono); font-size: 12px; color: var(--c); font-weight: 700; }
.dist-value { font-size: 20px; font-weight: 800; margin: 5px 0 2px; font-variant-numeric: tabular-nums; }
.dist-label { color: var(--muted); font-size: 12.5px; }

/* how it works */
.steps { list-style: none; display: grid; gap: 12px; }
.steps li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 11px; padding: 15px 17px; color: var(--muted);
}
.step-n {
  flex: none; width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 13px;
  background: var(--panel-2); color: var(--accent); border: 1px solid var(--border-2);
}

/* register */
.register-intro { color: var(--muted); max-width: 620px; margin: 8px 0 22px; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.reg-step-head { font-size: 16px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.reg-step p { color: var(--muted); margin-bottom: 16px; }
.dot {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: var(--panel-2); border: 1px solid var(--border-2); color: var(--accent);
}
.dot.ok { background: var(--green); color: #08231a; border-color: var(--green); }

.docs-cta { margin-top: 22px; display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.docs-cta-note { color: var(--muted); font-size: 13px; }

footer { border-top: 1px solid var(--border); padding: 30px 22px; text-align: center; }
.footer-nav { display: flex; gap: 22px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 13px; }
.footer-nav a:hover { color: var(--text); }
footer p { color: var(--dim); font-size: 12.5px; max-width: 640px; margin: 0 auto; }

@media (max-width: 620px) {
  h1 { font-size: 33px; }
  .agent-row { grid-template-columns: 1fr; }
  .stat-value { font-size: 24px; }
}
