:root {
  --bg: #f4efe5;
  --surface: #ebe1d1;
  --surface-strong: #ded0bc;
  --ink: #182433;
  --muted: #5f6872;
  --line: #d4c5ad;
  --accent: #1f6b7d;
  --accent-strong: #154d5b;
  --warn: #a84d38;
  --terminal: #101923;
  --terminal-line: #253444;
  --terminal-muted: #89a0ae;
  --terminal-text: #e8f2ef;
  --wrap: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a,
button {
  transition:
    color 140ms ease,
    border-color 140ms ease,
    background-color 140ms ease,
    box-shadow 140ms ease,
    opacity 140ms ease;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(31, 107, 125, 0.42);
  outline-offset: 3px;
}

section[id] {
  scroll-margin-top: 5.5rem;
}

.wrap {
  width: min(calc(100% - 2rem), var(--wrap));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(212, 197, 173, 0.95);
  background: rgba(244, 239, 229, 0.94);
  backdrop-filter: blur(12px);
}

.header-row,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav,
.header-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a,
.header-links a,
.footer-links a {
  text-decoration: none;
}

.site-nav a,
.subtle-link,
.footer-links a {
  color: var(--muted);
}

.site-nav a:hover,
.subtle-link:hover,
.footer-links a:hover,
.resource-link:hover,
.text-link:hover,
.contact-note a:hover {
  color: var(--accent-strong);
}

.hero {
  padding: 6.5rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.label {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  margin-bottom: 1rem;
  font-size: 5rem;
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: 2.8rem;
  line-height: 1.05;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.02rem;
}

.lead {
  max-width: 60ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.16rem;
}

.install-card {
  margin: 2rem 0 1.2rem;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(235, 225, 209, 0.92), rgba(247, 243, 235, 0.98));
  box-shadow: 0 14px 30px rgba(24, 36, 51, 0.06);
}

.install-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.install-heading .label {
  margin-bottom: 0;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(24, 36, 51, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.copy-button:hover,
.copy-button.is-copied {
  color: var(--accent-strong);
  border-color: rgba(31, 107, 125, 0.32);
  background: rgba(31, 107, 125, 0.08);
}

.copy-mark {
  width: 0.9rem;
  height: 0.9rem;
  border: 1.5px solid currentColor;
  box-shadow: -4px -4px 0 -1.5px currentColor;
  display: inline-block;
}

.copy-label {
  font-size: 0.88rem;
  font-weight: 700;
}

pre {
  overflow-x: auto;
  margin-bottom: 0;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(24, 36, 51, 0.13);
  border-radius: 8px;
  background: rgba(24, 36, 51, 0.06);
}

code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.95rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.72rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.button:hover {
  background: var(--accent-strong);
}

.button-secondary {
  background: transparent;
  color: var(--accent-strong);
}

.button-secondary:hover {
  background: rgba(31, 107, 125, 0.08);
}

.terminal-demo {
  min-width: 0;
  border: 1px solid rgba(16, 25, 35, 0.88);
  border-radius: 8px;
  background: var(--terminal);
  color: var(--terminal-text);
  box-shadow: 0 24px 50px rgba(24, 36, 51, 0.22);
  overflow: hidden;
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--terminal-line);
}

.terminal-top p {
  margin-bottom: 0;
  color: var(--terminal-muted);
  font-size: 0.88rem;
}

.terminal-dots {
  display: flex;
  gap: 0.4rem;
}

.terminal-dots span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--warn);
}

.terminal-dots span:nth-child(2) {
  background: #d9a441;
}

.terminal-dots span:nth-child(3) {
  background: #4e9a6f;
}

.phase-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--terminal-line);
}

.phase-strip span {
  padding: 0.7rem 0.8rem;
  border-right: 1px solid var(--terminal-line);
  color: var(--terminal-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.phase-strip span:last-child {
  border-right: 0;
}

.phase-strip span.is-active {
  background: rgba(31, 107, 125, 0.2);
  color: #eef9f8;
}

.terminal-body {
  height: 27rem;
  padding: 1.15rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--terminal-text);
  overflow: hidden;
  white-space: pre-wrap;
}

.terminal-body code {
  color: inherit;
  font-size: 0.9rem;
}

.cursor {
  display: inline-block;
  width: 0.55rem;
  height: 1rem;
  margin-left: 0.12rem;
  background: #8fd7c8;
  vertical-align: -0.15rem;
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.section {
  padding: 2.8rem 0;
}

.section-wrap {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.section-heading,
.section-body {
  min-width: 0;
}

.section-heading h2 {
  overflow-wrap: anywhere;
}

.narrow-copy {
  max-width: 760px;
}

.narrow-copy p:last-child,
.docs-copy p:last-child {
  margin-bottom: 0;
}

.platform-note {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.platform-note span {
  color: var(--ink);
  font-weight: 700;
}

.platform-note p {
  margin-bottom: 0;
  color: var(--muted);
}

.command-stack {
  display: grid;
  gap: 1.2rem;
}

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

.feature-grid > div {
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
}

.plain-list {
  margin: 0;
  padding-left: 1.1rem;
}

.plain-list li + li {
  margin-top: 0.64rem;
}

.table-intro {
  max-width: 780px;
  color: var(--muted);
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: rgba(255, 255, 255, 0.24);
}

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

th {
  background: var(--surface);
  font-size: 0.88rem;
}

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

td:not(:first-child) {
  color: var(--muted);
}

.contact-note {
  margin: 1rem 0 0;
  color: var(--muted);
}

.contact-note a,
.text-link {
  color: var(--accent-strong);
  font-weight: 700;
}

.docs-copy {
  max-width: 720px;
  font-size: 1.08rem;
}

.resource-list {
  display: grid;
}

.resource-row {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.resource-row:first-child {
  padding-top: 0;
}

.resource-name {
  font-weight: 700;
}

.resource-link {
  text-decoration: none;
}

.resource-copy {
  color: var(--muted);
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .section-wrap,
  .feature-grid,
  .resource-row,
  .platform-note {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 5.5rem;
  }

  .terminal-body {
    height: 24rem;
  }
}

@media (max-width: 760px) {
  .header-row,
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav,
  .header-links,
  .footer-links {
    gap: 0.62rem 0.9rem;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero {
    padding: 4.4rem 0 3rem;
  }

  .install-card {
    padding: 1rem;
  }

  .install-heading {
    flex-wrap: wrap;
    align-items: flex-start;
  }

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

  .phase-strip span:nth-child(2) {
    border-right: 0;
  }

  .phase-strip span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--terminal-line);
  }

  .terminal-body {
    height: 28rem;
  }

  .section {
    padding: 2.2rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  button,
  .cursor {
    transition: none;
    animation: none;
  }
}
