:root {
  color-scheme: light;
  --paper: #f4f1ea;
  --paper-strong: #fffaf0;
  --ink: #111411;
  --muted: #5f665f;
  --line: #d9d2c4;
  --panel: #101411;
  --panel-2: #18211c;
  --green: #0db889;
  --green-dark: #087a5d;
  --blue: #2456d6;
  --amber: #c37a22;
  --rose: #cc4b4b;
  --shadow: rgb(31 28 21 / 0.18);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  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.5;
  overflow-x: hidden;
}

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

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  background: var(--paper);
}

.brand,
.site-header nav,
.actions,
.panel-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 800;
}

.brand h1 {
  margin: 0;
  font: inherit;
  letter-spacing: 0;
}

.brand img {
  display: block;
  filter: drop-shadow(0 10px 20px rgb(17 20 17 / 0.12));
}

.site-header nav {
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-header nav a {
  padding: 8px 10px;
  border-bottom: 2px solid transparent;
}

.site-header nav a:hover {
  border-color: var(--green);
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgb(17 20 17 / 0.06) 1px, transparent 1px),
    linear-gradient(rgb(17 20 17 / 0.05) 1px, transparent 1px),
    linear-gradient(105deg, var(--paper-strong) 0%, rgb(244 241 234 / 0.94) 42%, rgb(244 241 234 / 0.42) 68%, transparent 100%);
  background-size: 72px 72px, 72px 72px, auto;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 460px);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(86px, 12vh, 136px) 0;
}

.hero-copy > * {
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green-dark);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(52px, 7vw, 94px);
  line-height: 0.93;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.section-title {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 66px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

.lede {
  margin-bottom: 0;
  color: #383e38;
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 450;
  line-height: 1.42;
}

.technical-lede {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.technical-lede a {
  color: var(--ink);
  font-weight: 400;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  font-weight: 800;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.primary-action {
  background: var(--ink);
  color: var(--paper-strong);
  box-shadow: 0 16px 34px var(--shadow);
}

.secondary-action {
  background: rgb(255 250 240 / 0.72);
  color: var(--ink);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.primary-action:hover {
  background: #1b211c;
  box-shadow: 0 18px 38px rgb(31 28 21 / 0.24);
}

.secondary-action:hover {
  background: var(--paper-strong);
  box-shadow: 0 10px 24px rgb(31 28 21 / 0.1);
}

.terminal-panel {
  border: 1px solid rgb(255 250 240 / 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  color: #eaf8ef;
  box-shadow: 0 30px 70px rgb(17 20 17 / 0.26);
  width: 100%;
  overflow: hidden;
}

.panel-bar {
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  background: rgb(255 255 255 / 0.04);
}

.panel-bar span {
  display: block;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
}

.panel-bar span:first-child {
  background: var(--rose);
}

.panel-bar span:nth-child(2) {
  background: var(--amber);
}

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

pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.terminal-panel pre {
  padding: 22px;
}

.terminal-panel code {
  color: #9be9cf;
}

.workflow,
.config-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.workflow {
  padding: 72px 0 64px;
}

.section-heading {
  display: block;
  margin-bottom: 34px;
}

.section-heading p:last-child,
.config-section p {
  color: var(--muted);
  font-size: 18px;
}

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

.workflow-grid article {
  min-height: 280px;
  padding: 28px;
  background: rgb(255 250 240 / 0.7);
}

.workflow-grid span {
  display: inline-block;
  margin-bottom: 44px;
  color: var(--green-dark);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
}

.workflow-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.config-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(360px, 1fr);
  gap: 58px;
  align-items: center;
  padding: 34px 0 58px;
}

.config-action {
  margin-top: 18px;
}

.config-code {
  overflow: auto;
  border: 1px solid rgb(255 250 240 / 0.12);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 30px 70px var(--shadow);
}

.config-code code {
  display: block;
  min-width: 480px;
  padding: 26px;
  color: #c8f4e5;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

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

.contact-strip {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 26px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.contact-strip p {
  max-width: 100%;
  margin-bottom: 0;
  font-size: 18px;
}

.contact-strip a {
  color: var(--ink);
  font-weight: 400;
}

.tech-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 78px;
  border: 1px solid var(--line);
  background: var(--line);
}

.tech-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  padding: 16px;
  background: rgb(255 250 240 / 0.72);
}

.tech-card img {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  object-fit: contain;
}

@media (max-width: 980px) {
  .hero {
    background:
      linear-gradient(90deg, rgb(17 20 17 / 0.06) 1px, transparent 1px),
      linear-gradient(rgb(17 20 17 / 0.05) 1px, transparent 1px),
      linear-gradient(180deg, rgb(255 250 240 / 0.3), var(--paper) 58%),
      var(--paper);
    background-size: 72px 72px, 72px 72px, auto, auto;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    width: min(720px, calc(100% - 40px));
    padding: 86px 0 78px;
  }

  .terminal-panel {
    display: none;
  }

  .workflow-grid,
  .section-heading,
  .config-section {
    grid-template-columns: 1fr;
  }

  .workflow {
    padding: 72px 0 48px;
  }

  .section-heading {
    gap: 10px;
  }

  .workflow-grid article {
    min-height: 0;
  }

  .workflow-grid span {
    margin-bottom: 24px;
  }

  .config-section {
    gap: 30px;
    padding-bottom: 46px;
  }

  .tech-strip {
    margin-bottom: 56px;
  }

  .tech-card {
    min-height: 52px;
    padding: 10px;
  }
}

@media (max-width: 1100px) {
  .tech-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 14px;
  }

  .site-header nav {
    flex-wrap: wrap;
    margin-left: auto;
  }

  .workflow,
  .config-section,
  .contact-strip,
  .tech-strip,
  .site-header,
  .site-footer {
    width: min(340px, calc(100vw - 28px));
    max-width: 1180px;
    margin-left: 14px;
    margin-right: auto;
  }

  .hero-layout {
    width: min(340px, calc(100vw - 28px));
    margin-left: 14px;
    margin-right: auto;
    padding: 66px 0 56px;
    gap: 34px;
  }

  h1 {
    font-size: clamp(46px, 14vw, 60px);
  }

  h2 {
    font-size: clamp(32px, 10vw, 46px);
  }

  .section-title {
    font-size: clamp(32px, 10vw, 46px);
  }

  .terminal-panel pre {
    padding: 18px;
    font-size: 10px;
    line-height: 1.55;
  }

  .config-code code {
    min-width: 0;
    font-size: 11px;
    overflow-wrap: anywhere;
  }

  .lede {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .lede {
    font-size: 19px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .tech-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
