@font-face {
  font-family: "Pixel12";
  src: url("../fonts/pixel-12.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: normal;
}

:root {
  --font: "Pixel12", "Microsoft YaHei", "PingFang SC", sans-serif;
  --paper: #f7f7f4;
  --surface: #ffffff;
  --surface-2: #eeeeea;
  --ink: #181818;
  --ink-2: #42423f;
  --muted: #696963;
  --line: #181818;
  --line-soft: #c8c8c1;
  --accent: #ff6b63;
  --accent-soft: #ffd6d2;
  --blue: #3975ed;
  --green: #21b968;
  --header-bg: rgb(247 247 244 / 0.95);
  --shell: 1380px;
  --gutter: clamp(20px, 4.8vw, 72px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-move: cubic-bezier(0.25, 1, 0.5, 1);
  --z-sticky: 20;
  --z-header: 50;
  --z-overlay: 80;
}

html[data-theme="dark"] {
  --paper: #171717;
  --surface: #222220;
  --surface-2: #2c2c29;
  --ink: #f4f4f0;
  --ink-2: #d1d1cb;
  --muted: #adada6;
  --line: #f4f4f0;
  --line-soft: #575752;
  --accent: #ff7c73;
  --accent-soft: #5b2926;
  --blue: #73a1ff;
  --green: #48d58a;
  --header-bg: rgb(23 23 23 / 0.95);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--accent) var(--paper);
  scrollbar-width: thin;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: none;
}

body.is-menu-open {
  overflow: hidden;
}

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

button,
a {
  color: inherit;
  font: inherit;
}

button {
  padding: 0;
}

a {
  text-decoration: none;
}

img,
canvas {
  display: block;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p,
figure,
dl,
dd,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

[data-theme-switching] *,
[data-theme-switching] *::before,
[data-theme-switching] *::after {
  transition: none !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: calc(var(--z-overlay) + 2);
  padding: 10px 14px;
  border: 2px solid #181818;
  background: #ffffff;
  color: #181818;
  box-shadow: 4px 4px 0 #181818;
  transform: translateY(-180%);
  transition: transform 140ms steps(3, end);
}

.skip-link:focus {
  transform: translateY(0);
}

.noscript {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: calc(var(--z-overlay) + 2);
  max-width: 420px;
  padding: 14px;
  border: 2px solid #181818;
  background: #ffffff;
  color: #181818;
  box-shadow: 4px 4px 0 #ff6b63;
}

/* Load sequence */

.loader {
  display: none;
}

.js .loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: grid;
  place-content: center;
  gap: 18px;
  background: #f7f7f4;
  color: #181818;
  text-align: center;
  clip-path: inset(0);
  transition:
    clip-path 520ms steps(8, end),
    visibility 0s linear 520ms;
}

.js.is-ready .loader {
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
}

.loader-mark {
  display: grid;
  grid-template-columns: repeat(2, 18px);
  gap: 5px;
  justify-content: center;
}

.loader-mark span {
  width: 18px;
  height: 18px;
  border: 3px solid #181818;
  background: #ffffff;
  animation: loader-pixel 640ms steps(2, end) infinite;
}

.loader-mark span:nth-child(2) {
  animation-delay: 120ms;
  background: #ff6b63;
}

.loader-mark span:nth-child(3) {
  animation-delay: 360ms;
  background: #3975ed;
}

.loader-mark span:nth-child(4) {
  animation-delay: 240ms;
}

.loader p {
  font-size: 12px;
  letter-spacing: 0.08em;
}

.loader-line {
  width: min(240px, 66vw);
  height: 6px;
  border: 2px solid #181818;
  background: #ffffff;
}

.loader-line i {
  display: block;
  width: 100%;
  height: 100%;
  background: #181818;
  transform: scaleX(0);
  transform-origin: left;
  animation: loader-line 840ms steps(10, end) forwards;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: var(--z-header);
  border-bottom: 2px solid transparent;
  background: var(--header-bg);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 0 rgb(24 24 24 / 0.08);
}

.header-shell {
  display: flex;
  width: min(100%, var(--shell));
  min-height: 72px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  line-height: 1;
}

.brand img {
  image-rendering: pixelated;
}

.desktop-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
}

