:root {
  color-scheme: dark;
  --bg: #050609;
  --ink: #f5f0e8;
  --muted: #a9b3bd;
  --line: rgba(245, 240, 232, 0.14);
  --panel: rgba(13, 17, 23, 0.72);
  --panel-strong: rgba(17, 22, 29, 0.88);
  --accent: #46f2b5;
  --hot: #ff6b4a;
  --gold: #ffd166;
  --blue: #63b3ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(70, 242, 181, 0.14), transparent 28rem),
    radial-gradient(circle at 80% 10%, rgba(255, 107, 74, 0.1), transparent 24rem),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

#field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.topbar,
main {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand,
nav a {
  color: var(--ink);
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: var(--muted);
  font-size: 0.92rem;
}

nav a:hover {
  color: var(--accent);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.78fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: 28px 0 78px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 9ch;
  margin-bottom: 1.2rem;
  font-size: clamp(4rem, 12vw, 9.2rem);
  line-height: 0.84;
  letter-spacing: 0;
}

.lede {
  max-width: 650px;
  color: #d8dee4;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2rem;
}

.hero-actions span {
  border: 1px solid var(--line);
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-actions strong {
  color: var(--ink);
}

.signal-board,
.terminal,
.thesis,
.intel-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.signal-board {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.signal-board::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(70, 242, 181, 0.08) 49% 51%, transparent 52%),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(255, 255, 255, 0.04) 39px 40px);
  opacity: 0.6;
}

.board-header,
.metrics,
.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.board-header {
  color: var(--muted);
  font-size: 0.88rem;
}

.ticker {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  overflow: hidden;
  margin: 18px 0;
}

.ticker span {
  flex: 0 0 auto;
  border: 1px solid rgba(70, 242, 181, 0.24);
  padding: 8px 10px;
  color: #b6ffe4;
  font-size: 0.78rem;
  white-space: nowrap;
  animation: drift 10s linear infinite;
}

.chart {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(28, 1fr);
  align-items: end;
  gap: 5px;
  height: 310px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.bar {
  min-height: 22px;
  background: linear-gradient(180deg, var(--accent), rgba(99, 179, 255, 0.35));
  transform-origin: bottom;
  transition: height 420ms ease;
}

.bar:nth-child(3n) {
  background: linear-gradient(180deg, var(--gold), rgba(255, 209, 102, 0.24));
}

.bar:nth-child(5n) {
  background: linear-gradient(180deg, var(--hot), rgba(255, 107, 74, 0.28));
}

.metrics {
  position: relative;
  z-index: 1;
  padding-top: 18px;
}

.metrics div {
  min-width: 0;
}

.metrics span,
dt {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 1.25rem;
}

.terminal-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 22px;
  padding: 0 0 72px;
}

.terminal {
  min-height: 390px;
}

.terminal-bar {
  justify-content: flex-start;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hot);
}

.terminal-bar span:nth-child(2) {
  background: var(--gold);
}

.terminal-bar span:nth-child(3) {
  background: var(--accent);
}

.terminal-bar strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.78rem;
}

pre {
  margin: 0;
  padding: 18px;
  color: #d6ffe9;
  font: 0.94rem/1.7 "SFMono-Regular", Consolas, monospace;
  white-space: pre-wrap;
}

.thesis {
  padding: 24px;
}

.brief {
  padding: 0 0 72px;
}

.section-kicker {
  width: max-content;
  border: 1px solid rgba(255, 209, 102, 0.28);
  margin-bottom: 14px;
  padding: 7px 10px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 760;
  text-transform: uppercase;
}

.brief-head {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.62fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 22px;
}

.brief-head p {
  color: #d8dee4;
  line-height: 1.55;
}

.intel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.intel-card {
  min-height: 260px;
  padding: 18px;
  background: var(--panel-strong);
}

.intel-card span {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 760;
  text-transform: uppercase;
}

.intel-card h3 {
  margin: 18px 0 12px;
  font-size: 1.32rem;
  line-height: 1.08;
}

.intel-card p {
  color: #cdd5dc;
  font-size: 0.93rem;
  line-height: 1.5;
}

.intel-card a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent);
  font-size: 0.86rem;
  text-decoration: none;
}

.intel-card a:hover {
  text-decoration: underline;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.96;
}

.thesis p,
dd {
  color: #d8dee4;
  line-height: 1.55;
}

dl {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
}

dd {
  margin: 5px 0 0;
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-80px);
  }
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
  }

  nav {
    display: none;
  }

  .hero,
  .terminal-wrap,
  .brief-head,
  .intel-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  h1 {
    max-width: 8ch;
  }

  .chart {
    height: 230px;
  }

  .intel-card {
    min-height: auto;
  }
}
