:root {
  color-scheme: dark;
  --bg: #101111;
  --panel: #181a19;
  --panel-strong: #202421;
  --text: #f4efe7;
  --muted: #abb5ad;
  --line: #303633;
  --green: #75d48a;
  --amber: #f2b35e;
  --red: #e15b55;
  --cyan: #7fc8d8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 88px;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(48, 54, 51, 0.72);
  background: rgba(16, 17, 17, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: 20px;
  font-weight: 760;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 76vh;
  padding: clamp(42px, 6vw, 80px) clamp(20px, 5vw, 72px) 32px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 17, 17, 0.98), rgba(16, 17, 17, 0.66)),
    linear-gradient(135deg, rgba(32, 36, 33, 0.96), rgba(16, 17, 17, 0.72));
  opacity: 0.88;
}

.hero-copy,
.terminal-demo {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-copy {
  max-width: 840px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(46px, 8vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

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

.hero-subtitle {
  max-width: min(620px, 100%);
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(18px, 2.6vw, 26px);
}

.hero-subtitle span {
  display: inline;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.stars-badge {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}

.stars-badge img {
  display: block;
  height: 28px;
}

.button,
button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button.primary {
  border-color: rgba(117, 212, 138, 0.82);
  background: #dff8e5;
  color: #102016;
}

.button.secondary:hover,
button:hover {
  border-color: var(--green);
}

.terminal-demo {
  width: min(860px, 100%);
  margin-top: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(244, 239, 231, 0.18);
  border-radius: 8px;
  background: rgba(10, 10, 9, 0.86);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo-gif {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #0a0a09;
}

.demo-transcript {
  border-top: 1px solid rgba(244, 239, 231, 0.12);
}

.demo-transcript summary {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.terminal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(244, 239, 231, 0.12);
  color: var(--muted);
  font-size: 13px;
}

.terminal-status {
  color: var(--green);
}

.terminal-lines {
  display: grid;
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 18px;
  list-style: none;
  color: #e9dfd0;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: clamp(12px, 2vw, 14px);
  overflow-x: auto;
  white-space: nowrap;
}

.terminal-lines li {
  min-width: 0;
  opacity: 0.48;
  transition:
    opacity 180ms ease,
    color 180ms ease;
}

.terminal-lines li.active {
  color: var(--text);
  opacity: 1;
}

.terminal-lines .warn {
  color: var(--amber);
}

.prompt {
  color: var(--green);
}

.band {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

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

.section-heading p:not(.eyebrow),
.three-up p,
.feature-grid p,
.quickstart-note {
  color: var(--muted);
}

.three-up,
.feature-grid,
.worker-list,
.command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.three-up article,
.feature-grid article,
.worker-list article,
.command-block {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 20px;
}

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

.feature-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

.flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow li {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  padding: 14px;
  color: var(--muted);
  font-weight: 700;
}

.flow span {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--green);
  color: #102016;
  text-align: center;
  line-height: 28px;
}

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

.command-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.command-header button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

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

.quickstart-note {
  max-width: 900px;
  margin: 18px 0 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--panel);
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

td {
  color: var(--muted);
}

td:last-child {
  color: var(--green);
  font-weight: 720;
}

.worker-list code {
  display: block;
  overflow-x: auto;
  color: var(--cyan);
  white-space: nowrap;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 920px) {
  .feature-grid,
  .three-up,
  .worker-list,
  .command-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero {
    min-height: auto;
  }

  .hero-copy,
  .terminal-demo {
    width: calc(100vw - 50px);
    max-width: 340px;
  }

  .hero-subtitle {
    max-width: 340px;
  }

  .hero-subtitle span {
    display: block;
  }

  .hero-actions {
    width: calc(100vw - 50px);
    max-width: 340px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .terminal-status {
    display: none;
  }

  .terminal-lines {
    font-size: 12px;
  }

  .flow {
    grid-template-columns: 1fr;
  }
}