.desktop-nav a {
  position: relative;
  padding: 24px 0 20px;
  color: var(--muted);
  font-size: 13px;
  transition: color 150ms ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 15px;
  left: 0;
  height: 3px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms steps(4, end);
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--ink);
}

.desktop-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.menu-toggle {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 120ms steps(2, end),
    background-color 150ms ease;
}

.theme-toggle:hover,
.menu-toggle:hover {
  background: var(--accent-soft);
}

.theme-toggle:active,
.menu-toggle:active {
  transform: translate(2px, 2px);
}

.theme-icon {
  display: grid;
  grid-template-columns: repeat(2, 6px);
  gap: 3px;
}

.theme-icon i {
  width: 6px;
  height: 6px;
  background: var(--ink);
}

html[data-theme="dark"] .theme-icon i:nth-child(2),
html[data-theme="dark"] .theme-icon i:nth-child(3) {
  opacity: 0;
}

.header-github {
  display: inline-flex;
  height: 38px;
  padding: 0 15px;
  border: 2px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  align-items: center;
  gap: 10px;
  font-size: 13px;
  transition: transform 120ms steps(2, end);
}

.header-github:hover {
  transform: translate(-2px, -2px);
}

.menu-toggle {
  display: none;
  align-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 160ms steps(3, end);
}

.site-header.is-menu-open .menu-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.site-header.is-menu-open .menu-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

/* Shared */

.section-shell {
  width: min(100%, var(--shell));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 20px;
  border: 3px solid var(--line);
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 14px;
  transition:
    transform 120ms steps(2, end),
    box-shadow 120ms steps(2, end);
}

.button-primary {
  background: var(--accent);
  color: #181818;
  box-shadow: 5px 5px 0 var(--line);
}

.button-primary:hover {
  box-shadow: 2px 2px 0 var(--line);
  transform: translate(3px, 3px);
}

.button-dark {
  border-color: #181818;
  background: #181818;
  color: #ffffff;
  box-shadow: 5px 5px 0 rgb(24 24 24 / 0.25);
}

.button-dark:hover {
  box-shadow: 2px 2px 0 rgb(24 24 24 / 0.25);
  transform: translate(3px, 3px);
}

.section-intro {
  display: flex;
  padding-bottom: clamp(52px, 6vw, 88px);
  align-items: end;
  justify-content: space-between;
  gap: 48px;
}

.section-intro h2,
.analytics-copy h2,
.deploy-copy h2,
.closing h2 {
  max-width: 760px;
  font-size: clamp(34px, 5.2vw, 76px);
  font-weight: normal;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.section-intro > p {
  max-width: 540px;
  color: var(--ink-2);
  font-size: clamp(15px, 1.35vw, 18px);
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  min-height: min(940px, 100svh);
  overflow: hidden;
  padding: 132px 0 90px;
  align-items: center;
  border-bottom: 3px solid var(--line);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
  image-rendering: pixelated;
  pointer-events: none;
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, var(--shell));
  margin: 0 auto;
  padding: 0 var(--gutter);
  grid-template-columns: minmax(350px, 0.82fr) minmax(520px, 1.28fr);
  align-items: center;
  gap: clamp(54px, 7vw, 112px);
}

.hero-copy {
  max-width: 610px;
}

.is-ready .hero-copy {
  animation: hero-copy-in 620ms var(--ease-out);
}

.hero-label {
  display: inline-flex;
  margin-bottom: 26px;
  padding: 7px 10px;
  border: 2px solid var(--line);
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--accent);
  font-size: 12px;
}

