/* One style set, dark only. Spacing scale: 8 16 24 32 48 72 96. */
:root{
  --base:#050507;--ink:#f5f5f7;--muted:#a1a1aa;--soft:#6e6e76;
  --fill:rgba(255,255,255,.06);--fill-hi:rgba(255,255,255,.1);
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,monospace;
  --g:clamp(16px,4vw,48px);
  --gap:96px;
  --t-h1:clamp(40px,4.4vw,64px);--t-h2:clamp(34px,3.4vw,52px);--t-h3:clamp(24px,2.1vw,32px);
  --shadow:0 40px 80px -32px rgba(0,0,0,.85),0 14px 32px -14px rgba(0,0,0,.6);
  --s1:8px;--s2:16px;--s3:24px;--s4:32px;--s5:48px;--s6:64px;--s7:96px;--m:var(--g);--ok:#30d158;
  color-scheme:dark!important;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;overflow-x:clip;background:var(--base);scrollbar-width:none}
html::-webkit-scrollbar{display:none}
/* The artifact host puts a white, 14px, black-text body rule above the page; these must win. */
body{margin:0;background:transparent!important;color:var(--ink)!important;font:400 18px/1.5 var(--font)!important;letter-spacing:-.01em;-webkit-font-smoothing:antialiased;overflow-x:clip}
::selection{background:rgba(10,132,255,.45);color:#fff}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
h1,h2,h3{margin:0;font-weight:600;text-wrap:balance}
h1{font-size:var(--t-h1);line-height:1.02;letter-spacing:-.035em}
h2{font-size:var(--t-h2);line-height:1.05;letter-spacing:-.03em}
h3{font-size:var(--t-h3);line-height:1.12;letter-spacing:-.025em}
p{margin:0;text-wrap:pretty}
figure{margin:0}
:focus,:focus-visible{outline:none}
a:focus-visible,button:focus-visible{background-color:var(--fill-hi)}
.wrap{width:100%;max-width:1336px;margin:0 auto;padding:0 var(--g)}
/* Above 1440 px the page parts scale as one (site.js sets --z = width / 1440), so wide screens keep the same layout. */
header.nav,.hero,.foot{zoom:var(--z,1)}

/* Background: the Fractal Maze wallpaper, pre-blurred and dimmed, with a vignette and two dim light pools.
   Film grain sits on a WebGL canvas above it, under the content. */
.bg{position:fixed;z-index:-2;inset:0;background:
  radial-gradient(120% 90% at 50% 40%,transparent 35%,rgba(0,0,0,.82) 100%),
  radial-gradient(40% 36% at 14% 8%,rgba(96,120,255,.10),transparent 70%),
  radial-gradient(36% 32% at 88% 70%,rgba(255,110,80,.06),transparent 70%),
  linear-gradient(rgba(5,5,7,.5),rgba(5,5,7,.5)),
  url(assets/wall/maze-blur-4k.webp) center/cover no-repeat,var(--base)}
.grain{position:fixed;z-index:-1;inset:0;width:100%;height:100%;pointer-events:none}

/* Scroll bar: drawn by site.js over a hidden native one */
.sb{position:fixed;z-index:50;top:0;right:0;width:14px;height:100%;opacity:0;transition:opacity .4s}
.sb.on,.sb:hover{opacity:1;transition-duration:.15s}
.sb i{position:absolute;right:4px;top:0;width:5px;border-radius:3px;background:rgba(255,255,255,.32);transition:background .15s,width .15s}
.sb.drag i{width:6px;background:rgba(255,255,255,.5)}

/* Navigation */
.nav{display:flex;align-items:center;justify-content:space-between;gap:24px;height:72px}
.mark{display:flex;align-items:center;gap:10px;font-weight:600;font-size:18px;letter-spacing:-.02em;border-radius:8px}
.nav nav{display:flex;align-items:center;gap:28px;font-size:15px}
.nav nav a{color:var(--muted);transition:color .15s;border-radius:8px}
.nav nav a:hover{color:var(--ink)}
.nav .gh-cta{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 12px;border-radius:999px;font-size:14px;font-weight:600;color:var(--ink);background:var(--fill);transition:background .2s}
.nav .gh-cta:hover{background:var(--fill-hi)}
.gh-cta svg{flex:none;display:block}
.gh-cta .gh{width:16px;height:16px;fill:currentColor}
.gh-cta .sep{width:1px;height:16px;background:rgba(255,255,255,.14)}
.gh-cta .n{color:var(--muted);font-weight:500;font-variant-numeric:tabular-nums}
.stars{position:relative;width:15px;height:15px}
.stars svg{position:absolute;inset:0;width:15px;height:15px}
.stars .full{fill:#ffc24a;opacity:0;transition:opacity .2s}
.stars .line{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round;transition:opacity .2s}
.gh-cta:hover .stars .full{opacity:1}.gh-cta:hover .stars .line{opacity:0}

/* Hero */
.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);align-items:center;gap:72px;padding:72px var(--g) 128px}
.lead{margin-top:16px;font-size:21px;color:var(--muted)}
.get{display:flex;flex-direction:column;align-items:flex-start;gap:16px;margin-top:32px}
.dl{display:inline-flex;align-items:center;gap:10px;height:50px;padding:0 26px 0 22px;border-radius:999px;font-size:17px;font-weight:600;color:var(--ink);
  background:linear-gradient(rgba(255,255,255,.17),rgba(255,255,255,.08));-webkit-backdrop-filter:blur(18px) saturate(1.6);backdrop-filter:blur(18px) saturate(1.6);
  box-shadow:0 12px 28px -12px rgba(0,0,0,.8),0 1px 2px rgba(0,0,0,.4);transition:background .2s}
