/* 404 — the pool that can say no. black, and every colour a terminal knows. */

:root {
  color-scheme: dark;
  --bg: #050507;
  --bg-2: #0a0a0e;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.2);
  --ink: #f4f4f6;
  --muted: #9a9aa6;
  --dim: #5f5f6b;

  --green: #3ddc84;
  --cyan: #22d3ee;
  --magenta: #ff4fd8;
  --violet: #8b5cf6;
  --orange: #ff8a3d;
  --blue: #4f7cff;

  --ok: var(--green);
  --refused: var(--magenta);
  --grad: linear-gradient(90deg, #ff4fd8 0%, #8b5cf6 34%, #22d3ee 68%, #3ddc84 100%);

  --font-display: "Unbounded", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-logo: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --spectrum: linear-gradient(90deg, #ff4fd8 0%, #8b5cf6 18%, #4f7cff 34%, #22d3ee 50%, #3ddc84 66%, #c6ef4a 82%, #ff8a3d 100%);

  --radius: 10px;
  --pad-x: clamp(20px, 5vw, 72px);
  --wrap: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--font-mono); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* --------------------------------- chips -------------------------------- */

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  min-width: 40px;
  padding: 0 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #05070a;
  background: var(--refused);
}
.chip--ok { background: var(--ok); }
.chip--404 { background: var(--refused); }
.chip--dim { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }

/* -------------------------------- header -------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 42px;
}
.brand { display: inline-flex; align-items: center; }
.brand-word { font-family: var(--font-logo); font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.header-right { display: flex; align-items: center; gap: 26px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-size: 12px; letter-spacing: 0.02em; color: var(--muted); transition: color 160ms ease; }
.nav a:hover, .nav a.is-here { color: var(--ink); }
.nav-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 22px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--muted);
  transition: color 160ms ease, border-color 160ms ease;
}
.nav-x:hover { color: var(--ink); border-color: var(--ink); }
.header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 16px; border-radius: 999px;
  background: var(--ink); color: #050507;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
  transition: transform 160ms ease, background 160ms ease;
}
.header-cta:hover { transform: translateY(-1px); background: #fff; }
.header-cta.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.header-cta.ghost:hover { border-color: var(--ink); background: transparent; }

/* --------------------------------- hero --------------------------------- */

.hero {
  position: relative;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 24px var(--pad-x) 0;
  background: var(--bg);
}

/* colour, alive: one band of spectrum, blurred wide, sliding and turning */
.spectrum { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.spectrum::before,
.spectrum .band {
  content: "";
  position: absolute;
  left: -30%; right: -30%; top: 22%;
  height: 50%;
  background: var(--spectrum);
  background-size: 200% 100%;
  filter: blur(90px);
  opacity: 0.42;
  transform: skewY(-8deg);
  animation: spectrum-slide 13s ease-in-out infinite alternate, spectrum-hue 24s linear infinite, spectrum-pan 18s linear infinite;
  will-change: transform, filter, background-position;
}
.spectrum .band {
  top: 48%;
  height: 34%;
  opacity: 0.26;
  transform: skewY(6deg);
  animation: spectrum-slide-b 17s ease-in-out infinite alternate, spectrum-hue 30s linear infinite reverse, spectrum-pan 22s linear infinite reverse;
}
@keyframes spectrum-pan { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
@keyframes spectrum-slide-b { from { transform: translate3d(5%, 0, 0) skewY(6deg) scaleY(1); } to { transform: translate3d(-6%, 8%, 0) skewY(3deg) scaleY(1.25); } }
.spectrum::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(5, 5, 7, 0.95), transparent 70%),
    radial-gradient(70% 60% at 50% 0%, rgba(5, 5, 7, 0.9), transparent 70%);
}
@keyframes spectrum-slide { from { transform: translate3d(-6%, 0, 0) skewY(-8deg) scaleY(1); } to { transform: translate3d(6%, -9%, 0) skewY(-3deg) scaleY(1.3); } }
@keyframes spectrum-hue { from { filter: blur(90px) hue-rotate(0deg); } to { filter: blur(90px) hue-rotate(360deg); } }

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: clamp(28px, 4vh, 48px) clamp(24px, 4vw, 64px);
  padding-top: clamp(30px, 5vh, 56px);
  min-height: 0;
}
.console-cluster { grid-column: 1; grid-row: 1; width: min(440px, 100%); }
.hero-copy { grid-column: 1; grid-row: 2; align-self: end; padding-bottom: clamp(40px, 8vh, 80px); max-width: 620px; }
.hero-copy h1 { font-size: clamp(26px, 3vw, 44px); line-height: 1.06; }
.hero-copy h1 .mono { font-family: var(--font-mono); font-weight: 500; }
.hero-copy p { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 56ch; }
.hero-cta { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }

.giant {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  justify-self: end;
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: clamp(120px, 21vw, 300px);
  line-height: 0.86;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f6 45%, #8a8a93 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: clamp(30px, 6vh, 60px);
  user-select: none;
}
@keyframes grad-slide { from { background-position: 0% 50%; } to { background-position: 300% 50%; } }

/* ------------------------------ console card ---------------------------- */

.console-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(8, 8, 12, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.console-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 84px)) 1fr auto;
  align-items: end;
  min-height: 42px;
  border-bottom: 1px solid var(--line);
}
.console-tab {
  position: relative; height: 42px;
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--dim);
  transition: color 160ms ease;
}
.console-tab:hover { color: var(--muted); }
.console-tab.active { color: var(--ink); }
.console-tab.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--grad); }
.console-window-control { width: 10px; height: 10px; margin: 0 10px 16px 0; border-radius: 3px; background: var(--line-2); }
.console-window-control.wide { justify-self: end; width: 64px; }
.console-pane { min-height: 160px; padding: 18px 18px 16px; color: var(--muted); }
.console-pane[hidden] { display: none; }
.console-pane pre { margin: 0; font-family: var(--font-mono); font-size: 12px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.console-pane pre + pre { margin-top: 10px; }
.terminal-muted { color: var(--green); }
.terminal-output { color: var(--green); min-height: 18px; }
.terminal-output[data-status="404"] { color: var(--magenta); }
.terminal-output::after { content: ""; display: inline-block; width: 7px; height: 12px; margin-left: 3px; vertical-align: -2px; background: currentColor; animation: cursor-blink 1s steps(2, start) infinite; }
.terminal-output[data-typing="false"]::after { opacity: 0.35; animation: none; }
@keyframes cursor-blink { to { visibility: hidden; } }
.console-field { display: grid; gap: 6px; margin-bottom: 10px; font-size: 11px; }
.console-field span { color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; font-size: 10px; }
.console-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.console-input { display: flex; align-items: center; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(0, 0, 0, 0.5); color: var(--ink); font-weight: 400; }
.console-input.select::after { content: "\25BE"; margin-left: auto; color: var(--dim); }
.console-input[data-typed]::after { content: ""; width: 7px; height: 12px; margin-left: 3px; background: var(--cyan); animation: cursor-blink 1s steps(2, start) infinite; }

/* ------------------------------- accordion ------------------------------ */

.platform-accordion { position: relative; min-height: 420svh; background: var(--bg); }
.accordion-inner {
  position: sticky; top: 0; height: 100vh;
  display: grid; grid-template-columns: 0.24fr 0.76fr; gap: clamp(20px, 4vw, 56px);
  align-items: center; padding: 0 var(--pad-x);
}
.accordion-nav { display: grid; gap: 8px; align-content: center; }
.accordion-tab {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px;
  color: var(--dim); font-size: 12px; letter-spacing: 0.02em; text-align: left;
  transition: color 180ms ease, transform 180ms ease, background 180ms ease;
}
.accordion-tab .dot { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 auto; background: var(--c, var(--ink)); opacity: 0.55; }
.accordion-tab:nth-child(1) { --c: var(--magenta); }
.accordion-tab:nth-child(2) { --c: var(--cyan); }
.accordion-tab:nth-child(3) { --c: var(--orange); }
.accordion-tab:nth-child(4) { --c: var(--green); }
.accordion-tab:hover { color: var(--muted); }
.accordion-tab.active { color: var(--ink); transform: translateX(2px); background: var(--panel); }
.accordion-tab.active .dot { opacity: 1; }
.accordion-stack { position: relative; height: min(80svh, 820px); overflow: hidden; border-radius: 14px; }
.accordion-card {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 0.44fr 0.56fr; gap: clamp(18px, 3vw, 40px);
  padding: clamp(22px, 3vw, 40px);
  background: #08080b; border-top: 1px solid var(--line-2);
  transform: translateY(var(--card-y, 0px));
  clip-path: inset(0 0 var(--card-clip-bottom, 0px) 0);
  will-change: transform;
}
.card-copy { display: grid; align-content: start; gap: 14px; }
.card-copy .idx { font-size: 11px; color: var(--dim); letter-spacing: 0.08em; }
.card-copy h3 { font-size: clamp(20px, 2.2vw, 30px); line-height: 1.08; }
.card-copy p { color: var(--muted); max-width: 46ch; font-size: 13px; }
.card-visual { position: relative; display: grid; place-items: center; border-radius: 12px; min-height: 260px; overflow: hidden; }
.card-visual::before { content: ""; position: absolute; inset: 0; background: var(--g); opacity: 0.9; }
.card-visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 30% 20%, rgba(255, 255, 255, 0.3), transparent 60%); mix-blend-mode: overlay; }
.accordion-card:nth-child(1) .card-visual { --g: linear-gradient(135deg, #ff4fd8, #8b5cf6 60%, #3a1d6e); }
.accordion-card:nth-child(2) .card-visual { --g: linear-gradient(135deg, #22d3ee, #3ddc84 60%, #0f4d3a); }
.accordion-card:nth-child(3) .card-visual { --g: linear-gradient(135deg, #ff8a3d, #ff4fd8 60%, #5a1440); }
.accordion-card:nth-child(4) .card-visual { --g: linear-gradient(135deg, #8b5cf6, #22d3ee 60%, #143a5c); }
.code-window { position: relative; z-index: 1; width: min(88%, 440px); border-radius: 10px; background: rgba(6, 6, 9, 0.94); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); overflow: hidden; }
.window-dots { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.window-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.code-window pre { margin: 0; padding: 14px 16px 16px; font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: var(--muted); white-space: pre; overflow-x: auto; }
.code-window pre .n { color: var(--dim); }
.code-window pre .k { color: var(--ink); }

/* ------------------------------ log showcase ---------------------------- */

.console-showcase { position: relative; overflow: hidden; background: radial-gradient(50% 40% at 80% 0%, rgba(139, 92, 246, 0.18), transparent 70%), var(--bg); padding: clamp(70px, 10vh, 120px) 0; }
.showcase-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad-x); }
.showcase-head { display: grid; grid-template-columns: 0.6fr 0.4fr; gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(26px, 4vh, 40px); }
.showcase-head h2 { font-size: clamp(24px, 3.2vw, 44px); line-height: 1.05; }
.showcase-head p { color: var(--muted); font-size: 13px; }
.dashboard-shell {
  position: relative; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(8, 8, 12, 0.92);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6); transform: perspective(1400px) rotateX(0deg) rotateY(0deg);
  transition: transform 220ms ease, border-color 220ms ease; overflow: hidden;
}
.dashboard-shell::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%); transform: translateX(-34%); opacity: 0; transition: transform 520ms ease, opacity 520ms ease; pointer-events: none; }
.dashboard-shell:hover { transform: perspective(1400px) rotateX(1deg) rotateY(-1.2deg) translateY(-8px); border-color: rgba(255, 255, 255, 0.34); }
.dashboard-shell:hover::before { transform: translateX(34%); opacity: 1; }
.dashboard-topbar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.dashboard-topbar .window-dots { padding: 0; border: 0; }
.dashboard-topbar .titlebar { flex: 1 1 auto; height: 8px; max-width: 320px; border-radius: 999px; background: var(--line); }
.dashboard-body { display: grid; grid-template-columns: 220px 1fr; min-height: 400px; }
.dashboard-sidebar { padding: 18px 14px; border-right: 1px solid var(--line); }
.dashboard-sidebar .title { font-family: var(--font-display); font-weight: 700; font-size: 13px; padding: 6px 10px 14px; }
.sidebar-nav { display: grid; gap: 4px; }
.sidebar-nav span { padding: 8px 10px; border-radius: 6px; font-size: 13px; color: var(--muted); }
.sidebar-nav span.active { background: var(--panel-2); color: var(--ink); box-shadow: inset 2px 0 0 var(--cyan); }
.dashboard-main { padding: 18px 20px 24px; }
.dashboard-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dashboard-title-row h3 { font-size: 18px; }
.dash-btn { padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--ink); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; transition: border-color 160ms ease; }
.dash-btn:hover { border-color: var(--ink); }
.dashboard-table .row { display: grid; grid-template-columns: 1.1fr 1fr 0.9fr 1fr 0.7fr; gap: 12px; align-items: center; padding: 11px 8px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink); }
.dashboard-table .row.head { border-top: 0; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.dashboard-table .row .n { color: var(--muted); }
.dashboard-toast { position: absolute; right: 18px; bottom: 18px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(5, 5, 7, 0.96); font-size: 11px; line-height: 1.5; color: var(--muted); }
.dashboard-toast strong { display: block; font-weight: 500; color: var(--ink); }

/* ------------------------------ docs: the fee --------------------------- */

.pricing-section { position: relative; overflow: hidden; background: var(--bg-2); padding: clamp(70px, 10vh, 120px) 0 0; }
.pricing-top { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad-x); display: grid; grid-template-columns: 0.4fr 0.6fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.pricing-copy h2 { font-size: clamp(26px, 3vw, 42px); line-height: 1.04; }
.pricing-copy p { margin-top: 20px; color: var(--muted); max-width: 46ch; font-size: 13px; }
.pricing-table { border-top: 1px solid var(--line-2); }
.pricing-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pricing-head h3 { font-size: 16px; }
.billing-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.billing-toggle span { padding: 6px 12px; border-radius: 999px; color: var(--muted); cursor: pointer; transition: background 160ms ease, color 160ms ease; }
.billing-toggle span.active { background: var(--ink); color: #050507; }
.pricing-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.pricing-row .v { color: var(--ink); white-space: nowrap; }
.pricing-bars { position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-top: clamp(50px, 8vh, 90px); height: 420px; display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 3px; }
.pricing-bar { height: calc(var(--bar-height) + var(--bar-morph, 0px)); min-height: 110px; background: linear-gradient(180deg, var(--c), transparent 140%); opacity: 0.9; transition: height 80ms linear; border-radius: 4px 4px 0 0; }
.pricing-bar:nth-child(12n+2) { --c: #ff4fd8; } .pricing-bar:nth-child(12n+3) { --c: #e35ee0; } .pricing-bar:nth-child(12n+4) { --c: #b866ee; } .pricing-bar:nth-child(12n+5) { --c: #8b5cf6; }
.pricing-bar:nth-child(12n+6) { --c: #5f86ff; } .pricing-bar:nth-child(12n+7) { --c: #3fb0ff; } .pricing-bar:nth-child(12n+8) { --c: #22d3ee; } .pricing-bar:nth-child(12n+9) { --c: #2ee0c0; }
.pricing-bar:nth-child(12n+10) { --c: #3ddc84; } .pricing-bar:nth-child(12n+11) { --c: #7fe86a; } .pricing-bar:nth-child(12n+12) { --c: #c6ef4a; } .pricing-bar:nth-child(12n+13) { --c: #ff8a3d; }
.bars-fade { position: absolute; inset: 0 0 auto 0; height: 160px; background: linear-gradient(180deg, var(--bg-2), transparent); pointer-events: none; }
.bars-label { display: none; }
.plan-row { max-width: var(--wrap); margin: 0 auto; padding: clamp(46px, 7vh, 80px) var(--pad-x) clamp(60px, 9vh, 110px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.plan-card { max-width: 320px; display: grid; gap: 10px; align-content: start; }
.plan-card h3 { font-size: 16px; }
.plan-card .amt { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.plan-card:nth-child(1) .amt { color: var(--green); } .plan-card:nth-child(2) .amt { color: var(--cyan); } .plan-card:nth-child(3) .amt { color: var(--magenta); }
.plan-card p { color: var(--muted); font-size: 13px; }
.plan-cta { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px; margin-top: 6px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; transition: border-color 160ms ease; }
.plan-cta:hover { border-color: var(--ink); }

/* ------------------------------ docs: the hook -------------------------- */

.security-section { background: var(--bg); padding: clamp(70px, 10vh, 120px) 0; }
.security-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad-x); }
.security-head { display: grid; grid-template-columns: 0.58fr 0.42fr; gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(36px, 6vh, 64px); }
.security-head h2 { font-size: clamp(26px, 3.2vw, 46px); line-height: 1.04; }
.security-head p { color: var(--muted); font-size: 13px; }
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 22px); }
.security-card { position: relative; min-height: 440px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); display: grid; grid-template-rows: auto auto 1fr; gap: 12px; overflow: hidden; }
.security-card h3 { font-size: 19px; line-height: 1.15; }
.security-card > p { color: var(--muted); font-size: 13px; max-width: 36ch; }
.api-window { position: absolute; left: 24px; bottom: 24px; width: 60%; height: 176px; background: #000; border: 1px solid var(--line-2); border-radius: 8px; padding: 12px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.api-window .window-dots { padding: 0 0 10px; border: 0; }
.api-window pre { margin: 0; white-space: pre-wrap; font-family: inherit; }
.api-window .arrow { color: var(--green); }
.api-spec { position: absolute; right: 24px; top: 214px; width: 54%; padding: 12px 14px; background: rgba(139, 92, 246, 0.16); border: 1px solid rgba(139, 92, 246, 0.6); border-radius: 8px; font-size: 11px; line-height: 1.6; color: var(--ink); z-index: 2; backdrop-filter: blur(6px); }
.api-spec pre { margin: 0; white-space: pre; font-family: inherit; }
.compliance-rows { display: grid; gap: 10px; align-self: end; }
.compliance-row { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: center; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.compliance-row .badge { position: relative; width: 24px; height: 24px; border-radius: 50%; background: var(--green); }
.compliance-row .badge::before { content: ""; position: absolute; left: 8px; top: 5px; width: 6px; height: 10px; border-right: 2px solid #05070a; border-bottom: 2px solid #05070a; transform: rotate(42deg); }
.compliance-row .label { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.compliance-row strong { display: block; margin-top: 2px; font-weight: 500; color: var(--ink); font-size: 13px; }
.binary-map { margin: 4px 0 0; font-size: 11px; line-height: 1.3; letter-spacing: 0.08em; color: var(--dim); white-space: pre; }
.binary-map .z { color: var(--magenta); }
.asset-table { display: grid; align-self: end; border-top: 1px solid var(--line-2); }
.asset-table div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.asset-table div span:first-child { text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); font-size: 10px; }
.asset-table div span:last-child { color: var(--ink); }

/* ----------------------------- docs: refused ---------------------------- */

.refused-section { background: radial-gradient(50% 50% at 0% 100%, rgba(255, 79, 216, 0.16), transparent 70%), var(--bg-2); padding: clamp(70px, 10vh, 120px) 0; }
.refused-body { max-width: 780px; display: grid; gap: 16px; color: var(--muted); font-size: 13px; }
.refused-body .callout { margin: 10px 0 0; max-width: none; border: 1px solid var(--magenta); border-radius: 10px; padding: 16px 18px; font-size: 13px; line-height: 1.7; color: var(--ink); }

/* ------------------------------ app + docs shell ------------------------ */

.app-page { padding: 24px var(--pad-x) 0; }
.app-head { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 7vh, 72px) 0 0; }
.app-title { font-size: clamp(26px, 3.2vw, 44px); line-height: 1.05; }
.app-lede { margin-top: 14px; max-width: 60ch; color: var(--muted); font-size: 13px; }
.doc-toc { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 12px; }
.doc-toc a { color: var(--dim); transition: color 160ms ease; }
.doc-toc a:hover { color: var(--ink); }
.doc-console { max-width: var(--wrap); margin: 0 auto; }
.doc-console .console-cluster { width: min(560px, 100%); }
.app-page .pricing-section, .app-page .security-section, .app-page .refused-section { width: 100vw; margin-inline: calc(50% - 50vw); }
.app-page-main { padding-bottom: 60px; }

.connect { margin-top: clamp(26px, 4vh, 40px); max-width: 560px; padding: clamp(22px, 3.5vw, 30px); border-radius: 14px; background: rgba(8, 8, 12, 0.9); border: 1px solid var(--line-2); }
.connect-k { display: none; }
.connect-t { font-size: 22px; line-height: 1.15; }
.connect-p { margin-top: 10px; font-size: 13px; color: var(--muted); }
.connect-p + .connect-p { margin-top: 12px; }
.connect-opts { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; align-items: center; width: 100%; height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; text-align: left; transition: border-color 160ms ease, background 160ms ease; }
.opt:hover { border-color: var(--ink); }
.opt .k { margin-left: auto; font-size: 11px; color: var(--dim); }
.opt--primary { background: var(--ink); color: #050507; border-color: var(--ink); font-weight: 500; }
.opt--primary:hover { background: #fff; }
.opt--primary .k { color: rgba(5, 5, 7, 0.55); }
.connect-note { margin-top: 16px; font-size: 12px; color: var(--dim); }

.panel-h { max-width: var(--wrap); margin: clamp(44px, 7vh, 72px) auto 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.panel-h h2 { font-size: 22px; }
.panel-h p { margin-top: 4px; font-size: 12px; color: var(--muted); }
.panel-h .tail { font-size: 12px; color: var(--dim); white-space: nowrap; }
.panel { max-width: var(--wrap); margin: 0 auto; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); overflow: hidden; }
.pool { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.pool > div { background: var(--bg-2); padding: 18px; }
.pool .k { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.pool .v { margin-top: 8px; font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.pool .s { margin-top: 6px; font-size: 11px; color: var(--dim); }
.budget { margin-top: 10px; height: 6px; border: 1px solid var(--line-2); border-radius: 3px; overflow: hidden; }
.budget i { display: block; height: 100%; width: 0; background: var(--grad); }
.log-row { display: grid; grid-template-columns: 52px 116px 1fr 1fr 116px; align-items: center; gap: 12px; padding: 0 14px; height: 34px; font-size: 13px; color: var(--muted); white-space: nowrap; transition: background 80ms linear; }
.log-row:hover { background: var(--panel); }
.log-row--head { height: 30px; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--line); background: none !important; }
.log-row .n { text-align: right; }
.log-empty { padding: 22px 14px; font-size: 13px; color: var(--dim); line-height: 1.7; }
.open-block { padding: clamp(18px, 3vw, 26px); font-size: 13px; line-height: 1.8; color: var(--muted); white-space: pre-wrap; word-break: break-word; }
.open-block .k { color: var(--cyan); }
.open-block .c { color: var(--dim); }
.open-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.open-row .v { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.copy-btn { margin-left: auto; padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 4px; font-size: 11px; color: var(--muted); flex: 0 0 auto; transition: color 80ms linear, border-color 80ms linear; }
.copy-btn:hover { color: var(--ink); border-color: var(--ink); }

.nf { min-height: calc(100svh - 120px); display: flex; flex-direction: column; justify-content: center; max-width: var(--wrap); margin: 0 auto; padding: 60px 0; }
.nf .mega { font-family: var(--font-logo); font-weight: 800; font-size: clamp(88px, 20vw, 260px); line-height: 0.9; letter-spacing: -0.06em; color: var(--ink); }
.nf-path { margin-top: 26px; font-size: 14px; }
.nf-say { margin-top: 12px; color: var(--muted); }
.nf-links { margin-top: 30px; display: flex; flex-direction: column; gap: 2px; }
.nf-links a { display: flex; gap: 18px; padding: 8px 0; font-size: 14px; color: var(--muted); transition: color 80ms linear; }
.nf-links a:hover { color: var(--ink); }
.nf-links a .p { width: 92px; flex: 0 0 auto; color: var(--cyan); }

/* -------------------------------- footer -------------------------------- */

.foot { border-top: 1px solid var(--line); background: var(--bg); }
.foot-cols { max-width: var(--wrap); margin: 0 auto; padding: 40px var(--pad-x) 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.foot-col h3 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); font-weight: 400; margin-bottom: 12px; }
.foot-col a, .foot-col span { display: block; font-size: 13px; line-height: 2; color: var(--muted); }
.foot-col a { transition: color 160ms ease; }
.foot-col a:hover { color: var(--ink); }
.foot-band { border-top: 1px solid var(--line); padding: 18px var(--pad-x); }
.foot-band p { max-width: var(--wrap); margin: 0 auto; font-size: 12px; line-height: 1.6; color: var(--dim); }
.strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px var(--pad-x); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.strip .sep { color: var(--dim); } .strip .v { color: var(--ink); }

/* ------------------------------ entrance, once -------------------------- */

.rise { opacity: 0; transform: translateY(14px); animation: rise 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: calc(100ms + var(--i, 0) * 90ms); }
.giant.rise { animation: rise 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: calc(100ms + var(--i, 0) * 90ms); }
@keyframes spectrum-turn { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(360deg); } }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ------------------------------- responsive ----------------------------- */

@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .console-cluster { width: 100%; }
  .giant {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  justify-self: end;
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: clamp(120px, 21vw, 300px);
  line-height: 0.86;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f6 45%, #8a8a93 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: clamp(30px, 6vh, 60px);
  user-select: none;
}
  .hero-copy { grid-row: 3; }
  .site-header { flex-wrap: wrap; gap: 14px; }
  .header-right { flex-wrap: wrap; gap: 14px; }
  .accordion-inner { grid-template-columns: 1fr; align-content: start; padding-top: 18px; }
  .accordion-nav { grid-template-columns: 1fr 1fr; }
  .accordion-stack { height: 78svh; }
  .accordion-card { grid-template-columns: 1fr; }
  .showcase-head, .pricing-top, .plan-row, .security-grid, .security-head { grid-template-columns: 1fr; }
  .dashboard-body { grid-template-columns: 1fr; }
  .dashboard-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-nav { grid-template-columns: 1fr 1fr; }
  .dashboard-table .row { grid-template-columns: 1.1fr 1fr 0.9fr; }
  .dashboard-table .row > :nth-child(4), .dashboard-table .row > :nth-child(5) { display: none; }
  .dashboard-toast { position: static; margin: 14px 20px 20px; display: inline-block; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .pool { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .log-row { grid-template-columns: 46px 100px 1fr 1fr; }
  .log-row > :nth-child(5) { display: none; }
  .console-tabs { grid-template-columns: repeat(3, 1fr); }
  .console-window-control { display: none; }
}
@media (max-width: 520px) {
  .accordion-nav { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; }
  .pool { grid-template-columns: 1fr; }
  .log-row { grid-template-columns: 44px 1fr 1fr; }
  .log-row > :nth-child(2) { display: none; }
  .dashboard-title-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .spectrum::before, .spectrum .band, .giant {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  justify-self: end;
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: clamp(120px, 21vw, 300px);
  line-height: 0.86;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f6 45%, #8a8a93 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: clamp(30px, 6vh, 60px);
  user-select: none;
}
  .rise { animation: none; opacity: 1; transform: none; }
  .terminal-output::after, .console-input[data-typed]::after { animation: none; }
}