.hero h1 {
  font-size: clamp(48px, 6.2vw, 88px);
  font-weight: normal;
  letter-spacing: -0.038em;
  line-height: 1.03;
}

.hero h1 span,
.hero h1 strong {
  display: block;
}

.hero h1 strong {
  color: var(--accent);
  font-weight: normal;
  text-shadow: 3px 3px 0 var(--line);
}

html[data-theme="dark"] .hero h1 strong {
  text-shadow: 3px 3px 0 #f4f4f0;
}

.hero-summary {
  max-width: 560px;
  margin-top: 28px;
  color: var(--ink-2);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  margin-top: 34px;
  align-items: center;
  gap: 28px;
}

.text-action {
  border-bottom: 2px solid var(--line);
  font-size: 14px;
  transition:
    color 150ms ease,
    border-color 150ms ease;
}

.text-action:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-facts {
  display: flex;
  margin-top: 42px;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: var(--muted);
  font-size: 12px;
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-facts i {
  width: 7px;
  height: 7px;
  background: var(--green);
  box-shadow: 2px 2px 0 var(--line);
}

.product-window {
  position: relative;
  border: 3px solid var(--line);
  background: var(--surface);
  box-shadow: 10px 10px 0 var(--line);
  transform: perspective(1200px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  transform-style: preserve-3d;
  transition: transform 180ms var(--ease-move);
}

.is-ready .product-window {
  animation: product-window-in 820ms steps(12, end) 120ms;
}

.window-bar {
  display: flex;
  height: 40px;
  padding: 0 12px;
  border-bottom: 3px solid var(--line);
  background: var(--surface-2);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
}

.window-bar > div {
  display: flex;
  gap: 5px;
}

.window-bar i {
  width: 8px;
  height: 8px;
  border: 2px solid var(--line);
  background: var(--surface);
}

.window-bar i:first-child {
  background: var(--accent);
}

.window-bar b {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-weight: normal;
}

.window-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1928 / 816;
  background: #eceff3;
}

.window-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-scan {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: rgb(255 107 99 / 0.85);
  box-shadow: 0 4px 0 rgb(57 117 237 / 0.18);
  opacity: 0.7;
  animation: scan-screen 4.8s steps(18, end) infinite;
}

.sync-chip {
  position: absolute;
  right: 20px;
  bottom: -24px;
  display: flex;
  min-width: 184px;
  padding: 10px 12px;
  border: 3px solid var(--line);
  background: var(--surface);
  box-shadow: 5px 5px 0 var(--green);
  align-items: center;
  gap: 10px;
  transform: translateZ(34px);
}

.sync-chip > i {
  width: 9px;
  height: 9px;
  background: var(--green);
  box-shadow: 0 0 0 3px rgb(33 185 104 / 0.22);
  animation: status-pulse 1.4s steps(2, end) infinite;
}

.sync-chip span {
  display: grid;
  gap: 1px;
}

.sync-chip strong {
  font-size: 11px;
  font-weight: normal;
}

.sync-chip small {
  color: var(--muted);
  font-size: 9px;
}

/* Flow */

.flow {
  padding: clamp(104px, 12vw, 176px) 0;
  background: var(--surface);
}

.flow-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
}

.flow-line {
  position: absolute;
  top: -7px;
  right: 0;
  left: 0;
  height: 11px;
  overflow: hidden;
  pointer-events: none;
}

.flow-line i {
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border: 2px solid var(--line);
  background: var(--accent);
  animation: flow-token 5.2s steps(24, end) infinite;
}

.flow-rail article {
  min-height: 210px;
  padding: 32px clamp(16px, 2.1vw, 30px);
  border-right: 2px solid var(--line);
}

.flow-rail article:last-child {
  border-right: 0;
}

.flow-rail article > span {
  display: grid;
  width: 32px;
  height: 32px;
  margin-bottom: 40px;
  place-items: center;
  border: 2px solid var(--line);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--line);
  font-size: 12px;
}

.flow-rail h3 {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: normal;
}

