/* Latchworks website. Hand-written, no framework. */

:root {
  --bg: #ffffff;
  --bg-elev: #f6f6f5;
  --bg-card: #ffffff;
  --fg: #0a0a0a;
  --fg-muted: #525252;
  --fg-dim: #737373;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --accent: oklch(0.55 0.21 264);
  --accent-hover: oklch(0.5 0.21 264);
  --accent-text: oklch(0.5 0.2 264);
  --ok: #16a34a;
  --bad: #dc2626;
  --warn: #b7791f;
  --amber: #c27c0e;
  --cream: #6b6355;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -16px rgba(0, 0, 0, 0.14);
  --font: "Inter", "Inter Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, "JetBrains Mono", Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

code {
  font-family: var(--font-mono);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 8px;
}

.skip:focus {
  left: 8px;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.u {
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.3);
  text-underline-offset: 3px;
  transition: color 0.18s, text-decoration-color 0.18s;
}

.u:hover {
  color: var(--fg);
  text-decoration-color: var(--fg);
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav.is-scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 32px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  letter-spacing: -0.025em;
  line-height: 1;
}

.nav-brand img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px var(--border-strong);
}

.nav-brand .wm {
  font-weight: 500;
  color: var(--fg-muted);
}

.nav-brand b {
  font-weight: 700;
  color: var(--fg);
}

.nav-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.nav-stars {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--fg-muted);
  white-space: nowrap;
  transition: color 0.18s;
}

.nav-link:hover,
.nav-stars:hover,
.nav-link[aria-current="page"] {
  color: var(--fg);
}

.nav-stars svg {
  width: 14px;
  height: 14px;
  color: var(--warn);
  flex-shrink: 0;
}

.nav-stars strong {
  color: var(--fg);
  font-weight: 600;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.18s, background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Same language as the tiles: a black pill like their round send button. */
.btn-primary {
  background: var(--fg);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.45);
}

.btn-primary:hover {
  background: #262626;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.5);
}

.btn-primary:active {
  transform: none;
}

/* ...and a white pill like their cards. */
.btn-ghost {
  color: var(--fg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.2);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
}

.btn-plain {
  font-size: 14px;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.18s;
}

.btn-plain:hover {
  color: var(--fg);
}

.arrow {
  width: 10px;
  height: 10px;
  opacity: 0.7;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 72px 0 60px;
  text-align: center;
  overflow-x: clip;
}

.hero-inner {
  position: static;
}

