@font-face { font-family: "Space Grotesk"; src: url(/fonts/space-grotesk.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jetbrains-mono.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/fonts/instrument-serif.woff2) format("woff2"); font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/fonts/instrument-serif-italic.woff2) format("woff2"); font-style: italic; font-display: swap; }

:root {
  --void: #050508;
  --ink: #0b0b12;
  --ink2: #12121c;
  --line: rgba(236, 235, 245, .08);
  --line2: rgba(236, 235, 245, .16);
  --text: #ecebf5;
  --dim: #8a88a3;
  --faint: #4a4960;
  --violet: #8b5cff;
  --cyan: #5cf0ff;
  --ember: #ffb547;
  --rose: #ff5c8a;
  --lime: #b8ff5c;
  --pad: clamp(20px, 5vw, 72px);
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--void); color: var(--text); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font: 400 17px/1.6 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::selection { background: var(--violet); color: #fff; }
a { color: inherit; text-decoration: none; }
code { font: 500 .86em var(--mono); color: var(--cyan); background: rgba(92, 240, 255, .07); padding: .1em .35em; border-radius: 4px; }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

/* film grain and cursor light */
.grain { position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .07;
  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");
  animation: grain 1s steps(4) infinite; }
@keyframes grain { 0% { background-position: 0 0 } 25% { background-position: -37px 23px } 50% { background-position: 41px -29px } 75% { background-position: -19px -47px } }
.cursor { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; z-index: 1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139, 92, 255, .13), transparent); transform: translate3d(var(--cx, -999px), var(--cy, -999px), 0); }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(rgba(5, 5, 8, .7), rgba(5, 5, 8, .2)); border-bottom: 1px solid transparent; transition: border-color .4s; }
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.03em; }
.brand svg { width: 26px; height: 26px; color: var(--text); }
.nav nav { display: flex; gap: 32px; font-size: 14px; color: var(--dim); }
.nav nav a { position: relative; transition: color .2s; }
.nav nav a:hover { color: var(--text); }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: var(--cyan); transition: right .3s; }
.nav nav a:hover::after { right: 0; }
/* hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
#smoke { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; z-index: -1; background: linear-gradient(transparent, var(--void)); }
.hero-in { position: relative; text-align: center; padding: 120px var(--pad) 140px; }
.hero-in::before { content: ""; position: absolute; inset: 10% 5%; z-index: -1; background: radial-gradient(closest-side, rgba(5, 5, 8, .4), transparent); }
.wordmark { font-size: clamp(120px, 27vw, 420px); line-height: .82; font-weight: 700; letter-spacing: -.075em; margin: 0 0 18px; color: #fff; user-select: none;
  text-shadow: 0 0 80px rgba(139, 92, 255, .55), 0 0 2px rgba(255, 255, 255, .4); }
.wordmark span { display: inline-block; padding-right: .06em; }
.lede { font-size: clamp(30px, 4.4vw, 60px); line-height: 1.05; }
.lede em { color: var(--cyan); text-shadow: 0 0 28px rgba(92, 240, 255, .45); display: inline-block; min-width: 4ch; text-align: left; }
.sub { margin-top: 18px; color: var(--dim); font-size: clamp(15px, 1.4vw, 18px); }
.cmd { position: relative; display: inline-flex; align-items: center; gap: 10px; margin-top: 38px; padding: 15px 18px 15px 20px; font-size: 14px;
  background: rgba(11, 11, 18, .7); border: 1px solid var(--line2); border-radius: 12px; backdrop-filter: blur(12px); box-shadow: 0 0 0 1px rgba(139, 92, 255, .0), 0 30px 80px -20px rgba(139, 92, 255, .45); }
.cmd .line { white-space: nowrap; }
.cmd b { color: var(--cyan); font-weight: 500; }
.cmd .ps { color: var(--violet); }
.caret { width: 8px; height: 17px; background: var(--text); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0 } }
.cmd button { margin-left: 14px; font: 500 11px var(--mono); color: var(--dim); background: none; border: 1px solid var(--line2); border-radius: 6px; padding: 4px 8px; cursor: pointer; transition: .2s; }
.cmd button:hover { color: var(--text); border-color: var(--violet); }
.ticker { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--line); overflow: hidden; font-size: 12px; color: var(--dim);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); background: rgba(5, 5, 8, .5); }
.ticker-track { display: flex; gap: 42px; padding: 12px 0; width: max-content; animation: tick 60s linear infinite; }
.ticker-track span b { font-weight: 500; color: var(--text); }
.ticker-track .ok { color: var(--lime); }
.ticker-track .bad { color: var(--rose); }
@keyframes tick { to { transform: translateX(-50%) } }
.scroll { position: absolute; right: var(--pad); bottom: 64px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); writing-mode: vertical-rl; }
.scroll i { width: 1px; height: 60px; background: linear-gradient(var(--cyan), transparent); animation: drip 2s infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0) } 60% { transform: scaleY(1); opacity: 1 } 100% { opacity: 0 } }

/* shared section bits */
.band { position: relative; padding: clamp(100px, 14vw, 180px) var(--pad); border-top: 1px solid var(--line); }
.label { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 56px; }
.label b { color: var(--violet); font-weight: 500; }
.label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line2), transparent); }
.display { font-size: clamp(44px, 6.4vw, 104px); line-height: .95; font-weight: 600; letter-spacing: -.045em; }
.display .serif { font-weight: 400; color: var(--cyan); letter-spacing: -.02em; }
.band p { color: var(--dim); max-width: 54ch; margin-top: 22px; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(.2, .7, .1, 1), transform 1s cubic-bezier(.2, .7, .1, 1), filter 1s; }
.display.reveal:not(.in) { filter: blur(10px); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* the call */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.term { border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, rgba(18, 18, 28, .9), rgba(8, 8, 13, .95));
  box-shadow: 0 50px 120px -40px rgba(139, 92, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .05); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line2); }
