@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #0f0f0f;
  --bg-raised: #141414;
  --bg-card: #161616;
  --bg-button: #121212;
  --bg-button-hover: #262626;
  --border: #262626;
  --border-strong: #454545;
  --text: #ffffff;
  --muted: #aaaaaa;
  --faint: #666666;
  --font: 'Work Sans', sans-serif;
  --mono: 'Cascadia Code', Consolas, 'Courier New', monospace;
  --nav-height: 60px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
}

body {
  font-family: var(--font);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: rgba(120, 180, 255, 0.35);
}

a {
  color: inherit;
}

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

code {
  font-family: var(--mono);
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 3px;
  background-color: #1e1e1e;
  color: #e5e5e5;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons ------------------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 160px;
  padding: 12px 22px;
  border: none;
  border-radius: 3px;
  background: var(--bg-button);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  outline: 1px solid var(--border-strong);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  transition: background-color 0.2s ease, color 0.2s ease, outline-color 0.2s ease, transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.button:hover {
  background-color: var(--bg-button-hover);
  outline-color: #5a5a5a;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

.button:active {
  transform: translateY(0) scale(0.985);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition-duration: 0.08s;
}

.button svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.button.primary {
  background-color: #ffffff;
  color: #0f0f0f;
  outline-color: #ffffff;
}

.button.primary:hover {
  background-color: #dcdcdc;
}

.button.small {
  min-width: 0;
  padding: 8px 16px;
  font-size: 0.9rem;
  box-shadow: none;
}

/* Navigation --------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--nav-height);
  background-color: rgba(15, 15, 15, 0.7);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.nav.is-scrolled {
  background-color: rgba(15, 15, 15, 0.85);
  border-bottom-color: var(--border);
}

.nav .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  align-content: center;
  height: 100%;
  gap: 0 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 8px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  margin-left: auto;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-cta:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero --------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 150px 24px 0;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 120px;
  z-index: -1;
  background-image: radial-gradient(circle, #2c2c2c 1px, transparent 1.2px);
  background-size: 26px 26px;
  background-position: center top;
  mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 100%);
}

.hero > * {
  position: relative;
}

.hero h1 {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 14px;
  cursor: default;
  user-select: none;
}

.hero p {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 1.2rem;
  color: var(--muted);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-shot {
  max-width: 965px;
  margin: 84px auto 0;
  padding: 0 24px;
}

/* Editor demo -------------------------------------------------------------- */

.editor-demo {
  position: relative;
  height: 330px;
  padding: 14px 0;
  background-color: #151517;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 26px;
  color: #d6d6db;
  overflow: hidden;
  user-select: none;
}

.editor-demo .line {
  display: flex;
  white-space: pre;
}

.editor-demo .line.is-current {
  background-color: rgba(255, 255, 255, 0.04);
}

.editor-demo .ln {
  flex: none;
  width: 56px;
  padding-right: 18px;
  text-align: right;
  color: #6b6b78;
}

.editor-demo .line.is-current .ln {
  color: #d6d6db;
}

.editor-demo .code {
  flex: 1;
  min-width: 0;
}

.editor-demo .marker {
  display: inline-block;
  width: 0;
}

.editor-demo .caret {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 18px;
  background-color: #ffffff;
  visibility: hidden;
  transform: translate(0, 0);
  transition: transform 80ms cubic-bezier(0.2, 0.8, 0.3, 1);
  animation: caret-blink 1s ease-in-out infinite;
  pointer-events: none;
}

.editor-demo .caret.is-typing {
  animation: none;
  opacity: 1;
}

@keyframes caret-blink {
  0%, 20% {
    opacity: 1;
  }
  50%, 70% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.window.code-view {
  position: relative;
  height: 392px;
  overflow: hidden;
  background-color: #151517;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 26px;
  color: #d6d6db;
}

.code-scroll {
  height: 100%;
  padding: 14px 0;
  overflow: auto;
  scrollbar-width: none;
}

.code-scroll::-webkit-scrollbar {
  display: none;
}

.code-view::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(to right, rgba(21, 21, 23, 0), #151517 85%);
  pointer-events: none;
}

.code-view::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(21, 21, 23, 0), #151517);
  pointer-events: none;
}

.code-view .line {
  display: flex;
  white-space: pre;
  min-width: max-content;
}

.code-view .ln {
  position: sticky;
  left: 0;
  flex: none;
  width: 56px;
  padding-right: 18px;
  text-align: right;
  color: #6b6b78;
  background-color: #151517;
}

.code-view .code {
  padding-right: 24px;
}

.tk-cm { color: #6b6b78; }
.tk-kw { color: #5aa6e0; }
.tk-st { color: #e0a077; }
.tk-nu { color: #8fd9a8; }
.tk-fn { color: #e6d18a; }
.tk-ty { color: #5fcbb4; }
.tk-op { color: #b9b9c4; }
.tk-de { color: #9a9aa3; }
.tk-id { color: #d6d6db; }

.suggest {
  position: absolute;
  z-index: 2;
  width: 340px;
  overflow: hidden;
  border: 1px solid #2e2e31;
  border-radius: 3px;
  background-color: #212123;
  box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.35);
  color: #d6d6d8;
  font-variant-ligatures: none;
  visibility: hidden;
}

.suggest.is-open {
  visibility: visible;
}

.suggest-row {
  display: flex;
  align-items: center;
  height: 26px;
  padding: 0 10px 0 2px;
  white-space: pre;
}

.suggest-row.is-active {
  background-color: #3a3a3e;
}

.suggest-icon {
  flex: none;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  fill: currentColor;
}

.suggest-icon.is-method {
  color: #b180d7;
}

.suggest-icon.is-field {
  color: #75beff;
}

.suggest-row.is-active .suggest-icon {
  color: #d6d6d8;
}

.suggest-label {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggest-label b {
  color: #2aaaff;
  font-weight: 700;
}

.suggest-detail {
  flex: 0 4 auto;
  max-width: 70%;
  margin-left: 1.1em;
  overflow: hidden;
  font-size: 85%;
  text-overflow: ellipsis;
  opacity: 0.7;
}

.shot-frame {
  container-type: inline-size;
}

.shot-sprite {
  position: absolute;
  width: 0;
  height: 0;
}

.shot {
  --u: calc(100cqw / 915);
  --s-line: rgba(140, 200, 255, 0.12);
  --s-line-strong: rgba(140, 200, 255, 0.24);
  --s-raised: rgba(140, 200, 255, 0.13);
  --s-text: #e6f1fb;
  --s-muted: #a3b8cf;
  --s-faint: #5d7390;
  --s-ice: #8fd3ff;
  --s-aurora: #5cf0c0;
  display: flex;
  flex-direction: column;
  aspect-ratio: 915 / 600;
  overflow: hidden;
  background-color: #070d19;
  color: var(--s-muted);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: calc(var(--u) * 14);
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
  cursor: default;
  user-select: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

.shot-ic {
  flex: none;
  width: calc(var(--u) * 16);
  height: calc(var(--u) * 16);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shot-title {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: calc(var(--u) * 38);
  background-color: #0a1222;
  border-bottom: 1px solid var(--s-line);
}

.shot-title-name {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 7);
  color: var(--s-ice);
  font-size: calc(var(--u) * 15);
  transform: translateX(-50%);
}

.shot-flake {
  flex: none;
  width: calc(var(--u) * 16);
  height: calc(var(--u) * 16);
  margin-top: calc(var(--u) * 2);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22url(%23g)%22%20stroke-width=%221.5%22%20stroke-linecap=%22round%22%3E%3Cdefs%3E%3ClinearGradient%20id=%22g%22%20gradientUnits=%22userSpaceOnUse%22%20x1=%224%22%20y1=%222%22%20x2=%2220%22%20y2=%2222%22%3E%3Cstop%20offset=%220%22%20stop-color=%22%23ffffff%22/%3E%3Cstop%20offset=%221%22%20stop-color=%22%237cc8ff%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg%20transform=%22rotate(0%2012%2012)%22%3E%3Cpath%20d=%22M12%2012V2.5M12%206.2L9.6%203.8M12%206.2L14.4%203.8M12%209.4L10.5%207.9M12%209.4L13.5%207.9%22/%3E%3C/g%3E%3Cg%20transform=%22rotate(60%2012%2012)%22%3E%3Cpath%20d=%22M12%2012V2.5M12%206.2L9.6%203.8M12%206.2L14.4%203.8M12%209.4L10.5%207.9M12%209.4L13.5%207.9%22/%3E%3C/g%3E%3Cg%20transform=%22rotate(120%2012%2012)%22%3E%3Cpath%20d=%22M12%2012V2.5M12%206.2L9.6%203.8M12%206.2L14.4%203.8M12%209.4L10.5%207.9M12%209.4L13.5%207.9%22/%3E%3C/g%3E%3Cg%20transform=%22rotate(180%2012%2012)%22%3E%3Cpath%20d=%22M12%2012V2.5M12%206.2L9.6%203.8M12%206.2L14.4%203.8M12%209.4L10.5%207.9M12%209.4L13.5%207.9%22/%3E%3C/g%3E%3Cg%20transform=%22rotate(240%2012%2012)%22%3E%3Cpath%20d=%22M12%2012V2.5M12%206.2L9.6%203.8M12%206.2L14.4%203.8M12%209.4L10.5%207.9M12%209.4L13.5%207.9%22/%3E%3C/g%3E%3Cg%20transform=%22rotate(300%2012%2012)%22%3E%3Cpath%20d=%22M12%2012V2.5M12%206.2L9.6%203.8M12%206.2L14.4%203.8M12%209.4L10.5%207.9M12%209.4L13.5%207.9%22/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.shot-client {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 6);
  margin-right: calc(var(--u) * 13.5);
  font-size: calc(var(--u) * 13.5);
}

.shot-client .shot-ic {
  width: calc(var(--u) * 14);
  height: calc(var(--u) * 14);
}

.shot-win {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--u) * 46);
  color: var(--s-text);
}

.shot-win svg {
  width: calc(var(--u) * 10);
  height: calc(var(--u) * 10);
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

.shot-win-min {
  width: calc(var(--u) * 10);
  height: 1px;
  background-color: currentColor;
}

.shot-win-max {
  width: calc(var(--u) * 10);
  height: calc(var(--u) * 10);
  border: 1px solid currentColor;
  border-radius: 2px;
}

.shot-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

.shot-side {
  flex: none;
  width: calc(var(--u) * 250);
  background-color: #0a1222;
  border-right: 1px solid var(--s-line);
}

.shot-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--u) * 46);
  padding: 0 calc(var(--u) * 14) 0 calc(var(--u) * 13);
  color: var(--s-text);
  font-weight: 600;
}

.shot-field {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 8);
  height: calc(var(--u) * 34);
  margin: 0 calc(var(--u) * 10);
  padding: 0 calc(var(--u) * 9);
  border: 1px solid var(--s-line);
  border-radius: calc(var(--u) * 4);
  background-color: #070d19;
  color: var(--s-faint);
}

.shot-section {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 5);
  height: calc(var(--u) * 32);
  margin: calc(var(--u) * 4) 0 calc(var(--u) * 2);
  padding-left: calc(var(--u) * 8);
  font-size: calc(var(--u) * 12);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shot-side .shot-field + .shot-section {
  margin-top: calc(var(--u) * 11);
}

.shot-section .shot-ic,
.shot-chev {
  width: calc(var(--u) * 14);
  height: calc(var(--u) * 14);
}

.shot-row {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 6);
  height: calc(var(--u) * 32);
  padding-left: calc(var(--u) * var(--p));
}

.shot-row.is-first {
  margin-top: calc(var(--u) * 2);
}

.shot-row.is-last {
  margin-bottom: calc(var(--u) * 2);
}

.shot-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: #0c1526;
}

.shot-tabs {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  height: calc(var(--u) * 44);
  padding-right: calc(var(--u) * 6);
  background-color: #0a1222;
}

.shot-tabs::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background-color: var(--s-line);
}

.shot-tab {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 8);
  height: 100%;
  padding: 0 calc(var(--u) * 10) 0 calc(var(--u) * 13);
  border-right: 1px solid var(--s-line);
}

.shot-tab.is-plain {
  padding-right: calc(var(--u) * 15);
}

.shot-tab.is-active {
  background-color: #0c1526;
  color: var(--s-text);
  box-shadow: inset 0 calc(var(--u) * 2) 0 var(--s-aurora);
}

.shot-tab.is-active .shot-ic {
  color: #9df5d8;
}

.shot-tab-end {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--u) * 22);
}

.shot-tab-x {
  width: calc(var(--u) * 14);
  height: calc(var(--u) * 14);
}

.shot-new {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--u) * 28);
  margin: 0 auto 0 calc(var(--u) * 6);
}

