@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  src: url("/fonts/geist-latin.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  src: url("/fonts/geist-mono-latin.woff2") format("woff2");
  font-display: swap;
}

:root {
  --black: #000;
  --white: #fff;
  --grey: #8a8a8a;
  --mid: #1c1c1c;
  --rule-dark: #2a2a2a;
  --rule-light: #d9d9d9;
  --font: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(20px, 4.5vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; scrollbar-width: thin; scrollbar-color: #242428 transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #242428; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: transparent; }
html { background: var(--black); }
body {
  background: var(--mid);
  color: var(--white);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--white); color: var(--black); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.wrap { padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Hero */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom, var(--black) 50%, var(--mid) 100%);
}
#field {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(100% + 42vh);
  display: block;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 58%, transparent 100%);
}
.top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--gutter);
}
.brand { font-weight: 600; font-size: 19px; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 10px; }
.brand .mark { width: 22px; height: 22px; display: block; padding: 3px; border-radius: 4px; background: var(--white); color: var(--black); }
.top nav { display: flex; gap: clamp(18px, 3vw, 40px); font-size: 16px; align-items: center; }
.link { position: relative; }
.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.link:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 620px) { .top nav .opt { display: none; } }

.hero-row {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 22px 48px;
  padding: 0 var(--gutter) clamp(24px, 4.5vh, 44px);
}
.lede { max-width: 34ch; font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.28; letter-spacing: -.015em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Buttons: solid block inverting bottom up */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border-radius: 3px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -.01em;
  border: 1px solid var(--white);
  overflow: hidden;
  isolation: isolate;
  transition: color .3s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: none; }
.btn-solid { background: var(--white); color: var(--black); }
.btn-solid::before { background: var(--black); }
.btn-solid:hover { color: var(--white); }
.btn-open { background: transparent; color: var(--white); }
.btn-open::before { background: var(--white); }
.btn-open:hover { color: var(--black); }

/* Manifesto & body */
.light { position: relative; z-index: 1; color: var(--white); }
.say { padding: clamp(100px, 19vh, 220px) 0 clamp(90px, 16vh, 190px); }
.say p {
  font-size: clamp(2rem, 5.1vw, 4.9rem);
  line-height: 1.06;
  letter-spacing: -.045em;
  font-weight: 500;
  max-width: 21ch;
}
.say .w { color: #474747; transition: color .3s linear; }
.say .w.lit { color: var(--white); }

h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -.045em; font-weight: 500; max-width: 15ch; }

/* Terminal showcase */
.run { padding-bottom: clamp(100px, 17vh, 200px); }
.run-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .run-grid { grid-template-columns: 1fr; } }
.facts { list-style: none; padding: 0; margin-top: 44px; border-bottom: 1px solid #3a3a3a; }
.facts li { border-top: 1px solid #3a3a3a; padding: 16px 0; }
.facts strong { font-weight: 500; display: block; letter-spacing: -.01em; }
.facts span { color: #9a9a9a; font-size: 16px; }

.term { background: var(--black); color: var(--white); border-radius: 3px; min-width: 0; border: 1px solid #262626; }
.term-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule-dark);
  font: 13px var(--mono);
  color: var(--grey);
}
.term pre {
  font: 13.5px/1.75 var(--mono);
  padding: 22px 20px 26px;
  min-height: 360px;
  white-space: pre-wrap;
  word-break: break-word;
}
.term .m { color: var(--grey); }
.caret { display: inline-block; width: .58em; height: 1.1em; background: var(--white); vertical-align: -.18em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Coverage / Games rows */
.cost { padding-bottom: clamp(100px, 17vh, 200px); }
.cost-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 60px; margin-bottom: 44px; }
.cost-head p { color: #9a9a9a; max-width: 34ch; }
.rows { border-bottom: 1px solid #555; }
.row {
  position: relative;
  display: grid;
  grid-template-columns: 2.1fr 3.6fr 2.2fr auto;
  align-items: center;
  gap: 12px 32px;
  padding: 30px 20px;
  margin: 0 -20px;
  border-top: 1px solid #555;
  isolation: isolate;
  transition: color .3s;
}
.row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--white);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .5s var(--ease);
}
.row:hover, .row:focus-visible { color: var(--black); }
.row:hover::before, .row:focus-visible::before { transform: scaleY(1); }
.row h3 {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.1;
}
.tag {
  font: 500 11px var(--mono);
  padding: 2px 6px;
  border-radius: 2px;
  background: var(--white);
  color: var(--black);
  letter-spacing: 0;
  vertical-align: middle;
}
.row:hover .tag { background: var(--black); color: var(--white); }
.row p { font-size: 15.5px; max-width: 46ch; opacity: .72; }
.row p code { font: 13.5px var(--mono); }
.row .amt { font-size: clamp(1.4rem, 2.3vw, 2.1rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row .amt small { font-size: 15px; font-weight: 400; letter-spacing: 0; opacity: .68; }
.row .amt small.cache { display: block; margin-top: 8px; font-size: 13.5px; white-space: normal; }
.row .go {
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  justify-self: end;
  transform: translateX(-10px);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .3s;
}
.row:hover .go, .row:focus-visible .go { transform: none; opacity: 1; }
.cost-bonus {
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--white);
  color: var(--black);
  border-radius: 3px;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -.015em;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) {
  .row { grid-template-columns: 1fr auto; }
  .row p { grid-column: 1 / -1; grid-row: 2; }
  .row .go { grid-column: 1 / -1; justify-self: start; transform: none; opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
}

/* FAQ */
.faq-home { padding-bottom: clamp(100px, 17vh, 200px); scroll-margin-top: 20px; }
.faq-rows { border-bottom: 1px solid #555; }
.faq-item { border-top: 1px solid #555; }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.2;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { position: relative; flex: none; width: 18px; height: 18px; }
.faq-item summary i::before, .faq-item summary i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform .35s var(--ease);
}
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i::after { transform: rotate(0); }
.faq-item summary:hover span { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.faq-a { padding: 0 0 30px; max-width: 70ch; }
.faq-a p { font-size: 17px; line-height: 1.6; color: #c4c4c4; }
.faq-a code { font: 14px var(--mono); padding: 1px 5px; border-radius: 3px; background: #1d1d1d; }
.ul { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

/* Closer */
.end { position: relative; padding: clamp(90px, 16vh, 190px) 0 0; background: linear-gradient(to bottom, var(--mid), var(--black) 70%); }
#field2 {
  position: absolute;
  left: 0;
  top: -55vh;
  width: 100%;
  height: calc(100% + 55vh);
  display: block;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.35) 40%, #000 85%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.35) 40%, #000 85%);
}
.end .wrap { position: relative; z-index: 1; }
.end h2 { font-size: clamp(2.4rem, 6.2vw, 5.8rem); max-width: 14ch; }
.end .actions { margin-top: 40px; }
.end-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 40px;
  margin-top: clamp(90px, 16vh, 190px);
  padding: 22px 0 28px;
  border-top: 1px solid var(--rule-dark);
  color: var(--grey);
  font-size: 14px;
}
.end-row span a + a { margin-left: 18px; }

@media (prefers-reduced-motion: reduce) {
  .say .w { color: var(--white); transition: none; }
  .caret { animation: none; }
  .btn::before, .row::before, .row .go, .link::after { transition: none; }
}
