:root {
  color-scheme: dark;
  --ink: #f4f7fb;
  --muted: #9ba7b8;
  --quiet: #697587;
  --line: rgba(177, 196, 222, 0.16);
  --line-strong: rgba(177, 196, 222, 0.28);
  --surface: #05070b;
  --surface-raised: #0a0e15;
  --surface-blue: #0a1220;
  --signal: #82b9f5;
  --signal-bright: #b6d9ff;
  --gold: #d9a528;
  --shell: min(1440px, calc(100vw - 72px));
  --display: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -8%, rgba(49, 102, 163, 0.15), transparent 31rem),
    var(--surface);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(130, 185, 245, 0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(130, 185, 245, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

::selection {
  background: rgba(130, 185, 245, 0.3);
  color: white;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-180%);
  background: white;
  color: black;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 11, 0.78);
  backdrop-filter: blur(18px) saturate(135%);
}

.nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 690;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #bdc5d1;
  font-size: 14px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6f7b8c;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.language-switcher a {
  min-width: 26px;
  padding: 5px 0;
  color: #7f8b9b;
  text-align: center;
}

.language-switcher a[aria-current="true"] {
  color: var(--signal-bright);
}

.nav-links > a:not(.nav-cta) {
  transition: color 160ms ease;
}

.nav-links > a:not(.nav-cta):hover {
  color: white;
}

.nav-cta {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(130, 185, 245, 0.48);
  padding: 0 16px;
  color: var(--signal-bright);
  transition: border-color 160ms ease, background 160ms ease;
}

.nav-cta:hover {
  border-color: var(--signal);
  background: rgba(130, 185, 245, 0.08);
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  padding-top: clamp(64px, 6vw, 96px);
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: 6%;
  left: 56%;
  width: 38rem;
  height: 38rem;
  border: 1px solid rgba(130, 185, 245, 0.06);
  border-radius: 50%;
  box-shadow: 0 0 0 8rem rgba(130, 185, 245, 0.012), 0 0 0 16rem rgba(130, 185, 245, 0.008);
  content: "";
}

.hero-copy {
  max-width: 1120px;
  margin-inline: auto;
  animation: rise-in 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
  text-align: center;
}

.eyebrow,
.section-index {
  margin: 0 0 24px;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 14px var(--signal);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 610;
  letter-spacing: -0.048em;
  line-height: 0.98;
}

h1 {
  max-width: 1100px;
  margin-inline: auto;
  font-size: clamp(42px, 4.8vw, 70px);
}

h1 em,
h2 em {
  color: var(--signal-bright);
  font-style: normal;
  font-weight: 420;
}

.hero-lead {
  max-width: 810px;
  margin: 34px auto 0;
  color: #b1bac7;
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.55;
}

.hero-actions,
.closing-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid transparent;
  padding: 0 21px;
  font-size: 14px;
  font-weight: 650;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--signal-bright);
  color: #06101c;
}

.button-primary:hover {
  background: white;
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--signal);
  background: rgba(130, 185, 245, 0.07);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  color: #d5dbe4;
  font-size: 14px;
  font-weight: 620;
  transition: border-color 160ms ease, color 160ms ease;
}

.text-link:hover {
  border-color: var(--signal);
  color: white;
}

.agent-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 45px auto 0;
  color: #7d899a;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agent-line span::before {
  margin-right: 8px;
  color: #3e4d61;
  content: ">";
}