.shot-chip {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 6);
  height: calc(var(--u) * 32);
  margin-left: calc(var(--u) * 6);
  padding: 0 calc(var(--u) * 10);
  border: 1px solid var(--s-line-strong);
  border-radius: calc(var(--u) * 4);
  background-color: #132038;
  color: var(--s-text);
}

.shot-start {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%20600%2040%22%20preserveAspectRatio=%22none%22%20fill=%22%23cfe8ff%22%3E%3Cpath%20opacity=%220.09%22%20d=%22M0%2040V22C60%208%20120%206%20190%2016S320%2030%20400%2018S540%204%20600%2014V40Z%22/%3E%3Cpath%20opacity=%220.1%22%20d=%22M0%2040V30C90%2020%20170%2026%20260%2030S430%2018%20600%2026V40Z%22/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%20120%20160%22%20fill=%22%23fff%22%3E%3Ccircle%20cx=%2214%22%20cy=%2222%22%20r=%221%22%20opacity=%220.28%22/%3E%3Ccircle%20cx=%2278%22%20cy=%2248%22%20r=%220.9%22%20opacity=%220.22%22/%3E%3Ccircle%20cx=%2246%22%20cy=%2296%22%20r=%221.2%22%20opacity=%220.25%22/%3E%3Ccircle%20cx=%22104%22%20cy=%22120%22%20r=%220.9%22%20opacity=%220.28%22/%3E%3Ccircle%20cx=%2222%22%20cy=%22140%22%20r=%221%22%20opacity=%220.19%22/%3E%3Ccircle%20cx=%2290%22%20cy=%228%22%20r=%221.1%22%20opacity=%220.22%22/%3E%3C/svg%3E"),
    radial-gradient(ellipse 55% 46% at 22% 0%, rgba(92, 240, 192, 0.13), transparent 70%),
    radial-gradient(ellipse 50% 40% at 78% 0%, rgba(124, 140, 255, 0.14), transparent 70%),
    linear-gradient(to top, rgba(140, 200, 255, 0.06), transparent 32%);
  background-repeat: no-repeat, repeat, no-repeat, no-repeat, no-repeat;
  background-size: 100% calc(var(--u) * 20), calc(var(--u) * 120) calc(var(--u) * 160), auto, auto, auto;
  background-position: 0 100%, 0 0, 0 0, 0 0, 0 0;
}