.flow-rail p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.capability-list {
  display: grid;
  margin-top: clamp(70px, 9vw, 120px);
  grid-template-columns: repeat(2, 1fr);
  border-top: 2px solid var(--line);
}

.capability-list article {
  display: grid;
  min-height: 190px;
  padding: 34px 34px 34px 0;
  grid-template-columns: 46px 1fr;
  gap: 22px;
  border-bottom: 2px solid var(--line);
}

.capability-list article:nth-child(odd) {
  padding-right: clamp(32px, 5vw, 72px);
  border-right: 2px solid var(--line);
}

.capability-list article:nth-child(even) {
  padding-left: clamp(32px, 5vw, 72px);
}

.capability-list article > span {
  color: var(--accent);
  font-size: 13px;
}

.capability-list h3 {
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: normal;
}

.capability-list p {
  max-width: 52ch;
  margin-top: 13px;
  color: var(--ink-2);
  font-size: 14px;
}

/* Analytics */

.analytics {
  padding: clamp(110px, 13vw, 190px) 0;
  overflow: hidden;
  background: #181818;
  color: #f7f7f4;
}

.analytics-shell {
  display: grid;
  width: min(100%, var(--shell));
  margin: 0 auto;
  padding: 0 var(--gutter);
  grid-template-columns: minmax(300px, 0.72fr) minmax(560px, 1.28fr);
  align-items: center;
  gap: clamp(70px, 9vw, 138px);
}

.analytics-copy h2 {
  color: #ffffff;
}

.analytics-copy > p {
  max-width: 47ch;
  margin-top: 28px;
  color: #bebeb8;
  font-size: 16px;
}

.chart-tabs {
  display: inline-flex;
  margin-top: 38px;
  border: 2px solid #f7f7f4;
}

.chart-tab {
  min-width: 74px;
  padding: 10px 14px;
  border: 0;
  border-right: 2px solid #f7f7f4;
  background: transparent;
  color: #f7f7f4;
  cursor: pointer;
  font-size: 12px;
  transition:
    color 100ms steps(2, end),
    background-color 100ms steps(2, end);
}

.chart-tab:last-child {
  border-right: 0;
}

.chart-tab.is-active {
  background: var(--accent);
  color: #181818;
}

.analytics-stats {
  display: flex;
  margin-top: 50px;
  gap: 48px;
}

.analytics-stats div {
  display: grid;
  gap: 6px;
}

.analytics-stats dt {
  color: #8f8f89;
  font-size: 11px;
}

.analytics-stats dd {
  color: #ffffff;
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1;
}

.analytics-copy > small {
  display: block;
  margin-top: 24px;
  color: #7d7d78;
  font-size: 10px;
}

.chart-frame {
  border: 3px solid #f7f7f4;
  background: #20201e;
  box-shadow: 10px 10px 0 var(--accent);
}

.chart-head {
  display: flex;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 2px solid #f7f7f4;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #d7d7d1;
  font-size: 10px;
}

.chart-head b {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #62df9b;
  font-weight: normal;
}

.chart-head i {
  width: 7px;
  height: 7px;
  background: currentColor;
  animation: status-pulse 1.2s steps(2, end) infinite;
}

.chart-wrap {
  position: relative;
  height: clamp(320px, 36vw, 470px);
}

#insight-chart {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.chart-axis {
  display: grid;
  padding: 0 20px 15px;
  grid-template-columns: repeat(7, 1fr);
  color: #81817c;
  font-size: 9px;
  text-align: center;
}

.chart-tooltip {
  position: absolute;
  z-index: 2;
  display: grid;
  min-width: 112px;
  padding: 8px 10px;
  border: 2px solid #f7f7f4;
  background: #181818;
  box-shadow: 4px 4px 0 var(--accent);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
  transition: opacity 100ms steps(2, end);
}

.chart-tooltip.is-visible {
  opacity: 1;
}

