@property --a { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg: #0a0a0b;
  --bg-1: #101012;
  --bg-2: #151517;
  --card: #121214;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .13);
  --line-3: rgba(255, 255, 255, .22);
  --text: #f2f2ee;
  --text-2: #a4a4a9;
  --text-3: #6c6c73;
  --acc: #c8f53c;
  --acc-rgb: 200, 245, 60;
  --acc-ink: #0a0a0b;
  --green: #c8f53c;
  --amber: #ffb547;
  --red: #ff5d5d;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; scrollbar-color: #2a2a2e var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 500 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
code, .mono { font-family: var(--mono); }
p code, li code, .tl code, .note code, .callout code, .a code, .bc-body code, .oss-l code {
  font-size: .86em; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  color: #e7e7e2; padding: .1em .42em; border-radius: 7px; white-space: nowrap;
}
::selection { background: var(--acc); color: var(--acc-ink); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 10px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a2e; border-radius: 10px; border: 2px solid var(--bg); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* icons */
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.gi { width: 28px; height: 28px; flex: none; overflow: visible; }
.grad { color: var(--acc); }
.dots { display: inline-flex; gap: 7px; flex: none; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.25); }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
}
.bg-noise {
  display: none;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .foot { position: relative; z-index: 2; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; pointer-events: none; }
.nav-shell {
  pointer-events: auto; position: relative; width: min(1200px, 100% - 28px); height: 62px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px; padding: 0 9px 0 16px; border-radius: 21px;
  background: rgba(16, 16, 18, .88); border: 1px solid rgba(255, 255, 255, .08);
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.nav.scrolled .nav-shell { background: rgba(16, 16, 18, .97); border-color: rgba(255, 255, 255, .1); box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .9); }
.brand { display: flex; align-items: center; gap: 10px; font: 600 15px var(--display); letter-spacing: -.01em; white-space: nowrap; }
.brand b { font-weight: 600; color: var(--acc); }
.brand-mark { width: 32px; height: 32px; transition: transform .6s var(--ease-out); }
.nav-links { position: relative; display: flex; gap: 2px; margin-left: auto; padding: 4px; }
.nav-links a { position: relative; z-index: 1; padding: 8px 14px; border-radius: 12px; color: var(--text-2); font-size: 14.5px; font-weight: 600; transition: color .2s; }
.nav-links a.active { color: var(--text); }
.nav-pill {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 12px; opacity: 0;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08);
  transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .3s;
}
.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .35s var(--ease-out); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.nav-progress span { display: block; height: 100%; background: var(--acc); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 62px; padding: 0 26px; border-radius: 20px; font-weight: 700; font-size: 16px; letter-spacing: -.01em; white-space: nowrap;
  transition: scale .16s var(--ease-out), box-shadow .4s var(--ease-out), background-color .3s, border-color .3s;
}
.btn:active { scale: .97; }
.btn .i { width: 20px; height: 20px; }
.btn-primary {
  color: var(--acc-ink); padding: 0 9px 0 22px; overflow: hidden; isolation: isolate;
  background: var(--acc);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 14px 34px -18px rgba(0,0,0,.95);
}
.btn-primary .btn-os { width: 22px; height: 22px; }
.btn-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.btn-label b { font-weight: 800; font-size: 16px; }
.btn-label small { font-size: 12px; font-weight: 700; opacity: .62; }
.btn-orb { width: 44px; height: 44px; margin-left: 6px; border-radius: 14px; display: grid; place-items: center; background: rgba(10, 10, 11, .1); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(10,10,11,.08); overflow: hidden; }
.btn-shine { display: none; }
@keyframes drop { 0% { transform: none; opacity: 1; } 45% { transform: translateY(16px); opacity: 0; } 46% { transform: translateY(-16px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.btn-ghost { color: var(--text); background: #161618; border: 1px solid var(--line-2); }

@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand-mark { transform: rotate(-10deg) scale(1.08); }
  .nav-links a:hover { color: var(--text); }
  .btn-primary:hover { background: #d6ff57; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 0 4px rgba(var(--acc-rgb), .14), 0 14px 34px -18px rgba(0,0,0,.95); }
  .btn-primary:hover .btn-orb .i { animation: drop .9s var(--ease-out) infinite; }
  .btn-ghost:hover { background: #1d1d20; border-color: rgba(255,255,255,.24); }
  .copy:hover { color: var(--text); background: rgba(255,255,255,.07); border-color: var(--line-3); }
}

/* ---------- copy buttons ---------- */
.copy {
  position: relative; flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--text-2);
  transition: color .2s, background-color .2s, border-color .2s, scale .16s var(--ease-out);
}
.copy:active, .chip-btn:active { scale: .92; }
.copy .i, .chip-btn .i { grid-area: 1 / 1; width: 17px; height: 17px; transition: opacity .2s, scale .35s var(--ease-out), filter .2s; }
.ic-check { opacity: 0; scale: .4; filter: blur(3px); color: var(--green); }
.copied .ic-copy { opacity: 0; scale: .4; filter: blur(3px); }
.copied .ic-check { opacity: 1; scale: 1; filter: none; }
.copy.copied { color: var(--green); border-color: rgba(var(--acc-rgb), .45); background: rgba(var(--acc-rgb), .08); }

/* ---------- sections ---------- */
.section { position: relative; padding: 160px 0 0; }
.sec-head { max-width: 780px; margin-bottom: 64px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center p { margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--acc); }
h1, h2, h3, h4, h5 { margin: 0; }
h2 { font: 600 clamp(32px, 4.6vw, 62px)/1.04 var(--display); letter-spacing: -.045em; }
.sec-head h2 { margin-top: 18px; }
.sec-head p { color: var(--text-2); font-size: 18px; margin: 22px 0 0; max-width: 660px; }
.sec-head a { color: var(--acc); border-bottom: 1px solid rgba(var(--acc-rgb), .35); }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; translate: 0 22px; transition: opacity .8s var(--ease-out) var(--d, 0s), translate .8s var(--ease-out) var(--d, 0s); }
.js .rv.in { opacity: 1; translate: none; }
/* decorative loops sleep while their section is offscreen (toggled from core.js) */
.paused, .paused * { animation-play-state: paused !important; }
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .04em .16em; margin: 0 -.04em -.16em; }
.split .w > span { display: inline-block; translate: 0 112%; rotate: 5deg; transform-origin: 0 100%; transition: translate 1.1s var(--ease-out) var(--d, 0s), rotate 1.1s var(--ease-out) var(--d, 0s); }
.split.in .w > span { translate: none; rotate: none; }

/* ---------- marquee ---------- */
.strip { position: relative; margin-top: 130px; border-block: 1px solid var(--line); background: rgba(255,255,255,.012); overflow: hidden; }
.marquee { mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 46px; width: max-content; padding: 24px 46px 24px 0; animation: marquee 48s linear infinite; white-space: nowrap; color: var(--text-2); font-weight: 600; }
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; }
.marquee-track .i { width: 18px; height: 18px; color: var(--acc); }
.marquee-track b { color: #ffc94d; }
@keyframes marquee { to { translate: -50% 0; } }
@media (hover: hover) { .strip:hover .marquee-track { animation-play-state: paused; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px);
  padding: 9px 18px 9px 9px; border-radius: 18px; font-weight: 700; font-size: 14.5px;
  background: rgba(22, 22, 25, .94); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 60px -16px rgba(0,0,0,.9);
  translate: -50% 24px; scale: .96; opacity: 0; pointer-events: none;
  transition: translate .45s var(--ease-out), scale .45s var(--ease-out), opacity .25s;
}
.toast.show { translate: -50% 0; scale: 1; opacity: 1; }
.toast .gi { width: 32px; height: 32px; }
.toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- responsive (shared) ---------- */
@media (max-width: 960px) {
  .nav-links {
    position: fixed; top: 86px; left: 14px; right: 14px; flex-direction: column; gap: 0; padding: 10px;
    border-radius: 20px; background: rgba(16, 16, 18, .985); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
    opacity: 0; translate: 0 -10px; scale: .98; transform-origin: 50% 0; pointer-events: none; visibility: hidden;
    transition: opacity .25s, translate .35s var(--ease-out), scale .35s var(--ease-out), visibility 0s .35s;
  }
  .nav-links.open { opacity: 1; translate: none; scale: 1; pointer-events: auto; visibility: visible; transition: opacity .25s, translate .35s var(--ease-out), scale .35s var(--ease-out); }
  .nav-links a { padding: 14px 14px; font-size: 16px; }
  .nav-pill { display: none; }
  .burger { display: block; margin-left: auto; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .section { padding-top: 110px; }
  .sec-head { margin-bottom: 44px; }
  .sec-head p { font-size: 16.5px; }
  .btn { height: 58px; }
  .btn-primary { gap: 10px; padding: 0 8px 0 16px; }
  .btn-label { min-width: 0; }
  .btn-label b, .btn-label small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .btn-label b { font-size: 15px; }
  .btn-orb { margin-left: 2px; }
  .strip { margin-top: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { translate: none; transition: opacity .4s ease; }
  .split .w > span { translate: none; rotate: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
