/* ============================================================
   Signalform — engineering intelligence platform
   Dark, Linear-like. Space Grotesk display / IBM Plex Sans body.
   Mobile-first. Breakpoints at 768px and 1100px.
   ============================================================ */

:root {
  --bg: #0C0D12;
  --surface: #16181F;
  --surface-2: #1C1F2A;
  --sunken: rgba(12, 13, 18, 0.45);
  --text: #E6E8EE;
  --text-dim: #9CA1B2;
  --text-faint: #868B9C; /* 5.72:1 on --bg, 5.23:1 on --surface — WCAG AA */
  --violet: #7C6CFF;
  --violet-lit: #8D7EFF;
  --lavender: #B48CFF;
  --cyan: #2EA3C0;
  --green: #34C98E;
  --amber: #E8A33D;
  --red: #E5604F;
  --border: rgba(230, 232, 238, 0.08);
  --border-strong: rgba(230, 232, 238, 0.14);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  /* Code surfaces only — the page type system is Space Grotesk + IBM Plex Sans. */
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --shadow-panel: 0 24px 80px rgba(0, 0, 0, 0.55);
  --section-pad: clamp(72px, 11vh, 128px);
}

/* ============================================================
   Base
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--violet);
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input {
  font: inherit;
}

ul {
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

pre,
code {
  font-family: var(--font-mono);
}

::selection {
  background: rgba(124, 108, 255, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 40px, 1100px);
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 40px, 780px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--violet);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ============================================================
   Shared atoms
   ============================================================ */

.gradient-text {
  background-image:
    linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.9) 50%, transparent 58%),
    linear-gradient(120deg, #CFC4FF 4%, var(--violet) 52%, var(--lavender) 96%);
  background-size: 250% 100%, 100% 100%;
  background-position: 220% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmer 5.5s ease-in-out 1.1s infinite;
}

@keyframes shimmer {
  0%   { background-position: 220% 0, 0 0; }
  38%  { background-position: -130% 0, 0 0; }
  100% { background-position: -130% 0, 0 0; }
}

.gradient-text-soft {
  background-image: linear-gradient(120deg, #E4DFFF 6%, var(--lavender) 54%, var(--violet) 98%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
}

.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.section-sub {
  margin-top: 16px;
  max-width: 62ch;
  color: var(--text-dim);
  font-size: 1.02rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lavender);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.18s ease;
}

.text-link:hover {
  color: #D7C3FF;
}

.arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn:hover .arrow,
.text-link:hover .arrow {
  transform: translateX(3px);
}

.badge-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 201, 142, 0.55);
  animation: dot-pulse 2.2s ease-out infinite;
}

@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 201, 142, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(52, 201, 142, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 201, 142, 0); }
}

/* ---------- Keycaps ---------- */

.keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text-dim);
  background: linear-gradient(to bottom, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
}

.keycap-xs {
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  font-size: 0.64rem;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--violet-lit), var(--violet));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 8px 24px rgba(124, 108, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 12px 32px rgba(124, 108, 255, 0.45);
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: rgba(230, 232, 238, 0.24);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.87rem;
  border-radius: 9px;
}

.btn-block {
  width: 100%;
}

/* ============================================================
   Header / nav
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(12, 13, 18, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 64px;
  width: min(100% - 40px, 1100px);
  margin-inline: auto;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--text);
}

.nav-mark {
  flex: none;
}

.nav-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-links {
  display: none;
}

.nav-links a {
  display: block;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(230, 232, 238, 0.05);
}

/* Mobile dropdown */
.nav-links.is-open {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 10px 20px 20px;
  background: rgba(12, 13, 18, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-links.is-open a {
  padding: 13px 8px;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cmdk-chip {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 5px 8px 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-faint);
  font-size: 0.85rem;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.cmdk-chip:hover {
  border-color: rgba(124, 108, 255, 0.5);
  color: var(--text-dim);
}

.cmdk-label {
  margin-right: 3px;
}

.nav-burger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface);
}

.nav-burger span {
  width: 16px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.22s ease;
}

.nav-burger[aria-expanded="true"] span:first-child {
  transform: translateY(3.3px) rotate(45deg);
}

.nav-burger[aria-expanded="true"] span:last-child {
  transform: translateY(-3.3px) rotate(-45deg);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding: clamp(52px, 9vh, 104px) 0 44px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -20% -10% auto;
  height: 660px;
  pointer-events: none;
  background:
    radial-gradient(560px 320px at 50% 8%, rgba(124, 108, 255, 0.16), transparent 70%),
    radial-gradient(880px 460px at 50% -10%, rgba(180, 140, 255, 0.09), transparent 65%);
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(22, 24, 31, 0.7);
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 500;
}

.hero-title {
  margin-top: 22px;
  max-width: 16ch;
  font-size: clamp(2.3rem, 6.4vw, 4.15rem);
  font-weight: 700;
  letter-spacing: -0.032em;
  color: #F4F4F9;
}

.hero-sub {
  margin-top: 20px;
  max-width: 600px;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.hero-cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-hint {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ---------- Hero dashboard panel ---------- */

.dash-frame {
  position: relative;
  width: 100%;
  margin-top: 52px;
  text-align: left;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(28, 31, 42, 0.92), rgba(22, 24, 31, 0.97));
  box-shadow: var(--shadow-panel), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  overflow: hidden;
}

.dash-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 13, 18, 0.45);
}