.chart-tooltip span {
  color: #9f9f99;
  font-size: 9px;
}

.chart-tooltip strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: normal;
}

/* Deployment */

.deploy {
  padding: clamp(110px, 13vw, 190px) 0;
  overflow: hidden;
  background: var(--paper);
}

.deploy-shell {
  display: grid;
  width: min(100%, var(--shell));
  margin: 0 auto;
  padding: 0 var(--gutter);
  grid-template-columns: minmax(380px, 0.85fr) minmax(500px, 1.15fr);
  align-items: center;
  gap: clamp(60px, 10vw, 150px);
}

.deploy-copy > p {
  max-width: 56ch;
  margin-top: 28px;
  color: var(--ink-2);
  font-size: 16px;
}

.deploy-actions {
  margin-top: 42px;
  border-top: 2px solid var(--line);
}

.deploy-actions a {
  display: grid;
  min-height: 72px;
  padding: 0 4px;
  grid-template-columns: 80px 1fr 24px;
  align-items: center;
  border-bottom: 2px solid var(--line);
  transition:
    color 140ms ease,
    transform 140ms steps(2, end);
}

.deploy-actions a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.deploy-actions span {
  color: var(--muted);
  font-size: 11px;
}

.deploy-actions strong {
  font-size: 14px;
  font-weight: normal;
}

.deploy-actions i {
  font-style: normal;
  text-align: right;
}

.security-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px !important;
}

.security-note span {
  color: var(--green);
}

.stack-wrap {
  position: relative;
  display: grid;
  min-height: 590px;
  place-items: center;
  perspective: 1200px;
}

.stack-wrap > p {
  position: absolute;
  right: 0;
  bottom: 0;
  color: var(--muted);
  font-size: 10px;
}

.pixel-stack {
  position: relative;
  width: min(520px, 90%);
  height: 390px;
  transform: rotateX(var(--stack-x, 57deg)) rotateZ(var(--stack-z, -38deg));
  transform-style: preserve-3d;
  transition: transform 220ms var(--ease-move);
}

.stack-layer {
  position: absolute;
  inset: 0;
  display: grid;
  padding: 30px;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  border: 3px solid var(--line);
  background: var(--surface);
  box-shadow: 10px 10px 0 rgb(24 24 24 / 0.16);
  transform-style: preserve-3d;
}

.stack-layer::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  box-shadow:
    -18px 0 0 var(--line),
    0 -18px 0 var(--blue);
  content: "";
}

.stack-layer span,
.stack-layer i {
  font-size: 10px;
  font-style: normal;
}

.stack-layer i {
  color: var(--muted);
}

.stack-layer strong {
  align-self: end;
  grid-column: 1 / -1;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: normal;
}

.layer-data {
  transform: translateZ(0);
}

.layer-api {
  background: var(--surface-2);
  transform: translateZ(66px);
}

.layer-web {
  background: var(--accent-soft);
  transform: translateZ(132px);
}

.layer-client {
  background: var(--accent);
  color: #181818;
  transform: translateZ(198px);
}

.is-in-view .layer-data {
  animation: stack-data-in 760ms steps(9, end) both;
}

.is-in-view .layer-api {
  animation: stack-api-in 760ms steps(9, end) 80ms both;
}

.is-in-view .layer-web {
  animation: stack-web-in 760ms steps(9, end) 160ms both;
}

.is-in-view .layer-client {
  animation: stack-client-in 760ms steps(9, end) 240ms both;
}

/* Closing and footer */

.closing {
  border-top: 3px solid #181818;
  border-bottom: 3px solid #181818;
  background: var(--accent);
  color: #181818;
}

.closing-shell {
  display: flex;
  width: min(100%, var(--shell));
  min-height: clamp(430px, 50vw, 650px);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 138px) var(--gutter);
  align-items: end;
  justify-content: space-between;
  gap: 60px;
}

.closing-shell > div:first-child > p {
  margin-bottom: 24px;
  font-size: 11px;
}

