/* Vektor. Near-black canvas, violet-to-cyan vector accents, grotesk display type, glassy cards. */

:root {
  --bg: #08080b;
  --bg-2: #0d0d12;
  --card: rgba(255, 255, 255, 0.035);
  --card-solid: #111118;
  --card-2: #16161f;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  --text: #f5f5f7;
  --text-2: rgba(245, 245, 247, 0.72);
  --text-3: rgba(245, 245, 247, 0.48);

  --violet: #8b6cff;
  --cyan: #22d3ee;
  --rose: #ff6b8b;
  --amber: #fbbf24;
  --lime: #a3e635;
  --green: #34d399;
  --red: #f87171;
  --accent: var(--violet);
  --grad: linear-gradient(100deg, #a78bfa 0%, #8b6cff 30%, #22d3ee 100%);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 20px;
  --gutter: 16px;
  --max: 1200px;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code, kbd, pre { font-family: var(--font-mono); font-variant-ligatures: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(139, 108, 255, 0.45); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: 10px; background: #fff; color: #000; font-weight: 600; }
.skip:focus { top: 12px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }
.btn-primary { background: var(--text); color: #0a0a0f; box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 8px 30px -8px rgba(139,108,255,.6); }
.btn-primary:hover { background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 10px 40px -6px rgba(34,211,238,.55); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.06); }

/* Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  transition: background .3s, border-color .3s; border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(8, 8, 11, 0.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.brand-name { font: 700 19px/1 var(--font-display); letter-spacing: -0.02em; }
.nav { display: none; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--text-2); font-size: 14px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.header-end { display: flex; align-items: center; gap: 10px; }
.header-end .btn { display: none; }
.menu-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); }
@media (min-width: 900px) {
  .nav { display: flex; }
  .header-end .btn { display: inline-flex; }
  .menu-btn { display: none; }
}
body.menu-open .nav {
  display: flex; flex-direction: column; position: fixed; inset: 68px 0 auto; padding: 12px var(--gutter) 20px;
  background: rgba(8,8,11,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
body.menu-open .nav a { padding: 12px; font-size: 16px; }

.status { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 currentColor; }
.status.is-ok .status-dot { background: var(--green); animation: beacon 2s infinite; color: rgba(52,211,153,.5); }
.status.is-down .status-dot { background: var(--red); }
@media (max-width: 420px) { .status-text { display: none; } .status { padding: 0 10px; } }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Hero */
.hero {
  position: relative; min-height: 100svh; display: grid; align-content: center; gap: 48px;
  padding: 120px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) 72px; isolation: isolate; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 90%; z-index: -2;
  background: radial-gradient(50% 50% at 30% 40%, rgba(139,108,255,.28), transparent 70%), radial-gradient(40% 40% at 75% 30%, rgba(34,211,238,.18), transparent 70%);
  filter: blur(20px);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; z-index: -1; background: linear-gradient(transparent, var(--bg)); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.hero-inner { max-width: 760px; display: grid; gap: 22px; justify-items: start; }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); font-size: 13px; color: var(--text-2); backdrop-filter: blur(8px); }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.hero-title { font: 700 clamp(42px, 8.4vw, 92px)/0.98 var(--font-display); letter-spacing: -0.045em; }
.hero-sub { max-width: 580px; font-size: clamp(16px, 2vw, 18px); color: var(--text-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--text-3); }
.hero-meta span::before { content: "✓ "; color: var(--lime); }
.ca { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 6px 6px 6px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 13px; }
.ca-ticker { font-weight: 700; font-family: var(--font-display); }
.ca-label { color: var(--text-3); font-size: 11px; letter-spacing: .1em; }
.ca-addr { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca-copy { height: 28px; padding: 0 12px; border-radius: 9px; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 600; }
.ca-copy:hover { background: rgba(255,255,255,.14); }

.hero-term {
  width: 100%; max-width: 560px; justify-self: end; border-radius: 18px; overflow: hidden;
  background: rgba(13,13,18,.82); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(139,108,255,.08);
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text-3); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.term-bar span { margin-left: auto; font-family: var(--font-mono); }
.term-body { margin: 0; padding: 18px; min-height: 230px; font-size: 13px; line-height: 1.65; white-space: pre-wrap; color: var(--text-2); }
.term-body .t-p { color: var(--cyan); }
.term-body .t-u { color: var(--text); }
.term-body .t-n { color: var(--text-3); }
.term-body .caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -2px; background: var(--violet); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (min-width: 1080px) {
  .hero { grid-template-columns: 1.3fr 1fr; align-items: center; }
  .hero-title { font-size: clamp(56px, 6.2vw, 86px); }
  .hero-term { margin-top: 40px; }
}

/* Marquee band */
.band { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.band-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.band-track span { padding: 0 28px; font: 600 15px var(--font-display); color: var(--text-3); white-space: nowrap; }
.band-track span::after { content: "✦"; margin-left: 56px; color: var(--violet); opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 110px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) 0; }
.section-head { display: grid; gap: 14px; max-width: 640px; margin-bottom: 40px; }
.eyebrow { font: 600 12px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.h2 { font: 700 clamp(32px, 5vw, 54px)/1.04 var(--font-display); letter-spacing: -0.035em; }
.h2 em { font-size: 1.08em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.lede { color: var(--text-2); font-size: 16px; }
.lede code, .ticks code { font-size: .88em; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.07); }

/* Playground */
.play { position: relative; display: grid; gap: 16px; }
@media (min-width: 980px) { .play { grid-template-columns: 1fr 260px; } }
.play-glow { position: absolute; inset: 10% 10% auto; height: 70%; z-index: -1; background: radial-gradient(closest-side, rgba(139,108,255,.25), transparent); filter: blur(40px); }
.play-card { border-radius: 24px; border: 1px solid var(--line-2); background: rgba(13,13,18,.86); box-shadow: 0 40px 100px -40px rgba(0,0,0,.9); min-width: 0; }
.play-side { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
@media (min-width: 980px) { .play-side { grid-template-columns: 1fr; } }
.stat { display: grid; gap: 4px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.stat-k { font-size: 12px; color: var(--text-3); }
.stat-v { font: 700 26px/1.1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-v--sm { font: 500 13px/1.4 var(--font-mono); word-break: break-all; }
.play-note { grid-column: 1 / -1; font-size: 12px; color: var(--text-3); padding: 4px 4px 0; }

/* Chat component (shared with the widget) */
.chat { display: flex; flex-direction: column; height: min(680px, 78svh); min-height: 460px; }
.chat-modes { display: flex; gap: 4px; padding: 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.chat-modes::-webkit-scrollbar { display: none; }
.chat-mode { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-3); transition: color .2s, background .2s; }
.chat-mode:hover { color: var(--text); }
.chat-mode[aria-selected="true"] { color: #0a0a0f; background: var(--text); }
.chat-log { flex: 1; overflow-y: auto; padding: 20px 16px; display: flex; flex-direction: column; gap: 18px; overscroll-behavior: contain; }
@media (min-width: 720px) { .chat-log { padding: 24px; } }
.chat-empty { margin: auto 0; display: grid; gap: 18px; justify-items: center; text-align: center; padding: 10px 0; }
.chat-empty[hidden] { display: none; }
.chat-empty-title { font: 700 24px var(--font-display); letter-spacing: -0.02em; }
.chat-chips { display: grid; gap: 8px; width: 100%; max-width: 560px; }
@media (min-width: 720px) { .chat-chips { grid-template-columns: 1fr 1fr; } }
.chat-chip { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.025); font-size: 13px; color: var(--text-2); transition: border-color .2s, background .2s, transform .2s var(--ease); }
.chat-chip span { font: 600 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.chat-chip:hover { border-color: rgba(139,108,255,.5); background: rgba(139,108,255,.07); transform: translateY(-1px); }

.msg { display: grid; gap: 8px; max-width: 100%; min-width: 0; animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.msg--user { justify-items: end; }
.msg--user .msg-body { max-width: 85%; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: linear-gradient(135deg, rgba(139,108,255,.32), rgba(34,211,238,.18)); border: 1px solid rgba(139,108,255,.35); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--assistant .msg-body { display: grid; gap: 10px; min-width: 0; color: var(--text); }
.msg-body p { overflow-wrap: anywhere; }
.msg-body ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.msg-body code:not(.hljs) { font-size: .88em; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.08); }
.msg-body a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.msg-body .md-h { font-weight: 700; }
.msg-error { color: var(--red); font-size: 14px; }
.msg-foot { font: 12px var(--font-mono); color: var(--text-3); }
.msg-think { font-size: 13px; color: var(--text-3); }
.msg-think summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.msg-think summary::-webkit-details-marker { display: none; }
.msg-think-body { margin-top: 8px; padding: 10px 12px; border-left: 2px solid rgba(139,108,255,.5); white-space: pre-wrap; max-height: 220px; overflow-y: auto; font-size: 12.5px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); animation: pulse 1s infinite alternate; }
.msg-think.is-done .pulse { animation: none; background: var(--green); }
@keyframes pulse { to { opacity: .25; transform: scale(.7); } }
.typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { transform: translateY(-4px); background: var(--text); } }

.code { margin: 0; border-radius: 14px; border: 1px solid var(--line); background: #0a0a10; overflow: hidden; min-width: 0; }
.code figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.025); }
.code-lang { font: 500 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.code-actions { display: flex; gap: 4px; }
.code-btn { height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--text-2); transition: background .2s, color .2s; }
.code-btn:hover { background: rgba(255,255,255,.08); color: var(--text); }
.code-btn:disabled { opacity: .6; cursor: default; }
.code-run { color: var(--lime); }
.code pre { margin: 0; padding: 14px; overflow-x: auto; font-size: 13px; line-height: 1.6; }
.code-out { display: block; padding: 10px 14px; border-top: 1px dashed var(--line-2); background: rgba(163,230,53,.03); font: 12.5px/1.6 var(--font-mono); max-height: 240px; overflow: auto; }
.code-out[hidden] { display: none; }
.out { white-space: pre-wrap; overflow-wrap: anywhere; }
.out::before { content: "› "; color: var(--text-3); }
.out--error { color: var(--red); } .out--warn { color: var(--amber); } .out--result { color: var(--cyan); } .out--status { color: var(--text-3); font-style: italic; }

.chat-form { padding: 12px; border-top: 1px solid var(--line); }
.chat-input {
  width: 100%; resize: none; border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px;
  background: rgba(255,255,255,.03); color: var(--text); font: 15px/1.5 var(--font-sans); outline: none; transition: border-color .2s, box-shadow .2s;
}
.chat-input:focus { border-color: rgba(139,108,255,.6); box-shadow: 0 0 0 4px rgba(139,108,255,.14); }
.chat-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; }
.chat-meta { font-size: 12px; color: var(--text-3); }
.chat-meta kbd { font-size: 11px; padding: 1px 5px; border-radius: 5px; border: 1px solid var(--line-2); }
@media (max-width: 560px) { .chat-meta { display: none; } }
.chat-bar-actions { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.chat-reset { height: 36px; padding: 0 12px; border-radius: 10px; font-size: 13px; color: var(--text-2); }
.chat-reset:hover { background: rgba(255,255,255,.06); }
.chat-reset[hidden] { display: none; }
.chat-send { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--text); color: #0a0a0f; transition: transform .2s var(--ease); }
.chat-send:hover { transform: scale(1.05); }
.chat.is-busy .chat-send { background: var(--rose); color: #fff; }
.chat.is-busy .chat-send svg { display: none; }
.chat.is-busy .chat-send::after { content: ""; width: 12px; height: 12px; border-radius: 3px; background: currentColor; }

/* highlight.js theme */
.hljs { color: #e6e6ef; background: transparent; }
.hljs-keyword, .hljs-selector-tag, .hljs-built_in, .hljs-type { color: #b39dff; }
.hljs-string, .hljs-regexp, .hljs-addition, .hljs-attribute { color: #a3e635; }
.hljs-number, .hljs-literal, .hljs-symbol { color: #fbbf24; }
.hljs-comment, .hljs-quote, .hljs-meta { color: #6b6b80; font-style: italic; }
.hljs-title, .hljs-title.function_, .hljs-section { color: #22d3ee; }
.hljs-variable, .hljs-template-variable, .hljs-params, .hljs-property { color: #f5f5f7; }
.hljs-attr, .hljs-name, .hljs-tag { color: #ff8fab; }
.hljs-deletion { color: #f87171; }

/* Modes */
.modes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.mode-card {
  position: relative; display: grid; gap: 10px; align-content: start; text-align: left; padding: 22px; min-height: 210px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); overflow: hidden;
  transition: transform .35s var(--ease), border-color .3s, background .3s;
}
.mode-card::before { content: ""; position: absolute; inset: auto -30% -60% -30%; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 30%, transparent), transparent); opacity: 0; transition: opacity .4s; }
.mode-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.mode-card:hover::before { opacity: 1; }
.mode-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); font: 700 18px var(--font-mono); }
.mode-name { font: 700 22px var(--font-display); letter-spacing: -0.02em; }
.mode-desc { font-size: 14px; color: var(--text-2); }
.mode-tag { position: absolute; top: 20px; right: 20px; font: 600 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.mode-tag::before { content: "● "; }

/* Live */
.live { display: grid; gap: 12px; }
@media (min-width: 900px) { .live { grid-template-columns: 1fr 2fr; } }
.live-card { display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); min-width: 0; }
.live-k { font-size: 13px; color: var(--text-3); }
.live-v { font: 700 clamp(28px, 4vw, 40px)/1.1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.live-sub { font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.ping { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.ping b { color: var(--text); font-family: var(--font-mono); font-weight: 500; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 44px; }
.spark i { flex: 0 0 calc(100% / 24 - 3px); min-width: 2px; border-radius: 2px; background: linear-gradient(var(--cyan), var(--violet)); opacity: .8; transition: height .4s var(--ease); }
.market-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.market-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
@media (min-width: 640px) { .market-grid { grid-template-columns: repeat(4, 1fr); } }
.market-grid div, .changes div { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); min-width: 0; }
.market-grid span, .changes span { font-size: 12px; color: var(--text-3); }
.market-grid b, .changes b { font: 600 16px var(--font-mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.changes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.up { color: var(--green); } .down { color: var(--red); }
.flash-up { animation: fu 1s; } .flash-down { animation: fd 1s; }
@keyframes fu { from { color: var(--green); text-shadow: 0 0 12px var(--green); } }
@keyframes fd { from { color: var(--red); text-shadow: 0 0 12px var(--red); } }

/* Embed and API */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 980px) { .split { grid-template-columns: 1fr 1.1fr; gap: 56px; } .split--rev { grid-template-columns: 1.1fr 1fr; } }
@media (max-width: 979px) { .split--rev .snippet { order: 2; } }
.split .section-head { margin: 0; }
.ticks { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 10px; color: var(--text-2); font-size: 15px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 4px; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5L20 7' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5L20 7' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.split .btn { justify-self: start; }
.snippet { border-radius: var(--radius); border: 1px solid var(--line-2); background: #0a0a10; overflow: hidden; min-width: 0; box-shadow: 0 30px 80px -40px rgba(139,108,255,.4); }
.snippet-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); font: 12px var(--font-mono); color: var(--text-3); }
.snippet pre { margin: 0; padding: 18px; overflow-x: auto; font-size: 13px; line-height: 1.7; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: 16px; border: 1px solid var(--line); background: var(--card); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font: 600 16px var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--font-sans); color: var(--text-3); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--text-2); }

/* Final CTA and footer */
.final { margin: 120px auto 0; padding: 0 var(--gutter); display: grid; gap: 28px; justify-items: center; text-align: center; }
.final-title { font: 700 clamp(36px, 7vw, 76px)/1 var(--font-display); letter-spacing: -0.045em; max-width: 900px; }
.footer { margin-top: 120px; border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter) 48px; display: grid; gap: 18px; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: auto 1fr; align-items: center; } .footer-inner nav { justify-self: end; } .footer-note { grid-column: 1 / -1; } }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--text-2); }
.footer nav a:hover { color: var(--text); }
.footer [hidden] { display: none; }
.footer-note { font-size: 12px; color: var(--text-3); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
