:root {
  --bg: #0e1013;
  --card: #181b1f;
  --ink: #f5f5f7;
  --muted: rgba(245, 245, 247, 0.66);
  --faint: rgba(245, 245, 247, 0.12);
  --accent: #32ade6;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }

@font-face { font-family: "Fraunces"; src: url(fonts/fraunces.woff2?v=2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans.woff2?v=2) format("woff2"); font-weight: 400 700; font-display: swap; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 "Instrument Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }

h1, h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
h1 { font-size: clamp(44px, min(6.4vw, 10vh), 84px); }
h2 { font-size: clamp(34px, 4.4vw, 56px); }
h3 { font-size: 17px; font-weight: 600; }

.nav {
  position: fixed; inset: 0 0 auto;
  z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 48px);
  background: rgba(14, 16, 19, 0.92);
  border-bottom: 0.5px solid var(--faint);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 19px; }
.mark { width: 36px; height: 36px; }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav nav a:not(.pill) { color: var(--muted); }
.nav nav a:not(.pill):hover { color: var(--ink); }
.pill { padding: 7px 16px; border-radius: 999px; background: var(--ink); color: #000; }
.menu-toggle {
  display: none; place-content: center; gap: 6px; width: 40px; height: 40px; padding: 0;
  border: 0; background: none; cursor: pointer;
}
.menu-toggle i { display: block; width: 20px; height: 1.5px; border-radius: 1px; background: var(--ink); transition: transform 0.2s var(--ease); }
.nav.open .menu-toggle i:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav.open .menu-toggle i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 560px) auto;
  align-items: center; justify-content: center; gap: clamp(40px, 7vw, 112px);
  padding: 120px clamp(20px, 6vw, 96px) 64px;
}
.lede { margin-top: 24px; font-size: 21px; font-weight: 500; color: rgba(255, 255, 255, 0.82); max-width: 34ch; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 36px; }
.button {
  display: inline-block; padding: 13px 26px; border-radius: 999px; white-space: nowrap;
  background: #fff; color: #000; font-weight: 600;
  transition: transform 0.15s;
}
.button:active { transform: scale(0.97); }
.link { color: rgba(255, 255, 255, 0.82); font-weight: 500; }
.link:hover { color: #fff; }
.fine { margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, 0.66); }
.hero-panel { width: min(400px, 100%); }

.cmd {
  display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%;
  margin-top: 20px; padding: 10px 10px 10px 18px; border-radius: 12px;
  background: var(--card); box-shadow: 0 0 0 0.5px var(--faint);
  font: 15px/1.4 ui-monospace, "SF Mono", Menlo, monospace;
}
.cmd code { overflow-x: auto; white-space: nowrap; }
.cmd b { color: var(--accent); font-weight: 400; }
.copy {
  flex: none; padding: 6px 12px; border: 0; border-radius: 8px; cursor: pointer;
  background: rgba(255, 255, 255, 0.08); color: var(--ink); font: 500 13px "Instrument Sans", sans-serif;
}
.copy:hover { background: rgba(255, 255, 255, 0.14); }

.film { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 48px); }
.film video { width: 100%; border-radius: 16px; box-shadow: 0 0 0 0.5px var(--faint); }

.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(32px, 6vw, 96px);
  max-width: 1120px; margin: 0 auto;
  padding: clamp(72px, 12vw, 144px) clamp(16px, 5vw, 48px);
}
.feature.flip .text { order: 2; }
.feature p { margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 38ch; }
.shot { justify-self: center; }
.menubar {
  justify-self: center; padding: 18px 28px; border-radius: 16px;
  background: #08121a; box-shadow: 0 0 0 0.5px var(--faint);
}
.menubar img { width: 260px; }

.grid-section, .faq, .install { max-width: 1120px; margin: 0 auto; padding: clamp(72px, 10vw, 128px) clamp(16px, 5vw, 48px); }
.grid { list-style: none; padding: 0; margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.grid li { background: var(--card); border-radius: 12px; padding: 20px; box-shadow: 0 0 0 0.5px var(--faint); }
.grid p { margin-top: 8px; font-size: 15px; color: var(--muted); }

.install { max-width: 760px; }
.install h3 { margin-top: 40px; }
.install p, .install li { color: var(--muted); }
.install p { margin-top: 8px; }
.install ol { margin-top: 8px; padding-left: 22px; }
.install li + li { margin-top: 6px; }
.install a:not(.button) { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.install .button { margin-top: 16px; }

.faq { max-width: 760px; }
.faq h2 { margin-bottom: 32px; }
details { border-top: 0.5px solid var(--faint); }
details:last-of-type { border-bottom: 0.5px solid var(--faint); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding-bottom: 20px; color: var(--muted); }
details code, .install code { font-size: 15px; }

.closing {
  display: grid; place-items: center; align-content: center; gap: 28px;
  padding: clamp(96px, 14vw, 160px) 16px; text-align: center;
}
.closing img { width: 120px; }
.closing .fine { margin-top: -12px; }

footer { padding: 32px clamp(16px, 5vw, 48px); border-top: 0.5px solid var(--faint); font-size: 14px; color: var(--muted); text-align: center; }
footer a:hover { color: var(--ink); }

@media (max-width: 820px) {
  .menu-toggle { display: grid; }
  .nav nav {
    display: none; position: absolute; top: calc(100% - 4px); left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px;
    background: #1b1c1e; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px;
  }
  .nav.open nav { display: flex; }
  .nav nav a { padding: 12px; font-size: 17px; }
  .nav nav .pill { display: none; }
  .hero-copy { text-align: center; }
  .lede, .cmd { margin-inline: auto; }
  .ctas { justify-content: center; }
  .hero { grid-template-columns: 1fr; gap: 56px; }
  .hero-panel { justify-self: center; width: min(400px, 88vw); }
  .feature { grid-template-columns: 1fr; }
  .feature.flip .text { order: 0; }
  .lede, .feature p { font-size: 18px; }
}

.legal { max-width: 720px; margin: 0 auto; padding: 144px clamp(16px, 5vw, 48px) 128px; }
.legal h1 { font-size: clamp(40px, 5vw, 56px); }
.legal h2 { margin: 48px 0 16px; font-size: 28px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p, .legal ul + p { margin-top: 16px; }
.legal ul { padding-left: 24px; }
.legal li + li { margin-top: 12px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal code { font-size: 15px; overflow-wrap: anywhere; }
.legal .fine { margin: 12px 0 32px; }
.legal p + ul { margin-top: 12px; }

.js .r {
  opacity: 0; transform: translateY(28px); filter: blur(8px);
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease), filter 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .in .r { opacity: 1; transform: none; filter: none; }
