:root {
  --paper: #f3f1eb;
  --paper-raised: #faf9f5;
  --ink: #171816;
  --muted: #686962;
  --line: #c8c6bd;
  --line-strong: #99988f;
  --accent: #c13b25;
  --green: #2d6a4f;
  --shell: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-space: clamp(88px, 10vw, 156px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  font-feature-settings:
    "kern" 1,
    "liga" 1;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 10;
  opacity: 0.025;
  pointer-events: none;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

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

button,
input,
select {
  font: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.shell {
  width: min(var(--shell), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: var(--gutter);
  z-index: 20;
  padding: 11px 16px;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  transition: transform 180ms var(--ease);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  font:
    500 11px/1 "DM Mono",
    monospace;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.brand:hover .brand-mark {
  background: var(--ink);
  color: var(--paper);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  font-size: 13px;
  font-weight: 500;
}

.site-header nav > a:not(.nav-cta) {
  position: relative;
  padding-block: 12px;
  color: var(--muted);
  transition: color 180ms ease;
}

.site-header nav > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: currentColor;
  transition: transform 220ms var(--ease);
}

.site-header nav > a:hover,
.site-header nav > a[aria-current="true"] {
  color: var(--ink);
}

.site-header nav > a:hover::after,
.site-header nav > a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta,
.button,
.install-download {
  transition:
    transform 180ms var(--ease),
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.nav-cta {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink);
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

.nav-cta:active,
.button:active,
.install-download:active {
  transform: translateY(1px) scale(0.985);
}

.hero {
  min-height: min(820px, calc(100dvh - 78px));
  padding-block: clamp(76px, 8vw, 124px) clamp(92px, 9vw, 142px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: clamp(54px, 7vw, 112px);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.kicker,
.feature-index {
  margin: 0;
  color: var(--muted);
  font:
    500 10px/1.4 "DM Mono",
    monospace;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

h1 {
  max-width: 660px;
  margin-top: 18px;
  font-size: clamp(60px, 6.6vw, 106px);
  line-height: 0.91;
}

h1 em {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.lead {
  max-width: 560px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.58;
  text-wrap: pretty;
}

.lead code {
  color: var(--ink);
  font:
    400 0.88em/1 "DM Mono",
    monospace;
}

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

.button {
  min-height: 54px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  font-size: 13px;
  font-weight: 700;
}

.button.primary {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.button.primary:hover {
  box-shadow: 7px 7px 0 color-mix(in srgb, var(--accent) 70%, transparent);
  transform: translate(-2px, -2px);
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 600;
  transition:
    gap 180ms var(--ease),
    border-color 180ms ease;
}

.text-link:hover {
  gap: 15px;
  border-color: var(--ink);
}

.hero-meta {
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font:
    400 10px/1.5 "DM Mono",
    monospace;
  list-style: none;
}

.hero-meta li + li::before {
  margin-right: 20px;
  content: "·";
}

.signal {
  width: 7px;
  height: 7px;
  margin-right: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
}

.hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px minmax(0, 1fr);
  align-items: center;
}

.panel {
  position: relative;
  padding: 13px;
  border: 1px solid var(--ink);
  background: #e4e2dc;
  box-shadow: 10px 10px 0 rgba(23, 24, 22, 0.11);
}

.word-panel {
  transform: translateY(42px);
}

.panel-top,
.layers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font:
    500 9px/1.4 "DM Mono",
    monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.panel-top {
  padding-bottom: 11px;
}

.panel-top i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.canvas-page {
  position: relative;
  aspect-ratio: 210/297;
  overflow: hidden;
  border: 1px solid #aaa;
  background: #fff;
}

.block {
  position: absolute;
}

.coral {
  top: 8%;
  left: 10%;
  width: 19%;
  height: 3.5%;
  background: var(--accent);
}

.title-lines {
  top: 18%;
  left: 10%;
  width: 70%;
}

.title-lines b,
.body-lines b {
  height: 4px;
  margin-bottom: 7px;
  display: block;
  background: var(--ink);
}

.title-lines b:nth-child(2) {
  width: 85%;
}

.title-lines b:nth-child(3) {
  width: 58%;
}

.image-block {
  top: 40%;
  right: 10%;
  left: 10%;
  height: 26%;
  background: linear-gradient(145deg, #b8b8b8 0 49%, #d9d9d9 50%);
}

.body-lines {
  top: 74%;
  right: 25%;
  left: 10%;
}

.body-lines b {
  height: 2px;
  margin-bottom: 5px;
  background: #777;
}

.layers {
  padding-top: 11px;
  color: var(--muted);
}

.layers span:first-child {
  color: var(--ink);
}

.flow-arrow {
  text-align: center;
  font:
    400 10px/1.4 "DM Mono",
    monospace;
}

.flow-arrow span {
  display: block;
  font-size: 30px;
}

.flow-arrow small {
  color: var(--muted);
  writing-mode: vertical-rl;
}

.handles {
  position: absolute;
  inset: 38% 8% 32%;
  z-index: 2;
  border: 1px dashed #2979ff;
}

.handles i {
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1px solid #2979ff;
  background: #fff;
}

.handles i:nth-child(1) {
  top: -3px;
  left: -3px;
}

.handles i:nth-child(2) {
  top: -3px;
  right: -3px;
}

.handles i:nth-child(3) {
  bottom: -3px;
  left: -3px;
}

.handles i:nth-child(4) {
  right: -3px;
  bottom: -3px;
}

.proof-strip {
  border-block: 1px solid var(--line);
}

.proof-inner {
  min-height: 66px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 24px;
  font:
    500 10px/1.4 "DM Mono",
    monospace;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.proof-inner span {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.proof-inner b {
  color: var(--accent);
  font-weight: 500;
}

.section-grid {
  padding-block: var(--section-space);
  display: grid;
  grid-template-columns: minmax(150px, 0.24fr) minmax(0, 0.76fr);
  gap: clamp(40px, 6vw, 100px);
}

.section-grid + .section-grid {
  border-top: 1px solid var(--line);
}

.section-label {
  padding-top: 10px;
  font:
    500 10px/1.4 "DM Mono",
    monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.section-label span {
  margin-right: 12px;
  color: var(--accent);
}

.section-label p {
  display: inline;
}

.section-content h2,
.install h2 {
  max-width: 1050px;
  font-size: clamp(48px, 6.3vw, 92px);
  line-height: 0.97;
}

.steps {
  margin: clamp(54px, 7vw, 90px) 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  min-height: 132px;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: start;
  border-top: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps li > span,
.mode-compare article > span {
  color: var(--accent);
  font:
    500 10px/1.4 "DM Mono",
    monospace;
}

.steps h3,
.quality-grid h3,
.mode-compare h3 {
  margin: 0 0 10px;
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.steps p,
.quality-grid p,
.mode-compare p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
  text-wrap: pretty;
}

.quality-grid {
  margin-top: clamp(54px, 7vw, 90px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.quality-grid article {
  min-height: 230px;
  padding: clamp(26px, 3vw, 42px) clamp(22px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}

.quality-grid article:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.quality-grid .feature-wide {
  min-height: 190px;
  grid-column: 1 / -1;
  border-right: 0;
  background: color-mix(in srgb, var(--paper-raised) 58%, transparent);
}

.feature-index {
  margin-bottom: auto;
  padding-bottom: 46px;
}

.quality-grid article:hover .feature-index {
  color: var(--accent);
}

.mode-compare {
  margin-top: clamp(28px, 4vw, 54px);
  display: grid;
  grid-template-columns: 0.8fr repeat(2, 1fr);
  border-block: 1px solid var(--line-strong);
}

.mode-compare > * {
  min-height: 238px;
  padding: 30px;
}

.mode-compare > * + * {
  border-left: 1px solid var(--line);
}

.mode-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mode-intro h3 {
  max-width: 210px;
}

.mode-compare article {
  display: grid;
  align-content: end;
}

.mode-compare article > span {
  margin-bottom: auto;
}

.install {
  position: relative;
  padding-block: clamp(100px, 11vw, 170px);
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.install::after {
  position: absolute;
  top: -16vw;
  right: -10vw;
  width: 42vw;
  aspect-ratio: 1;
  content: "";
  border: 1px solid #3a3b37;
  border-radius: 50%;
  box-shadow:
    0 0 0 6vw #171816,
    0 0 0 calc(6vw + 1px) #3a3b37,
    0 0 0 12vw #171816,
    0 0 0 calc(12vw + 1px) #3a3b37;
  pointer-events: none;
}

.install-inner {
  position: relative;
  z-index: 1;
}

.install .kicker {
  color: #a8a9a1;
}

.install h2 {
  max-width: 1080px;
  margin-top: 22px;
}

.install-steps {
  max-width: 1040px;
  margin: clamp(54px, 7vw, 88px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid #4c4d48;
  list-style: none;
}

.install-steps li {
  min-height: 170px;
  padding: 24px;
}

.install-steps li + li {
  border-left: 1px solid #4c4d48;
}

.install-steps span {
  color: var(--accent);
  font:
    500 10px/1.4 "DM Mono",
    monospace;
}

.install-steps p {
  max-width: 280px;
  margin: 54px 0 0;
  color: #c8c9c2;
  font-size: 14px;
  line-height: 1.55;
}

.install-download {
  min-height: 58px;
  margin-top: 42px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.install-download span {
  color: var(--muted);
  font:
    500 10px/1 "DM Mono",
    monospace;
}

.install-download:hover {
  box-shadow: 7px 7px 0 var(--accent);
  transform: translate(-2px, -2px);
}

.install-box {
  max-width: 620px;
  margin-top: 16px;
  padding: 8px 8px 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #565751;
}

.install-box code {
  overflow-wrap: anywhere;
  font:
    400 12px/1.4 "DM Mono",
    monospace;
}

.install-box button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.install-box button:hover {
  background: var(--accent);
  color: #fff;
}

.install-small {
  max-width: 620px;
  margin: 18px 0 0;
  color: #92938c;
  font:
    400 10px/1.55 "DM Mono",
    monospace;
}

footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font:
    400 10px/1.4 "DM Mono",
    monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-inner a {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 1100px) {
  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 0.82fr) minmax(440px, 1.18fr);
    gap: 44px;
  }

  .hero-visual {
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  }

  .proof-inner {
    grid-template-columns: repeat(2, 1fr);
    padding-block: 18px;
  }

  .mode-compare {
    grid-template-columns: repeat(2, 1fr);
  }

  .mode-intro {
    min-height: 160px;
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--line);
  }

  .mode-compare article:first-of-type {
    border-left: 0;
  }
}

@media (max-width: 860px) {
  .site-header nav > a:not(.nav-cta) {
    display: none;
  }

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

  .hero-copy {
    max-width: 680px;
  }

  .hero-visual {
    width: min(100%, 680px);
    margin-top: 18px;
    justify-self: center;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .section-label {
    padding-top: 0;
  }

  .install-steps {
    grid-template-columns: 1fr;
  }

  .install-steps li {
    min-height: 132px;
  }

  .install-steps li + li {
    border-top: 1px solid #4c4d48;
    border-left: 0;
  }

  .install-steps p {
    margin-top: 28px;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 20px;
    --section-space: 84px;
  }

  html {
    scroll-padding-top: 70px;
  }

  .header-inner {
    min-height: 66px;
  }

  .brand {
    gap: 9px;
    font-size: 13px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }

  .nav-cta {
    min-height: 44px;
    padding: 0 14px;
    font-size: 12px;
  }

  .hero {
    padding-block: 66px 86px;
    gap: 54px;
  }

  h1 {
    margin-top: 16px;
    font-size: clamp(52px, 15.5vw, 68px);
  }

  .lead {
    margin-top: 26px;
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .button,
  .text-link {
    width: 100%;
  }

  .text-link {
    min-height: 48px;
    justify-content: space-between;
  }

  .hero-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .hero-meta li + li::before {
    display: none;
  }

  .hero-visual {
    grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
  }

  .panel {
    padding: 8px;
    box-shadow: 6px 6px 0 rgba(23, 24, 22, 0.1);
  }

  .word-panel {
    transform: translateY(24px);
  }

  .panel-top,
  .layers {
    font-size: 7px;
  }

  .flow-arrow span {
    font-size: 22px;
  }

  .flow-arrow small {
    display: none;
  }

  .proof-inner {
    grid-template-columns: 1fr;
    gap: 13px;
    padding-block: 22px;
  }

  .section-grid {
    gap: 36px;
  }

  .section-content h2,
  .install h2 {
    font-size: clamp(43px, 12vw, 58px);
  }

  .steps {
    margin-top: 46px;
  }

  .steps li {
    min-height: 0;
    grid-template-columns: 48px 1fr;
  }

  .steps p,
  .quality-grid p,
  .mode-compare p {
    font-size: 15px;
  }

  .quality-grid {
    grid-template-columns: 1fr;
    margin-top: 46px;
  }

  .quality-grid article,
  .quality-grid article:nth-child(odd) {
    min-height: 210px;
    border-right: 0;
  }

  .quality-grid .feature-wide {
    grid-column: auto;
  }

  .mode-compare {
    grid-template-columns: 1fr;
  }

  .mode-compare > * {
    min-height: 210px;
    padding: 24px;
  }

  .mode-compare > * + *,
  .mode-compare article:first-of-type {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .install::after {
    display: none;
  }

  .install-steps {
    margin-top: 46px;
  }

  .install-download {
    width: 100%;
  }

  .install-box {
    padding: 12px;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .footer-inner {
    min-height: 124px;
    padding-block: 24px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
  }
}

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

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