:root {
  color-scheme: dark;
  --bg: #0f0e0c;
  --panel: #17130f;
  --panel-2: #201a13;
  --text: #fff5e3;
  --muted: #c9b89f;
  --amber: #f5ae3d;
  --amber-soft: rgba(245, 174, 61, 0.14);
  --line: rgba(245, 174, 61, 0.28);
  --line-soft: rgba(255, 245, 227, 0.12);
  --green: #46d39b;
  --red: #ef6155;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(255, 245, 227, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 245, 227, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 50% 0, rgba(245, 174, 61, 0.22), transparent 38rem),
    var(--bg);
  background-size: 36px 36px, 36px 36px, auto, auto;
  color: var(--text);
  letter-spacing: 0;
}

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

.topbar,
main,
.footer {
  width: min(1080px, calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
}

.brand-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--amber);
  border-radius: 8px;
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav a:hover {
  color: var(--amber);
  background: var(--amber-soft);
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 0 90px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
span,
a {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(64px, 13vw, 160px);
  line-height: 0.82;
  letter-spacing: 0;
}

h2 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(38px, 6.5vw, 82px);
  line-height: 0.92;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.55;
}

.command-card,
.mini-terminal {
  width: min(920px, 100%);
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 5, 4, 0.86);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.46);
  text-align: left;
}

.terminal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.terminal-head span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber);
}

.terminal-head span:first-child {
  background: var(--red);
}

.terminal-head span:nth-child(2) {
  background: var(--amber);
}

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

.terminal-head b {
  margin-left: auto;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

pre {
  margin: 0;
  padding: clamp(18px, 3vw, 28px);
  overflow-x: auto;
}

code {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: clamp(14px, 2vw, 19px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
}

.button.primary {
  background: var(--amber);
  color: #17110a;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(15, 14, 12, 0.7);
  color: var(--text);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 0 88px;
}

.facts div,
.grid article,
.docs a {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(23, 19, 15, 0.82);
}

.facts div {
  min-height: 112px;
  padding: 18px;
}

.facts strong,
.facts span {
  display: block;
}

.facts strong {
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 20px;
}

.facts span {
  margin-top: 10px;
  color: var(--muted);
}

.split,
.demo {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
  padding: 92px 0;
  border-top: 1px solid var(--line-soft);
}

.split > p,
.demo p,
.grid p,
.footer {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.loop {
  padding: 92px 0;
  border-top: 1px solid var(--line-soft);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.steps span {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--amber);
  background: rgba(245, 174, 61, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 900;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 0 92px;
}

.grid article {
  min-height: 260px;
  padding: 24px;
}

.grid article:first-child {
  background: linear-gradient(145deg, rgba(245, 174, 61, 0.16), rgba(23, 19, 15, 0.82));
}

.mini-terminal {
  margin-top: 0;
}

.docs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 0 0 70px;
}

.docs a {
  min-height: 68px;
  display: grid;
  place-items: center;
  padding: 12px;
  color: var(--text);
  font-weight: 900;
  text-align: center;
}

.docs a:hover {
  color: #17110a;
  background: var(--amber);
  border-color: var(--amber);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 0 42px;
  border-top: 1px solid var(--line-soft);
}

@media (max-width: 860px) {
  .facts,
  .split,
  .grid,
  .demo,
  .docs {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 12px;
  }

  .nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(56px, 18vw, 88px);
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .footer {
    flex-direction: column;
  }
}

.guide {
  width: min(860px, calc(100% - 32px));
  max-width: none;
}

.guide-hero {
  padding: 48px 0 24px;
}

.guide-hero h1 {
  max-width: 100%;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.96;
}

.guide-hero,
.guide-panel {
  text-align: left;
}

.guide .lead {
  max-width: 100%;
  margin: 18px 0 0;
  font-size: 18px;
}

.guide-panel {
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
}

.guide-panel h2 {
  max-width: 100%;
  margin-bottom: 16px;
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.02;
}

.guide-panel p,
.guide-panel li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.guide-panel ul {
  margin: 0;
  padding-left: 22px;
}

.guide-panel .mini-terminal {
  margin: 18px 0;
}
