/* Diffuse marketing — blueprint instrument on warm paper.
   Motion uses transform/opacity only. Backdrop-blur is reserved for the island nav. */

:root {
  --indigo: #2f4a8a;
  --indigo-mid: #4a66a8;
  --indigo-bright: #8ba4e8;
  --paper: #f3f0e8;
  --cream: #fffcf7;
  --ink: #1a1c22;
  --night: #0a0b0f;
  --night-2: #12131a;
  --night-3: #1c1d26;
  --subtle: #5a5e68;
  --muted: #9a9da8;
  --added: #176b45;
  --added-soft: #53c08a;
  --removed: #c41e3a;
  --significant: #c45c12;
  --notable: #9a6b00;
  --hair: rgba(26, 28, 34, 0.1);
  --hair-light: rgba(243, 240, 232, 0.12);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --nav-h: 4.5rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 72rem;
  --radius: 1.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--night);
  font-family: var(--sans);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.55;
  letter-spacing: -0.011em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--indigo-bright);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.6rem 1rem;
  background: var(--cream);
  color: var(--ink);
  border-radius: 999px;
}

.skip:focus {
  top: 1rem;
}

/* Grain — fixed overlay only */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.9'/></svg>");
}

/* Island nav — floats on the hero, never sits on a paper strip */
.nav-wrap {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: max(0.85rem, env(safe-area-inset-top)) var(--gutter) 0;
  background: transparent;
  pointer-events: none;
}

.nav-wrap > * {
  pointer-events: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: min(100%, 58rem);
  padding: 0.4rem 0.45rem 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(10, 11, 15, 0.72);
  border: 1px solid var(--hair-light);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 12px 40px rgba(10, 11, 15, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.7s var(--ease), background 0.7s var(--ease);
}

.nav.is-scrolled {
  background: rgba(10, 11, 15, 0.88);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand svg {
  width: 1.7rem;
  height: 1.7rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-links a {
  color: rgba(243, 240, 232, 0.78);
  text-decoration: none;
  font-size: 0.86rem;
  padding: 0.45rem 0.68rem;
  border-radius: 999px;
  transition: color 0.5s var(--ease), background 0.5s var(--ease);
}

.nav-links a:hover {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.is-active {
  color: var(--ink);
  background: var(--paper);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.35rem;
  padding: 0.4rem 0.45rem 0.4rem 1rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.5s var(--ease);
}

.nav-cta .icon-orb {
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--indigo);
  color: var(--paper);
  transition: transform 0.55s var(--ease);
}

.icon {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
  flex-shrink: 0;
  overflow: visible;
}

.sprites {
  position: absolute;
  left: -100vw;
  width: 0;
  height: 0;
  pointer-events: none;
}

.nav-cta:hover {
  transform: scale(0.985);
}

.nav-cta:hover .icon-orb {
  transform: translate(1px, -1px) scale(1.06);
}

.nav-cta:active {
  transform: scale(0.97);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  height: 1.5px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.55s var(--ease), opacity 0.4s var(--ease);
}

.menu-toggle span:first-child {
  top: 1.05rem;
}

.menu-toggle span:last-child {
  top: 1.45rem;
}

.menu-toggle.is-open span:first-child {
  transform: translateY(0.2rem) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-0.2rem) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100dvh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: clip;
  color: var(--paper);
  background:
    radial-gradient(1200px 700px at 75% -10%, rgba(47, 74, 138, 0.55), transparent 55%),
    radial-gradient(900px 500px at 10% 110%, rgba(139, 164, 232, 0.12), transparent 50%),
    var(--night);
  padding: 8.5rem var(--gutter) 5rem;
}

.hero__constellation {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__constellation svg {
  position: absolute;
  right: -8%;
  top: 6%;
  width: min(72vw, 46rem);
  height: auto;
  opacity: 0.9;
  animation: drift 48s var(--ease) infinite alternate;
}

.orbit-ring {
  fill: none;
  stroke: rgba(139, 164, 232, 0.18);
  stroke-width: 1;
}

.node {
  fill: none;
  stroke: var(--paper);
  stroke-width: 7;
  transform-origin: center;
  transform-box: fill-box;
  animation: pulse 5.6s var(--ease-out) infinite;
}

.node:nth-child(2) {
  animation-delay: 0.4s;
}
.node:nth-child(3) {
  animation-delay: 0.8s;
}
.node:nth-child(4) {
  animation-delay: 1.2s;
}
.node:nth-child(5) {
  animation-delay: 1.6s;
}
.node:nth-child(6) {
  animation-delay: 2s;
}
.node:nth-child(7) {
  animation-delay: 2.4s;
}

.hero__copy {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--hair-light);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--indigo-bright);
}

.live-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--added-soft);
  box-shadow: 0 0 0 0 rgba(83, 192, 138, 0.7);
  animation: ping 2.4s var(--ease-out) infinite;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3.1rem, 7.2vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--indigo-bright);
}