.chrome-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
}

.chrome-red    { background: rgba(229, 96, 79, 0.55); }
.chrome-amber  { background: rgba(232, 163, 61, 0.55); }
.chrome-green  { background: rgba(52, 201, 142, 0.55); }

.chrome-title {
  flex: 1;
  min-width: 0;
  margin-left: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--text-faint);
}

.chrome-kbd {
  display: none;
  gap: 3px;
  flex: none;
}

/* On narrow screens this becomes a horizontally pannable rail (see 767px block)
   so the dashboard type never shrinks below legibility. */
.dash-scroll {
  max-width: 100%;
}

.dash-svg {
  width: 100%;
  height: auto;
  font-family: var(--font-body);
}

/* ============================================================
   Inline-SVG design tokens (hero dashboard + platform panels)
   ============================================================ */

.svg-card {
  fill: rgba(12, 13, 18, 0.45);
  stroke: rgba(230, 232, 238, 0.08);
  stroke-width: 1;
}

.svg-card-hot {
  fill: rgba(124, 108, 255, 0.08);
  stroke: rgba(124, 108, 255, 0.38);
}

.svg-card-dim {
  fill: rgba(12, 13, 18, 0.3);
  stroke: rgba(230, 232, 238, 0.06);
}

.svg-pill {
  fill: rgba(230, 232, 238, 0.04);
  stroke: rgba(230, 232, 238, 0.08);
  stroke-width: 1;
}

.svg-tooltip {
  fill: rgba(12, 13, 18, 0.94);
  stroke: rgba(230, 232, 238, 0.16);
  stroke-width: 1;
}

.svg-grid {
  stroke: rgba(230, 232, 238, 0.06);
  stroke-width: 1;
}

.svg-divider {
  stroke: rgba(230, 232, 238, 0.08);
  stroke-width: 1;
}

.svg-crosshair {
  stroke: rgba(230, 232, 238, 0.24);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.svg-icon-dot {
  fill: rgba(230, 232, 238, 0.26);
}

/* SVG typography */

.svg-h {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  fill: var(--text);
}

.svg-h2 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  fill: var(--text);
}

.svg-hero {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  fill: var(--text);
}

.svg-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  fill: var(--text);
}

.svg-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  fill: var(--text-faint);
}

.svg-tick {
  font-size: 10px;
  fill: var(--text-faint);
}

.svg-muted {
  font-size: 11px;
  fill: var(--text-dim);
}

.svg-nav {
  font-size: 12px;
  font-weight: 500;
  fill: var(--text-dim);
}

.svg-nav-active {
  font-weight: 600;
  fill: var(--text);
}

.svg-avatar {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  fill: var(--lavender);
}

.svg-chip {
  font-size: 9.5px;
  font-weight: 600;
  fill: var(--text-dim);
}

.svg-chip-red {
  fill: var(--red);
}

.svg-delta-up {
  font-size: 10px;
  font-weight: 600;
  fill: var(--green);
}

.svg-log {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  fill: var(--text-dim);
}

.svg-strong {
  font-size: 11.5px;
  font-weight: 600;
  fill: var(--text);
}

