:root {
  color-scheme: light;
  --ink: #15161a;
  --muted: #5d6472;
  --paper: #f7f8fb;
  --panel: #ffffff;
  --line: #dfe3ea;
  --accent: #e84832;
  --cyan: #087f8c;
  --violet: #5954d6;
  --gold: #c4861a;
  --terminal: #121316;
  --terminal-soft: #1d2026;
  --shadow: 0 24px 60px rgba(16, 24, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(247, 248, 251, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 72px;
  padding: 16px clamp(20px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 12px;
  text-decoration: none;
}

.brand span {
  white-space: nowrap;
}

nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

nav a,
.site-footer a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  padding: 8px 10px;
  text-decoration: none;
}

nav a:hover,
.site-footer a:hover {
  background: #eceff5;
  color: var(--ink);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(32px, 6vw, 76px);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  min-height: min(780px, calc(100vh - 120px));
  padding: clamp(36px, 6vw, 76px) clamp(20px, 5vw, 72px);
}

.hero > *,
.split > *,
.workflow article,
.feature-grid article,
.commands article {
  min-width: 0;
}

.hero-copy {
  max-width: 760px;
  width: 100%;
}

.eyebrow {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(3rem, 9vw, 6.4rem);
  line-height: 0.92;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  margin-bottom: 18px;
  max-width: 900px;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.12rem, 2.3vw, 1.5rem);
  line-height: 1.55;
  margin-bottom: 30px;
  max-width: 720px;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  min-height: 46px;
  padding: 0 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.button.secondary {
  background: var(--panel);
}

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

.stats div {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

.stats dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.stats dd {
  font-weight: 750;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
}

.terminal {
  background: var(--terminal);
  border: 1px solid #2d3038;
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: #e9eef7;
  max-width: 100%;
  overflow: hidden;
}

.terminal-bar {
  align-items: center;
  background: var(--terminal-soft);
  border-bottom: 1px solid #30333c;
  display: flex;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
}

.terminal-bar span {
  border-radius: 50%;
  display: inline-block;
  height: 11px;
  width: 11px;
}

.terminal-bar span:nth-child(1) {
  background: #ff5f56;
}

.terminal-bar span:nth-child(2) {
  background: #ffbd2e;
}

.terminal-bar span:nth-child(3) {
  background: #27c93f;
}

.terminal-bar strong {
  color: #aeb6c7;
  font-size: 0.82rem;
  margin-left: 8px;
}

pre {
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
}

code {
  font-family: "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  font-size: 0.92rem;
}

.terminal pre {
  line-height: 1.7;
  min-height: 460px;
  padding: clamp(18px, 3vw, 28px);
}

.prompt {
  color: #55d6be;
  font-weight: 800;
}

.band {
  padding: clamp(54px, 7vw, 92px) clamp(20px, 5vw, 72px);
}

.band:nth-of-type(odd) {
  background: var(--panel);
}

.section-heading {
  margin-bottom: 32px;
}

.workflow,
.feature-grid,
.commands {
  display: grid;
  gap: 16px;
}

.workflow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workflow article,
.feature-grid article,
.commands article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.band:nth-of-type(odd) .workflow article,
.band:nth-of-type(odd) .feature-grid article,
.band:nth-of-type(odd) .commands article {
  background: #f7f8fb;
}

.workflow span {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  margin-bottom: 18px;
  width: 34px;
}

.workflow p,
.feature-grid p,
.split p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.split {
  align-items: start;
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: 0.8fr 1.2fr;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid code {
  background: #eceff5;
  border-radius: 5px;
  color: var(--ink);
  padding: 2px 5px;
}

.commands {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.command-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.command-head h3 {
  margin-bottom: 0;
}

button {
  background: var(--cyan);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  min-height: 34px;
  padding: 0 12px;
}

button:hover {
  background: #066b76;
}

.commands pre {
  background: var(--terminal);
  border-radius: 6px;
  color: #f5f7fb;
  line-height: 1.65;
  padding: 14px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 24px clamp(20px, 5vw, 72px);
}

.site-footer span {
  font-weight: 800;
  margin-right: 12px;
}

@media (max-width: 980px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .workflow,
  .commands {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(2.7rem, 17vw, 4.4rem);
  }

  .stats,
  .workflow,
  .feature-grid,
  .commands {
    grid-template-columns: 1fr;
  }

  .terminal pre {
    min-height: auto;
  }

  .terminal code {
    font-size: 0.82rem;
  }

  .lede,
  .stats dd {
    max-width: min(100%, 32ch);
  }
}
