/*
  Copyright (c) 2026 Pierre Barre. All rights reserved.
  Landing page styles for ZeroFS.
*/

:root {
  --bg: #0a0a09;
  --bg-raise: #111110;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-hover: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-bright: rgba(255, 255, 255, 0.22);
  --text: #f4f3ef;
  --text-dim: #a8a69e;
  --text-faint: #6e6c64;
  --accent: #4d9fff;
  --accent-soft: rgba(77, 159, 255, 0.13);
  --sans: "Schibsted Grotesk", sans-serif;
  --mono: "Geist Mono", monospace;
  --r: 12px;
}

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

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--accent);
  color: #0a0a09;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* global fine grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(ellipse 46% 56% at 50% 12%, rgba(255, 255, 255, 0.07), transparent 65%),
    radial-gradient(ellipse 30% 40% at 62% 30%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.hero-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask: linear-gradient(to bottom, transparent 0, #000 150px);
  mask: linear-gradient(to bottom, transparent 0, #000 150px);
}

/* film grain */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='gn'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23gn)'/%3E%3C/svg%3E");
}

.hero .wrap {
  padding-top: 196px;
  padding-bottom: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@property --sweep {
  syntax: "<angle>";
  initial-value: 420deg;
  inherits: false;
}

@property --tail {
  syntax: "<angle>";
  initial-value: -70deg;
  inherits: false;
}

@property --soft {
  syntax: "<angle>";
  initial-value: 24deg;
  inherits: false;
}

.enso-tilt {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 760px;
  height: 760px;
  transform: translate(-50%, -50%) perspective(1100px) rotateX(var(--mtx, 0deg)) rotateY(var(--mty, 0deg));
  pointer-events: none;
}

.enso-prec {
  position: absolute;
  inset: 0;
  animation: precess 17s linear infinite;
}

.hero-enso {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #d6d3cb;
  opacity: 0.17;
  pointer-events: none;
  -webkit-mask: conic-gradient(from -90deg, transparent var(--tail), #000 calc(var(--tail) + 70deg), #000 calc(var(--sweep) - var(--soft)), transparent var(--sweep));
  mask: conic-gradient(from -90deg, transparent var(--tail), #000 calc(var(--tail) + 70deg), #000 calc(var(--sweep) - var(--soft)), transparent var(--sweep));
  animation: spin 120s linear infinite, sweep 2.6s cubic-bezier(.55, 0, .3, 1) .15s backwards;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes precess {
  0.00% {
    transform: perspective(1100px) rotateZ(0deg) rotateX(5deg) rotateZ(-0deg);
  }

  8.33% {
    transform: perspective(1100px) rotateZ(30deg) rotateX(5deg) rotateZ(-30deg);
  }

  16.67% {
    transform: perspective(1100px) rotateZ(60deg) rotateX(5deg) rotateZ(-60deg);
  }

  25.00% {
    transform: perspective(1100px) rotateZ(90deg) rotateX(5deg) rotateZ(-90deg);
  }

  33.33% {
    transform: perspective(1100px) rotateZ(120deg) rotateX(5deg) rotateZ(-120deg);
  }

  41.67% {
    transform: perspective(1100px) rotateZ(150deg) rotateX(5deg) rotateZ(-150deg);
  }

  50.00% {
    transform: perspective(1100px) rotateZ(180deg) rotateX(5deg) rotateZ(-180deg);
  }

  58.33% {
    transform: perspective(1100px) rotateZ(210deg) rotateX(5deg) rotateZ(-210deg);
  }

  66.67% {
    transform: perspective(1100px) rotateZ(240deg) rotateX(5deg) rotateZ(-240deg);
  }

  75.00% {
    transform: perspective(1100px) rotateZ(270deg) rotateX(5deg) rotateZ(-270deg);
  }

  83.33% {
    transform: perspective(1100px) rotateZ(300deg) rotateX(5deg) rotateZ(-300deg);
  }

  91.67% {
    transform: perspective(1100px) rotateZ(330deg) rotateX(5deg) rotateZ(-330deg);
  }

  100.00% {
    transform: perspective(1100px) rotateZ(360deg) rotateX(5deg) rotateZ(-360deg);
  }
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 980px;
  height: 980px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle closest-side, transparent 42%, rgba(168, 199, 250, 0.05) 55%, rgba(255, 255, 255, 0.10) 65%, rgba(120, 160, 255, 0.05) 79%, transparent 97%);
  filter: blur(44px);
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite alternate;
}

.hero-glow::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, transparent 46%, rgba(0, 0, 0, 0.7) 64%, transparent 88%);
}

@keyframes breathe {
  from {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

.hero-particles {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 0;
  height: 0;
  pointer-events: none;
  --r0: 310px;
}

.hero-particles canvas {
  position: absolute;
  opacity: 0;
  animation: motes-in 1.8s ease 0.8s forwards;
}

@keyframes motes-in {
  to {
    opacity: 1;
  }
}

@keyframes sweep {
  0% {
    --sweep: 155deg;
    --tail: 0deg;
    --soft: 85deg;
    opacity: 0;
  }

  14% {
    opacity: 0.17;
  }

  60% {
    --tail: 0deg;
    --soft: 85deg;
  }

  100% {
    --sweep: 384deg;
    --tail: -70deg;
    --soft: 24deg;
    opacity: 0.17;
  }
}

h1 {
  font-weight: 800;
  letter-spacing: -0.038em;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 1.02;
  max-width: 12em;
}

h1 .l {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

h1 .li {
  display: block;
  transform: translateY(112%);
  animation: lineup 1s cubic-bezier(.16, .84, .28, 1) forwards;
  background: linear-gradient(180deg, #fff 55%, rgba(255, 255, 255, 0.62));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1 .l:nth-child(1) .li {
  animation-delay: 0.25s;
}

h1 .l:nth-child(2) .li {
  animation-delay: 0.42s;
}

@keyframes lineup {
  to {
    transform: translateY(0);
  }
}

h1 .dot {
  -webkit-text-fill-color: var(--accent);
}

.lede {
  margin-top: 26px;
  max-width: 640px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-dim);
  font-weight: 400;
}

.lede strong {
  color: var(--text);
  font-weight: 600;
}

.install {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.cmd {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line-bright);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 32px rgba(0, 0, 0, 0.45);
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 14px;
}

.cmd .ps1 {
  color: var(--accent);
  user-select: none;
}

.cmd>button,
.cmd-copy {
  border: none;
  background: none;
  cursor: pointer;
  min-width: 72px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  transition: color .15s, border-color .15s, background .15s;
}

.cmd>button:hover,
.cmd-copy:hover {
  color: var(--text);
  border-color: var(--line-bright);
  background: var(--panel-hover);
}

.cmd .caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  vertical-align: -0.15em;
  margin-left: 7px;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}

.ghost {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #cbc9c1;
  padding: 18px 40px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.4));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: color .2s, border-color .2s, background .2s, box-shadow .2s, text-shadow .2s;
}

.ghost:hover {
  color: #fff;
  border-color: var(--accent);
  background: #01020a;
  box-shadow: 0 0 26px rgba(77, 159, 255, 0.4), inset 0 0 22px rgba(77, 159, 255, 0.28);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75), 0 0 8px rgba(77, 159, 255, 0.55);
  animation: ghostShake 0.4s linear infinite;
}

