:root {
  --ink: #111316;
  --ink-soft: #2d3236;
  --paper: #f6f1e8;
  --paper-2: #ebe5da;
  --line: rgba(17, 19, 22, 0.14);
  --muted: #656b6f;
  --white: #fffdf7;
  --green: #0f8f5f;
  --sage: #cbded2;
  --gold: #c8a329;
  --blue: #4f5cf2;
  --red: #e55343;
  --shadow: 0 24px 70px rgba(17, 19, 22, 0.18);
  --radius: 8px;
  --max: 1180px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --hero-shift: 0px;
  --hero-rotate: -2deg;
  --hero-visual-opacity: 0.84;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
}

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

.site-header {
  position: fixed;
  inset: 16px 16px auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: calc(100% - 32px);
  max-width: 1220px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(255, 253, 247, 0.22);
  border-radius: 12px;
  color: var(--white);
  background: rgba(17, 19, 22, 0.76);
  backdrop-filter: blur(18px);
  transition:
    transform 260ms var(--ease-out),
    border-color 180ms ease,
    box-shadow 180ms ease;
  animation: headerIn 620ms var(--ease-out) both;
}

.site-header.is-scrolled {
  color: var(--white);
  background: rgba(17, 19, 22, 0.84);
  border-color: rgba(255, 253, 247, 0.18);
  box-shadow: 0 12px 38px rgba(17, 19, 22, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px 0 4px;
  font-weight: 780;
  transition: transform 220ms var(--ease-out);
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent),
    var(--gold);
  font-weight: 900;
}

.footer-brand .brand-mark {
  border-color: rgba(17, 19, 22, 0.12);
}

.site-header.is-scrolled .brand-mark {
  border-color: rgba(255, 255, 255, 0.26);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  min-height: 38px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 253, 247, 0.78);
  font-size: 14px;
  font-weight: 650;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 180ms var(--ease-out);
}

.site-nav a:hover {
  transform: translateY(-1px);
}

.site-header.is-scrolled .site-nav a {
  color: rgba(255, 253, 247, 0.78);
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.site-header.is-scrolled .site-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.site-nav .nav-cta {
  color: var(--ink);
  background: var(--white);
}

.site-header.is-scrolled .site-nav .nav-cta {
  color: var(--ink);
  background: var(--white);
}

.menu-button {
  display: none;
  width: 42px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: currentColor;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition:
    transform 180ms var(--ease-out),
    opacity 180ms ease;
}

.menu-open .menu-button span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-open .menu-button span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 82svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 118px 24px 56px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(17, 19, 22, 0.96) 0%, rgba(17, 19, 22, 0.88) 42%, rgba(17, 19, 22, 0.36) 100%),
    #151719;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--paper));
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: gridDrift 28s linear infinite;
}

.hero-visual {
  position: absolute;
  top: 104px;
  right: -560px;
  width: min(1240px, 82vw);
  transform: translate3d(calc(var(--hero-shift) * -0.24), calc(var(--hero-shift) * 0.12), 0) rotate(var(--hero-rotate));
  opacity: var(--hero-visual-opacity);
  filter: saturate(0.92) contrast(1.04);
  will-change: transform;
  animation: visualIn 900ms 140ms var(--ease-out) both;
}

.hero-visual img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.36);
  transform: translate3d(0, 0, 0);
  animation: productFloat 7s ease-in-out 1.1s infinite alternate;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.hero-copy > * {
  animation: heroTextIn 760ms var(--ease-out) both;
}

.hero-copy > *:nth-child(1) {
  animation-delay: 90ms;
}

.hero-copy > *:nth-child(2) {
  animation-delay: 170ms;
}

.hero-copy > *:nth-child(3) {
  animation-delay: 250ms;
}

.hero-copy > *:nth-child(4) {
  animation-delay: 330ms;
}

.hero-copy > *:nth-child(5) {
  animation-delay: 420ms;
}

.hero-copy > *:nth-child(6) {
  animation-delay: 500ms;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(72px, 12vw, 160px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 0;
}

.hero-statement {
  max-width: 760px;
  margin: 28px 0 0;
  font-size: clamp(32px, 5.1vw, 66px);
  font-weight: 840;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-body {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 253, 247, 0.78);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.command-button,
.terminal-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition:
    transform 200ms var(--ease-out),
    border-color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease;
}

.command-button:hover,
.terminal-line:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.command-button.is-copied,
.terminal-line.is-copied {
  border-color: rgba(15, 143, 95, 0.7);
  box-shadow: 0 0 0 4px rgba(15, 143, 95, 0.16);
}

.command-button {
  padding: 0 6px 0 18px;
}

.command-button code,
.terminal-line code {
  overflow: hidden;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-button span,
.terminal-line b {
  flex: 0 0 auto;
  min-width: 62px;
  max-width: 86px;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms var(--ease-out);
}

.command-button:hover span,
.terminal-line:hover b {
  transform: translateX(1px);
}

.command-button.is-copied span,
.terminal-line.is-copied b {
  color: var(--white);
  background: var(--green);
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: rgba(255, 253, 247, 0.86);
  font-weight: 760;
  transition:
    transform 200ms var(--ease-out),
    border-color 200ms ease,
    background 200ms ease;
}

.secondary-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 680px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-badges li {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 253, 247, 0.74);
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  animation: badgeIn 520ms var(--ease-out) both;
}

.hero-badges li:nth-child(1) {
  animation-delay: 580ms;
}

.hero-badges li:nth-child(2) {
  animation-delay: 640ms;
}

.hero-badges li:nth-child(3) {
  animation-delay: 700ms;
}

.hero-badges li:nth-child(4) {
  animation-delay: 760ms;
}

.section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 92px 0;
}