.hero-visual {
  margin: clamp(48px, 5.5vw, 76px) 0 0;
  animation: rise-in 760ms 120ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.visual-frame,
.browser-window {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #070a10;
  box-shadow: 0 45px 100px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(130, 185, 245, 0.02) inset;
}

.browser-window {
  position: relative;
}

.chrome-tabs,
.chrome-toolbar,
.safari-toolbar {
  display: flex;
  align-items: center;
  background: #20242c;
  color: #aeb6c2;
  font-family: var(--display);
}

.chrome-tabs {
  height: 39px;
  gap: 8px;
  padding: 7px 12px 0;
  background: #292d35;
}

.traffic-lights {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
  padding: 0 8px 7px 1px;
}

.traffic-lights i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.traffic-lights i:nth-child(2) {
  background: #febc2e;
}

.traffic-lights i:nth-child(3) {
  background: #28c840;
}

.browser-tab {
  display: flex;
  width: min(245px, 25vw);
  height: 32px;
  align-items: center;
  gap: 9px;
  border-radius: 8px 8px 0 0;
  padding: 0 12px;
  overflow: hidden;
  background: #252932;
  color: #9ba4b0;
  font-size: 12px;
  white-space: nowrap;
}

.browser-tab.active {
  background: #353a44;
  color: #eef1f5;
}

.browser-tab img {
  width: 16px;
  height: 16px;
}

.browser-tab .tab-close {
  margin-left: auto;
  color: #8a929e;
  font-size: 14px;
}

.chrome-toolbar {
  height: 42px;
  gap: 14px;
  border-bottom: 1px solid #303640;
  padding: 0 14px;
  background: #353a43;
  font-size: 14px;
}

.browser-controls {
  display: flex;
  gap: 14px;
  color: #c7cbd1;
}

.address-field {
  display: flex;
  min-width: 0;
  flex: 1;
  height: 28px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  background: #20242b;
  color: #c7ccd3;
  font-size: 12px;
}

.address-field .secure {
  color: #8dc89a;
  font-size: 9px;
}

.browser-menu {
  color: #d0d4d9;
  font-size: 18px;
  line-height: 1;
}

.browser-viewport {
  position: relative;
  overflow: hidden;
  background: #05070b;
}

.browser-viewport img {
  width: 100%;
  height: auto;
}

.safari-window {
  border-radius: 13px;
}

.safari-toolbar {
  height: 52px;
  gap: 16px;
  border-bottom: 1px solid #363b44;
  padding: 0 15px;
  background: linear-gradient(#343841, #2a2e36);
}

.safari-toolbar .traffic-lights {
  padding: 0;
}

.safari-toolbar .address-field {
  max-width: 520px;
  margin-inline: auto;
  border-radius: 7px;
  background: #1f232a;
}

.safari-side {
  color: #abb3bd;
  font-size: 14px;
  white-space: nowrap;
}

.browser-rail {
  display: flex;
  height: 34px;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  padding: 0 13px;
  color: #6d7887;
  font-family: var(--mono);
  font-size: 10px;
}

.browser-rail i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #303846;
}

.browser-rail i:first-child {
  background: #9f7631;
}

.browser-rail span {
  margin-left: 6px;
}

.hero-visual figcaption {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 14px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 11px;
}

.hero-visual figcaption span {
  color: var(--signal);
}

.product-definition {
  margin-top: clamp(52px, 6vw, 86px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(24px, 2.8vw, 38px);
}

.product-definition p {
  max-width: 1120px;
  margin: 0 auto;
  color: #9faab9;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.65;
}

.product-definition strong {
  color: #dce6f2;
  font-weight: 590;
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 14, 21, 0.62);
}

.manifesto {
  margin-top: clamp(100px, 13vw, 190px);
  padding: clamp(72px, 8vw, 116px) 0;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 0.6fr 2.2fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.manifesto h2,
.story h2,
.agents h2,
.ergonomics h2,
.continuity h2,
.install h2,
.closing h2,
.page-hero h1 {
  font-size: clamp(36px, 4.1vw, 60px);
}

.manifesto-copy {
  padding-top: 3px;
  color: #aab3c0;
  font-size: 17px;
}

.manifesto-copy p {
  margin: 0 0 26px;
}

.story {
  display: grid;
  grid-template-columns: 0.82fr 1.65fr;
  gap: clamp(50px, 7vw, 110px);
  align-items: center;
  padding-block: clamp(120px, 14vw, 210px);
}

.story-copy > p:not(.section-index),
.agents-intro > p:not(.section-index),
.ergonomics-heading > p:not(.section-index),
.continuity-copy > p:not(.section-index),
.install-heading > p:not(.section-index) {
  max-width: 630px;
  margin: 28px 0 30px;
  color: #aab3c0;
  font-size: 18px;
}

.story-visual {
  margin: 0;
}

.agents {
  padding-block: clamp(110px, 13vw, 190px);
  background:
    radial-gradient(circle at 70% 35%, rgba(45, 91, 144, 0.13), transparent 34rem),
    rgba(10, 14, 21, 0.74);
}

.agents-intro {
  display: grid;
  grid-template-columns: 0.65fr 1.45fr 1fr;
  gap: 48px;
  align-items: start;
}

.agents-intro > p:last-child {
  margin-top: 5px;
}

.agent-stage {
  margin-top: 78px;
}

.ergonomics {
  padding-block: clamp(120px, 14vw, 210px);
}

.ergonomics-heading {
  display: grid;
  grid-template-columns: 0.65fr 2.45fr;
  gap: 48px;
}

.ergonomics-heading h2 {
  max-width: 950px;
}

.feature-ledger {
  margin: clamp(70px, 8vw, 116px) 0 48px;
  border-top: 1px solid var(--line-strong);
}

.feature-ledger article {
  display: grid;
  grid-template-columns: 0.3fr 0.85fr 1.65fr;
  gap: 36px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
  transition: background 180ms ease, padding 180ms ease;
}

.feature-ledger article:hover {
  padding-inline: 18px;
  background: linear-gradient(90deg, rgba(130, 185, 245, 0.055), transparent 75%);
}

.ledger-number {
  color: var(--signal);
  font-family: var(--mono);
  font-size: 12px;
}

.feature-ledger h3 {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.18;
}

.feature-ledger p {
  max-width: 750px;
  margin: 0;
  color: #9da8b7;
}

kbd {
  border: 1px solid var(--line-strong);
  border-bottom-color: #536071;
  border-radius: 3px;
  padding: 1px 5px;
  background: #111722;
  color: #cad2dd;
  font-family: var(--mono);
  font-size: 0.78em;
}

.continuity {
  padding-block: clamp(105px, 12vw, 175px);
  background: #070b11;
}

.continuity-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.52fr;
  gap: clamp(50px, 6vw, 90px);
  align-items: center;
}

.continuity-visual {
  margin: 0;
}

.security-note {
  border-left: 2px solid var(--signal);
  padding-left: 18px;
  font-size: 14px !important;
}

.security-note strong {
  color: #dbe3ee;
}

.release-notice {
  margin: 0 0 22px;
  border-left: 2px solid var(--gold);
  padding: 2px 0 2px 18px;
  color: #aeb8c6;
  font-size: 14px;
  line-height: 1.6;
}

.release-notice strong {
  color: #e7bd57;
}

.release-notice a {
  border-bottom: 1px solid var(--line-strong);
  color: #d8e0ea;
}

.install {
  display: grid;
  grid-template-columns: 0.78fr 1.42fr;
  gap: clamp(60px, 9vw, 150px);
  padding-block: clamp(120px, 14vw, 210px);
}

.install > *,
.install-page-grid > * {
  min-width: 0;
}

.install-commands {
  padding-top: 6px;
}

.command-block {
  border: 1px solid var(--line-strong);
  background: #090d14;
}

.command-block + .command-block {
  margin-top: 18px;
}

.command-block > div {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 15px;
  color: #8793a4;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.command-block button {
  min-width: 48px;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--signal);
  cursor: pointer;
  font: inherit;
}