@keyframes ghostShake {

  0%,
  100% {
    transform: translate(0, 0);
  }

  10% {
    transform: translate(-1.1px, 0.6px);
  }

  20% {
    transform: translate(1px, -0.9px);
  }

  30% {
    transform: translate(-1.3px, 1px);
  }

  40% {
    transform: translate(1.2px, 0.5px);
  }

  50% {
    transform: translate(-0.6px, -1.2px);
  }

  60% {
    transform: translate(1.3px, 0.9px);
  }

  70% {
    transform: translate(-1px, -0.6px);
  }

  80% {
    transform: translate(0.9px, 1.1px);
  }

  90% {
    transform: translate(-0.8px, -1px);
  }
}

/* hyperspace portal */
.ghost-label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}

.ghost-mark {
  flex: none;
  width: 1.5em;
  height: 1.5em;
  color: #bcd6ff;
  filter: drop-shadow(0 0 5px rgba(77, 159, 255, 0.5));
  transition: opacity .3s, transform .4s;
}

.ghost:hover .ghost-mark {
  opacity: 0;
  transform: scale(1.8);
}

.ghost-arrow {
  display: inline-block;
  transition: transform .25s ease;
}

.ghost:hover .ghost-arrow {
  transform: translateX(5px);
}

.ghost-portal {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity .3s;
  color: #bcd6ff;
  pointer-events: none;
  perspective: 560px;
  perspective-origin: 50% 50%;
}