.shot-start::before,
.shot-start::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  pointer-events: none;
  will-change: transform;
}

.shot-start::before {
  top: calc(var(--u) * -480);
  left: calc(var(--u) * -160);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%20160%20240%22%20fill=%22%23fff%22%3E%3Ccircle%20cx=%2222%22%20cy=%2230%22%20r=%221.8%22%20opacity=%220.39%22/%3E%3Ccircle%20cx=%22118%22%20cy=%2274%22%20r=%222.2%22%20opacity=%220.3%22/%3E%3Ccircle%20cx=%2264%22%20cy=%22132%22%20r=%221.5%22%20opacity=%220.36%22/%3E%3Ccircle%20cx=%22140%22%20cy=%22186%22%20r=%221.9%22%20opacity=%220.28%22/%3E%3Ccircle%20cx=%2238%22%20cy=%22214%22%20r=%222.1%22%20opacity=%220.33%22/%3E%3C/svg%3E");
  background-size: calc(var(--u) * 160) calc(var(--u) * 240);
  animation: shot-snow-near 24s linear infinite;
}

.shot-start::after {
  top: calc(var(--u) * -960);
  left: calc(var(--u) * -320);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%20320%20480%22%20fill=%22none%22%20stroke=%22%23bfe6ff%22%20stroke-width=%2213%22%20stroke-linecap=%22round%22%3E%3Cg%20transform=%22translate(60%2090)%20rotate(10)%20scale(0.08)%22%20opacity=%220.36%22%3E%3Cpath%20transform=%22rotate(0)%22%20d=%22M0%200V-90M0%20-50L-24%20-74M0%20-50L24%20-74%22/%3E%3Cpath%20transform=%22rotate(60)%22%20d=%22M0%200V-90M0%20-50L-24%20-74M0%20-50L24%20-74%22/%3E%3Cpath%20transform=%22rotate(120)%22%20d=%22M0%200V-90M0%20-50L-24%20-74M0%20-50L24%20-74%22/%3E%3Cpath%20transform=%22rotate(180)%22%20d=%22M0%200V-90M0%20-50L-24%20-74M0%20-50L24%20-74%22/%3E%3Cpath%20transform=%22rotate(240)%22%20d=%22M0%200V-90M0%20-50L-24%20-74M0%20-50L24%20-74%22/%3E%3Cpath%20transform=%22rotate(300)%22%20d=%22M0%200V-90M0%20-50L-24%20-74M0%20-50L24%20-74%22/%3E%3C/g%3E%3Cg%20transform=%22translate(230%20250)%20rotate(27)%20scale(0.11)%22%20opacity=%220.3%22%3E%3Cpath%20transform=%22rotate(0)%22%20d=%22M0%200V-90M0%20-50L-24%20-74M0%20-50L24%20-74%22/%3E%3Cpath%20transform=%22rotate(60)%22%20d=%22M0%200V-90M0%20-50L-24%20-74M0%20-50L24%20-74%22/%3E%3Cpath%20transform=%22rotate(120)%22%20d=%22M0%200V-90M0%20-50L-24%20-74M0%20-50L24%20-74%22/%3E%3Cpath%20transform=%22rotate(180)%22%20d=%22M0%200V-90M0%20-50L-24%20-74M0%20-50L24%20-74%22/%3E%3Cpath%20transform=%22rotate(240)%22%20d=%22M0%200V-90M0%20-50L-24%20-74M0%20-50L24%20-74%22/%3E%3Cpath%20transform=%22rotate(300)%22%20d=%22M0%200V-90M0%20-50L-24%20-74M0%20-50L24%20-74%22/%3E%3C/g%3E%3Cg%20transform=%22translate(120%20410)%20rotate(-14)%20scale(0.065)%22%20opacity=%220.36%22%3E%3Cpath%20transform=%22rotate(0)%22%20d=%22M0%200V-90M0%20-50L-24%20-74M0%20-50L24%20-74%22/%3E%3Cpath%20transform=%22rotate(60)%22%20d=%22M0%200V-90M0%20-50L-24%20-74M0%20-50L24%20-74%22/%3E%3Cpath%20transform=%22rotate(120)%22%20d=%22M0%200V-90M0%20-50L-24%20-74M0%20-50L24%20-74%22/%3E%3Cpath%20transform=%22rotate(180)%22%20d=%22M0%200V-90M0%20-50L-24%20-74M0%20-50L24%20-74%22/%3E%3Cpath%20transform=%22rotate(240)%22%20d=%22M0%200V-90M0%20-50L-24%20-74M0%20-50L24%20-74%22/%3E%3Cpath%20transform=%22rotate(300)%22%20d=%22M0%200V-90M0%20-50L-24%20-74M0%20-50L24%20-74%22/%3E%3C/g%3E%3C/svg%3E");
  background-size: calc(var(--u) * 320) calc(var(--u) * 480);
  animation: shot-snow-crystals 24s linear infinite;
}