.term-bar span { margin-left: auto; margin-right: auto; font-size: 11px; color: var(--faint); transform: translateX(-20px); }
.term-body { height: 440px; overflow: hidden; padding: 18px 20px; font-size: 12.5px; line-height: 1.75; white-space: pre-wrap; color: var(--dim); }
.term-body .p { color: var(--violet); }
.term-body .t { color: var(--text); }
.term-body .k { color: var(--cyan); }
.term-body .g { color: var(--lime); }
.term-body .a { color: var(--ember); }
.term-body .r { color: var(--rose); }
.term-body .f { color: var(--faint); }
.term-body .cur { display: inline-block; width: 7px; height: 14px; background: var(--text); vertical-align: -2px; animation: blink 1s steps(1) infinite; }

/* api */
.code { border: 1px solid var(--line2); border-radius: 14px; background: var(--ink); overflow: hidden; box-shadow: 0 50px 120px -50px rgba(92, 240, 255, .35); }
.code-bar { padding: 14px 20px; font-size: 12px; color: var(--dim); border-bottom: 1px solid var(--line); }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button { font: 500 12px var(--mono); color: var(--dim); background: none; border: 0; padding: 14px 20px; cursor: pointer; position: relative; }
.tabs button[aria-selected="true"] { color: var(--text); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.code pre { padding: 24px; font-size: 13px; line-height: 1.75; overflow-x: auto; color: var(--text); }
.code .c, .code .o { color: var(--faint); }
.code .p, .code .k { color: var(--violet); }
.code .s { color: var(--cyan); }
.code .v { color: var(--ember); }
.code .n { color: var(--lime); }
.code .h { color: var(--dim); }

.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px var(--pad); border-top: 1px solid var(--line); font-size: 11px; color: var(--faint); letter-spacing: .08em; }

/* small screens */
@media (max-width: 900px) {
  .nav nav { display: none; }
  .split { grid-template-columns: 1fr; }
  .scroll { display: none; }
  .cmd { font-size: 12px; } .cmd button { display: none; }
  .term-body { height: 420px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