.svg-ok   { font-weight: 600; fill: var(--green); }
.svg-warn { font-weight: 600; fill: var(--amber); }
.svg-err  { font-weight: 600; fill: var(--red); }
.svg-dim  { fill: var(--text-faint); }

/* keep log rows column-aligned even when combined with colour modifiers */
.svg-log.svg-strong,
.svg-log.svg-ok,
.svg-log.svg-warn,
.svg-log.svg-err,
.svg-log.svg-dim {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
}

/* SVG data marks */

.chart-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 1.7s cubic-bezier(0.25, 0.1, 0.25, 1) 0.35s forwards;
}

.line-violet { stroke: var(--violet); }
.line-cyan   { stroke: var(--cyan); animation-delay: 0.6s; }

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.spark {
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spark-violet   { stroke: var(--violet); }
.spark-cyan     { stroke: var(--cyan); }
.spark-lavender { stroke: var(--lavender); }

/* Blinking terminal caret (SVG + HTML variants) */
.svg-caret {
  fill: var(--violet);
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Live status dot inside SVG panels */
.pulse-dot {
  animation: svg-pulse 2s ease-in-out infinite;
}

@keyframes svg-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* Alert-routing flow lines */
.flow-path {
  fill: none;
  stroke: rgba(124, 108, 255, 0.55);
  stroke-width: 1.6;
}

.flow-anim {
  stroke-dasharray: 5 7;
  animation: flow 1.1s linear infinite;
}

@keyframes flow {
  to { stroke-dashoffset: -24; }
}

/* ============================================================
   Customer wordmark strip
   ============================================================ */

.logos {
  padding: 54px 0 30px;
  border-top: 1px solid var(--border);
}

.logos-eyebrow {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.logos-row {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 36px;
}

/* The colour alone does the dimming — no opacity, which would composite the
   wordmarks below the AA contrast floor. */
.wordmark {
  color: var(--text-faint);
  opacity: 1;
  cursor: default;
  transition: color 0.2s ease;
}

.wordmark:hover {
  color: var(--text);
}

.wm-ferrostack { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.02em; }
.wm-quantable  { font-family: var(--font-body); font-weight: 600; font-size: 1rem; letter-spacing: 0.18em; }
.wm-helixware  { font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; letter-spacing: 0.01em; }
.wm-helixware span { color: var(--violet); }
.wm-modulith   { font-family: var(--font-body); font-weight: 600; font-size: 1.08rem; }
.wm-modulith span { color: var(--violet); margin-inline: 1px; }
.wm-cobaltlab  { font-family: var(--font-display); font-weight: 500; font-size: 0.92rem; letter-spacing: 0.24em; }
.wm-praxide    { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.08em; }
.wm-praxide span { color: var(--violet); animation: blink 1.4s steps(1) infinite; }

/* ============================================================
   Bento features
   ============================================================ */

.features {
  padding: var(--section-pad) 0;
}

.bento {
  margin-top: clamp(36px, 5vh, 56px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.bento-card {
  position: relative;
  min-width: 0;
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(420px 200px at 50% -40px, rgba(124, 108, 255, 0.07), transparent 70%),
    var(--surface);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.bento-card:hover {
  border-color: rgba(124, 108, 255, 0.32);
  transform: translateY(-2px);
}

/* Cursor-tracked radial glow — JS sets --mx / --my / --glow */
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--glow, 0);
  transition: opacity 0.35s ease;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 0%),
    rgba(124, 108, 255, 0.16),
    rgba(180, 140, 255, 0.05) 45%,
    transparent 70%
  );
}

.bento-card > * {
  position: relative;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border: 1px solid rgba(124, 108, 255, 0.28);
  border-radius: 11px;
  background: rgba(124, 108, 255, 0.12);
  color: var(--lavender);
}

.bento-card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.bento-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* Card 1 — alert rows */

.mini-alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.mini-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--sunken);
}

.mini-alert-dim {
  opacity: 0.6;
}

.sev {
  flex: none;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.sev-high {
  color: var(--red);
  background: rgba(229, 96, 79, 0.14);
  border: 1px solid rgba(229, 96, 79, 0.32);
}

.sev-warn {
  color: var(--amber);
  background: rgba(232, 163, 61, 0.13);
  border: 1px solid rgba(232, 163, 61, 0.3);
}

.mini-alert-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  line-height: 1.4;
}

