:root {
  --bg: #070707;
  --surface: #0d0d0d;
  --surface-2: #121212;
  --line: #2a2a2a;
  --line-strong: #454545;
  --text: #f5f5f2;
  --muted: #999995;
  --dim: #666662;
  --accent: #e5222d;
  --accent-soft: rgba(229, 34, 45, 0.13);
  --ok: #82d392;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
code, .mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 7, 0.94);
  backdrop-filter: blur(14px);
}
.header-inner,
main,
.content-shell,
.footer-inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}
.header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
}
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}
.brand-mark { color: var(--accent); }
nav { display: flex; align-items: center; gap: 22px; }
nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
nav a:hover,
nav a[aria-current="page"] { color: var(--text); }
.nav-invite { color: var(--text); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dim);
}
.status-pill[data-state="online"] .status-dot { background: var(--ok); }
.status-pill[data-state="offline"] .status-dot { background: var(--accent); }

.hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: clamp(44px, 8vw, 110px);
  align-items: center;
  padding: 76px 0 68px;
}
.hero-copy { max-width: 680px; }
.kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font: 700 12px/1.2 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 24px;
  font-size: clamp(58px, 8.8vw, 118px);
  line-height: .86;
  letter-spacing: -.065em;
  font-weight: 900;
}
.hero-lede {
  max-width: 590px;
  margin-bottom: 30px;
  color: #b9b9b4;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.button:hover { background: #ff313d; border-color: #ff313d; }
.button.secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}
.button.secondary:hover { border-color: #777; background: #111; }

.player {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 18px 18px 0 #111;
}
.player-top,
.player-bottom {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 700 11px/1.2 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.player-cover {
  aspect-ratio: 1.35 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,.025) 38px 39px),
    #090909;
}
.player-cover img {
  width: min(64%, 270px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(.9) contrast(1.08);
}
.player-meta { padding: 22px 20px 18px; }
.player-label {
  margin-bottom: 7px;
  color: var(--accent);
  font: 700 11px/1.2 "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
}
.player-title {
  margin-bottom: 4px;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -.025em;
}
.player-sub { margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.timeline { height: 2px; background: #303030; }
.timeline span { display: block; width: 43%; height: 100%; background: var(--accent); }
.player-bottom { border-top: 0; border-bottom: 0; }
.command-line { color: var(--text); text-transform: none; letter-spacing: 0; }
.command-line b { color: var(--accent); }

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.band-item {
  min-height: 116px;
  padding: 22px;
  border-right: 1px solid var(--line);
}
.band-item:last-child { border-right: 0; }
.band-item code {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}
.band-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.section { padding: 88px 0; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 44px;
}
.section h2,
.page-title {
  margin-bottom: 0;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: .96;
  letter-spacing: -.045em;
  font-weight: 900;
}
.section-intro { margin: 0; color: var(--muted); line-height: 1.7; max-width: 680px; }

.source-list { border-top: 1px solid var(--line); }
.source-row {
  min-height: 86px;
  display: grid;
  grid-template-columns: 70px minmax(150px, .8fr) minmax(0, 1.8fr) 130px;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.source-number { color: var(--dim); font: 700 11px/1 monospace; }
.source-name { font-size: 18px; font-weight: 850; }
.source-desc { color: var(--muted); font-size: 14px; line-height: 1.55; }
.source-role { text-align: right; color: var(--accent); font: 700 11px/1.2 monospace; text-transform: uppercase; }

.page-head {
  padding: 78px 0 54px;
  border-bottom: 1px solid var(--line);
}
.page-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 70px;
  align-items: end;
}
.page-copy { color: var(--muted); line-height: 1.7; font-size: 16px; }
.command-demo {
  border: 1px solid var(--line-strong);
  padding: 18px;
  background: #0a0a0a;
  font: 700 15px/1.5 monospace;
}
.command-demo .prompt { color: var(--dim); }
.command-demo .prefix { color: var(--accent); }

.command-table { padding: 56px 0 90px; }
.command-section { margin-bottom: 48px; }
.command-section h2 {
  margin: 0 0 14px;
  color: var(--muted);
  font: 700 11px/1.2 monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.command-row {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(0, 1.4fr);
  gap: 30px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.command-row:last-child { border-bottom: 1px solid var(--line); }
.command-row code { color: var(--text); font-weight: 800; }
.command-row p { margin: 0; color: var(--muted); line-height: 1.55; }

.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line-strong);
  margin: 52px 0 74px;
}
.flow-step {
  position: relative;
  min-height: 142px;
  padding: 18px;
  border-right: 1px solid var(--line);
}
.flow-step:last-child { border-right: 0; }
.flow-step span { display: block; color: var(--dim); font: 700 10px/1 monospace; margin-bottom: 34px; }
.flow-step b { font-size: 15px; }
.flow-step.active { background: var(--accent-soft); }
.flow-step.active b { color: #fff; }

.legal-wrap { width: min(860px, 100%); padding: 72px 0 100px; }
.legal-wrap h1 { font-size: clamp(44px, 7vw, 78px); }
.legal-lede { max-width: 700px; color: var(--muted); line-height: 1.7; font-size: 17px; }
.legal-section { padding: 34px 0; border-top: 1px solid var(--line); }
.legal-section:first-of-type { margin-top: 52px; }
.legal-section h2 { font-size: 20px; margin-bottom: 12px; }
.legal-section p { color: var(--muted); line-height: 1.7; margin-bottom: 12px; }

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 34px 0 90px;
  border-top: 1px solid var(--line);
}
.cta h2 { margin: 0; font-size: clamp(28px, 4vw, 48px); letter-spacing: -.04em; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--dim);
  font-size: 12px;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 900px) {
  nav { gap: 14px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 54px; }
  .player { width: min(100%, 560px); }
  .band-grid { grid-template-columns: repeat(2, 1fr); }
  .band-item:nth-child(2) { border-right: 0; }
  .band-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-head, .page-head-grid { grid-template-columns: 1fr; gap: 24px; }
  .source-row { grid-template-columns: 44px 1fr 120px; }
  .source-desc { grid-column: 2 / -1; padding-bottom: 18px; }
  .flow { grid-template-columns: 1fr; }
  .flow-step { min-height: 90px; border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-step:last-child { border-bottom: 0; }
  .flow-step span { margin-bottom: 12px; }
}

@media (max-width: 650px) {
  .header-inner, main, .content-shell, .footer-inner { width: min(100% - 24px, var(--max)); }
  .header-inner { min-height: 58px; }
  .brand span:last-child { display: none; }
  nav a:nth-child(3), nav a:nth-child(4) { display: none; }
  h1 { font-size: clamp(52px, 18vw, 78px); }
  .hero { padding: 46px 0 50px; gap: 38px; }
  .player { box-shadow: 8px 8px 0 #111; }
  .band-grid { grid-template-columns: 1fr; }
  .band-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .band-item:last-child { border-bottom: 0; }
  .section { padding: 64px 0; }
  .source-row { grid-template-columns: 36px 1fr; gap: 12px; padding: 16px 0; }
  .source-role { grid-column: 2; text-align: left; }
  .source-desc { grid-column: 2; padding: 0; }
  .command-row { grid-template-columns: 1fr; gap: 8px; }
  .cta { align-items: flex-start; flex-direction: column; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; }
}