.command-block code {
  display: block;
  overflow-x: auto;
  padding: 24px 20px;
  color: #e0e7f0;
  font-family: var(--mono);
  font-size: clamp(12px, 1.15vw, 15px);
  white-space: nowrap;
}

.after-install {
  margin: 22px 0;
  color: #8f9aaa;
  font-size: 14px;
}

.after-install code,
.trial-copy code {
  color: var(--signal-bright);
  font-family: var(--mono);
}

.after-install a {
  color: #d1d9e4;
}

details {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: #8995a5;
  font-size: 14px;
}

summary {
  color: #aeb8c6;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.trial-copy {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 24px;
  margin-top: 16px;
}

.trial-copy p {
  margin: 0;
}

.closing {
  padding-block: clamp(120px, 14vw, 200px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(39, 85, 138, 0.2), transparent 30rem),
    #070a10;
}

.closing img {
  margin: 0 auto 40px;
  border: 1px solid var(--line-strong);
}

.closing h2 {
  font-size: clamp(46px, 6vw, 82px);
}

.site-footer {
  padding: 70px 0 34px;
  border-top: 1px solid var(--line);
  background: #040609;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 0.7fr 0.9fr 0.7fr;
  gap: 60px;
}

.footer-grid > div:first-child p {
  max-width: 330px;
  color: #738092;
  font-size: 14px;
}

