:root {
  color-scheme: light;
  --paper: #f7f3ea;
  --paper-strong: #fffaf1;
  --ink: #17191c;
  --muted: #62686f;
  --line: #d8d2c5;
  --teal: #126c72;
  --green: #2f7d4f;
  --amber: #b26a13;
  --red: #b84435;
  --violet: #594c9f;
  --terminal: #14171a;
  --terminal-soft: #242a2e;
  --shadow: 0 24px 70px rgb(28 23 16 / 16%);
}

* {
  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;
  line-height: 1.6;
}

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

code,
pre {
  font-family:
    "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgb(23 25 28 / 10%);
  background: rgb(247 243 234 / 86%);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper-strong);
  font-size: 13px;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

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

.hero {
  position: relative;
  min-height: 96svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 130px clamp(20px, 6vw, 84px) 80px;
  background: var(--paper-strong);
}

.terminal-backdrop {
  position: absolute;
  inset: 82px clamp(18px, 5vw, 76px) 44px;
  overflow: hidden;
  border: 1px solid rgb(23 25 28 / 12%);
  background:
    linear-gradient(90deg, rgb(255 250 241 / 96%) 0 38%, rgb(255 250 241 / 28%) 58%),
    var(--terminal);
  box-shadow: var(--shadow);
}

.terminal-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.38;
}

.terminal-line,
.terminal-card {
  position: absolute;
  right: clamp(24px, 8vw, 120px);
  width: min(500px, 42vw);
  color: #e8eee7;
  font-family:
    "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
  font-size: clamp(12px, 1.25vw, 15px);
}

.terminal-line.prompt {
  top: 62px;
  color: #97d9c3;
}

.terminal-line.title {
  top: 106px;
  color: #f2d18a;
}

.terminal-card {
  top: 158px;
  padding: 22px;
  border: 1px solid rgb(232 238 231 / 18%);
  background: rgb(20 23 26 / 86%);
}

.terminal-card.compact {
  top: 410px;
}

.terminal-word {
  color: #fff7d6;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
}

.terminal-meta {
  margin: 6px 0 16px;
  color: #9fb0b9;
}

.terminal-row {
  margin: 8px 0;
  color: #dce3dd;
}

.terminal-row span {
  display: inline-block;
  min-width: 34px;
  color: #66c5cc;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  max-width: 540px;
}

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

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

h1 {
  margin: 0;
  font-size: clamp(76px, 14vw, 178px);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(32px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 460px;
  margin: 26px 0 0;
  color: #30343a;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  font-weight: 800;
}

.button.primary {
  background: var(--ink);
  color: var(--paper-strong);
}

.button.secondary {
  background: rgb(255 250 241 / 72%);
}

.install-command {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 610px);
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 250 241 / 84%);
}

.install-command code {
  flex: 1;
  min-width: 0;
  color: #24272b;
  font-size: 14px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.install-command button {
  border: 0;
  border-radius: 6px;
  background: var(--teal);
  color: white;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 12px;
}

.download-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(100%, 610px);
  margin-top: 12px;
}

.download-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgb(23 25 28 / 16%);
  border-radius: 7px;
  background: rgb(255 250 241 / 72%);
  color: #30343a;
  font-size: 13px;
  font-weight: 800;
}

.download-grid a:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.metrics div {
  min-height: 150px;
  padding: 28px clamp(18px, 3vw, 44px);
  border-right: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong {
  display: block;
  color: var(--red);
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.section,
.workflow,
.command-panel,
.final {
  padding: clamp(70px, 10vw, 132px) clamp(20px, 6vw, 84px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 460px);
  gap: clamp(30px, 6vw, 96px);
  align-items: end;
  margin-bottom: 42px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -18px;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-grid article {
  min-height: 280px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgb(255 250 241 / 38%);
}

.feature-grid p,
.steps p,
.final p {
  color: var(--muted);
}

.feature-kicker {
  display: block;
  margin-bottom: 70px;
  color: var(--amber);
  font-weight: 900;
}

.workflow {
  background: #ece8de;
}

.section-heading.narrow {
  display: block;
}

.section-heading.narrow .eyebrow {
  margin-bottom: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.steps div {
  min-height: 260px;
  padding: 28px;
  background: #f7f3ea;
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 58px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-weight: 800;
}

.command-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.9fr);
  gap: clamp(28px, 7vw, 90px);
  align-items: center;
  background: var(--terminal);
  color: #f4efe6;
}

.command-panel .eyebrow {
  color: #7dd7bc;
}

.command-panel pre {
  margin: 0;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid rgb(244 239 230 / 18%);
  border-radius: 8px;
  background: var(--terminal-soft);
  color: #f6d58b;
  font-size: clamp(15px, 2vw, 22px);
  overflow-x: auto;
}

.final {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.final div {
  max-width: 760px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 6vw, 84px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

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

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .terminal-backdrop {
    inset: 76px 16px 34px;
    background:
      linear-gradient(180deg, rgb(255 250 241 / 98%) 0 52%, rgb(255 250 241 / 30%) 100%),
      var(--terminal);
  }

  .terminal-line,
  .terminal-card {
    right: 18px;
    left: 18px;
    width: auto;
  }

  .terminal-line.prompt {
    top: auto;
    bottom: 280px;
  }

  .terminal-line.title {
    top: auto;
    bottom: 238px;
  }

  .terminal-card {
    top: auto;
    bottom: 64px;
  }

  .terminal-card.compact {
    display: none;
  }

  .metrics,
  .feature-grid,
  .steps,
  .command-panel,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .metrics div,
  .feature-grid article {
    border-right: 0;
  }

  .final,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: auto;
    padding-top: 118px;
    padding-bottom: 326px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .install-command {
    align-items: stretch;
    flex-direction: column;
  }

  .install-command button {
    width: 100%;
  }

  .install-command code {
    overflow-x: visible;
    white-space: normal;
  }

  .download-grid a {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }

  .terminal-backdrop {
    inset: auto 16px 34px;
    height: 260px;
    opacity: 0.92;
  }

  .terminal-line,
  .terminal-card {
    font-size: 11px;
  }

  .terminal-line {
    display: none;
  }

  .terminal-card {
    bottom: 34px;
    padding: 16px;
  }
}