@keyframes shot-snow-near {
  to {
    transform: translate(calc(var(--u) * 160), calc(var(--u) * 480));
  }
}

@keyframes shot-snow-crystals {
  to {
    transform: translate(calc(var(--u) * 320), calc(var(--u) * 960));
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot-start::before,
  .shot-start::after {
    animation: none;
  }
}

.shot-page {
  position: relative;
  z-index: 1;
  padding: calc(var(--u) * 30) calc(var(--u) * 39) 0 calc(var(--u) * 28);
}

.shot-h1 {
  width: fit-content;
  background-image: linear-gradient(100deg, #f1faff 0%, #8fd3ff 48%, #5cf0c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: calc(var(--u) * 32);
  font-weight: 600;
  line-height: calc(var(--u) * 48);
  letter-spacing: -0.01em;
}

.shot-tagline {
  margin-top: calc(var(--u) * 8);
  font-size: calc(var(--u) * 15);
  line-height: calc(var(--u) * 22);
}

.shot-tagline .is-on {
  color: var(--s-aurora);
}

.shot-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: calc(var(--u) * 32);
}

.shot-sec {
  margin-top: calc(var(--u) * 22);
}

.shot-h2 {
  display: flex;
  justify-content: space-between;
  margin-bottom: calc(var(--u) * 8);
  color: var(--s-faint);
  font-size: calc(var(--u) * 12);
  font-weight: 600;
  line-height: calc(var(--u) * 18);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shot-link {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 10);
  height: calc(var(--u) * 36);
  padding: 0 calc(var(--u) * 6);
}

.shot-link .shot-ic {
  color: var(--s-ice);
}

.shot-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 11);
  padding: calc(var(--u) * 7) calc(var(--u) * 6);
  line-height: calc(var(--u) * 20);
}

