@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --paper: #f0eee8;
  --ink: #171714;
  --muted: #6b6a63;
  --line: #cbc8bd;
  --orange: #e95420;
  --terminal: #1b1c1a;
  --terminal-ink: #e9e8e1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 "Manrope", sans-serif;
}

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

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .42;
  background-image: radial-gradient(circle, #aaa69a 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

main, footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
  animation: appear .6s ease-out both;
}

a { color: inherit; }

.wordmark {
  display: flex;
  align-items: center;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -.025em;
}

nav { display: flex; gap: 30px; font-size: .82rem; font-weight: 600; }

nav a { position: relative; text-decoration: none; }

nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}

nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
  min-height: 700px;
  padding: 90px 0 110px;
}

.hero-copy > * { animation: rise .75s cubic-bezier(.2, .75, .25, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }

.section-label, .number {
  margin: 0;
  color: var(--orange);
  font: 500 .72rem/1.4 "DM Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 24px 0 30px;
  font-size: clamp(3.1rem, 5.6vw, 5.5rem);
  font-weight: 500;
  line-height: .93;
  letter-spacing: -.075em;
}

h1 span, h1 em {
  display: block;
  white-space: nowrap;
}

h1 em { color: var(--muted); font-style: normal; }

.lead {
  max-width: 620px;
  margin: 0 0 30px;
  color: #4e4d47;
  font-size: 1.12rem;
  line-height: 1.7;
}

.terminal {
  position: relative;
  overflow: hidden;
  min-height: 510px;
  background: var(--terminal);
  color: var(--terminal-ink);
  box-shadow: 18px 18px 0 #d6d2c7;
  font: 400 .78rem/1.6 "DM Mono", monospace;
  animation: terminal-in .9s .18s cubic-bezier(.2, .75, .25, 1) both;
}

.terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  background: repeating-linear-gradient(to bottom, #fff 0, #fff 1px, transparent 1px, transparent 4px);
}

.terminal-bar {
  display: flex;
  justify-content: space-between;
  padding: 13px 17px;
  border-bottom: 1px solid #3b3c38;
  color: #999a93;
  font-size: .68rem;
}

.terminal-body { padding: 26px 24px 28px; }

.terminal-line {
  margin: 0 0 16px;
  color: #b1b2ab;
  opacity: 0;
  animation: line-in .45s ease-out forwards;
}

.terminal-line:nth-child(1) { animation-delay: .8s; }
.terminal-line:nth-child(2) { animation-delay: 1.25s; }
.terminal-line:nth-child(3) { animation-delay: 1.7s; }
.terminal-line:nth-child(4) { animation-delay: 2.15s; }
.terminal-line:nth-child(5) { animation-delay: 2.55s; }
.terminal-line:nth-child(6) { animation-delay: 2.75s; }

.terminal-line > span {
  display: inline-block;
  width: 75px;
  color: #e67a51;
}

.prompt { display: flex; color: var(--terminal-ink); }
.prompt > span { flex: 0 0 75px; color: #84c97a; }
.prompt b { font-weight: 400; }

.activity, .finding, .checks { display: flex; }
.activity > span, .finding > span, .checks > span { flex: 0 0 75px; }
.activity b { display: block; color: var(--terminal-ink); font-weight: 400; }
.activity small { display: block; margin-top: 2px; color: #72736d; }
.finding p { margin: 0; color: #d6bd82; }

.patch-card {
  margin: 22px 0;
  border: 1px solid #3b3c38;
  background: #20211f;
}

.patch-head {
  display: flex;
  justify-content: space-between;
  padding: 8px 11px;
  border-bottom: 1px solid #3b3c38;
  color: #999a93;
}

.patch-head span { color: #e67a51; }
.patch-card p { display: flex; gap: 12px; margin: 0; padding: 7px 11px; }
.patch-card p + p { border-top: 1px solid #30312e; }
.patch-card code { flex: 0 0 112px; color: #d6d5ce; font: inherit; }
.patch-card p span { color: #84c97a; }

.checks p { margin: 0 0 3px; color: #d6d5ce; }
.checks i { margin-right: 7px; color: #84c97a; font-style: normal; }
.checks small { margin-left: 7px; color: #72736d; }

.summary { max-width: 390px; padding-top: 15px; border-top: 1px solid #3b3c38; color: #999a93; }
.summary b { color: var(--terminal-ink); font-weight: 500; }

.manifesto {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 40px;
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.statement {
  max-width: 900px;
  margin: -.15em 0 0;
  font-size: clamp(1.9rem, 4vw, 3.65rem);
  font-weight: 500;
  line-height: 1.23;
  letter-spacing: -.045em;
}

.features { border-top: 1px solid var(--ink); }

.feature {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr;
  gap: 40px;
  align-items: baseline;
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s ease;
}

.feature:hover { padding-left: 12px; }
.number { color: var(--muted); }

.feature h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.04em;
}

.feature p { max-width: 520px; margin: 0; color: var(--muted); }

.principles {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  color: #55544e;
  font: 500 .7rem/1.4 "DM Mono", monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.principles span::before { content: "+"; margin-right: 9px; color: var(--orange); }

.installer { min-width: 0; border-top: 1px solid var(--ink); }
.hero-installer { scroll-margin-top: 24px; }
.platform-tabs { display: flex; gap: 24px; padding: 18px 0; }

.platform-tabs button, .copy {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 .72rem/1.4 "DM Mono", monospace;
  cursor: pointer;
}

.platform-tabs button { position: relative; padding-bottom: 3px; }
.platform-tabs button.active { color: var(--ink); }

.platform-tabs button.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--orange);
  animation: tab-line .25s ease-out both;
}

.install-command {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-width: 0;
  min-height: 74px;
  padding: 20px;
  overflow: hidden;
  background: var(--terminal);
  color: var(--terminal-ink);
}

.install-command code {
  display: block;
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  overflow-x: auto;
  font: 400 .76rem/1.5 "DM Mono", monospace;
  scrollbar-width: thin;
  white-space: nowrap;
}

.copy {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid #4d4e49;
  color: #b9bab3;
  transition: border-color .2s ease, color .2s ease;
}

.copy:hover, .copy:focus-visible { border-color: #999a93; color: #fff; }
.copy.copied { border-color: #84c97a; color: #84c97a; }

footer {
  display: flex;
  justify-content: space-between;
  padding-top: 30px;
  padding-bottom: 45px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: .75rem;
}

footer > :first-child { color: var(--ink); font-weight: 700; }
footer a { text-underline-offset: 3px; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .75, .25, 1);
}

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

.feature.reveal {
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .75, .25, 1), padding-left .3s ease;
}

@keyframes appear { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes terminal-in { from { opacity: 0; transform: translateY(24px) rotate(1deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }
@keyframes line-in { from { opacity: 0; transform: translateX(-7px); } to { opacity: 1; transform: translateX(0); } }
@keyframes tab-line { from { transform: scaleX(0); } }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 70px; padding: 75px 0 100px; }
  .hero-copy { max-width: 720px; }
  .terminal { width: min(100%, 580px); }
  .manifesto { grid-template-columns: 1fr; gap: 24px; }
  .feature { grid-template-columns: 55px 1fr; }
  .feature p { grid-column: 2; }
}

@media (max-width: 600px) {
  main, footer { width: min(100% - 30px, 1180px); }
  header { min-height: 72px; }
  nav a:not(:last-child) { display: none; }
  .hero { min-height: auto; padding-top: 60px; }
  h1 { font-size: clamp(2.5rem, 12.5vw, 4.25rem); }
  .lead { font-size: 1rem; }
  .terminal { min-height: 530px; box-shadow: 9px 9px 0 #d6d2c7; }
  .terminal-body { padding: 26px 18px; }
  .terminal-line > span { width: auto; margin-bottom: 3px; }
  .prompt, .activity, .finding, .checks { display: block; }
  .prompt > span, .activity > span, .finding > span, .checks > span { display: block; }
  .patch-card p { display: block; }
  .patch-card code { display: block; margin-bottom: 1px; }
  .manifesto { padding: 95px 0; }
  .feature { grid-template-columns: 38px 1fr; gap: 18px; padding: 38px 0; }
  .feature:hover { padding-left: 0; }
  .principles { justify-content: flex-start; }
  .install-command { align-items: flex-start; gap: 12px; padding: 16px; }
  .install-command code {
    overflow-x: visible;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
  }
  footer { flex-direction: column; gap: 8px; }
}

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

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

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