.hero-float {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.mark {
  position: absolute;
  left: calc(50% + var(--x));
  top: var(--y);
  width: var(--s);
  height: var(--s);
  margin-left: calc(var(--s) / -2);
}

.mark-card {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 25%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: rotate(var(--rot));
  animation: mark-in 1s var(--ease) var(--d) both;
}

.mark-card svg {
  width: 56%;
  height: 56%;
  /* a whole, even pixel size, so the logo sits exactly in the middle of the card */
  width: round(nearest, calc((var(--s) - 2px) * 0.56), 2px);
  height: round(nearest, calc((var(--s) - 2px) * 0.56), 2px);
}

@keyframes mark-in {
  from {
    opacity: 0;
    transform: translate(var(--fx), var(--fy)) rotate(0deg) scale(0.7);
  }
  to {
    opacity: 1;
    transform: rotate(var(--rot));
  }
}

.m1 { --x: max(-560px, -38vw); --y: 128px; --s: 96px; --rot: -8deg; --d: 0.38s; --fx: -160px; --fy: -40px; }
.m2 { --x: min(560px, 38vw);   --y: 128px; --s: 96px; --rot: 7deg;  --d: 0.46s; --fx: 160px;  --fy: -40px; }
.m3 { --x: max(-300px, -19vw); --y: 20px;  --s: 64px; --rot: 6deg;  --d: 0.62s; --fx: -40px;  --fy: -80px; }
.m4 { --x: min(300px, 19vw);   --y: 20px;  --s: 64px; --rot: -5deg; --d: 0.58s; --fx: 40px;   --fy: -80px; }
.m5 { --x: max(-440px, -30vw); --y: 440px; --s: 80px; --rot: 4deg;  --d: 0.54s; --fx: -120px; --fy: 80px; }
.m6 { --x: min(440px, 30vw);   --y: 440px; --s: 80px; --rot: -5deg; --d: 0.7s;  --fx: 120px;  --fy: 80px; }

.display {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

.hero-title {
  position: relative;
  z-index: 2;
  max-width: 20ch;
  margin: 48px auto 22px;
  font-size: clamp(38px, 5.6vw, 76px);
}

.hero-sub {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto 36px;
  color: var(--fg-muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.hero-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg-muted);
  transition: color 0.18s;
}

.hero-source:hover {
  color: var(--fg);
}

.hero-source svg {
  width: 16px;
  height: 16px;
}

.hero-also {
  font-size: 13px;
  color: var(--fg-muted);
}

.hero-also a {
  margin: 0 3px;
}

.hero-preview {
  position: relative;
  z-index: 2;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.22);
}

.hero-preview img {
  width: 100%;
  height: auto;
}

.fade-up {
  animation: fade-up 0.9s var(--ease) both;
  animation-delay: var(--d, 0s);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- sections ---------- */

.sec {
  position: relative;
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.sec h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 18px;
  text-wrap: balance;
}

.split-copy > p {
  max-width: 620px;
  color: var(--fg-muted);
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--fg-muted);
}

.checklist li b {
  color: var(--fg);
  font-weight: 600;
}

.check {
  width: 14px;
  height: 14px;
  color: var(--ok);
  flex-shrink: 0;
}

/* two-column feature */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.split.reverse .split-visual {
  order: 2;
}

/* simulate visual */

.tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 0.92;
  padding: 40px 28px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 20% 0%, #eef2fb 0%, transparent 60%),
    linear-gradient(180deg, #dfe6f4 0%, #c3d0ea 60%, #aebfe2 100%);
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: overlay;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.tile-stack {
  position: relative;
  width: min(100%, 380px);
  display: grid;
  gap: 10px;
}

.tile-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px 14px 14px 16px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5), 0 18px 40px -18px rgba(30, 50, 100, 0.35);
}

.tile-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.tile-top b { font-weight: 500; }
.tile-top .m, .tile-rows .m { margin-left: auto; font-size: 13px; color: var(--fg-muted); }

.tile-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #5b7cf0, #9b8cf2, #e9a6c7, #5b7cf0);
  filter: saturate(0.9);
}

.tile-wave {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.tile-wave svg {
  flex: 1;
  height: 52px;
  min-width: 0;
}

.tile-wave path {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.tile-wave .tt { stroke: url(#wave-ink); stroke-width: 2.2; }
.tile-wave .band { fill: #8b6cf0; fill-opacity: 0.16; stroke: none; opacity: 0; transition: opacity 0.8s var(--ease) 0.6s; }
.tile[data-in="1"] .tile-wave .band { opacity: 1; transition: opacity 0.8s var(--ease) 0.6s; }

.tile-play {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elev);
  flex-shrink: 0;
}

.tile-play svg { width: 12px; height: 12px; margin-left: 2px; }

.tile-rows { display: grid; gap: 8px; }

.tile-rows li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 14px;
  color: #1f2a44;
}

.tile-rows .m { color: rgba(31, 42, 68, 0.62); }

.tile-rows i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ok);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.6);
}

.tile-rows i svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile-rows .plus svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }

.tile-rows .plus {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  font-size: 14px;
  line-height: 1;
}

.tile[data-in="1"] .tile-wave path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.4s var(--ease);
  transition-delay: calc(var(--i) * 80ms);
}