.lede {
  max-width: 34rem;
  margin: 1.5rem 0 2rem;
  color: rgba(243, 240, 232, 0.78);
  font-size: 1.15rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.5rem 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: transform 0.55s var(--ease), background 0.55s var(--ease);
}

.btn:hover {
  transform: scale(0.985);
}

.btn:active {
  transform: scale(0.97);
}

.btn .icon-orb {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  transition: transform 0.55s var(--ease);
}

.btn:hover .icon-orb {
  transform: translate(1px, -1px) scale(1.05);
}

.btn-primary {
  background: var(--paper);
  color: var(--ink);
}

.btn-primary .icon-orb {
  background: var(--indigo);
  color: var(--paper);
}

.btn-ghost {
  background: transparent;
  border-color: var(--hair-light);
  color: var(--paper);
}

.btn-ghost .icon-orb {
  background: rgba(255, 255, 255, 0.08);
}

.btn-ink {
  background: var(--indigo);
  color: var(--paper);
}

.btn-ink .icon-orb {
  background: rgba(255, 255, 255, 0.14);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 3.25rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.hero__meta strong {
  display: block;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.15rem;
}

/* Marquees */
.marquee-band {
  background: var(--night);
  color: var(--paper);
  border-top: 1px solid var(--hair-light);
  padding: 1.1rem 0 1.35rem;
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee + .marquee {
  margin-top: 0.55rem;
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 42s linear infinite;
}

.marquee--reverse .marquee__track {
  animation-direction: reverse;
  animation-duration: 54s;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0 1.4rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: rgba(243, 240, 232, 0.72);
}

.chip::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--indigo-bright);
}

.chip--quiet::before {
  background: var(--removed);
}

.chip--ok::before {
  background: var(--added-soft);
}

/* Sections */
main {
  background: var(--paper);
}

.section,
.cli,
.close,
#faq,
#get,
#observe,
#day,
#bounds,
#start {
  scroll-margin-top: 5.5rem;
}

.section {
  padding: 7.5rem var(--gutter);
}

.section--tight {
  padding-top: 5rem;
}

.section__head {
  display: grid;
  gap: 1rem;
  max-width: 38rem;
  margin-bottom: 3rem;
}

.kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--indigo);
}

.section h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.section h2 em {
  font-style: italic;
  color: var(--indigo);
}

.section p.sub {
  margin: 0;
  color: var(--subtle);
}

.shell {
  padding: 0.4rem;
  border-radius: calc(var(--radius) + 0.4rem);
  background: rgba(26, 28, 34, 0.04);
  border: 1px solid var(--hair);
}

.shell__inner {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Device stage */
.stage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.1rem;
  align-items: stretch;
}

.shot {
  cursor: zoom-in;
  background: var(--night-2);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 1.1s var(--ease);
}

.shot:hover img {
  transform: scale(1.03);
}

.shot--mac {
  min-height: 28rem;
}

.shot--mac .shell__inner,
.shot--mac img {
  height: 100%;
}

.phone-row .shell__inner {
  aspect-ratio: 9 / 17;
  max-height: 26rem;
}

.phone-row img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.side-stack {
  display: grid;
  gap: 1.1rem;
}

.phone-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.device {
  position: relative;
}

.device figcaption {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  margin: 0;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(10, 11, 15, 0.7);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.watch-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: center;
  padding: 1.1rem;
  background: var(--night);
  color: var(--paper);
}

.watch-card img {
  width: 7.2rem;
  height: 7.2rem;
  object-fit: cover;
  border-radius: 1.6rem;
}

.watch-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.watch-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Platforms */
.platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.card {
  height: 100%;
  padding: 1.5rem 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--hair);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.card--dark {
  background: var(--night);
  color: var(--paper);
  border-color: transparent;
}

.card h3 {
  margin: 0.15rem 0 0.55rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.card p {
  margin: 0;
  color: var(--subtle);
}

.card--dark p {
  color: var(--muted);
}

.card img {
  margin-top: 1.2rem;
  border-radius: 1.1rem;
  width: 100%;
  object-fit: cover;
}

.card--dark img {
  max-height: 22rem;
  object-position: top;
}

.tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
}