.footer-grid h2 {
  margin: 2px 0 18px;
  color: #6f7b8c;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-grid > div:not(:first-child) a {
  display: block;
  margin: 9px 0;
  color: #a3adbb;
  font-size: 14px;
}

.footer-grid > div:not(:first-child) a:hover {
  color: white;
}

.footer-meta {
  grid-column: 1 / -1;
  margin: 45px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: #758296;
  font-size: 12px;
}

.footer-meta a {
  border-bottom: 1px solid #758296;
  color: #a5afbd;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Interior pages */
.page-hero {
  display: grid;
  grid-template-columns: 0.55fr 2.45fr;
  gap: 52px;
  padding-block: clamp(110px, 13vw, 185px) clamp(90px, 10vw, 145px);
}

.page-hero h1 {
  max-width: 1050px;
  font-size: clamp(40px, 4.8vw, 68px);
}

.page-hero .page-lead {
  max-width: 740px;
  margin: 34px 0 0;
  color: #a9b3c1;
  font-size: 20px;
}

.page-section {
  padding-block: clamp(90px, 11vw, 160px);
  border-top: 1px solid var(--line);
}

.page-section-header {
  display: grid;
  grid-template-columns: 0.55fr 1.05fr 0.9fr;
  gap: 52px;
  align-items: start;
  margin-bottom: 70px;
}

.page-section h2 {
  font-size: clamp(40px, 4.6vw, 68px);
}

.page-section-header > p:last-child {
  margin: 2px 0 0;
  color: #9ea9b8;
}

.capability-list {
  border-top: 1px solid var(--line-strong);
}

.capability-list article {
  display: grid;
  grid-template-columns: 0.48fr 1fr 1.42fr;
  gap: 42px;
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
}

.capability-list .tag {
  color: var(--signal);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capability-list h3 {
  font-size: 25px;
  line-height: 1.15;
}

.capability-list p {
  margin: 0;
  color: #9aa6b6;
}

.wide-image {
  overflow: hidden;
  margin-top: 70px;
  border: 1px solid var(--line-strong);
  background: #080b10;
}

.wide-image img {
  width: 100%;
}

.architecture-diagram {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-strong);
  background: #080c12;
}

.architecture-diagram > div {
  position: relative;
  min-height: 260px;
  padding: 32px;
  border-right: 1px solid var(--line);
}

.architecture-diagram > div:last-child {
  border-right: 0;
}

.architecture-diagram .diagram-label {
  color: var(--signal);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.architecture-diagram h3 {
  margin-top: 55px;
  font-size: 30px;
}

.architecture-diagram p {
  color: #8f9bab;
}

.architecture-diagram > div:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -17px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: #0b111a;
  color: var(--signal);
  content: "→";
}

.boundary-table {
  width: 100%;
  border-collapse: collapse;
}

.boundary-table th,
.boundary-table td {
  border-bottom: 1px solid var(--line);
  padding: 25px 0;
  text-align: left;
  vertical-align: top;
}

.boundary-table th {
  width: 20%;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.boundary-table td {
  color: #a7b1bf;
}

.install-page-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.5fr;
  gap: clamp(60px, 9vw, 150px);
}

.install-page-grid + .install-page-grid {
  margin-top: 100px;
}

.install-page-grid h2 {
  font-size: clamp(34px, 4vw, 54px);
}

.prose {
  color: #a7b1bf;
}

.prose h3 {
  margin: 44px 0 13px;
  color: var(--ink);
  font-size: 24px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.prose p,
.prose li {
  max-width: 760px;
}

.prose a {
  border-bottom: 1px solid var(--line-strong);
  color: #d8e0ea;
}

.prose code {
  color: var(--signal-bright);
  font-family: var(--mono);
}

.prose pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 18px 0;
}

.prose pre code {
  display: block;
  width: max-content;
  min-width: 100%;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

@media (max-width: 980px) {
  :root {
    --shell: min(100% - 40px, 760px);
  }

  .menu-button {
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 6px;
    border: 0;
    background: transparent;
  }

  .menu-button span {
    display: block;
    width: 20px;
    height: 1px;
    background: #d6dde7;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 22px;
    background: rgba(5, 7, 11, 0.97);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    min-height: 46px;
    padding: 12px 8px;
  }

  .language-switcher {
    justify-content: flex-start;
    padding: 5px 8px;
  }

  .nav-cta {
    margin-top: 6px;
    justify-content: center;
  }

  .manifesto-grid,
  .story,
  .agents-intro,
  .ergonomics-heading,
  .continuity-grid,
  .install,
  .page-hero,
  .page-section-header,
  .install-page-grid {
    grid-template-columns: 1fr;
  }

  .manifesto-grid,
  .agents-intro,
  .page-section-header {
    gap: 18px;
  }

  .story,
  .continuity-grid {
    gap: 55px;
  }

  .install,
  .install-page-grid {
    gap: 45px;
  }

  .feature-ledger article,
  .capability-list article {
    grid-template-columns: 0.25fr 0.85fr 1.5fr;
    gap: 22px;
  }

  .architecture-diagram {
    grid-template-columns: 1fr;
  }

  .architecture-diagram > div {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .architecture-diagram > div:last-child {
    border-bottom: 0;
  }

  .architecture-diagram > div:not(:last-child)::after {
    top: auto;
    right: 28px;
    bottom: -17px;
    content: "↓";
  }

  .footer-grid {
    grid-template-columns: 1.3fr 0.8fr 1fr 0.8fr;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100vw - 32px);
  }

  .nav {
    min-height: 64px;
  }

  .nav-links {
    top: 64px;
  }

  .hero {
    padding-top: 62px;
  }

  .hero::after {
    display: none;
  }

  h1 {
    font-size: clamp(38px, 11vw, 50px);
  }

  .hero-lead {
    margin-top: 28px;
    font-size: 17px;
  }

  .hero-actions,
  .closing-actions {
    flex-direction: column;
    gap: 20px;
  }

  .button {
    width: 100%;
  }

  .agent-line {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: start;
    margin-top: 42px;
    text-align: left;
  }

  .hero-visual {
    width: calc(100vw - 16px);
    margin-left: calc((var(--shell) - (100vw - 16px)) / 2);
  }

  .visual-frame img {
    width: 810px;
    max-width: none;
    transform: translateX(-205px);
  }

  .hero-visual figcaption {
    padding-right: 10px;
  }

  .manifesto h2,
  .story h2,
  .agents h2,
  .ergonomics h2,
  .continuity h2,
  .install h2,
  .page-hero h1 {
    font-size: clamp(34px, 9.5vw, 46px);
  }

  .story-visual,
  .agent-stage,
  .continuity-visual,
  .wide-image {
    width: calc(100vw - 16px);
    margin-left: calc((var(--shell) - (100vw - 16px)) / 2);
  }

  .feature-ledger article,
  .capability-list article {
    grid-template-columns: 36px 1fr;
    padding: 28px 0;
  }

  .feature-ledger article p,
  .capability-list article p {
    grid-column: 2;
  }

  .feature-ledger article:hover {
    padding-inline: 0;
    background: none;
  }

  .command-block code {
    font-size: 11px;
  }

  .trial-copy {
    grid-template-columns: 1fr;
  }

  .closing h2 {
    font-size: clamp(39px, 11vw, 52px);
  }

  .chrome-tabs {
    height: 34px;
    padding: 5px 7px 0;
  }

  .traffic-lights {
    gap: 5px;
    padding-right: 3px;
  }

  .traffic-lights i {
    width: 8px;
    height: 8px;
  }

  .browser-tab {
    width: 150px;
    height: 29px;
    font-size: 10px;
  }

  .browser-tab:not(.active) {
    display: none;
  }

  .chrome-toolbar,
  .safari-toolbar {
    height: 36px;
    gap: 8px;
    padding-inline: 9px;
  }

  .browser-controls,
  .safari-side {
    display: none;
  }

  .address-field {
    height: 24px;
    font-size: 9px;
  }

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

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .boundary-table,
  .boundary-table tbody,
  .boundary-table tr,
  .boundary-table th,
  .boundary-table td {
    display: block;
    width: 100%;
  }

  .boundary-table th {
    border-bottom: 0;
    padding-bottom: 4px;
  }

  .boundary-table td {
    padding-top: 6px;
  }
}

@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;
  }

}