.mini-alert-body strong {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.mini-alert-body span {
  font-size: 0.74rem;
  color: var(--text-faint);
}

.mini-alert-time {
  flex: none;
  font-size: 0.7rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

/* Card 2 — trace spans */

.mini-spans {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 20px;
  padding: 14px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--sunken);
}

.mini-span {
  display: block;
  height: 9px;
  border-radius: 3px;
  width: var(--w, 50%);
  margin-left: var(--o, 0%);
  background: var(--violet);
}

.mini-span-cyan { background: var(--cyan); }
.mini-span-lav  { background: var(--lavender); }

/* Card 3 — bar chart */

.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 92px;
  margin-top: 20px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--sunken);
}

.mini-bars span {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 3px 3px 1px 1px;
  background: rgba(124, 108, 255, 0.55);
}

.mini-bars .bar-hot {
  background: linear-gradient(180deg, var(--lavender), var(--violet));
  box-shadow: 0 0 14px rgba(124, 108, 255, 0.45);
}

/* Card 4 — SLO ring */

.slo-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 8px 0;
}

.ring-arc {
  animation: ring-draw 1.5s cubic-bezier(0.22, 0.9, 0.3, 1) 0.3s both;
}

@keyframes ring-draw {
  from { stroke-dashoffset: 251.3; }
  to   { stroke-dashoffset: 18; }
}

.slo-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  pointer-events: none;
}

.slo-ring-label strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
}

/* Wraps to two lines so the caption stays clear of the ring stroke. */
.slo-ring-label span {
  max-width: 58px;
  font-size: 0.62rem;
  line-height: 1.2;
  text-align: center;
  color: var(--text-faint);
}

/* Card 5 — integration chips */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.chip-row li {
  padding: 4px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  background: rgba(230, 232, 238, 0.03);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-dim);
}

/* Card 6 — API + code panel */

.bento-api {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bento-api-copy {
  flex: 1;
  min-width: 0;
}

.bento-api-copy p {
  margin-bottom: 16px;
}

.code-panel {
  flex: 1.15;
  min-width: 0;
  align-self: stretch;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #0A0B0F;
  overflow: hidden;
}

.code-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
}

.code-filename {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
}

.code {
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.75;
  color: var(--text-dim);
  tab-size: 2;
}

/* The snippet is a scroll box that JS makes a tab stop whenever it overflows,
   and .code-panel clips its children — the default 3px outline-offset would be
   cropped away by that clip, so this one pulls the ring inside the box. */
.code:focus-visible {
  outline-offset: -2px;
}

.tok-kw    { color: var(--violet); }
.tok-str   { color: var(--lavender); }
.tok-fn    { color: #6FD3E8; }
.tok-num   { color: var(--green); }
.tok-const { color: var(--amber); }

.code-caret {
  display: inline-block;
  width: 7px;
  height: 0.95em;
  margin-left: 4px;
  vertical-align: text-bottom;
  background: var(--violet);
  animation: blink 1.05s steps(1) infinite;
}

/* ============================================================
   Platform deep-dive tabs
   ============================================================ */

.deepdive {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(124, 108, 255, 0.05), transparent 70%),
    rgba(22, 24, 31, 0.35);
}

.tabs {
  margin-top: clamp(32px, 5vh, 48px);
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin-bottom: 26px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
}

.tab {
  flex: 1 1 auto;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.tab:hover {
  color: var(--text);
}

.tab.is-active,
.tab[aria-selected="true"] {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 2px 8px rgba(0, 0, 0, 0.35);
}

.tab-panel {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(28, 31, 42, 0.75), rgba(22, 24, 31, 0.95));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  animation: panel-in 0.4s ease;
}