.intro-section {
  padding-top: 64px;
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 68px;
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 84px);
  font-weight: 860;
  line-height: 0.98;
  letter-spacing: 0;
}

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

p {
  letter-spacing: 0;
}

.intro-copy {
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.55;
}

.intro-copy p {
  margin: 0;
}

.intro-copy p + p {
  margin-top: 20px;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.55fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 36px;
}

.section-header h2 {
  grid-column: 1 / -1;
}

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

.pattern-card {
  min-height: 246px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition:
    transform 240ms var(--ease-out),
    border-color 200ms ease,
    box-shadow 240ms var(--ease-out);
}

.pattern-card:hover {
  transform: translateY(-5px);
  border-color: rgba(17, 19, 22, 0.22);
  box-shadow: 0 18px 50px rgba(17, 19, 22, 0.1);
}

.pattern-card span {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.pattern-card p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.42;
}

.workflow-section {
  background: var(--ink);
  color: var(--white);
}

.workflow-intro {
  padding-bottom: 36px;
}

.workflow-rail {
  width: min(calc(100% - 40px), var(--max));
  display: grid;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  gap: 12px;
  margin: 0 auto;
  padding: 0 0 94px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.workflow-rail article {
  min-height: 270px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  transition:
    transform 240ms var(--ease-out),
    border-color 200ms ease,
    background 200ms ease;
}

.workflow-rail article:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
}

.workflow-rail span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 58px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold);
  font-weight: 880;
}

.workflow-rail p {
  color: rgba(255, 253, 247, 0.68);
  line-height: 1.44;
}

.proof-section {
  width: min(calc(100% - 40px), 1320px);
}

.proof-header {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.45fr);
}

.proof-header p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.proof-feature {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition:
    transform 260ms var(--ease-out),
    border-color 200ms ease,
    box-shadow 260ms var(--ease-out);
}

.proof-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(17, 19, 22, 0.2);
  box-shadow: 0 18px 55px rgba(17, 19, 22, 0.12);
}

.proof-feature-large {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
  gap: 0;
  margin-bottom: 12px;
}

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

.proof-copy {
  padding: 26px;
}

.proof-copy p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.proof-tag {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.proof-shot {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.proof-feature-large .proof-shot {
  border-top: 0;
  border-left: 1px solid var(--line);
}

.proof-shot img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: top left;
  transition:
    transform 700ms var(--ease-out),
    filter 300ms ease;
}

.proof-feature:hover .proof-shot img {
  transform: scale(1.025);
  filter: saturate(1.04) contrast(1.02);
}

.proof-feature-large .proof-shot img {
  min-height: 500px;
}

.runtime-section {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(280px, 0.38fr);
  gap: 60px;
  align-items: center;
  padding: 86px max(20px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  background: #202826;
}

.runtime-copy p:last-child {
  max-width: 620px;
  color: rgba(255, 253, 247, 0.7);
  font-size: 18px;
  line-height: 1.5;
}

.runtime-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.runtime-logos span {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 760;
  transition:
    transform 220ms var(--ease-out),
    border-color 200ms ease,
    background 200ms ease;
}

.runtime-logos span:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.runtime-logos img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.install-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.58fr);
  gap: 58px;
  align-items: center;
}

.install-copy p:last-child {
  max-width: 620px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}

.install-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

.install-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(17, 19, 22, 0.24);
}

.terminal-line {
  width: 100%;
  justify-content: flex-start;
  padding: 0 6px 0 16px;
  text-align: left;
}

.terminal-line > span {
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 900;
}

.terminal-line b {
  margin-left: auto;
  border: 0;
}

.install-panel ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.install-panel li {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: rgba(255, 253, 247, 0.72);
  background: rgba(255, 255, 255, 0.05);
  transition:
    transform 180ms var(--ease-out),
    border-color 180ms ease,
    background 180ms ease;
}