.card--dark .tag {
  color: var(--indigo-bright);
}

/* Principles */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.principle {
  padding: 1.6rem 1.5rem 1.5rem;
  border-top: 1px solid var(--ink);
}

.principle h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
}

.principle p {
  margin: 0;
  color: var(--subtle);
}

/* Observe */
.observe {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1.2rem;
  align-items: stretch;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.cap-card {
  padding: 1.35rem 1.25rem 1.2rem;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--hair);
}

.cap-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

.cap-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cap-card li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.38rem 0;
  border-top: 1px solid var(--hair);
  font-size: 0.9rem;
  color: var(--subtle);
}

.cap-card li:first-child {
  border-top: 0;
}

.cap-card li strong {
  color: var(--ink);
  font-weight: 600;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.5rem;
}

.tools span {
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: var(--cream);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.rhythm {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.rhythm article {
  padding: 1.35rem 1.2rem;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--hair);
}

.rhythm h3 {
  margin: 0.2rem 0 0.45rem;
  font-size: 1.1rem;
}

.rhythm p {
  margin: 0;
  color: var(--subtle);
  font-size: 0.95rem;
}

.bounds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.bounds article {
  padding: 1.6rem 1.5rem 1.4rem;
  border-radius: var(--radius);
}

.bounds--in {
  background: var(--cream);
  border: 1px solid var(--hair);
}

.bounds--out {
  background: var(--night);
  color: var(--paper);
}

.bounds h3 {
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
}

.bounds ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bounds li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--hair);
  color: var(--subtle);
}

.bounds--out li {
  border-top-color: var(--hair-light);
  color: var(--muted);
}

.bounds li:first-child {
  border-top: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.steps article {
  padding: 1.5rem 1.35rem 1.4rem;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--hair);
}

.steps h3 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.2rem;
}

.steps p,
.steps pre {
  margin: 0;
  color: var(--subtle);
}

.steps pre {
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.8rem;
  background: var(--night);
  color: var(--indigo-bright);
  font-family: var(--mono);
  font-size: 0.78rem;
  overflow: auto;
}

.day {
  display: grid;
  gap: 0;
  margin-top: 1.5rem;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
}

.day li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--hair);
  list-style: none;
}

.day {
  padding: 0;
}

.day ol {
  margin: 0;
  padding: 0;
}

.day li:first-child {
  border-top: 0;
}

.day time {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--indigo);
}

.cli-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cli-grid article {
  padding: 1rem 1.05rem;
  border-radius: 1.1rem;
  border: 1px solid var(--hair-light);
  background: rgba(255, 255, 255, 0.03);
}

.cli-grid code {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--indigo-bright);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.cli-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.delta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--indigo);
}

/* Privacy */
.privacy {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
}

.ledger li {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1.15rem;
  border-top: 1px solid var(--hair);
  font-size: 0.95rem;
}

.ledger li:first-child {
  border-top: 0;
}

.cls {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cls-public {
  color: var(--added);
}
.cls-local {
  color: var(--indigo);
}
.cls-sensitive {
  color: var(--significant);
}
.cls-restricted {
  color: var(--removed);
}

.never {
  margin-top: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: 1.2rem;
  background: var(--night);
  color: var(--paper);
  font-size: 0.92rem;
}

.never strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--indigo-bright);
}

/* CLI */
.cli {
  background: var(--night);
  color: var(--paper);
}

.cli .section__head {
  max-width: 42rem;
}

.cli .kicker,
.cli h2 em {
  color: var(--indigo-bright);
}

.cli p.sub {
  color: var(--muted);
}

.terminal {
  margin-top: 2rem;
  padding: 0.45rem;
  border-radius: calc(var(--radius) + 0.2rem);
  border: 1px solid var(--hair-light);
  background: rgba(255, 255, 255, 0.03);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem 0.7rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #3d4048;
}

.dot:nth-child(1) {
  background: #c45c5c;
}
.dot:nth-child(2) {
  background: #c4a05c;
}
.dot:nth-child(3) {
  background: #5c8a6a;
}

.terminal pre {
  margin: 0;
  padding: 0.4rem 1.1rem 1.2rem;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.7;
  color: rgba(243, 240, 232, 0.88);
}

.terminal .cmt {
  color: #6e7380;
}

.terminal .cmd {
  color: var(--indigo-bright);
}

.copy-btn {
  margin-left: auto;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.68rem;
}