.closing h2 {
  max-width: 850px;
}

.closing-actions {
  display: grid;
  flex: 0 0 auto;
  justify-items: start;
  gap: 22px;
}

.closing-actions > a:last-child {
  border-bottom: 2px solid #181818;
  font-size: 13px;
}

.site-footer {
  display: grid;
  width: min(100%, var(--shell));
  min-height: 150px;
  margin: 0 auto;
  padding: 40px var(--gutter);
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 36px;
  color: var(--muted);
  font-size: 11px;
}

.site-footer .brand {
  color: var(--ink);
  font-size: 16px;
}

/* Keyframes */

@keyframes loader-pixel {
  0%,
  100% {
    transform: translate(0);
  }
  50% {
    transform: translate(3px, -3px);
  }
}

@keyframes loader-line {
  to {
    transform: scaleX(1);
  }
}

@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes product-window-in {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: perspective(1200px) translateY(26px);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
    transform: perspective(1200px) translateY(0);
  }
}

@keyframes scan-screen {
  from {
    transform: translateY(-4px);
  }
  to {
    transform: translateY(420px);
  }
}

@keyframes status-pulse {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0.28;
  }
}

@keyframes flow-token {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(
      calc(min(100vw, var(--shell)) - var(--gutter) - var(--gutter) - 11px)
    );
  }
}

@keyframes stack-data-in {
  from {
    opacity: 0;
    transform: translateZ(-70px);
  }
  to {
    opacity: 1;
    transform: translateZ(0);
  }
}

@keyframes stack-api-in {
  from {
    opacity: 0;
    transform: translateZ(-4px);
  }
  to {
    opacity: 1;
    transform: translateZ(66px);
  }
}

@keyframes stack-web-in {
  from {
    opacity: 0;
    transform: translateZ(62px);
  }
  to {
    opacity: 1;
    transform: translateZ(132px);
  }
}

@keyframes stack-client-in {
  from {
    opacity: 0;
    transform: translateZ(128px);
  }
  to {
    opacity: 1;
    transform: translateZ(198px);
  }
}

/* Responsive */

@media (max-width: 1120px) {
  .hero {
    min-height: auto;
    padding-top: 140px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 800px;
  }

  .product-window {
    width: min(100%, 920px);
  }

  .analytics-shell,
  .deploy-shell {
    grid-template-columns: 1fr;
  }

  .analytics-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 22px 50px;
  }

  .analytics-copy h2 {
    grid-row: span 2;
  }

  .analytics-copy > p,
  .chart-tabs {
    margin-top: 0;
  }

  .analytics-stats,
  .analytics-copy > small {
    grid-column: 1 / -1;
  }

  .deploy-copy {
    max-width: 780px;
  }

  .stack-wrap {
    min-height: 540px;
  }
}