.tile[data-in="1"] .tile-rows i {
  opacity: 1;
  transform: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  transition-delay: calc(1s + var(--i) * 180ms);
}

.tile-warm {
  background:
    radial-gradient(120% 80% at 80% 0%, #fdf6ee 0%, transparent 60%),
    linear-gradient(180deg, #f6eadc 0%, #f0d4c0 60%, #e8bfa8 100%);
}

.tile-chip {
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.lay { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; }

.tile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 14px;
  color: #3a2a1f;
  white-space: nowrap;
  min-width: 0;
}

.tile-pill b { font-weight: 500; flex-shrink: 0; }
.tile-pill > span:not(.m) { flex-shrink: 0; }
.tile-pill .m { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tile-pill .m { margin-left: auto; font-size: 13px; color: rgba(58, 42, 31, 0.62); }
.tile-tt { display: grid; place-items: center; width: 24px; height: 24px; color: var(--fg); }
.tile-tt svg { width: 22px; height: 22px; }
.tile-warm .tile-dot { background: conic-gradient(from 200deg, #f08a5b, #f2c46d, #e9a6c7, #f08a5b); }

.tile-go {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fg);
  color: #fff;
}

.tile-go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.tile-mint {
  background:
    radial-gradient(120% 80% at 20% 0%, #f1f8f4 0%, transparent 60%),
    linear-gradient(180deg, #e2f0e8 0%, #c9e3d6 60%, #b5d8c7 100%);
}

.tile-live { padding: 6px; }
.tile-mint .tile-stack { width: min(100%, 440px); }
.live { display: block; width: 100%; height: auto; overflow: visible; }
.live .w path { fill: none; stroke: #a3a3a3; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.live .w .b { stroke: #525252; stroke-width: 2.2; }
.live .j { fill: #737373; }
.live .port, .live .np { fill: #fff; stroke: #525252; stroke-width: 1.4; }
.live .t text, .live text.t { font-family: var(--font-mono); font-size: 10px; fill: var(--fg-muted); }
.live .t .nm { fill: var(--fg-dim); font-size: 9px; }
.live .cur text { font-family: var(--font); font-size: 10.5px; font-weight: 600; fill: #fff; }
.live .cur path { filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.25)); }

.live [data-on], .live [data-off], .live .lb { transition: opacity 0.18s; }
.live [data-on], .live .lb:not(.lb-def) { opacity: 0; } /* hidden until the timeline shows them, no flash on load */
.live .fx, .live .r2 { transition: opacity 0.3s; }
.live .nw { fill: none; stroke: #7048e8; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke 0.6s, opacity 0.3s; }
.live .nw.done { stroke: #a3a3a3; }
.live .t .new { fill: var(--fg); font-weight: 600; }
.live .t2 { font-family: var(--font-mono); font-size: 10px; fill: var(--fg-muted); }
.live .r2.ghost path { stroke: #7048e8; stroke-dasharray: 3 2; }
.live .r2.ghost text { fill: #7048e8; }
.live .r2 path { transition: stroke 0.3s; }
.live .probe rect { fill: #e8590c; }
.live .probe text { font-family: var(--font-mono); font-size: 10px; font-weight: 600; fill: #fff; }
.live .sel text { font-family: var(--font); font-size: 10.5px; font-weight: 600; fill: #fff; }
.live .c-you { opacity: 0; transition: opacity 0.2s; }
.with-you .live .c-you { opacity: 1; }
.with-you .tile-live, .with-you .tile-live * { cursor: none; }

/* you joining / leaving: the avatar grows in, the count rolls over */
.tile-avs .av-you {
  width: 0;
  margin-left: 0;
  opacity: 0;
  transform: scale(0.4);
  overflow: hidden;
  transition: width 0.4s var(--ease), margin-left 0.4s var(--ease), opacity 0.25s, transform 0.45s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.with-you .tile-avs .av-you { width: 24px; margin-left: -4px; opacity: 1; transform: none; }

.tile-mint .tile-pill .m { display: inline-grid; justify-items: end; overflow: hidden; }
.tile-mint .n2, .tile-mint .n3 { grid-area: 1 / 1; transition: transform 0.4s var(--ease), opacity 0.3s; }
.tile-mint .n3 { transform: translateY(100%); opacity: 0; }
.with-you .n2 { transform: translateY(-100%); opacity: 0; }
.with-you .n3 { transform: none; opacity: 1; }

.tile-avs { display: flex; }
.tile-avs span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--c), 0 0 0 3px #eaf4ee; color: #111; }
.tile-avs svg { width: 14px; height: 14px; flex-shrink: 0; }
.tile-avs .av-you { background: var(--c); }
.tile-avs .av-you svg { width: 16px; height: 16px; }
.tile-avs span + span { margin-left: -4px; }
.tile-avs { margin-right: 4px; }

.tile-mint .tile-pill { color: #1d3a2c; padding: 11px 16px; }
.tile-mint .tile-pill .m { color: rgba(29, 58, 44, 0.62); }

.ai-list { gap: 18px; }
.ai-list li { align-items: flex-start; line-height: 1.5; }
.ai-list .check { margin-top: 4px; flex-shrink: 0; }
#ai .pitch-actions { margin-top: 32px; }

.tile-stone {
  background:
    radial-gradient(120% 80% at 80% 0%, #faf8f5 0%, transparent 60%),
    linear-gradient(180deg, #efebe5 0%, #e0d9cf 60%, #d3cbbf 100%);
}

.tile-picker { padding: 6px; }
.pk-head { padding: 8px 12px 10px; font-size: 13px; color: var(--fg-muted); }
.tile-picker ul { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }

.tile-picker li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.tile-picker li:last-child { border-bottom: 0; }
.tile-picker li.on { background: var(--bg-elev); }

.pk-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #d4d4d4;
  flex-shrink: 0;
}

.tile-picker li.on .pk-radio { border: 5px solid var(--fg); }

.pk-logo { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; }
.pk-logo svg { width: 24px; height: 24px; }
.pk-text { display: grid; gap: 1px; min-width: 0; }
.pk-text b { font-size: 14px; font-weight: 600; }
.pk-text span { font-size: 12.5px; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tile-stone .tile-pill { padding: 11px 16px; color: #3b342a; white-space: normal; line-height: 1.35; border-radius: 22px; }
.tile-stone .tile-pill > span:last-child { flex-shrink: 1; text-wrap: balance; }
.pk-plus { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; }
.pk-plus svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }

@media (max-width: 560px) {
  .tile-warm .tile-pill b { display: none; }
  .tile { aspect-ratio: auto; padding: 32px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .tile .tile-wave path, .tile .tile-rows i { transition: none !important; }
}

.copy-prompt {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
}

.copy-prompt.is-copied {
  background: var(--ok);
  color: #fff;
}

.pitch-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

/* final CTA */

.sec-cta {
  padding: 96px 0;
  text-align: center;
}

.cta-title {
  font-size: clamp(40px, 6vw, 72px);
  max-width: 16ch;
  margin: 0 auto;
}

.cta-sub {
  max-width: 560px;
  margin: 20px auto 36px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-muted);
  text-wrap: balance;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  font-size: 13px;
  color: var(--fg-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px var(--border-strong);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

.footer-links a {
  color: var(--fg);
  opacity: 0.85;
  transition: opacity 0.18s;
}

.footer-links a:hover {
  opacity: 1;
}

/* ---------- download page ---------- */

.dl-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 81px 24px 40px;
  margin-bottom: 32px;
  text-align: center;
}

.dl-title {
  display: flex;
  align-items: center;
  gap: 22px;
}

.dl-title img {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  box-shadow: 0 0 0 1px var(--border-strong), var(--shadow);
}

.dl-title h1 {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.channel {
  position: relative;
  display: inline-flex;
  margin-top: 30px;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}

.channel button {
  position: relative;
  z-index: 1;
  min-width: 88px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg-muted);
  transition: color 0.2s, background 0.2s;
}

.channel button[aria-pressed="true"] {
  color: var(--fg);
  background: rgba(0, 0, 0, 0.07);
}

.head-meta {
  margin-top: 16px;
  font-size: 12.8px;
  color: var(--fg-dim);
}

.head-meta a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.18s;
}

.head-meta a:hover {
  color: var(--fg);
}

.head-note {
  margin-top: 10px;
  max-width: 52ch;
  font-size: 13px;
  color: var(--fg-muted);
}

.head-note:empty {
  display: none;
}

.head-note a {
  color: var(--fg);
}

.dl-main {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.platform {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.platform-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.platform-head svg {
  width: 18px;
  height: 18px;
  color: var(--fg-muted);
}

.platform-head h2 {
  font-size: 17.6px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.platform-head .here {
  margin-left: auto;
  font-size: 11px;
  color: var(--accent-text);
  display: none;
}

.platform.is-current .here {
  display: inline;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dl-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13.6px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.02);
  transition: border-color 0.18s, background 0.18s;
}

.dl-card:hover {
  border-color: var(--border-strong);
  background: rgba(0, 0, 0, 0.035);
}

.dl-card img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}

.dl-card strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.dl-card .sub {
  display: block;
  font-size: 13px;
  color: var(--fg-dim);
}

.dl-card [data-asset-meta]:not(:empty)::before {
  content: " · ";
}

.dl-card.is-pending [data-asset-meta] {
  color: var(--warn);
}

.note {
  font-size: 12.8px;
  color: var(--fg-dim);
}

.note a {
  color: var(--fg-muted);
}

.cmd {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 11px 14px;
  border: 1px solid oklch(0.571 0.21 264 / 0.45);
  border-radius: 8px;
  background: oklch(0.571 0.21 264 / 0.06);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
  text-align: left;
  transition: border-color 0.18s, background 0.18s;
}

.cmd:hover {
  border-color: oklch(0.62 0.2 264 / 0.8);
  background: oklch(0.571 0.21 264 / 0.1);
}

.cmd code {
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.cmd .copied {
  font-family: var(--font);
  font-size: 11px;
  color: var(--ok);
  display: none;
}

.cmd.is-copied .copied {
  display: inline;
}

.cmds {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.cli-note {
  margin-top: 8px;
  font-size: 13.6px;
  color: var(--fg-muted);
}

.all-builds {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--fg-dim);
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .m1, .m2 { --s: 80px; }
  .m5, .m6 { --s: 68px; --y: 420px; }
}

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-visual { order: 0; }
}

@media (max-width: 820px) {
  .container,
  .nav-inner,
  .footer-inner { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 132px; padding-bottom: 32px; }
  .hero-title { margin-top: 14px; font-size: clamp(32px, 9.2vw, 56px); }
  .hero-actions { margin-bottom: 40px; }
  .m1 { --x: -37vw; --y: 44px;  --s: 64px; --rot: -10deg; }
  .m3 { --x: -12vw; --y: 52px;  --s: 56px; --rot: -4deg; }
  .m4 { --x: 12vw;  --y: 52px;  --s: 56px; --rot: 5deg; }
  .m2 { --x: 37vw;  --y: 44px;  --s: 64px; --rot: 8deg; }
  .m5, .m6 { display: none; }
  .sec { padding: 56px 0; }
  .sec-cta { padding: 80px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer-links { justify-content: flex-start; gap: 14px 20px; }
  .dl-title { flex-direction: column; gap: 16px; }
  .dl-title h1 { font-size: 34px; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .nav-link.hide-sm { display: none; }
  .cta-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mark-card { animation: none; }
  .fade-up { animation: none; }
  .btn { transition: none; }
}