.ghost:hover .ghost-portal {
  opacity: 1;
}

.ghost-portal::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.9em;
  height: 0.9em;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205, 227, 255, 0.95), rgba(77, 159, 255, 0.5) 45%, transparent 72%);
  filter: blur(2px);
}

.ghost-portal svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.9em;
  height: 2.9em;
  margin: -1.45em 0 0 -1.45em;
  opacity: 0;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 6px rgba(77, 159, 255, 0.9));
  will-change: transform, opacity;
}

.ghost:hover .ghost-portal svg {
  animation: ensowarp 3s linear infinite;
}

.ghost:hover .ghost-portal svg:nth-child(2) {
  animation-delay: -0.375s;
}

.ghost:hover .ghost-portal svg:nth-child(3) {
  animation-delay: -0.75s;
}

.ghost:hover .ghost-portal svg:nth-child(4) {
  animation-delay: -1.125s;
}

.ghost:hover .ghost-portal svg:nth-child(5) {
  animation-delay: -1.5s;
}

.ghost:hover .ghost-portal svg:nth-child(6) {
  animation-delay: -1.875s;
}

.ghost:hover .ghost-portal svg:nth-child(7) {
  animation-delay: -2.25s;
}

.ghost:hover .ghost-portal svg:nth-child(8) {
  animation-delay: -2.625s;
}

@keyframes ensowarp {
  0% {
    opacity: 0;
    transform: translateZ(-1600px) rotate(-12deg);
  }

  10% {
    opacity: 1;
  }

  78% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateZ(520px) rotate(92deg);
  }
}

/* hyperspace noise */
.ghost-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: screen;
}

.ghost:hover .ghost-noise {
  opacity: 0.11;
  animation: ghostNoise 0.1s steps(3) infinite;
}

@keyframes ghostNoise {
  0% {
    background-position: 0 0;
  }

  33% {
    background-position: -54px 38px;
  }

  66% {
    background-position: 42px -30px;
  }

  100% {
    background-position: -28px -52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ghost:hover {
    animation: none;
  }

  .ghost:hover .ghost-portal svg {
    animation: none;
  }

  .ghost:hover .ghost-portal svg:nth-child(4) {
    opacity: 0.55;
    transform: translateZ(0) scale(1.1);
  }

  .ghost:hover .ghost-noise {
    animation: none;
    opacity: 0;
  }
}

.alt-install {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}

.alt-install code {
  color: var(--text-dim);
}

.alt-install a {
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
  transition: color .15s, border-color .15s;
}

.alt-install a:hover {
  color: var(--text);
  border-color: var(--line-bright);
}

/* tabbed install panel */
.hero .install {
  flex-direction: column;
}

.cmd.tabbed {
  display: block;
  padding: 0;
  overflow: hidden;
  text-align: left;
  width: min(640px, 92vw);
  background: rgba(0, 0, 0, 0.32);
}

.cmd-head {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 8px 0 6px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.cmd-tabs {
  display: flex;
}

.cmd-tabs button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  padding: 11px 16px 10px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}

.cmd-tabs button:hover {
  color: var(--text);
}

.cmd-tabs button[aria-selected="true"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.cmd-copy {
  align-self: center;
  color: var(--text-dim);
  border-color: var(--line-bright);
  background: rgba(0, 0, 0, 0.35);
}

.cmd-head .cmd-copy:hover {
  background: rgba(0, 0, 0, 0.5);
}

.cmd-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 15px 18px;
  min-width: 0;
  min-height: calc(3 * 1.4em + 14px + 42px);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-bright) transparent;
  line-height: 1.4;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent);
}

.cmd-body::-webkit-scrollbar {
  height: 8px;
}

.cmd-body::-webkit-scrollbar-thumb {
  background: var(--line-bright);
  border-radius: 999px;
}

.cmd-body::-webkit-scrollbar-track {
  background: transparent;
}

.cmd-body .line {
  display: flex;
  gap: 10px;
  white-space: pre;
  padding-right: 30px;
}

.cmd-body .line .ps1 {
  flex: none;
}

/* ---------- stats ---------- */
.stats {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.014), transparent);
}

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

.stat {
  padding: 44px 28px 36px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: none;
  padding-left: 0;
}

