@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); }

:root {
  --lab: #f4f5f6;
  --lab-panel: #ffffff;
  --steel: #c9cdd2;
  --slate: #6b7076;
  --ink: #16181b;
  --void: #0a0b0d;
  --signal: #00e676;
  --alarm: #ff3b30;
  --font-display: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--lab);
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
}
@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  #cursorMandible { display: none; }
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: inherit; }
[x-cloak] { display: none !important; }

.cursor-mandible {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background-image: url("/assets/cursor-mandible.png");
  background-size: cover;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-100px, -100px, 0);
  box-shadow: 0 0 0 1px rgba(22, 24, 27, 0.15);
  transition: transform 0.06s linear, scale 0.15s var(--ease);
}
.cursor-mandible.active { scale: 1.2; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 245, 246, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--steel);
}
.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}
.topbar-mark-dot { color: var(--signal); }
.topbar-ca {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
}
.ca-value {
  background: var(--lab-panel);
  border: 1px solid var(--steel);
  color: var(--slate);
  border-radius: 4px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: none;
}
.ca-value.copied { color: var(--signal); border-color: var(--signal); }
.topbar-actions { margin-left: auto; }
.execute-btn {
  background: var(--void);
  color: var(--signal);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}
.execute-btn:hover { background: #1a1c20; }

/* ---------- layout shell ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
section {
  padding: 56px 0;
  border-bottom: 1px solid var(--steel);
}
.section-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--slate);
  margin: 0 0 10px;
}
.section-title {
  font-size: clamp(22px, 3.6vw, 30px);
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-sub { color: var(--slate); max-width: 60ch; margin: 0 0 24px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 0;
  min-height: 74vh;
  display: flex;
  align-items: flex-end;
}
.hero-art {
  position: absolute;
  inset: 0;
  background-image: url("/assets/hero.webp");
  background-size: cover;
  background-position: 49% center;
}
@media (min-width: 720px) {
  .hero-art { background-position: center 40%; }
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(244, 245, 246, 0.05) 0%, rgba(244, 245, 246, 0.4) 38%, rgba(244, 245, 246, 0.88) 62%, rgba(244, 245, 246, 0.98) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 0 16px 48px;
  max-width: 680px;
}
.hero-kicker {
  font-family: var(--font-mono);
  color: var(--slate);
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  font-size: 13px;
}
.hero-title {
  font-size: clamp(28px, 6vw, 48px);
  margin: 0 0 14px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.hero-sub { color: var(--slate); max-width: 56ch; margin: 0 0 18px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  border: 1px solid var(--steel);
  background: var(--lab-panel);
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.tag-signal { border-color: var(--signal); color: var(--signal); }

/* ---------- terminal (report generator) ---------- */
.terminal-form { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.terminal-input {
  flex: 1 1 260px;
  background: var(--lab-panel);
  border: 1px solid var(--steel);
  color: var(--ink);
  border-radius: 4px;
  padding: 13px 14px;
  font-size: 14px;
  font-family: var(--font-mono);
}
.terminal-input:focus { outline: none; border-color: var(--ink); }
.terminal-run-btn {
  background: var(--void);
  color: var(--signal);
  border: none;
  border-radius: 4px;
  padding: 13px 22px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  cursor: none;
  transition: background 0.15s;
}
.terminal-run-btn:hover { background: #1a1c20; }
.terminal-run-btn:disabled { opacity: 0.6; }

.terminal-screen {
  background: var(--void);
  border-radius: 8px;
  padding: 28px;
  min-height: 140px;
  color: var(--steel);
}
.terminal-idle { font-family: var(--font-mono); font-size: 13px; color: var(--slate); margin: 0; }
.terminal-log-line {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--signal);
  margin: 0;
}
.terminal-log-line::before { content: "> "; }

.report-card { color: var(--ink); }
.report-head { margin-bottom: 14px; }
.report-kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--slate); margin: 0 0 4px; }
.report-subject { font-size: 20px; font-weight: 800; margin: 0; color: var(--lab); word-break: break-word; }
.report-chart {
  width: 100%;
  height: 140px;
  background: #101215;
  border-radius: 6px;
  margin-bottom: 16px;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #23262b;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
}
.report-stat { background: #101215; padding: 14px; }
.report-stat-label { font-family: var(--font-mono); font-size: 10px; color: var(--slate); margin: 0 0 6px; letter-spacing: 0.04em; }
.report-stat-value { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--lab); margin: 0; }
.report-stat-signal { color: var(--signal); }
.report-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.report-signoff { font-family: var(--font-mono); font-size: 12px; color: var(--slate); margin: 0; }
.report-stamp {
  display: inline-block;
  margin-left: 8px;
  border: 1px solid var(--signal);
  color: var(--signal);
  padding: 2px 8px;
  border-radius: 3px;
  transform: rotate(-4deg);
  font-weight: 700;
  font-size: 11px;
}
.report-share {
  background: var(--signal);
  color: var(--void);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  padding: 9px 16px;
  border-radius: 4px;
  text-decoration: none;
}