.shot-step:not(.is-last)::after {
  content: "";
  position: absolute;
  top: calc(var(--u) * 27);
  left: calc(var(--u) * 15);
  width: calc(var(--u) * 2);
  height: calc(var(--u) * 14);
  border-radius: calc(var(--u) * 1);
  background-color: var(--s-raised);
}

.shot-mark {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--u) * 20);
  height: calc(var(--u) * 20);
  border: calc(var(--u) * 2) solid var(--s-line-strong);
  border-radius: 50%;
  color: var(--s-text);
}

.shot-step.is-done .shot-mark {
  border-color: transparent;
  background-color: var(--s-raised);
}

.shot-mark .shot-ic {
  width: calc(var(--u) * 12);
  height: calc(var(--u) * 12);
}

.shot-tip {
  padding: 0 calc(var(--u) * 6);
  font-size: calc(var(--u) * 13);
  line-height: 1.55;
  white-space: normal;
}

.shot-tip-fn {
  padding: calc(var(--u) * 1) calc(var(--u) * 5);
  border-radius: calc(var(--u) * 4);
  background-color: var(--s-raised);
  font-family: var(--mono);
  font-size: calc(var(--u) * 12);
}

.shot-tip-docs {
  margin-left: calc(var(--u) * 4);
  font-size: calc(var(--u) * 12.5);
  white-space: nowrap;
}