.tab-panel[hidden] {
  display: none;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel-svg {
  width: 100%;
  height: auto;
  font-family: var(--font-body);
}

/* ============================================================
   Metrics count-up
   ============================================================ */

.metrics {
  padding: clamp(56px, 8vh, 92px) 0;
  border-block: 1px solid var(--border);
  background: radial-gradient(640px 280px at 50% 100%, rgba(124, 108, 255, 0.07), transparent 70%);
}

.metrics-title {
  text-align: center;
}

.metrics-grid {
  margin-top: clamp(34px, 5vh, 52px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.metric {
  min-width: 0;
  text-align: center;
}

.metric-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.metric-unit {
  margin-left: 2px;
  background-image: linear-gradient(120deg, var(--violet), var(--lavender));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  margin: 14px auto 0;
  max-width: 260px;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 500;
}

.metric-note {
  margin: 6px auto 0;
  max-width: 280px;
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* ============================================================
   Testimonials
   ============================================================ */

.testimonials {
  padding: var(--section-pad) 0;
}

.quote-grid {
  margin-top: clamp(36px, 5vh, 56px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(300px 150px at 20% -30px, rgba(124, 108, 255, 0.06), transparent 70%),
    var(--surface);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.quote-card:hover {
  border-color: rgba(124, 108, 255, 0.3);
  transform: translateY(-2px);
}

.quote-card blockquote p {
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.65;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.mono-violet { background: linear-gradient(135deg, #8D7EFF, #5D4BE0); }
.mono-cyan   { background: linear-gradient(135deg, #35B0C8, #1B6C7E); }
.mono-lav    { background: linear-gradient(135deg, #C4A2FF, #7A55CC); }

.quote-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.quote-meta strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.quote-meta span {
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ============================================================
   Pricing
   ============================================================ */

.pricing {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
}

.billing-toggle {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin-top: 28px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
}

.toggle-opt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.toggle-opt.is-active {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 2px 8px rgba(0, 0, 0, 0.35);
}

.save-badge {
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(124, 108, 255, 0.16);
  color: var(--lavender);
  font-size: 0.7rem;
  font-weight: 600;
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
  padding-top: 13px;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.price-card:hover {
  border-color: rgba(230, 232, 238, 0.2);
  transform: translateY(-2px);
}

.price-card-hot {
  border-color: rgba(124, 108, 255, 0.5);
  background:
    radial-gradient(360px 180px at 50% -40px, rgba(124, 108, 255, 0.13), transparent 70%),
    var(--surface);
  box-shadow: 0 20px 60px rgba(124, 108, 255, 0.12);
}

.price-card-hot:hover {
  border-color: rgba(124, 108, 255, 0.75);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 26px;
  padding: 3px 12px;
  border-radius: 99px;
  background: linear-gradient(120deg, var(--violet), var(--lavender));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.price-card h3 {
  font-size: 1.2rem;
}

.price-tagline {
  margin-top: 6px;
  color: var(--text-faint);
  font-size: 0.88rem;
}

.price-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 22px 0;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.16s ease;
}

.price-amount.swapping {
  opacity: 0;
}

.price-per {
  color: var(--text-faint);
  font-size: 0.82rem;
}

.price-card .btn {
  margin-bottom: 24px;
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-features li {
  position: relative;
  padding-left: 28px;
  color: var(--text-dim);
  font-size: 0.89rem;
}

.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(124, 108, 255, 0.14);
  border: 1px solid rgba(124, 108, 255, 0.45);
}

.price-features li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 7.5px;
  width: 7px;
  height: 4px;
  border-left: 1.6px solid var(--lavender);
  border-bottom: 1.6px solid var(--lavender);
  transform: rotate(-45deg);
}

.price-footnote {
  margin-top: 26px;
  color: var(--text-faint);
  font-size: 0.86rem;
}

.price-footnote .text-link {
  font-size: inherit;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
}

.faq-list {
  margin-top: clamp(32px, 5vh, 48px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--border);
}

.faq-item h3 {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 19px 22px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.18s ease;
}

.faq-q:hover {
  color: var(--lavender);
}

.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  background: var(--text-faint);
  border-radius: 2px;
  transition: transform 0.28s ease, background-color 0.18s ease;
}

.faq-icon::before {
  width: 14px;
  height: 1.7px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 1.7px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.faq-item.is-open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after {
  background: var(--violet);
}

/* Collapsed by default; the [hidden] attribute keeps it closed without JS. */
.faq-a {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.34s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.34s;
}

.faq-item.is-open .faq-a {
  max-height: 560px;
  visibility: visible;
  transition: max-height 0.34s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

.faq-a p {
  padding: 0 22px 20px;
  max-width: 66ch;
  color: var(--text-dim);
  font-size: 0.94rem;
}

/* ============================================================
   CTA
   ============================================================ */

.cta {
  padding: clamp(64px, 10vh, 112px) 0 var(--section-pad);
}

.cta-panel {
  position: relative;
  padding: clamp(44px, 7vw, 76px) clamp(22px, 5vw, 64px);
  border: 1px solid rgba(124, 108, 255, 0.35);
  border-radius: 20px;
  background:
    radial-gradient(600px 300px at 50% -80px, rgba(124, 108, 255, 0.16), transparent 70%),
    var(--surface);
  text-align: center;
  overflow: hidden;
}

.cta-title {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #F4F4F9;
}

.cta-sub {
  margin: 16px auto 0;
  max-width: 520px;
  color: var(--text-dim);
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 460px;
  margin: 30px auto 0;
}

.cta-input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: rgba(12, 13, 18, 0.65);
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cta-input::placeholder {
  color: var(--text-faint);
}

.cta-input:focus {
  outline: none;
  border-color: rgba(124, 108, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(124, 108, 255, 0.18);
}

.cta-input.is-invalid {
  border-color: rgba(229, 96, 79, 0.7);
  box-shadow: 0 0 0 3px rgba(229, 96, 79, 0.15);
}

.form-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: 520px;
  margin: 20px auto 0;
  padding: 13px 18px;
  border: 1px solid rgba(52, 201, 142, 0.4);
  border-radius: 11px;
  background: rgba(52, 201, 142, 0.09);
  color: var(--text);
  font-size: 0.92rem;
}

.form-success[hidden] {
  display: none;
}

/* Same box as the success note, red accent instead of green. A rejected email
   used to be signalled by the input border alone — colour with no words, which
   says nothing to a screen reader and nothing at all about what to fix. */
.form-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: 520px;
  margin: 20px auto 0;
  padding: 13px 18px;
  border: 1px solid rgba(229, 96, 79, 0.4);
  border-radius: 11px;
  background: rgba(229, 96, 79, 0.09);
  color: var(--text);
  font-size: 0.92rem;
}

.form-error[hidden] {
  display: none;
}

.cta-note {
  margin-top: 20px;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
  background: rgba(12, 13, 18, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.footer-brand {
  max-width: 320px;
}

.footer-tag {
  margin-top: 14px;
  color: var(--text-faint);
  font-size: 0.9rem;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 500;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.footer-col h3 {
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  width: fit-content;
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color 0.16s ease;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-addr {
  color: var(--text-faint);
  font-size: 0.86rem;
  line-height: 1.55;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.8rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal a {
  color: var(--text-dim);
  transition: color 0.16s ease;
}

.footer-legal a:hover {
  color: var(--text);
}

/* ============================================================
   Command palette
   ============================================================ */

.cmdk-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 14vh 20px 20px;
}

.cmdk-overlay[hidden] {
  display: none;
}

.cmdk-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 10, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cmdk-panel {
  position: relative;
  width: min(100%, 520px);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  animation: cmdk-in 0.18s ease;
}

@keyframes cmdk-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cmdk-inputwrap {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-faint);
}

.cmdk-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 0.95rem;
}

.cmdk-input:focus {
  outline: none;
}

.cmdk-input::placeholder {
  color: var(--text-faint);
}

.cmdk-list {
  padding: 7px;
  max-height: 46vh;
  overflow-y: auto;
}

.cmdk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  text-align: left;
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: background-color 0.14s ease, color 0.14s ease;
}

.cmdk-item:hover,
.cmdk-item:focus-visible {
  background: rgba(124, 108, 255, 0.12);
  color: var(--text);
  outline: none;
}

.cmdk-item .keycap {
  margin-left: auto;
}

.cmdk-item-icon {
  width: 16px;
  flex: none;
  color: var(--violet);
  font-size: 0.85rem;
}

.cmdk-empty {
  padding: 22px 16px;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.88rem;
}

.cmdk-empty[hidden] {
  display: none;
}

/* ============================================================
   Scroll reveal + stagger
   ============================================================ */

/* The hidden state only exists once script.js has proven it is alive (it adds
   .js to <html>). Without JS — blocked, failed, or thrown — content stays visible. */
.reveal {
  transition:
    opacity 0.65s ease var(--rd, 0ms),
    transform 0.65s cubic-bezier(0.22, 0.9, 0.3, 1) var(--rd, 0ms);
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.bento-card:nth-child(2),
.quote-card:nth-child(2),
.price-card:nth-child(2),
.metric:nth-child(2),
.faq-item:nth-child(2) { --rd: 70ms; }

.bento-card:nth-child(3),
.quote-card:nth-child(3),
.price-card:nth-child(3),
.metric:nth-child(3),
.faq-item:nth-child(3) { --rd: 140ms; }

.bento-card:nth-child(4),
.faq-item:nth-child(4) { --rd: 210ms; }

.bento-card:nth-child(5),
.faq-item:nth-child(5) { --rd: 280ms; }

.bento-card:nth-child(6),
.faq-item:nth-child(6) { --rd: 350ms; }

/* ============================================================
   Breakpoint: max 950px — legible SVG type below full width
   The inline-SVG panels scale with the container, so their type
   scales down with it. Below ~950px the container is narrower than
   the 960/900 viewBoxes, so the tokens are enlarged to keep ticks,
   labels and log rows at roughly the same rendered size they have
   on desktop (~9.5–11.5 CSS px). Verified free of text collisions.
   ============================================================ */

@media (max-width: 950px) {
  .svg-tick,
  .svg-delta-up { font-size: 12px; }
  .svg-label,
  .svg-chip { font-size: 11px; }
  .svg-muted { font-size: 12.5px; }
  .svg-log,
  .svg-log.svg-strong,
  .svg-log.svg-ok,
  .svg-log.svg-warn,
  .svg-log.svg-err,
  .svg-log.svg-dim { font-size: 12px; }
}

/* ============================================================
   Breakpoint: max 767px — SVG panels become pannable rails
   Shrink-to-fit would render the dashboard type at ~0.35 scale
   (3–6 CSS px). Instead the SVGs hold a floor width and the user
   pans horizontally; the overflow is scoped to these two boxes so
   the page body never scrolls sideways.
   ============================================================ */

@media (max-width: 767px) {
  .dash-scroll,
  .tab-panel {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(230, 232, 238, 0.22) transparent;
  }

  .dash-scroll::-webkit-scrollbar,
  .tab-panel::-webkit-scrollbar {
    height: 6px;
  }

  .dash-scroll::-webkit-scrollbar-thumb,
  .tab-panel::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: rgba(230, 232, 238, 0.22);
  }

  .dash-svg {
    min-width: 760px;
  }

  .panel-svg {
    min-width: 700px;
  }
}

/* ============================================================
   Breakpoint: 768px
   ============================================================ */

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .nav-burger {
    display: none;
  }

  .cmdk-chip {
    display: inline-flex;
  }

  .chrome-kbd {
    display: inline-flex;
  }

  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .span-4,
  .span-6 {
    grid-column: span 2;
  }

  .bento-api {
    flex-direction: row;
    align-items: center;
  }

  .tab-list {
    width: fit-content;
    max-width: 100%;
    flex-wrap: nowrap;
  }

  .tab {
    flex: none;
  }

  .tab-panel {
    padding: 22px;
  }

  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .metric + .metric {
    border-left: 1px solid var(--border);
  }

  .quote-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .price-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-form {
    flex-direction: row;
  }

  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px 24px;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ============================================================
   Breakpoint: 1100px
   ============================================================ */

@media (min-width: 1100px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
  }

  .span-2 { grid-column: span 2; }
  .span-4 { grid-column: span 4; }
  .span-6 { grid-column: span 6; }

  .hero {
    padding-bottom: 60px;
  }

  .bento-card {
    padding: 26px 24px;
  }
}

/* ============================================================
   Reduced motion — disable all motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal,
  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .gradient-text {
    animation: none;
    background-position: -130% 0, 0 0;
  }

  .chart-line {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    animation: none;
  }

  .ring-arc {
    animation: none;
    stroke-dashoffset: 18;
  }

  .flow-anim {
    animation: none;
  }

  .badge-dot,
  .pulse-dot,
  .svg-caret,
  .code-caret,
  .wm-praxide span {
    animation: none;
  }

  .tab-panel,
  .cmdk-panel {
    animation: none;
  }

  .bento-card::before {
    display: none;
  }

  .bento-card:hover,
  .quote-card:hover,
  .price-card:hover,
  .btn-primary:hover,
  .btn:active {
    transform: none;
  }

  .arrow,
  .btn:hover .arrow,
  .text-link:hover .arrow {
    transform: none;
  }
}
