:root {
  color-scheme: dark;
  --bg: #070806;
  --ink: #f7f2e8;
  --muted: #c6beb0;
  --soft: rgba(247, 242, 232, 0.72);
  --line: rgba(247, 242, 232, 0.16);
  --panel: rgba(19, 20, 16, 0.76);
  --panel-strong: rgba(31, 32, 25, 0.9);
  --ember: #ff8f3d;
  --gold: #ffd166;
  --cyan: #50e3c2;
  --rose: #ff5c8a;
  --green: #9cff6e;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 143, 61, 0.18), transparent 32rem),
    radial-gradient(circle at 88% 18%, rgba(80, 227, 194, 0.13), transparent 28rem),
    linear-gradient(180deg, #070806 0%, #10100c 48%, #070806 100%);
  color: var(--ink);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.signal-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.46;
  pointer-events: none;
  z-index: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 209, 102, 0.42);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 143, 61, 0.34), rgba(80, 227, 194, 0.16));
  color: var(--gold);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 8, 6, 0.5);
  backdrop-filter: blur(16px);
}

.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.92rem;
}

.nav-links a:hover {
  background: rgba(247, 242, 232, 0.1);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  align-items: center;
  gap: 42px;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: 44px 0 76px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 840px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 8vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.6vw, 1.32rem);
  line-height: 1.75;
}

.hero-actions,
.docs-band {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--ink);
  color: #10100c;
}

.button-secondary {
  border-color: rgba(247, 242, 232, 0.28);
  background: rgba(247, 242, 232, 0.08);
  color: var(--ink);
}

.terminal-panel,
.command-card,
.case-panel,
.metrics article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.terminal-panel {
  overflow: hidden;
  transform: rotate(1deg);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 242, 232, 0.05);
}

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

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

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

.terminal-bar strong {
  margin-left: auto;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
}

pre {
  margin: 0;
  overflow-x: auto;
  white-space: pre;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.terminal-panel pre {
  min-height: 420px;
  padding: 28px;
  color: #efe8d8;
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  line-height: 1.8;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: -36px auto 96px;
}

.metrics article {
  min-height: 168px;
  padding: 24px;
}

.metrics span {
  color: var(--ember);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 800;
}

.metrics strong {
  display: block;
  margin: 18px 0 10px;
  font-size: 1.15rem;
}

.metrics p,
.install-section p,
.docs-band p,
.case-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.install-section,
.cases-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 108px;
}

.install-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.76fr) minmax(0, 1.24fr);
  gap: 42px;
  align-items: start;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.install-grid {
  display: grid;
  gap: 16px;
}

.command-card {
  overflow: hidden;
  background: var(--panel-strong);
}

.command-card.muted {
  background: rgba(16, 18, 14, 0.68);
}

.command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
}

.copy-button {
  min-width: 68px;
  height: 34px;
  border: 1px solid rgba(247, 242, 232, 0.24);
  border-radius: 8px;
  background: rgba(247, 242, 232, 0.08);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.copy-button:hover {
  border-color: rgba(80, 227, 194, 0.6);
}

.command-card pre {
  padding: 20px;
  color: #f0eadf;
  font-size: 0.9rem;
  line-height: 1.8;
}

.docs-band {
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 108px;
  padding: 38px;
  border-top: 1px solid rgba(255, 209, 102, 0.26);
  border-bottom: 1px solid rgba(80, 227, 194, 0.24);
  background:
    linear-gradient(90deg, rgba(255, 143, 61, 0.16), transparent 44%),
    linear-gradient(270deg, rgba(80, 227, 194, 0.14), transparent 42%);
}

.docs-band > div {
  max-width: 760px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.case-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.tab-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 242, 232, 0.06);
  color: var(--soft);
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.tab-button.is-active {
  border-color: rgba(255, 209, 102, 0.62);
  background: rgba(255, 209, 102, 0.12);
  color: var(--ink);
}

.case-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  padding: 28px;
}

.case-panel[hidden] {
  display: none;
}

.case-panel h3 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
}

.case-panel a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--cyan);
  font-weight: 700;
}

.case-panel pre {
  min-height: 230px;
  padding: 22px;
  border: 1px solid rgba(247, 242, 232, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: #f0eadf;
  line-height: 1.75;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer span {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    border-radius: 8px;
  }

  .hero,
  .install-section,
  .case-panel {
    grid-template-columns: 1fr;
  }

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

  .terminal-panel {
    transform: none;
  }

  .metrics {
    grid-template-columns: 1fr;
    margin-top: -18px;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .metrics,
  .install-section,
  .docs-band,
  .cases-section,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: 3rem;
  }

  .hero-actions,
  .docs-band,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .docs-band .button {
    width: 100%;
  }

  .terminal-panel pre,
  .command-card pre,
  .case-panel pre {
    padding: 16px;
    font-size: 0.78rem;
  }

  .docs-band,
  .case-panel {
    padding: 22px;
  }
}