.shot-status {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--u) * 31);
  padding: calc(var(--u) * 1) calc(var(--u) * 6) 0;
  background-color: #060b15;
  box-shadow: inset 0 1px 0 var(--s-line);
  font-size: calc(var(--u) * 13);
}

.shot-group {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 2);
}

.shot-item {
  display: inline-block;
  height: calc(var(--u) * 26);
  padding: calc(var(--u) * 1) calc(var(--u) * 8) 0;
  line-height: calc(var(--u) * 25);
}

.shot-group:first-child .shot-item:first-child {
  padding-left: calc(var(--u) * 7);
}

.shot-item .shot-ic {
  display: inline-block;
  width: calc(var(--u) * 15);
  height: calc(var(--u) * 15);
  margin-right: calc(var(--u) * 6);
  vertical-align: calc(var(--u) * -3);
}

.shot-live {
  display: inline-block;
  width: calc(var(--u) * 9);
  height: calc(var(--u) * 9);
  margin-right: calc(var(--u) * 6);
  border-radius: 50%;
  background-color: var(--s-aurora);
}

.window {
  overflow: hidden;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background-color: #151517;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

/* Facts strip -------------------------------------------------------------- */

.facts {
  margin: 56px auto 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.fact {
  padding: 26px 24px;
  border-left: 1px solid var(--border);
}

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

.fact strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.fact span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Feature rows ------------------------------------------------------------- */

.features {
  padding: 96px 0 24px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-head h2,
.themes h2,
.grid-section h2,
.faq h2 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
}

.feature {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.feature:nth-of-type(even) .feature-text {
  order: 2;
}

.feature-flip {
  grid-template-columns: 7fr 5fr;
}

.feature-flip .feature-text {
  order: 2;
}


.feature h3 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 14px;
}

.feature p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.feature ul {
  list-style: none;
}

.feature li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: #cfcfcf;
  font-size: 1rem;
}

.feature li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 7px;
  height: 1px;
  background-color: var(--faint);
}

