/* tensorViz v2 — night glass.
   The page is the dark the product lives in; the representation glows.
   One accent (selection blue) means "this is the same object". Amber, green and red
   appear only where they mean what they mean in the product: modified, added, removed.
   Geist for display and UI, JetBrains Mono for shapes, labels and code. */

:root {
  --bg: #05070c;
  --bg-2: #080b12;
  --panel: #0c111b;
  --panel-2: #111827;
  --ink: #eeede8;
  --ink-2: #a9b1c2;
  --ink-3: #838da2;
  --line: rgba(226, 232, 255, .08);
  --line-2: rgba(226, 232, 255, .16);
  --line-3: rgba(226, 232, 255, .28);
  --accent: #8199ff;
  --accent-soft: rgba(129, 153, 255, .14);
  --lilac: #a99cf0;
  --amber: #f5c778;
  --green: #83dca3;
  --red: #ff9298;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --t-display: clamp(44px, 6vw, 88px);
  --t-h2: clamp(34px, 4.2vw, 60px);
  --t-h3: clamp(22px, 1.9vw, 28px);
  --t-lede: clamp(18px, 1.45vw, 21px);
  --t-body: 17px;
  --t-small: 15px;
  --t-mono: 12.5px;

  --max: 1440px;
  --pad: clamp(16px, 4.4vw, 64px);
  --sec: clamp(120px, 14vw, 200px);
  --radius: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 400 var(--t-body)/1.55 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, h4, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code, kbd { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; text-decoration: none; font-size: 15px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.sec { padding-top: var(--sec); position: relative; }

/* ---------- type ---------- */
.display { font: 500 var(--t-display)/1.0 var(--sans); letter-spacing: -.038em; text-wrap: balance; }
.h2 { font: 500 var(--t-h2)/1.04 var(--sans); letter-spacing: -.034em; text-wrap: balance; }
.h3 { font: 500 var(--t-h3)/1.2 var(--sans); letter-spacing: -.02em; text-wrap: balance; }
.dim { color: var(--ink-3); }
.lede { font-size: var(--t-lede); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.body { font-size: var(--t-body); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.small { font-size: var(--t-small); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.mono { font: 500 var(--t-mono)/1.45 var(--mono); letter-spacing: .02em; color: var(--ink-3); }
.eyebrow { display: inline-flex; gap: 12px; align-items: baseline; font: 500 var(--t-mono)/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow .no { color: var(--accent); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 10px; font: 500 15.5px/1 var(--sans); text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; transition: background-color .15s, box-shadow .15s, transform .15s; }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn-primary { background: var(--ink); color: #080a10; }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .03); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--line-3); background: rgba(255, 255, 255, .06); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 9px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.tlink { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--line-3); transition: text-decoration-color .15s; }
.tlink:hover { text-decoration-color: currentColor; }
.more { display: inline-flex; gap: 8px; align-items: center; color: var(--ink); text-decoration: none; font: 500 15.5px/1 var(--sans); padding: 10px 0; }
.more span { transition: transform .2s; }
.more:hover span { transform: translateX(3px); }

/* chips and status */
.chip { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line-2); background: rgba(12, 17, 27, .72); font: 500 12px/1 var(--mono); color: var(--ink-2); white-space: nowrap; }
.chip b { font-weight: 500; color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--ink-3); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.status.live { color: var(--green); }
.status.partial { color: var(--amber); }
.status.preview { color: var(--lilac); }
.status.direction { color: var(--ink-3); }
.status.direction::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; height: 64px; background: rgba(5, 7, 12, .72); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background-color .2s; }
.site-header.scrolled, .site-header.open { border-bottom-color: var(--line); background: rgba(5, 7, 12, .86); }
.header-row { display: flex; align-items: center; height: 64px; gap: 44px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 17px/1 var(--sans); letter-spacing: -.02em; text-decoration: none; color: var(--ink); min-height: 40px; }
.brand img { width: 22px; height: 22px; border-radius: 6px; }
.nav { display: flex; gap: 30px; font-size: 14px; }
.nav a { color: var(--ink-2); text-decoration: none; transition: color .15s; padding: 10px 0; }
.nav a:hover { color: var(--ink); }
.header-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu { display: none; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); cursor: pointer; place-items: center; }
.menu svg { width: 18px; height: 18px; }
.menu .x, .site-header.open .menu .bars { display: none; }
.site-header.open .menu .x { display: block; }

/* ---------- footer ---------- */
.site-footer { margin-top: var(--sec); border-top: 1px solid var(--line); padding: 64px 0 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-line { font: 500 26px/1.15 var(--sans); letter-spacing: -.025em; color: var(--ink); max-width: 14em; }
.foot-col p { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.foot-col a { display: block; padding: 10px 0; font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.foot-col a:hover { color: var(--ink); }
.foot-base { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; font: 400 12.5px/1.4 var(--mono); color: var(--ink-3); }
.foot-base .status { font-size: 12px; }
.foot-base .gap { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .menu { display: grid; }
  .site-header.open .nav { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 6px var(--pad) 18px; background: rgba(5, 7, 12, .97); border-bottom: 1px solid var(--line); font-size: 18px; }
  .site-header.open .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --t-body: 16px; }
  .header-row { gap: 12px; }
  .header-end .btn-sm .long { display: none; }
  .cta .btn { flex: 1 1 auto; }
  .foot-base .gap { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