.dl:hover{background:linear-gradient(rgba(255,255,255,.22),rgba(255,255,255,.12))}
.dl:focus-visible{background:linear-gradient(rgba(255,255,255,.24),rgba(255,255,255,.14))}
.apple{flex:none;width:15px;height:18px;background:currentColor;-webkit-mask:url(assets/menubar/apple.png) center/contain no-repeat;mask:url(assets/menubar/apple.png) center/contain no-repeat;transform:translateY(-1px)}
.brew{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 4px 0 12px;border-radius:8px;background:var(--fill);box-shadow:inset 0 0 0 1px rgba(255,255,255,.07);font:400 13px/1 var(--mono);color:var(--muted);letter-spacing:0;white-space:nowrap;transition:background-color .15s,box-shadow .15s}
.brew:hover{background:rgba(255,255,255,.09)}
.brew code{font:inherit}
.brew button{display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer;transition:background .15s,color .15s}
.brew button:hover{background:var(--fill-hi);color:var(--ink)}
.brew svg{grid-area:1/1;width:14px;height:14px;transition:opacity .15s}
.brew .ok{opacity:0;color:#5ad27a}
.brew.done .ok{opacity:1}.brew.done .cp{opacity:0}
.fine{margin-top:16px;font-size:14px;color:var(--muted)}
.demo{position:relative;overflow:hidden;border-radius:18px;background:#141416;box-shadow:var(--shadow)}
.hero-demo{height:clamp(520px,calc(100svh - 280px),600px)}


/* Tools */

/* Text pages: privacy, terms, 404 */
.doc{max-width:760px;padding:var(--s5) 0 var(--s6)}
.doc h1{font-size:var(--t-h2)}
.doc .lead{margin-top:var(--s2)}
.doc .fine{margin-top:var(--s1)}
.doc h2{margin-top:var(--s5);font-size:24px;line-height:1.2;letter-spacing:-.02em}
.doc p,.doc li{font-size:17px;color:#c7c7cc}
.doc p{margin-top:var(--s1)}
.doc ul{margin:var(--s1) 0 0;padding-left:20px}
.doc li+li{margin-top:var(--s1)}
.doc b{color:var(--ink);font-weight:600}
.doc a:not(.dl){color:var(--ink);text-decoration:underline;text-decoration-color:rgba(255,255,255,.3);text-underline-offset:3px;transition:text-decoration-color .15s;overflow-wrap:anywhere}
.doc a:not(.dl):hover{text-decoration-color:var(--ink)}
.doc .get{margin-top:var(--s4)}

/* Footer: static large wordmark */
.foot{max-width:1336px;margin:0 auto;padding:0 var(--g);overflow:hidden}
.foot-top{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--s4);margin-top:var(--s5);padding-top:var(--s5)}
.foot-top::before{content:"";position:absolute;top:0;left:50%;width:min(56%,560px);height:1px;translate:-50% 0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent)}
.brand{display:flex;flex-direction:column;align-items:flex-start}
.brand .id{display:flex;align-items:center;gap:12px;font-weight:600;font-size:19px;letter-spacing:-.02em}
.brand .cmd{margin-top:var(--s2)}
.cols{display:grid;grid-template-columns:repeat(3,minmax(0,160px));gap:var(--s3)}
.cols ul{list-style:none;margin:0;padding:0}
.cols h4{margin:0 0 var(--s1);font-size:13px}
.ln{display:inline-flex;align-items:center;min-height:32px;margin:0 -8px;padding:0 8px;border-radius:8px;font-size:15px;color:var(--muted);text-decoration:none;transition:color .15s}
.ln:hover{color:var(--ink)}
.cmd{display:inline-flex;align-items:center;gap:4px;max-width:100%;height:32px;padding:0 4px 0 12px;border-radius:9px;background:var(--fill);box-shadow:inset 0 0 0 1px rgba(255,255,255,.07);transition:background-color .15s}
.cmd:hover{background:var(--fill-hi)}
.cmd code{font:400 13px/1 var(--mono);color:#d4d4d8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.cmd code::before{content:"$ ";color:var(--muted)}
.cmd button{flex:none;display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer;transition:background-color .15s,color .15s}
.cmd button:hover{background:var(--fill-hi);color:var(--ink)}
.cmd svg{width:15px;height:15px}
.cmd .ok,.cmd.done .cp{display:none}
.cmd.done .ok{display:block;color:var(--ok)}
.foot-fine{display:flex;flex-wrap:wrap;gap:6px var(--s3);margin-top:var(--s5);font-size:13px;color:var(--muted)}
.foot-fine .soft{margin-left:auto}
.word{--fs:calc((min(100vw,1336px) - 2 * var(--g)) / 6.6);margin:var(--s3) 0 calc(var(--fs) * -.24);font-weight:700;font-size:var(--fs);line-height:1;letter-spacing:-.04em;white-space:nowrap;text-align:center;-webkit-mask:linear-gradient(180deg,#000 30%,rgba(0,0,0,.3));mask:linear-gradient(180deg,#000 30%,rgba(0,0,0,.3));user-select:none}

@media (max-width:860px){
  :root{--gap:72px}
  .nav nav a:not(.gh-cta){display:none}
  .hero{grid-template-columns:1fr;gap:48px;padding:40px var(--g) 88px}
  .hero-demo{height:480px}
  .brew{font-size:12px}
  .foot-top{grid-template-columns:minmax(0,1fr)}
  .foot-fine .soft{margin-left:0;width:100%}
}
@media (max-width:760px){.cmd code{font-size:11px}.cmd code::before{content:none}}
@media (max-width:430px){.brew code{font-size:11px}}