.feature .window {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

/* Themes ------------------------------------------------------------------- */

.themes {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.themes > .wrap > p {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 48px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.theme-tile .window {
  border-radius: 6px;
  box-shadow: none;
  transition: border-color 0.25s ease, transform 0.35s var(--ease-out);
}

.theme-tile:hover .window {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.theme-tile figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.theme-list {
  margin-top: 40px;
  color: var(--faint);
  font-size: 0.95rem;
  line-height: 1.8;
}

.theme-list strong {
  color: var(--muted);
  font-weight: 500;
}

/* Small grid --------------------------------------------------------------- */

.grid-section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.grid-section > .wrap > p {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background-color: var(--bg-card);
  transition: border-color 0.25s ease, transform 0.35s var(--ease-out), background-color 0.25s ease;
}

.feature-item:hover {
  border-color: var(--border-strong);
  background-color: #1a1a1a;
  transform: translateY(-2px);
}

.feature-icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--muted);
  transition: color 0.25s ease;
}

.feature-item:hover .feature-icon {
  color: var(--text);
}

.feature-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-item p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* FAQ ---------------------------------------------------------------------- */

.faq {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.faq .wrap {
  max-width: 960px;
}

.faq h2 {
  margin-bottom: 36px;
}

.faq details {
  border-top: 1px solid var(--border);
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
  transition: color 0.2s ease;
}

.faq summary:hover::after {
  color: var(--text);
}

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

.faq summary::after {
  content: "+";
  color: var(--faint);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.3s var(--ease-out), color 0.2s ease;
}

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

.faq.is-enhanced details[open]:not(.is-open) summary::after {
  transform: none;
}

.faq.is-enhanced details p {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.3s var(--ease-out);
}

.faq.is-enhanced details.is-open p {
  opacity: 1;
  transform: none;
}

.faq details p {
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 1rem;
  max-width: 760px;
}

.faq details code {
  white-space: nowrap;
}

.faq a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: #555;
  text-underline-offset: 3px;
}

/* Footer ------------------------------------------------------------------- */

.footer {
  padding: 22px 0 28px;
  border-top: 1px solid #333;
  color: var(--faint);
  font-size: 0.9rem;
  user-select: none;
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--text);
}

/* Vendor dialog ------------------------------------------------------------ */

.vendor-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background-color: var(--bg-raised);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.vendor-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: backdrop-in 0.2s ease forwards;
}

.vendor-dialog[open] {
  animation: dialog-in 0.3s var(--ease-out);
}

.vendor-dialog.is-closing {
  animation: dialog-out 0.16s ease forwards;
}

.vendor-dialog.is-closing::backdrop {
  animation: backdrop-out 0.16s ease forwards;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes dialog-out {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes backdrop-out {
  to { opacity: 0; }
}

.vendor-panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
}

.vendor-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--border);
}