.install-panel li:hover {
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 46px max(20px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.site-footer p {
  max-width: 360px;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: flex-start;
  justify-content: flex-end;
}

.site-footer nav a {
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 700;
}

.reveal {
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

body.reveal-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pattern-card.reveal.is-visible:hover,
.workflow-rail article.reveal.is-visible:hover,
.proof-feature.reveal.is-visible:hover,
.runtime-logos span.reveal.is-visible:hover,
.install-panel.reveal.is-visible:hover {
  transform: translateY(-4px);
}

.install-panel li:hover {
  transform: translateX(4px);
}

@keyframes headerIn {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes visualIn {
  from {
    opacity: 0;
    transform: translate3d(64px, 20px, 0) rotate(-4deg) scale(0.96);
  }
  to {
    opacity: var(--hero-visual-opacity);
    transform: translate3d(calc(var(--hero-shift) * -0.24), calc(var(--hero-shift) * 0.12), 0) rotate(var(--hero-rotate)) scale(1);
  }
}

@keyframes productFloat {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes gridDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 72px 72px;
  }
}

@keyframes badgeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    align-items: flex-start;
    padding-top: 118px;
    padding-bottom: 58px;
  }

  .hero-visual {
    position: absolute;
    top: 120px;
    right: -360px;
    width: 900px;
    margin: 0;
    --hero-rotate: -1deg;
    --hero-visual-opacity: 0.72;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
  }

  .intro-layout,
  .section-header,
  .proof-feature-large,
  .runtime-section,
  .install-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .proof-feature-large .proof-shot {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .proof-feature-large .proof-shot img,
  .proof-shot img {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  section[id] {
    scroll-margin-top: 78px;
  }

  .site-header {
    inset: 10px 10px auto;
    width: calc(100% - 20px);
    padding: 8px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 62px 10px auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: rgba(255, 253, 247, 0.96);
    box-shadow: 0 24px 60px rgba(17, 19, 22, 0.16);
  }

  .menu-open .site-nav {
    display: grid;
  }

  .site-nav a,
  .site-header.is-scrolled .site-nav a {
    color: var(--ink);
  }

  .site-nav .nav-cta,
  .site-header.is-scrolled .site-nav .nav-cta {
    color: var(--white);
    background: var(--ink);
  }

  .hero {
    padding: 90px 16px 38px;
    background:
      linear-gradient(180deg, rgba(17, 19, 22, 0.98) 0%, rgba(17, 19, 22, 0.92) 72%, rgba(17, 19, 22, 0.76) 100%),
      #151719;
  }

  .hero h1 {
    font-size: clamp(56px, 18vw, 76px);
  }

  .hero-statement {
    max-width: 340px;
    margin-top: 18px;
    font-size: clamp(32px, 9.8vw, 40px);
    line-height: 1;
  }

  .hero-body {
    max-width: 340px;
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.38;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 20px;
    align-items: stretch;
  }

  .command-button,
  .secondary-link,
  .terminal-line {
    width: 100%;
  }

  .secondary-link {
    justify-content: center;
  }

  .hero-badges {
    gap: 8px;
    margin-top: 16px;
  }

  .hero-visual {
    top: 136px;
    right: -476px;
    width: 760px;
    --hero-visual-opacity: 0.58;
  }

  .section {
    width: min(calc(100% - 28px), var(--max));
    padding: 68px 0;
  }

  .intro-section {
    padding-top: 54px;
  }

  h2 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .intro-copy,
  .proof-header p:last-child,
  .install-copy p:last-child {
    font-size: 17px;
  }

  .pattern-grid,
  .proof-grid,
  .runtime-logos {
    grid-template-columns: 1fr;
  }

  .pattern-card {
    min-height: 210px;
  }

  .workflow-rail {
    width: min(calc(100% - 28px), var(--max));
    grid-template-columns: 1fr;
    overflow: visible;
    padding-bottom: 70px;
  }

  .workflow-rail article {
    min-height: 210px;
  }

  .workflow-rail span {
    margin-bottom: 42px;
  }

  .proof-section {
    width: min(calc(100% - 28px), 1320px);
  }

  .proof-shot img,
  .proof-feature-large .proof-shot img {
    min-height: 260px;
  }

  .proof-copy {
    padding: 22px;
  }

  .runtime-section {
    padding: 70px 14px;
  }

  .install-section {
    gap: 26px;
  }

  .terminal-line {
    align-items: flex-start;
    min-height: auto;
    padding: 14px;
  }

  .terminal-line code {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .terminal-line b {
    flex: 0 0 auto;
    margin-top: -2px;
  }

  .site-footer {
    display: grid;
    padding: 36px 14px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .brand {
    padding-right: 8px;
  }

  .command-button {
    align-items: flex-start;
    min-height: auto;
    padding: 14px;
  }

  .command-button code {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .command-button span {
    flex: 0 0 auto;
  }

  .hero-visual {
    right: -520px;
    width: 760px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-visual {
    transform: rotate(var(--hero-rotate));
  }
}