@media (max-width: 820px) {
  .desktop-nav,
  .header-github {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .mobile-nav {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    display: grid;
    padding: 14px var(--gutter) 22px;
    border-bottom: 3px solid var(--line);
    background: var(--surface);
    box-shadow: 0 6px 0 var(--accent);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 140ms steps(3, end),
      transform 180ms var(--ease-out);
  }

  .mobile-nav a {
    padding: 14px 0;
    border-bottom: 2px solid var(--line);
  }

  .site-header.is-menu-open .mobile-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .section-intro {
    display: grid;
    align-items: start;
  }

  .flow-rail {
    grid-template-columns: 1fr;
  }

  .flow-line {
    top: 0;
    right: auto;
    bottom: 0;
    width: 11px;
    height: auto;
  }

  .flow-line i {
    animation-name: flow-token-mobile;
  }

  .flow-rail article {
    display: grid;
    min-height: 118px;
    padding: 22px 18px 22px 38px;
    grid-template-columns: 44px 90px 1fr;
    align-items: center;
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

  .flow-rail article:last-child {
    border-bottom: 0;
  }

  .flow-rail article > span {
    margin-bottom: 0;
  }

  .flow-rail p {
    margin-top: 0;
  }

  .capability-list {
    grid-template-columns: 1fr;
  }

  .capability-list article:nth-child(odd) {
    padding-right: 0;
    border-right: 0;
  }

  .capability-list article:nth-child(even) {
    padding-left: 0;
  }

  .analytics-copy {
    display: block;
  }

  .analytics-copy > p {
    margin-top: 24px;
  }

  .chart-tabs {
    margin-top: 32px;
  }

  .analytics-stats {
    margin-top: 38px;
  }

  .closing-shell {
    display: grid;
    align-items: end;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer > p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@keyframes flow-token-mobile {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(590px);
  }
}

@media (max-width: 580px) {
  .hero {
    padding: 116px 0 74px;
  }

  .hero-shell {
    gap: 58px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .hero-facts {
    display: grid;
  }

  .product-window {
    box-shadow: 6px 6px 0 var(--line);
  }

  .window-bar {
    height: 34px;
  }

  .window-bar > span {
    display: none;
  }

  .sync-chip {
    right: 10px;
    bottom: -22px;
    min-width: 168px;
    padding: 8px 9px;
    box-shadow: 4px 4px 0 var(--green);
  }

  .flow-rail article {
    grid-template-columns: 42px 1fr;
  }

  .flow-rail p {
    grid-column: 2;
    margin-top: 6px;
  }

  .capability-list article {
    grid-template-columns: 32px 1fr;
    gap: 14px;
  }

  .analytics-stats {
    gap: 28px;
  }

  .chart-frame {
    box-shadow: 6px 6px 0 var(--accent);
  }

  .chart-wrap {
    height: 300px;
  }

  .deploy-shell {
    gap: 30px;
  }

  .deploy-actions a {
    grid-template-columns: 68px 1fr 20px;
  }

  .stack-wrap {
    min-height: 430px;
  }

  .pixel-stack {
    width: 86%;
    height: 300px;
  }

  .stack-layer {
    padding: 20px;
  }

  .layer-api {
    transform: translateZ(46px);
  }

  .layer-web {
    transform: translateZ(92px);
  }

  .layer-client {
    transform: translateZ(138px);
  }

  .is-in-view .layer-api {
    animation-name: stack-api-in-mobile;
  }

  .is-in-view .layer-web {
    animation-name: stack-web-in-mobile;
  }

  .is-in-view .layer-client {
    animation-name: stack-client-in-mobile;
  }

  .closing-shell {
    min-height: 520px;
    align-content: space-between;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .site-footer > p {
    grid-column: auto;
    grid-row: auto;
  }
}

@keyframes stack-api-in-mobile {
  from {
    opacity: 0;
    transform: translateZ(-4px);
  }
  to {
    opacity: 1;
    transform: translateZ(46px);
  }
}

@keyframes stack-web-in-mobile {
  from {
    opacity: 0;
    transform: translateZ(42px);
  }
  to {
    opacity: 1;
    transform: translateZ(92px);
  }
}

@keyframes stack-client-in-mobile {
  from {
    opacity: 0;
    transform: translateZ(88px);
  }
  to {
    opacity: 1;
    transform: translateZ(138px);
  }
}

.hero[data-motion="paused"] .screen-scan,
.hero[data-motion="paused"] .sync-chip > i,
.flow[data-motion="paused"] .flow-line i,
.analytics[data-motion="paused"] .chart-head i {
  animation-play-state: paused;
}

@media (hover: hover) and (pointer: fine) {
  .flow-rail article {
    transition:
      color 160ms ease,
      background-color 160ms ease;
  }

  .flow-rail article:hover {
    background: var(--accent-soft);
  }

  .flow-rail article:hover > span {
    background: var(--accent);
    color: #181818;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js .loader {
    display: none;
  }

  .product-window,
  .pixel-stack {
    transform: none;
  }
}