/* FAQ */
.faq {
  max-width: 46rem;
  margin: 0 auto;
}

details {
  border-top: 1px solid var(--hair);
  padding: 1.05rem 0;
}

details:last-child {
  border-bottom: 1px solid var(--hair);
}

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

.faq-plus {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--indigo);
  flex-shrink: 0;
  margin-top: 0.15rem;
  transition: transform 0.5s var(--ease);
}

details[open] .faq-plus {
  transform: rotate(45deg);
}

details p {
  margin: 0.7rem 0 0.2rem;
  color: var(--subtle);
  max-width: 40rem;
}

/* Close */
.close {
  text-align: center;
  padding: 6.5rem var(--gutter) 7.5rem;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(47, 74, 138, 0.18), transparent 60%),
    var(--paper);
}

.close h2 {
  margin: 0 auto 0.8rem;
  max-width: 18ch;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: -0.04em;
  font-weight: 500;
}

.close p {
  margin: 0 auto 1.8rem;
  max-width: 32rem;
  color: var(--subtle);
}

.close .cta-row {
  justify-content: center;
}

/* Footer */
footer {
  background: var(--night);
  color: rgba(243, 240, 232, 0.78);
  padding: 3.2rem var(--gutter) 2.4rem;
}

.foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto 2.4rem;
}

.foot h2 {
  margin: 0.4rem 0 0.5rem;
  font-family: var(--display);
  font-size: 1.8rem;
  color: var(--paper);
  font-weight: 500;
}

.foot p {
  margin: 0;
  max-width: 22rem;
  color: var(--muted);
}

.foot h3 {
  margin: 0 0 0.7rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--indigo-bright);
}

.foot a {
  display: block;
  width: fit-content;
  color: var(--paper);
  text-decoration: none;
  padding: 0.18rem 0;
  opacity: 0.82;
}

.foot a:hover {
  opacity: 1;
}

.legal {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hair-light);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(10, 11, 15, 0.86);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 86dvh;
  border-radius: 1rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.lightbox button {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.lightbox .icon {
  width: 1.15rem;
  height: 1.15rem;
}

/* Reveals (only when JS opted in) */
.js .reveal {
  opacity: 0;
  transform: translateY(1.6rem);
  filter: blur(8px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out),
    filter 0.9s var(--ease-out);
}

/* Overlay menu (mobile) */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: none;
  padding: 6.5rem var(--gutter) 2rem;
  background: rgba(10, 11, 15, 0.92);
  backdrop-filter: blur(22px);
}

.overlay.is-open {
  display: grid;
  align-content: start;
  gap: 0.4rem;
}

.overlay a {
  color: var(--paper);
  text-decoration: none;
  font-family: var(--display);
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(1.4rem);
}

.overlay.is-open a {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.overlay.is-open a:nth-child(1) {
  transition-delay: 0.05s;
}
.overlay.is-open a:nth-child(2) {
  transition-delay: 0.1s;
}
.overlay.is-open a:nth-child(3) {
  transition-delay: 0.15s;
}
.overlay.is-open a:nth-child(4) {
  transition-delay: 0.2s;
}
.overlay a.is-active {
  color: var(--indigo-bright);
}

.overlay.is-open a:nth-child(6) {
  transition-delay: 0.3s;
}
.overlay.is-open a:nth-child(7) {
  transition-delay: 0.35s;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(83, 192, 138, 0.55);
  }
  100% {
    box-shadow: 0 0 0 0.7rem rgba(83, 192, 138, 0);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) rotate(-4deg);
  }
  to {
    transform: translate3d(-3%, 4%, 0) rotate(3deg);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 960px) {
  .stage,
  .platforms,
  .principles,
  .privacy,
  .observe,
  .cap-grid,
  .rhythm,
  .bounds,
  .steps,
  .cli-grid,
  .foot {
    grid-template-columns: 1fr;
  }

  .cap-grid {
    grid-template-columns: 1fr;
  }

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

  .platforms article:first-child {
    grid-row: auto;
  }

  .shot--mac {
    min-height: 16rem;
  }

  .ledger li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding-top: 6.5rem;
    align-items: center;
  }

  .hero__constellation svg {
    right: -28%;
    top: -6%;
    width: 120vw;
    opacity: 0.45;
  }

  .phone-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4.5rem 1.15rem;
  }

  .rhythm,
  .steps,
  .cli-grid,
  .bounds {
    grid-template-columns: 1fr;
  }

  .day li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .watch-card {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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