/* ---------- strategy allocation ---------- */
.strategy-layout { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 800px) {
  .strategy-layout { grid-template-columns: 280px 1fr; }
}
.strategy-pie {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto;
}
.strategy-pie-visual {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--ink) 0deg 90deg, var(--slate) 90deg 180deg, var(--steel) 180deg 270deg, #8f959b 270deg 360deg);
}
.strategy-slice {
  position: absolute;
  inset: 0;
  border: none;
  background: transparent;
  cursor: none;
  color: var(--lab);
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-align: center;
  line-height: 1.4;
  transition: filter 0.15s;
}
.strategy-slice:hover, .strategy-slice:focus-visible { filter: brightness(1.25); outline: none; }
.strategy-slice b { font-size: 12px; }
.strategy-slice-1 { clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 50%); }
.strategy-slice-1 span { position: absolute; top: 18%; left: 76%; transform: translate(-50%, -50%); width: 84px; }
.strategy-slice-2 { clip-path: polygon(50% 50%, 100% 50%, 100% 100%, 50% 100%); }
.strategy-slice-2 span { position: absolute; top: 82%; left: 76%; transform: translate(-50%, -50%); width: 84px; }
.strategy-slice-3 { clip-path: polygon(50% 50%, 50% 100%, 0% 100%, 0% 50%); }
.strategy-slice-3 span { position: absolute; top: 82%; left: 24%; transform: translate(-50%, -50%); width: 84px; color: var(--ink); }
.strategy-slice-4 { clip-path: polygon(50% 50%, 0% 50%, 0% 0%, 50% 0%); }
.strategy-slice-4 span { position: absolute; top: 18%; left: 24%; transform: translate(-50%, -50%); width: 84px; color: var(--ink); }

.strategy-log {
  background: var(--void);
  border-radius: 8px;
  padding: 20px;
  min-height: 240px;
}
.strategy-log-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--slate); margin: 0 0 12px; }
.strategy-log-empty { font-family: var(--font-mono); font-size: 13px; color: var(--slate); margin: 0; }
.strategy-log-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.strategy-log-list li {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--steel);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.strategy-log-tag {
  color: var(--signal);
  font-weight: 700;
  font-size: 10px;
  border: 1px solid var(--signal);
  border-radius: 3px;
  padding: 1px 6px;
  flex-shrink: 0;
}

/* ---------- drool index ---------- */
.drool-gauge {
  position: relative;
  height: 40px;
  border-radius: 8px;
  background: var(--void);
  overflow: hidden;
  margin-bottom: 8px;
}
.drool-gauge-fill {
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, var(--slate), var(--signal));
  transition: width 0.6s var(--ease);
}
.drool-gauge-marks {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--steel);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.drool-fineprint { font-family: var(--font-mono); font-size: 10px; color: var(--slate); margin: 0; }

/* ---------- whitepaper ---------- */
.whitepaper-btn {
  display: inline-block;
  background: var(--void);
  color: var(--signal);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 14px 24px;
  border-radius: 4px;
  text-decoration: none;
}

/* ---------- team ---------- */
.team-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card {
  border: 1px solid var(--steel);
  background: var(--lab-panel);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}
.team-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; margin-bottom: 10px; }
.team-photo-junior { transform: rotate(3deg); }
.team-name { font-weight: 700; margin: 0 0 4px; font-size: 14px; }
.team-bio { font-family: var(--font-mono); font-size: 11px; color: var(--slate); margin: 0; line-height: 1.5; }

/* ---------- roadmap ---------- */
.roadmap-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 720px) { .roadmap-list { grid-template-columns: repeat(4, 1fr); } }
.roadmap-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  border: 1px solid var(--steel);
  border-radius: 6px;
  padding: 14px 16px;
  background: var(--lab-panel);
}
@media (min-width: 720px) { .roadmap-list li { flex-direction: column; gap: 4px; } }
.roadmap-phase { font-family: var(--font-mono); color: var(--signal); font-size: 12px; }
.roadmap-body { font-weight: 600; font-size: 14px; }

/* ---------- ticker tape ---------- */
.ticker-tape {
  background: var(--void);
  color: var(--signal);
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid #23262b;
  border-bottom: 1px solid #23262b;
}
.ticker-track {
  display: inline-flex;
  gap: 48px;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  animation: ticker 90s linear infinite;
  will-change: transform;
}
.ticker-track span { flex-shrink: 0; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- footer ---------- */
.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 16px 60px;
  color: var(--slate);
}
.footer-disclaimer {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.7;
  color: var(--slate);
  max-width: 90ch;
  margin: 0 0 24px;
}
.footer-links { display: flex; gap: 16px; margin-bottom: 12px; }
.footer-link { color: var(--slate); transition: color 0.15s; }
.footer-link:hover { color: var(--ink); }
.footer-ca { font-family: var(--font-mono); font-size: 11px; margin: 0 0 6px; }
.footer-canary { font-family: var(--font-mono); font-size: 10px; opacity: 0.7; margin: 0; }

@media (min-width: 720px) {
  .topbar-ca { display: flex; }
  section { padding: 80px 0; }
}