.stat .n {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.stat .n small {
  font-size: 0.55em;
  font-weight: 700;
}

.stat .n sup {
  font-family: var(--mono);
  font-size: 12px;
  -webkit-text-fill-color: var(--accent);
  margin-left: 4px;
  font-weight: 500;
}

.stat .d {
  margin-top: 13px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1.7;
}

.footnotes {
  padding: 16px 0 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
  color: var(--text-faint);
}

.footnotes sup {
  color: var(--accent);
}

.footnotes a {
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
}

.footnotes a:hover {
  color: var(--text);
  border-color: var(--line-bright);
}

.footnotes code {
  color: var(--text-dim);
}

/* ---------- sections ---------- */
section {
  border-bottom: 1px solid var(--line);
  position: relative;
}

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-top: 88px;
}

.sec-head .idx {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.sec-head .label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.06;
  margin-top: 20px;
  max-width: 15em;
  background: linear-gradient(180deg, #fff 60%, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sec-intro {
  margin-top: 20px;
  max-width: 620px;
  font-size: 17.5px;
  color: var(--text-dim);
}

.sec-intro a {
  color: var(--text);
  border-bottom: 1px solid var(--line-bright);
}

.sec-intro code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
}

/* cursor spotlight on cards */
.proof,
.proto,
.feat {
  position: relative;
  overflow: hidden;
}

.proof::after,
.proto::after,
.feat::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%), rgba(77, 159, 255, 0.09), transparent 65%);
  transition: opacity .3s;
}

.proof:hover::after,
.proto:hover::after,
.feat:hover::after {
  opacity: 1;
}

/* flow diagram */
.flow {
  margin-top: 52px;
}

.flow svg {
  width: 100%;
  height: auto;
  display: block;
}

.flow .flow-m {
  display: none;
  max-width: 400px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .flow .flow-d {
    display: none;
  }

  .flow .flow-m {
    display: block;
  }
}

.flow .wire {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1.5;
  fill: none;
}

.flow .node {
  fill: rgba(255, 255, 255, 0.03);
  stroke: rgba(255, 255, 255, 0.14);
}

.flow .nodelabel {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1.5px;
  fill: var(--text-dim);
}

.flow .wirelabel {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  fill: var(--text-faint);
}

@media (prefers-reduced-motion: reduce) {
  .flow .pulse {
    display: none;
  }

  .tabs.gliding .glider {
    transition: none;
  }
}

/* proof cards */
.proof-grid {
  margin-top: 56px;
  margin-bottom: 96px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.proof {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 30px 30px;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}

.proof:hover {
  border-color: var(--line-bright);
  background: var(--panel-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.proof h3 {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.proof h3::before {
  content: "▸";
  color: var(--accent);
  font-size: 11px;
}

.proof p {
  margin-top: 12px;
  font-size: 15.5px;
  color: var(--text-dim);
  max-width: 52ch;
}

.proof p code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--text);
}

.proof .src {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color .15s;
}

.proof:hover .src {
  color: var(--accent);
}

/* protocols */
.proto-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.proto {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 28px 30px;
  transition: border-color .2s, background .2s;
  display: flex;
  flex-direction: column;
}

.proto:hover {
  border-color: var(--line-bright);
  background: var(--panel-hover);
}

.proto .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.proto h3 {
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
  margin-top: 12px;
  line-height: 1.1;
}

.proto p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-dim);
  flex: 1;
}

.proto pre {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  color: var(--text);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px 16px;
  white-space: pre-wrap;
  word-break: break-word;
}

.proto pre .c {
  color: var(--text-faint);
}

.backends {
  margin-top: 28px;
  margin-bottom: 96px;
  padding: 18px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
}

.backends b {
  color: var(--text);
  font-weight: 600;
}

/* terminal */
.term-sec .wrap {
  padding-bottom: 96px;
}

.term {
  margin-top: 56px;
  position: relative;
  background: #0d0d0c;
  border: 1px solid var(--line-bright);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.95;
  padding: 0;
  overflow: hidden;
}

.term::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(255, 255, 255, 0.05), transparent 60%);
}

.term .titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.term .titlebar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: block;
}