.vendor-head h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.vendor-head p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.vendor-close {
  flex: none;
  width: 32px;
  height: 32px;
  margin: -6px -6px 0 auto;
  border: none;
  border-radius: 4px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.vendor-close svg {
  width: 18px;
  height: 18px;
}

.vendor-close:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.vendor-body {
  overflow-y: auto;
  padding: 8px;
}

.vendor {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 9px 14px;
  border-radius: 5px;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.vendor:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.vendor-name {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.vendor-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background-color: #1b1b1b;
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.pay svg {
  width: 14px;
  height: 14px;
}

.vendor:hover .pay {
  color: var(--text);
  border-color: var(--border-strong);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.vendor-arrow {
  align-self: center;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid var(--faint);
  border-right: 1.5px solid var(--faint);
  transform: rotate(45deg);
  transition: border-color 0.15s ease, transform 0.25s var(--ease-out);
}

.vendor:hover .vendor-arrow {
  border-color: var(--text);
  transform: rotate(45deg) translate(2px, -2px);
}

.vendor-foot {
  padding: 14px 24px 18px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.85rem;
}

.vendor-foot a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Motion ------------------------------------------------------------------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes rise-window {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.fade-in {
  opacity: 0;
  animation: rise 0.9s var(--ease-out) forwards;
}

.fade-in-delay-1 {
  animation-delay: 0.1s;
}

.fade-in-delay-2 {
  animation-delay: 0.2s;
}

.fade-in-delay-3 {
  animation: rise-window 1.1s var(--ease-out) forwards;
  animation-delay: 0.3s;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-group:not(.is-visible) > * {
  opacity: 0;
  transform: translateY(18px);
}

.reveal-group.is-visible > * {
  animation: reveal-rise 0.8s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes reveal-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in-delay-3 {
    opacity: 1;
    animation: none;
  }

  .reveal,
  .reveal-group:not(.is-visible) > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal-group.is-visible > * {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Smaller screens ---------------------------------------------------------- */

@media (max-width: 960px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature:nth-of-type(even) .feature-text,
  .feature-flip .feature-text {
    order: 0;
  }

  .feature-flip {
    grid-template-columns: 1fr;
  }

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

  .fact:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }

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

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

@media (max-width: 560px) {
  .vendor {
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
  }

  .vendor-pay {
    grid-column: 1;
  }

  .vendor-arrow {
    grid-row: 1 / span 2;
    grid-column: 2;
  }
}

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

  .hero {
    padding-top: 96px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .section-head h2,
  .themes h2,
  .grid-section h2,
    .faq h2 {
    font-size: 2rem;
  }

  .facts .wrap {
    grid-template-columns: 1fr;
  }

  .fact {
    border-left: none;
    padding-left: 0;
    border-bottom: 1px solid var(--border);
  }

  .fact:last-child {
    border-bottom: none;
  }

  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }

  .theme-tile figcaption {
    margin-top: 8px;
    font-size: 0.85rem;
  }

  .hero-shot,
  .editor-demo {
    display: none;
  }

  .wrap {
    padding: 0 20px;
  }

  .hero {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero h1 {
    overflow-wrap: anywhere;
  }

  .hero-buttons .button {
    width: 100%;
    max-width: 300px;
  }

  .features {
    padding: 64px 0 8px;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .feature {
    gap: 24px;
    padding: 36px 0;
  }

  .feature h3 {
    font-size: 1.5rem;
  }

  .window.code-view {
    height: 300px;
    font-size: 12px;
    line-height: 22px;
  }

  .code-scroll {
    overflow: hidden;
  }

  .code-view .ln {
    width: 40px;
    padding-right: 12px;
  }

  .themes,
  .grid-section,
  .faq {
    padding: 64px 0;
  }

  .themes > .wrap > p,
  .grid-section > .wrap > p {
    margin-bottom: 32px;
    font-size: 1rem;
  }

  .faq summary {
    gap: 16px;
    font-size: 1rem;
  }

  .footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
