:root {
  --bg:     #F7F3EC;
  --ink:    #1A1614;
  --accent: #FF4D2E;
  --blue:   #2E6E8E;
  --dot:    rgba(26, 22, 20, .12);
  --card:   #FFFDF9;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--bg); }

a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 28px; }

/* ---------- nav ---------- */
.nav {
  max-width: 1060px; margin: 0 auto; padding: 22px 28px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: 24px; letter-spacing: -.02em; text-decoration: none;
}
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav-links a { font-size: 15px; text-decoration: none; }
.nav-links a:hover { text-decoration: underline; }
.nav-dl {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 14.5px;
  color: var(--bg) !important; background: var(--accent);
  border: 2px solid var(--ink); border-radius: 9px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 7px 16px; text-decoration: none !important;
  transition: transform .12s ease, box-shadow .12s ease;
}
.nav-dl:hover { animation: punch .3s cubic-bezier(.22, 1.6, .36, 1); box-shadow: 4px 4px 0 var(--ink); }
.nav-dl:active { transform: scale(.94) translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

/* ---------- hero ---------- */
.hero {
  display: flex; align-items: center; gap: 56px;
  padding: 72px 0 72px;
  min-height: 72vh;
}
.fist-stage { position: relative; flex: 0 0 42%; }
.halftone {
  position: absolute; inset: -8% -14% -14% -8%;
  background-image: radial-gradient(var(--dot) 1.6px, transparent 1.6px);
  background-size: 14px 14px;
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  /* dust kicked up by the smash: appears at impact, pushed outward, settles static */
  opacity: 0;
  animation: dots-scatter .9s cubic-bezier(.2, .8, .3, 1) .46s both;
}
@keyframes dots-scatter {
  0%   { opacity: 0; transform: scale(.85); }
  25%  { opacity: 1; transform: scale(1.14) translate(7px, -5px); }
  100% { opacity: 1; transform: scale(1) translate(0, 0); }
}
/* the fist SMASHES down: accelerating drop from above, squash on impact, settle */
.fist {
  position: relative; display: block; width: 100%; height: auto;
  animation: smash .65s cubic-bezier(.55, 0, .65, .35) both .1s;
}
@keyframes smash {
  0%   { opacity: 0; transform: translateY(-90px) scale(2.1) rotate(-8deg); }
  12%  { opacity: 1; }
  55%  { transform: translateY(7px) scale(.92) rotate(1.5deg); }
  75%  { transform: translateY(0) scale(1.05) rotate(-.6deg); }
  100% { transform: translateY(0) scale(1) rotate(0); }
}
/* impact shockwave ring, fired once when the fist lands */
.shockwave {
  position: absolute; left: 52%; top: 56%;
  width: 44px; height: 44px; border-radius: 50%;
  border: 5px solid var(--ink);
  transform: translate(-50%, -50%) scale(.4);
  opacity: 0; pointer-events: none;
  animation: shock .55s ease-out .47s both;
}
@keyframes shock {
  0%   { opacity: .85; transform: translate(-50%, -50%) scale(.4); border-width: 6px; }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(7);  border-width: 1px; }
}

.hero-copy { flex: 1; animation: impact-shake .28s linear .47s; }
@keyframes impact-shake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(2px, 1px); }
  50% { transform: translate(-2px, -1px); }
  75% { transform: translate(1px, 0); }
}
.wordmark {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(64px, 10vw, 118px);
  line-height: .95;
  letter-spacing: -.03em;
  margin-bottom: 18px;
}
/* letters pop right after the fist lands */
.wordmark span { display: inline-block; animation: pop-in .4s cubic-bezier(.22, 1.6, .36, 1) both .5s; }
.wordmark span:nth-child(2) { animation-delay: .56s; }
.wordmark span:nth-child(3) { animation-delay: .62s; }
.wordmark span:nth-child(4) { animation-delay: .68s; }
.wordmark .bang { color: var(--accent); animation-delay: .78s; }
@keyframes pop-in {
  from { transform: scale(.3) translateY(14px); opacity: 0; }
  70%  { transform: scale(1.12); }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-copy > :nth-child(2) { animation: rise .45s ease-out .72s both; }
.hero-copy > :nth-child(3) { animation: rise .45s ease-out .80s both; }
.hero-copy > :nth-child(4) { animation: rise .45s ease-out .88s both; }
.hero-copy > :nth-child(5) { animation: rise .45s ease-out .96s both; }

.tagline {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 27px);
  line-height: 1.3;
  margin-bottom: 14px;
}
.sub {
  max-width: 46ch; color: rgba(26, 22, 20, .78);
  margin-bottom: 34px;
}
.sub strong { color: var(--ink); font-weight: 600; }

.cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 20px; }
.btn-download {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 19px;
  color: var(--bg); background: var(--accent);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 15px 30px;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-download:hover {
  color: var(--bg);
  animation: punch .3s cubic-bezier(.22, 1.6, .36, 1);
  box-shadow: 7px 7px 0 var(--ink);
}
.btn-download:active { transform: scale(.94) translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
@keyframes punch {
  0%   { transform: scale(1); }
  35%  { transform: scale(.95); }
  70%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.btn-meta { font-size: 13.5px; color: rgba(26, 22, 20, .6); line-height: 1.5; }
.btn-meta a { color: inherit; }
#dl-count { font-weight: 600; color: var(--accent); }

.first-run {
  font-size: 14px; color: rgba(26, 22, 20, .7);
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
code {
  font-family: "JetBrains Mono", monospace; font-size: 12.5px;
  background: var(--card); border: 1.5px solid rgba(26, 22, 20, .25);
  border-radius: 6px; padding: 3px 8px; white-space: nowrap;
}

/* ---------- features ---------- */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  padding: 26px 0 70px;
}
.feature {
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  padding: 26px 24px 24px;
  transition: transform .15s ease, box-shadow .15s ease;
  animation: rise .5s cubic-bezier(.22, 1.2, .36, 1) both;
}
.feature:nth-child(1) { animation-delay: 1.05s; }
.feature:nth-child(2) { animation-delay: 1.17s; }
.feature:nth-child(3) { animation-delay: 1.29s; }
.feature:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 5px 6px 0 rgba(26, 22, 20, .9); }
.feature h3 {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: 20px; margin-bottom: 8px; letter-spacing: -.01em;
}
.feature p { font-size: 15px; color: rgba(26, 22, 20, .75); }
.feature .kbd {
  font-family: "JetBrains Mono", monospace; font-size: 12.5px;
  border: 1.5px solid rgba(26, 22, 20, .35); border-bottom-width: 3px;
  border-radius: 5px; padding: 1px 6px; background: var(--bg);
}

/* ---------- content pages ---------- */
.page {
  max-width: 720px; margin: 0 auto;
  padding: 56px 28px 80px;
}
/* entrance cascade, same language as the home hero: title pops, content rises */
.page > * { animation: rise .45s cubic-bezier(.22, 1.2, .36, 1) both; }
.page > :nth-child(1)  { animation: pop-in .5s cubic-bezier(.22, 1.6, .36, 1) both; }
.page > :nth-child(2)  { animation-delay: .12s; }
.page > :nth-child(3)  { animation-delay: .20s; }
.page > :nth-child(4)  { animation-delay: .28s; }
.page > :nth-child(5)  { animation-delay: .34s; }
.page > :nth-child(6)  { animation-delay: .40s; }
.page > :nth-child(7)  { animation-delay: .45s; }
.page > :nth-child(8)  { animation-delay: .50s; }
.page > :nth-child(9)  { animation-delay: .54s; }
.page > :nth-child(10) { animation-delay: .58s; }
.page > :nth-child(n+11) { animation-delay: .62s; }
.page h1 {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(36px, 5vw, 52px); letter-spacing: -.02em;
  line-height: 1.05; margin-bottom: 10px; text-wrap: balance;
  transform-origin: left bottom;
}
.page .lede { font-size: 19px; color: rgba(26, 22, 20, .75); margin-bottom: 40px; max-width: 55ch; }
.page h2 {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: 24px; letter-spacing: -.01em;
  margin: 44px 0 12px;
}
.page h3 { font-family: "Space Grotesk", sans-serif; font-size: 18px; margin: 26px 0 8px; }
.page p, .page li { color: rgba(26, 22, 20, .82); }
.page p { margin-bottom: 14px; max-width: 65ch; }
.page ul, .page ol { margin: 0 0 16px 22px; }
.page li { margin-bottom: 8px; }
.page table {
  width: 100%; border-collapse: collapse; margin: 14px 0 24px;
  font-size: 15px; background: var(--card);
  border: 2px solid var(--ink); border-radius: 10px; overflow: hidden;
}
.page th, .page td { text-align: left; padding: 10px 14px; border-bottom: 1.5px solid rgba(26, 22, 20, .15); vertical-align: top; }
.page th { font-family: "Space Grotesk", sans-serif; font-size: 14px; background: rgba(26, 22, 20, .05); }
.page tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }

/* ---------- contact form ---------- */
.contact-form { display: grid; gap: 14px; max-width: 520px; margin-top: 10px; }
.contact-form label { font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 15px; }
.contact-form input, .contact-form textarea {
  width: 100%; margin-top: 5px;
  font-family: "Inter", system-ui, sans-serif; font-size: 15px;
  color: var(--ink); background: var(--card);
  border: 2px solid var(--ink); border-radius: 10px;
  padding: 11px 13px;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 3px solid var(--accent); outline-offset: 1px;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.btn-send {
  justify-self: start;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 16px;
  color: var(--bg); background: var(--ink);
  border: 3px solid var(--ink); border-radius: 11px;
  box-shadow: 4px 4px 0 rgba(26, 22, 20, .35);
  padding: 11px 26px; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-send:hover { animation: punch .3s cubic-bezier(.22, 1.6, .36, 1); }
.btn-send:active { transform: scale(.94) translate(2px, 2px); box-shadow: 1px 1px 0 rgba(26, 22, 20, .35); }

/* ---------- footer ---------- */
footer {
  border-top: 2.5px solid var(--ink);
  max-width: 1060px; margin: 0 auto;
  padding: 30px 28px 44px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; flex-wrap: wrap;
  font-size: 14px; color: rgba(26, 22, 20, .7);
}
footer .links { display: flex; gap: 24px; }

/* ---------- knock ripple + toast ---------- */
.ripple {
  position: fixed; pointer-events: none; z-index: 60;
  width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid var(--ink);
  transform: translate(-50%, -50%);
  animation: rip .45s ease-out forwards;
}
.ripple.r2 { border-color: var(--accent); animation-duration: .55s; animation-delay: .06s; opacity: 0; }
@keyframes rip {
  from { transform: translate(-50%, -50%) scale(.4); opacity: 1; }
  to   { transform: translate(-50%, -50%) scale(6);  opacity: 0; }
}
.bonk-word {
  position: fixed; pointer-events: none; z-index: 61;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 15px;
  color: var(--accent); letter-spacing: .04em;
  transform: translate(-50%, -120%) rotate(-6deg);
  animation: bonk-fly .6s ease-out forwards;
}
@keyframes bonk-fly {
  from { opacity: 0; transform: translate(-50%, -80%) rotate(-6deg) scale(.4); }
  30%  { opacity: 1; transform: translate(-50%, -150%) rotate(-6deg) scale(1.15); }
  to   { opacity: 0; transform: translate(-50%, -260%) rotate(-6deg) scale(1); }
}
#toast {
  position: fixed; left: 50%; bottom: 34px; z-index: 70;
  transform: translateX(-50%) translateY(20px) scale(.9);
  opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg);
  font-family: "JetBrains Mono", monospace; font-size: 13.5px;
  border-radius: 10px; padding: 11px 18px;
  border-left: 5px solid var(--accent);
  transition: transform .25s cubic-bezier(.22, 1.6, .36, 1), opacity .2s ease;
  white-space: nowrap;
}
#toast.show { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }

/* ---------- download modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(26, 22, 20, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--bg);
  border: 3px solid var(--ink); border-radius: 18px;
  box-shadow: 8px 8px 0 var(--ink);
  max-width: 480px; width: 100%;
  padding: 30px 30px 26px;
  animation: pop-in .35s cubic-bezier(.22, 1.6, .36, 1) both;
}
.modal h3 {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: 24px; letter-spacing: -.01em; margin-bottom: 16px;
}
.modal ol { margin: 0 0 16px 22px; }
.modal li { margin-bottom: 10px; }
.modal-note { font-size: 13.5px; color: rgba(26, 22, 20, .65); margin-bottom: 20px; }
.modal-note code { white-space: normal; word-break: break-all; }
.modal-close {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 16px;
  color: var(--bg); background: var(--accent);
  border: 2.5px solid var(--ink); border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 10px 24px; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.modal-close:active { transform: scale(.94) translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

/* ---------- responsive + motion ---------- */
@media (max-width: 860px) {
  .hero { flex-direction: column; gap: 34px; padding: 48px 0 48px; min-height: 0; text-align: center; }
  .fist-stage { flex-basis: auto; width: min(62vw, 300px); }
  .sub { margin-left: auto; margin-right: auto; }
  .cta-row, .first-run { justify-content: center; }
  .features { grid-template-columns: 1fr; padding-bottom: 48px; }
  footer { justify-content: center; text-align: center; }
  .nav { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