.term .titlebar span {
  margin-left: 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.term .body {
  padding: 22px 26px 26px;
  overflow-x: auto;
  color: #d9d7cf;
}

.term .body>div {
  transition: opacity .2s;
}

.term .body>div.line-hidden {
  opacity: 0;
}

.term .body>div.line-active::after {
  content: "▋";
  color: var(--accent);
  margin-left: 6px;
  animation: blink 0.9s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.term .ps1 {
  color: var(--accent);
}

.term .c {
  color: var(--text-faint);
}

.term .out {
  color: #8e8c83;
}

.term .ok {
  color: #7dd97b;
}

.term-caption {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}

.term-caption b {
  color: var(--text);
  font-weight: 600;
}

/* asciinema casts */
.casts .wrap {
  padding-bottom: 96px;
}

.cast-frame {
  margin-top: 18px;
}

.cast-frame .body {
  padding: 0;
}

#cast-player {
  min-height: 320px;
}

/* features */
.feat-grid {
  margin-top: 56px;
  margin-bottom: 96px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 22px 26px;
  transition: border-color .2s, background .2s, transform .2s;
}

.feat:hover {
  border-color: var(--line-bright);
  background: var(--panel-hover);
  transform: translateY(-2px);
}

.feat .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.feat h3 {
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  margin-top: 13px;
  line-height: 1.35;
}

.feat p {
  margin-top: 9px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
}

/* web ui */
.shots .wrap {
  padding-bottom: 96px;
}

.tabs {
  margin-top: 48px;
  display: inline-flex;
  position: relative;
  max-width: 100%;
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs .glider {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  background: rgba(255, 255, 255, 0.085);
  border: 1px solid var(--line-bright);
  box-sizing: border-box;
  border-radius: 999px;
  pointer-events: none;
  will-change: transform, width;
}

.tabs.gliding .glider {
  transition: transform .35s cubic-bezier(.3, 1, .3, 1), width .35s cubic-bezier(.3, 1, .3, 1);
}

.tabs button {
  position: relative;
  z-index: 1;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: none;
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  transition: color .25s, transform .1s;
}

.tabs button:hover {
  color: var(--text-dim);
}

.tabs button[aria-selected="true"] {
  color: var(--text);
}

.tabs button:active {
  transform: scale(0.97);
}

.browser {
  margin-top: 18px;
  background: #0d0d0c;
  border: 1px solid var(--line-bright);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.browser .chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.browser .chrome i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: block;
}

.browser .chrome .url {
  margin-left: 12px;
  flex: 1;
  max-width: 360px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-faint);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser .view {
  position: relative;
  aspect-ratio: 1600 / 933;
}

.browser .view img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity .35s ease;
}

.browser .view img.active {
  opacity: 1;
}

.shot-caption {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  min-height: 1.8em;
}

.shot-caption b {
  color: var(--text-dim);
  font-weight: 500;
}

/* closer */
.closer {
  text-align: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: clip;
}

.closer::before {
  content: "";
  position: absolute;
  inset: auto -20% -60%;
  height: 120%;
  background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(255, 255, 255, 0.06), transparent 65%);
  pointer-events: none;
}

.closer .wrap {
  padding-top: 120px;
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closer svg {
  width: 72px;
  height: 72px;
  color: var(--text);
  margin-bottom: 36px;
  filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.25));
}

.closer h2 {
  margin: 0 auto;
  max-width: 16em;
  text-align: center;
}

.closer .install {
  margin-top: 48px;
}

.closer .links {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.closer .links a {
  color: var(--text-dim);
  margin: 0 14px;
  transition: color .15s;
}

.closer .links a:hover {
  color: var(--accent);
}

/* reveal */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s cubic-bezier(.2, .6, .2, 1), transform .8s cubic-bezier(.2, .6, .2, 1);
}

.rv.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-enso {
    animation: none;
  }

  .enso-prec {
    animation: none;
  }

  .hero-glow {
    animation: none;
  }

  .hero-particles {
    display: none;
  }

  h1 .li {
    animation: none;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* responsive */
@media (max-width: 980px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(odd) {
    border-left: none;
    padding-left: 0;
  }

  .stat:nth-child(even) {
    padding-left: 28px;
  }

  .stat:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

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

  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .enso-tilt {
    width: 560px;
    height: 560px;
  }

  .hero-glow {
    width: 720px;
    height: 720px;
  }

  .hero-particles {
    --r0: 228px;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 20px;
  }


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

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

  .cmd {
    font-size: 12px;
    flex-wrap: wrap;
  }

  .hero .wrap {
    padding-top: 156px;
    padding-bottom: 72px;
  }

  h1 {
    font-size: clamp(34px, 10.8vw, 46px);
  }

  .sec-head {
    padding-top: 64px;
  }
}
