:root {
  --paper: #f3efe5;
  --paper-deep: #e7dfcf;
  --ink: #171713;
  --muted: #6f6a5f;
  --line: rgba(23, 23, 19, 0.17);
  --accent: #d84a2f;
  --accent-dark: #a72c17;
  --green: #1f6b4f;
  --white: #fffdf8;
  --display: "Iowan Old Style", "Baskerville", "Songti SC", "STSong", serif;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Noto Sans Mono CJK SC", monospace;
  --shadow: 0 24px 70px rgba(51, 40, 22, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 11% 12%, rgba(216, 74, 47, 0.08), transparent 28rem),
    radial-gradient(circle at 88% 28%, rgba(31, 107, 79, 0.08), transparent 24rem),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(23, 23, 19, 0.07);
  padding: 0.13em 0.36em;
  border-radius: 3px;
}

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

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

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.brand-mark {
  width: 33px;
  height: 33px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.08em;
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 600;
}

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

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: var(--accent);
  transition: right 180ms ease;
}

.nav a:hover::after {
  right: 0;
}

.hero {
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
  padding-block: 74px 82px;
}

.hero-copy {
  animation: rise 700ms cubic-bezier(0.2, 0.75, 0.3, 1) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 27px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow span:first-child {
  color: var(--accent-dark);
}

.eyebrow span + span::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--line);
}

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

h1 {
  margin-bottom: 27px;
  font-family: var(--display);
  font-size: clamp(62px, 8vw, 108px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.065em;
}

h1 em {
  color: var(--accent);
  font-weight: 400;
}

.lede {
  max-width: 560px;
  margin-bottom: 32px;
  color: #4f4a41;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--accent);
}

.button-primary:hover {
  box-shadow: 7px 7px 0 var(--accent);
}

.button-ghost {
  background: transparent;
}

.button-ghost:hover {
  background: var(--white);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
}

.facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.facts li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.visual {
  position: relative;
  justify-self: end;
  width: min(100%, 500px);
  padding: 22px 0 0 22px;
  animation: rise 800ms 120ms cubic-bezier(0.2, 0.75, 0.3, 1) both;
}

.screenshot-frame {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 12px 12px 4px 12px;
  background: #111;
  box-shadow: var(--shadow);
}

.screenshot-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.visual::before {
  content: "";
  position: absolute;
  inset: 0 36px 44px 0;
  border: 1px solid var(--ink);
  border-radius: 10px;
  transform: translate(-10px, 11px);
}

.visual-note {
  position: absolute;
  top: -11px;
  right: 14px;
  z-index: 4;
  padding: 6px 11px;
  color: var(--white);
  background: var(--green);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.stamp {
  position: absolute;
  right: -29px;
  bottom: 70px;
  z-index: 3;
  display: grid;
  gap: 1px;
  padding: 12px;
  color: var(--white);
  background: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  transform: rotate(4deg);
  box-shadow: 7px 7px 0 rgba(23, 23, 19, 0.13);
}

.strip {
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}

.strip-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--display);
  font-size: clamp(15px, 1.8vw, 21px);
  letter-spacing: 0.01em;
}

.strip i {
  color: #e67a62;
  font-family: var(--mono);
  font-size: 15px;
  font-style: normal;
}

.section {
  padding-block: 104px;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 42px;
}

.section-index {
  padding-top: 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
}

.kicker {
  margin-bottom: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.install-card {
  position: relative;
  min-height: 295px;
  padding: 37px;
  background: rgba(255, 253, 248, 0.65);
  border: 1px solid var(--line);
}

.install-card:nth-child(2) {
  background: var(--paper-deep);
}

.card-number {
  display: block;
  margin-bottom: 38px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
}

.install-card h3,
.steps h3 {
  margin-bottom: 11px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.install-card p,
.steps p {
  margin-bottom: 20px;
  color: #5d574d;
  font-size: 14px;
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.browser-paths {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.browser-paths span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}

.tip {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 18px 22px;
  border-left: 3px solid var(--green);
  background: rgba(31, 107, 79, 0.07);
}

.tip p {
  margin: 0;
  color: #4d5145;
  font-size: 13px;
}

.tip-label {
  flex: 0 0 auto;
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.tip-warning {
  border-left-color: var(--accent);
  background: rgba(216, 74, 47, 0.07);
}

.tip-warning .tip-label {
  color: var(--accent-dark);
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 50px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 21px;
  padding: 29px 0 32px;
  border-top: 1px solid var(--line);
}

.step-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 12px;
}

.entry-callout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) 1.22fr;
  min-height: 290px;
  margin-top: 30px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.entry-callout-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.entry-label {
  margin-bottom: 17px;
  color: #e67a62;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.entry-callout h3 {
  max-width: 360px;
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.entry-callout p {
  max-width: 340px;
  margin: 0;
  color: rgba(255, 253, 248, 0.68);
  font-size: 13px;
  line-height: 1.8;
}

.entry-demo {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  background: #fff;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.entry-demo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 24px 0 60px rgba(23, 23, 19, 0.07);
}

.entry-demo img {
  position: absolute;
  top: 50%;
  left: -8%;
  width: 116%;
  max-width: none;
  transform: translateY(-64%);
}

.entry-demo-label {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  padding: 6px 10px;
  color: var(--ink);
  background: rgba(243, 239, 229, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.entry-demo-corner {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 2;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 24px;
  line-height: 1;
}

.faq-list {
  margin-left: 92px;
  border-top: 1px solid var(--ink);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  position: relative;
  padding: 22px 48px 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 400;
}

details[open] summary::after {
  content: "−";
}

details p {
  max-width: 760px;
  margin: 0 0 23px;
  color: #5d574d;
  font-size: 14px;
}

.site-footer {
  min-height: 160px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.site-footer > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}

.footer-links a {
  text-underline-offset: 4px;
}

.copyright {
  justify-self: end;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px !important;
  font-weight: 400 !important;
  letter-spacing: 0.08em;
}

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

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 62px 72px;
  }

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

  .visual {
    justify-self: center;
    width: min(88%, 480px);
    margin-top: 10px;
  }

  .visual::before {
    inset: 0 20px 32px 0;
  }

  .stamp {
    right: -18px;
  }

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

  .entry-callout {
    grid-template-columns: 1fr;
  }

  .entry-demo {
    min-height: 260px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

  .faq-list {
    margin-left: 0;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 30px, 1180px);
  }

  .site-header {
    min-height: 72px;
  }

  .nav {
    gap: 16px;
  }

  .nav a:first-child {
    display: none;
  }

  .hero {
    padding-block: 48px 58px;
  }

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

  .lede {
    font-size: 15px;
  }

  .button {
    width: 100%;
  }

  .facts {
    gap: 7px 16px;
  }

  .visual {
    width: calc(100% - 12px);
    padding-left: 12px;
  }

  .visual-note {
    right: 6px;
  }

  .stamp {
    display: none;
  }

  .strip-inner {
    min-height: 62px;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 14px;
  }

  .section {
    padding-block: 72px;
  }

  .section-heading {
    grid-template-columns: 40px 1fr;
    margin-bottom: 30px;
  }

  .install-card {
    min-height: 0;
    padding: 27px 24px;
  }

  .card-number {
    margin-bottom: 28px;
  }

  .steps li {
    grid-template-columns: 44px 1fr;
    gap: 13px;
  }

  .entry-callout-copy {
    padding: 30px 25px;
  }

  .entry-demo {
    min-height: 235px;
  }

  .entry-demo img {
    left: -12%;
    width: 124%;
  }

  summary {
    font-size: 18px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 36px;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .copyright {
    justify-self: start;
  }
}

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

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