/* Doomersion Video API - doomersion.com/api
   Light theme, wire-frame aligned with /studio (studio-marketing.css). */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --text: #0a0a0b;
  --muted: rgba(10, 10, 11, 0.62);
  --muted-dim: rgba(10, 10, 11, 0.4);
  --line: rgba(10, 10, 11, 0.1);
  --line-strong: rgba(10, 10, 11, 0.16);
  /* Ink + light blue accent (third color for CTAs / highlights) */
  --cyan: #0891b2;
  --cyan-dim: rgba(8, 145, 178, 0.12);
  --green: #16a34a;
  --blue: #2563eb;
  --blue-bright: #3b82f6;
  --orange: #ff7a2f;
  --red: #dc2626;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --nav-top: 84px;
  --radius-xl: 24px;
  --radius-dash: 12px;
  --radius-dash-lg: 15px;
  --glass-blur: blur(28px) saturate(180%);
  --max: 1120px;
  /* Wire-frame grid (ElevenLabs-style, same as /studio) */
  --sa-wire: rgba(10, 10, 11, 0.12);
  --sa-node: #0a0a0b;
  --sa-dot: radial-gradient(circle, var(--sa-node) 2px, transparent 2.15px);
  --sa-dot-size: 5px 5px;
  --sa-line-inset: 6px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a:hover {
  text-decoration: underline;
}

.sa-glass {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.42) 42%,
    rgba(255, 255, 255, 0.58) 100%
  );
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 12px 40px rgba(10, 10, 11, 0.06),
    0 0 0 1px rgba(10, 10, 11, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(255, 255, 255, 0.25);
}

/* Top nav */
.sa-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 20px;
  background: transparent;
}

.sa-nav {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
}

.sa-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.sa-brand:hover { text-decoration: none; }

.sa-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.sa-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sa-nav-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
}

.sa-nav-links a:hover {
  color: var(--text);
  background: rgba(10, 10, 11, 0.04);
  text-decoration: none;
}

.sa-nav-links a.is-active {
  color: var(--text);
  background: rgba(10, 10, 11, 0.05);
}

.sa-nav-links a.sa-btn-glow,
.sa-nav-links a.sa-btn-glow:hover {
  color: #ffffff;
  padding: 8px 16px;
}

.sa-kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin: 0 0 12px;
}

/* Hero - centered showcase, reference-aligned */
.sa-hero {
  width: min(var(--max), calc(100% - 48px));
  margin: clamp(24px, 5vw, 52px) auto 0;
  padding: 0 0 clamp(48px, 6vw, 72px);
  text-align: center;
}

.sa-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  margin: 0 auto clamp(48px, 7vw, 72px);
}

.sa-hero-tag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin: 0 0 28px;
  padding-left: 0.34em;
}

.sa-hero-tag::before {
  content: "[\00a0\00a0";
}

.sa-hero-tag::after {
  content: "\00a0\00a0]";
}

.sa-hero h1 {
  font-size: clamp(38px, 6.2vw, 66px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0 0 20px;
  max-width: 16ch;
}

.sa-hero-lead {
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18.5px);
  line-height: 1.55;
  max-width: 48ch;
}

.sa-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

/* ===== Hero scene: solid phone + video -> scan -> wireframe -> extracted
   components wired to category nodes ===== */
/* While the scene is offscreen the controller sets data-idle: freeze every
   animation inside so nothing keeps repainting. */
.sa-scene[data-idle],
.sa-scene[data-idle] * {
  animation-play-state: paused !important;
}

.sa-scene {
  --mesh: rgba(10, 10, 11, 0.2);
  --mesh-strong: rgba(10, 10, 11, 0.38);
  --acc: #4d86c2;
  --acc-light: #8fb9e2;
  --acc-soft: rgba(77, 134, 194, 0.5);
  --acc-dim: rgba(77, 134, 194, 0.12);
  --acc-glow: rgba(77, 134, 194, 0.22);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.6vw, 16px);
  margin-top: clamp(12px, 2.4vw, 30px);
  padding: clamp(16px, 2.2vw, 24px) clamp(18px, 3vw, 36px) clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--sa-wire);
  border-radius: 22px;
  background:
    radial-gradient(90% 70% at 50% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0)),
    #fafbfc;
  box-shadow:
    0 1px 2px rgba(10, 10, 11, 0.03),
    0 30px 70px -42px rgba(10, 10, 11, 0.18);
}

/* Panel header: title + live status */
.sa-scene-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: clamp(10px, 1.4vw, 14px);
  border-bottom: 1px solid var(--sa-wire);
}

.sa-scene-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.sa-scene-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acc);
  padding: 4px 10px;
  border: 1px solid var(--acc-dim);
  border-radius: 999px;
  background: rgba(77, 134, 194, 0.05);
}

.sa-scene-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acc);
  animation: sa-live-blink 1.6s ease-in-out infinite;
}

@keyframes sa-live-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.sa-scene-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.6;
  perspective: 1500px;
}

/* Micro decorations (plus clusters + dots, like data-viz margins) */
.sa-deco {
  position: absolute;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 4px;
  line-height: 1.6;
  color: rgba(10, 10, 11, 0.18);
  white-space: pre;
  pointer-events: none;
  user-select: none;
}

.sa-deco--tr {
  top: 4%;
  right: 6%;
}

.sa-deco--bl {
  bottom: 6%;
  left: 4%;
}

.sa-deco b {
  color: var(--acc-soft);
  font-weight: 500;
}

/* --- Phone (3D, mesh faces + solid overlay) --- */
.sa-phone {
  --w: clamp(150px, 15.5vw, 196px);
  --h: calc(var(--w) * 2.05);
  --d: calc(var(--w) * 0.11);
  position: absolute;
  left: 27%;
  top: 50%;
  width: var(--w);
  height: var(--h);
  translate: -50% -50%;
  transform-style: preserve-3d;
  transform: rotateY(-24deg) rotateX(4deg);
  z-index: 3;
  animation: sa-phone-bob 7s ease-in-out infinite;
}

@keyframes sa-phone-bob {
  0%, 100% { translate: -50% -50%; }
  50% { translate: -50% calc(-50% - 7px); }
}

.sa-phone-face {
  position: absolute;
  inset: 0;
}

.sa-phone-face svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sa-phone-face--front { transform: translateZ(calc(var(--d) / 2)); }
.sa-phone-face--back  { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }

.sa-phone-face--side {
  /* inset vertically so the flat side plane stays inside the body's rounded corners */
  width: var(--d);
  left: calc(50% - var(--d) / 2);
  top: 6.3%;
  bottom: 6.3%;
}

.sa-phone-face--right { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.sa-phone-face--left  { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }

.sa-mesh-line {
  fill: none;
  stroke: var(--mesh);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.sa-mesh-line--strong {
  stroke: var(--mesh-strong);
  stroke-width: 1.3;
}

/* Mesh hidden while the phone is solid; revealed as the solid fades */
.sa-phone-face {
  opacity: 0;
  transition: opacity 1.1s ease;
}

.sa-scene[data-phase="wire"] .sa-phone-face,
.sa-scene[data-phase="extract"] .sa-phone-face {
  opacity: 1;
}

/* Solid body (the "real" 3D phone with the video) */
.sa-solid {
  position: absolute;
  inset: 0;
  transform: translateZ(calc(var(--d) / 2 + 1px));
  border-radius: 13% / 6.3%;
  background: linear-gradient(155deg, #23262e 0%, #0d0f15 42%, #07080c 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 34px 62px rgba(10, 10, 11, 0.24),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.22),
    inset -1.5px 0 0 rgba(255, 255, 255, 0.06),
    inset 1.5px 0 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 1.2s ease, visibility 0s linear 0s;
  backface-visibility: hidden;
}

/* earpiece slit tucked against the top bezel */
.sa-solid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1.1%;
  width: 13%;
  height: 0.7%;
  translate: -50% 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 3;
}

/* diagonal glass glare over the screen */
.sa-solid::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.04) 18%,
    transparent 34%
  );
  pointer-events: none;
  z-index: 3;
}

/* Metal side wall gives the solid phone real depth */
.sa-solid-side {
  position: absolute;
  top: 5.4%;
  bottom: 5.4%;
  left: calc(50% - var(--d) / 2);
  width: var(--d);
  border-radius: calc(var(--d) / 3);
  background:
    /* antenna bands near top and bottom of the rail */
    linear-gradient(
      180deg,
      transparent 8.5%,
      rgba(255, 255, 255, 0.28) 8.5%,
      rgba(255, 255, 255, 0.28) 9.3%,
      transparent 9.3%,
      transparent 90.7%,
      rgba(255, 255, 255, 0.28) 90.7%,
      rgba(255, 255, 255, 0.28) 91.5%,
      transparent 91.5%
    ),
    linear-gradient(90deg, #3a3e48 0%, #23262e 40%, #14161c 78%, #0e1015 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 1px));
  opacity: 1;
  visibility: visible;
  transition: opacity 1.2s ease, visibility 0s linear 0s;
}

/* power button, machined with a highlight edge */
.sa-solid-side::before {
  content: "";
  position: absolute;
  left: 16%;
  top: 25%;
  width: 34%;
  height: 12%;
  border-radius: 999px;
  background: linear-gradient(90deg, #565b68 0%, #383c46 45%, #23262e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    1px 0 2px rgba(0, 0, 0, 0.4);
}

/* SIM tray with its pinhole, lower on the rail */
.sa-solid-side::after {
  content: "";
  position: absolute;
  left: 26%;
  top: 60%;
  width: 30%;
  height: 7%;
  border-radius: 999px;
  background: #191b21;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    inset 0 2px 3px rgba(0, 0, 0, 0.5);
}

/* Phone dissolves: solid body, side and video fade away entirely */
.sa-scene[data-phase="wire"] .sa-solid,
.sa-scene[data-phase="extract"] .sa-solid,
.sa-scene[data-phase="wire"] .sa-solid-side,
.sa-scene[data-phase="extract"] .sa-solid-side {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 0s linear 1.2s;
}

.sa-solid-video {
  position: absolute;
  inset: 1.8% 3.4%;
  width: 93.2%;
  height: 96.4%;
  border-radius: 10.5% / 5%;
  object-fit: cover;
  display: block;
  background: #000;
}

/* Dynamic island + home indicator for realism */
.sa-solid-island {
  position: absolute;
  left: 50%;
  top: 4.2%;
  width: 34%;
  height: 3.4%;
  translate: -50% 0;
  border-radius: 999px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 2;
}

.sa-solid-island::after {
  content: "";
  position: absolute;
  right: 12%;
  top: 50%;
  width: 14%;
  aspect-ratio: 1;
  translate: 0 -50%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2c3140, #05060a 70%);
}

.sa-solid-homebar {
  position: absolute;
  left: 50%;
  bottom: 2.6%;
  width: 32%;
  height: 1.1%;
  translate: -50% 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  z-index: 2;
}

.sa-solid-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(8, 9, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 4px 7px;
}

/* Scan sweep across the video */
.sa-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 24%;
  background: linear-gradient(180deg, transparent, var(--acc-dim) 65%, var(--acc-soft));
  border-bottom: 1px solid var(--acc);
  box-shadow: 0 0 10px var(--acc-glow);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.sa-scene[data-phase="scan"] .sa-scan {
  animation: sa-scan-sweep 1.3s ease-in-out;
}

@keyframes sa-scan-sweep {
  0% { transform: translateY(-110%); opacity: 0.25; }
  12% { opacity: 1; }
  100% { transform: translateY(400%); opacity: 1; }
}

/* --- Extracted components inside the hollow wireframe phone --- */
.sa-innards {
  position: absolute;
  inset: 4% 6%;
  width: 88%;
  height: 92%;
  overflow: visible;
  pointer-events: none;
}

.sa-in {
  fill: none;
  stroke: var(--acc);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

/* Opaque backing: masks the grey mesh behind each extracted element */
.sa-in-fill {
  fill: #e9f2fb;
  stroke: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.sa-scene[data-phase="extract"] .sa-in {
  opacity: 1;
  animation: sa-draw 0.8s ease forwards;
}

.sa-scene[data-phase="extract"] .sa-in-fill {
  opacity: 1;
  transition-delay: 0.5s;
}

.sa-scene[data-phase="extract"] .sa-in--person { animation-delay: 0.15s; }
.sa-scene[data-phase="extract"] .sa-in--caps   { animation-delay: 0.5s; }
.sa-scene[data-phase="extract"] .sa-in--wave   { animation-delay: 0.85s; }

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

/* --- Connector wires from components to category nodes --- */
.sa-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 2;
  pointer-events: none;
}

.sa-link {
  fill: none;
  stroke: rgba(10, 10, 11, 0.3);
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
}

/* Light-blue signal blips: short line segments racing along the wires */
.sa-pulse {
  fill: none;
  stroke: var(--acc-light);
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 12 88;
  stroke-dashoffset: 100;
  opacity: 0;
}

.sa-scene[data-phase="extract"] .sa-link {
  opacity: 1;
  animation: sa-draw 0.7s ease forwards;
}

.sa-scene[data-phase="extract"] .sa-pulse {
  opacity: 1;
  animation: sa-pulse-run 1s linear infinite;
  transition: opacity 0.4s ease 1.9s;
}

.sa-scene[data-phase="extract"] .sa-pulse[data-k="main"] { animation-duration: 0.85s; }
.sa-scene[data-phase="extract"] .sa-pulse[data-k="loc"]  { animation-delay: 0.15s; animation-duration: 1.1s; }
.sa-scene[data-phase="extract"] .sa-pulse[data-k="tx"]   { animation-delay: 0.4s; animation-duration: 0.9s; }
.sa-scene[data-phase="extract"] .sa-pulse[data-k="time"] { animation-delay: 0.65s; animation-duration: 1.1s; }

@keyframes sa-pulse-run {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

.sa-scene[data-phase="extract"] .sa-link[data-k="main"] { animation-delay: 0.55s; }
.sa-scene[data-phase="extract"] .sa-link[data-k="loc"]  { animation-delay: 1.05s; }
.sa-scene[data-phase="extract"] .sa-link[data-k="tx"]   { animation-delay: 1.2s; }
.sa-scene[data-phase="extract"] .sa-link[data-k="time"] { animation-delay: 1.35s; }

/* --- Metadata hub (mid-stage) --- */
.sa-hub {
  position: absolute;
  left: 50%;
  top: 50.4%;
  translate: -50% -50%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.sa-scene[data-phase="extract"] .sa-hub {
  opacity: 1;
  transform: none;
  transition-delay: 0.8s;
}

.sa-hub-iso {
  width: clamp(64px, 6.2vw, 80px);
  overflow: visible;
  transform: perspective(520px) rotateX(9deg) rotateY(-13deg);
}

.sa-hub-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  text-align: center;
}

.sa-hub-text b {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--text);
}

.sa-hub-text small {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* --- Category nodes (right) --- */
.sa-node {
  position: absolute;
  left: 68.5%;
  translate: 0 -50%;
  z-index: 4;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.sa-node[data-k="loc"]  { top: 24%; }
.sa-node[data-k="tx"]   { top: 50.4%; }
.sa-node[data-k="time"] { top: 78%; }

.sa-scene[data-phase="extract"] .sa-node {
  opacity: 1;
  transform: none;
}

.sa-scene[data-phase="extract"] .sa-node[data-k="loc"]  { transition-delay: 1.15s; }
.sa-scene[data-phase="extract"] .sa-node[data-k="tx"]   { transition-delay: 1.4s; }
.sa-scene[data-phase="extract"] .sa-node[data-k="time"] { transition-delay: 1.65s; }

.sa-node {
  display: flex;
  align-items: center;
  gap: 13px;
}

/* Wireframe object icons, tilted in 3D like the phone */
.sa-node-iso {
  width: clamp(68px, 6.6vw, 88px);
  flex: none;
  overflow: visible;
  transform: perspective(520px) rotateX(10deg) rotateY(-17deg);
}

.sa-iso-line {
  fill: none;
  stroke: var(--mesh-strong);
  stroke-width: 1.1;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.sa-iso-line--soft {
  stroke: var(--mesh);
  stroke-width: 1;
}

.sa-iso-top {
  fill: rgba(10, 10, 11, 0.03);
}

.sa-iso-plat {
  stroke: var(--mesh);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  fill: rgba(10, 10, 11, 0.015);
}

.sa-iso-led {
  fill: var(--acc);
  stroke: none;
}

.sa-iso-led--dim {
  fill: var(--acc-dim);
  stroke: var(--acc-soft);
  stroke-width: 0.8;
}

/* Soft contact shadow grounding each object on its platform */
.sa-iso-shadow {
  fill: rgba(10, 10, 11, 0.06);
  stroke: none;
}

/* Blue accent strokes inside the icons */
.sa-iso-acc {
  fill: none;
  stroke: var(--acc);
  stroke-width: 1.3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.sa-node-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}

.sa-node-kicker {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acc);
}

.sa-node-text b {
  font-size: 13.5px;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--text);
}

.sa-node-text small {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* --- Pipeline stepper: mirrors the animation phases --- */
.sa-flow {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: min(100%, 640px);
  margin: clamp(2px, 0.6vw, 8px) auto 0;
  padding-top: 4px;
}

.sa-flow-track {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 8px;
  height: 1px;
  background: var(--sa-wire);
  overflow: hidden;
}

.sa-flow-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--acc-soft), var(--acc));
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.sa-scene[data-phase="video"]   .sa-flow-fill { width: 5%; }
.sa-scene[data-phase="scan"]    .sa-flow-fill { width: 36%; }
.sa-scene[data-phase="wire"]    .sa-flow-fill { width: 68%; }
.sa-scene[data-phase="extract"] .sa-flow-fill { width: 100%; }

.sa-flow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

/* diamond marker sitting on the track */
.sa-flow-step i {
  width: 8px;
  height: 8px;
  rotate: 45deg;
  border: 1px solid rgba(10, 10, 11, 0.3);
  background: var(--bg, #fff);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.sa-flow-step span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dim);
  transition: color 0.4s ease;
}

/* map scene phases to step states */
.sa-scene[data-phase="video"] .sa-flow-step[data-step="video"] i,
.sa-scene[data-phase="scan"] .sa-flow-step[data-step="scan"] i,
.sa-scene[data-phase="wire"] .sa-flow-step[data-step="wire"] i,
.sa-scene[data-phase="extract"] .sa-flow-step[data-step="extract"] i {
  border-color: var(--acc);
  background: var(--acc);
  box-shadow: 0 0 0 4px var(--acc-dim);
}

.sa-scene[data-phase="video"] .sa-flow-step[data-step="video"] span,
.sa-scene[data-phase="scan"] .sa-flow-step[data-step="scan"] span,
.sa-scene[data-phase="wire"] .sa-flow-step[data-step="wire"] span,
.sa-scene[data-phase="extract"] .sa-flow-step[data-step="extract"] span {
  color: var(--text);
}

/* steps already passed stay softly lit */
.sa-scene[data-phase="scan"] .sa-flow-step[data-step="video"] i,
.sa-scene[data-phase="wire"] .sa-flow-step[data-step="video"] i,
.sa-scene[data-phase="wire"] .sa-flow-step[data-step="scan"] i,
.sa-scene[data-phase="extract"] .sa-flow-step[data-step="video"] i,
.sa-scene[data-phase="extract"] .sa-flow-step[data-step="scan"] i,
.sa-scene[data-phase="extract"] .sa-flow-step[data-step="wire"] i {
  border-color: var(--acc-soft);
  background: var(--acc-dim);
}

@media (prefers-reduced-motion: reduce) {
  .sa-phone {
    animation: none;
  }

  .sa-scene[data-phase] .sa-solid,
  .sa-scene[data-phase] .sa-solid-side {
    opacity: 0;
    visibility: hidden;
    transition: none;
  }

  .sa-scene[data-phase] .sa-phone-face {
    opacity: 1;
    transition: none;
  }

  .sa-scene[data-phase] .sa-in,
  .sa-scene[data-phase] .sa-link {
    opacity: 1;
    stroke-dashoffset: 0;
    animation: none;
  }

  .sa-scene[data-phase] .sa-in-fill,
  .sa-scene[data-phase] .sa-node,
  .sa-scene[data-phase] .sa-hub {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .sa-pulse,
  .sa-scan {
    display: none;
  }

  .sa-scene-live i {
    animation: none;
  }

  .sa-flow-fill {
    transition: none;
  }
}

.sa-base-url {
  font-family: var(--mono);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--cyan);
}

.sa-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: #ffffff;
}

.sa-btn-outline:hover {
  background: var(--surface-2);
  text-decoration: none;
}

.sa-btn-outline--sm {
  padding: 8px 14px;
  font-size: 12px;
}

/* Editorial wire frame */
.sa-grid-frame {
  width: 100%;
  padding-bottom: 80px;
}

.sa-grid-frame__inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  position: relative;
}

.sa-grid-frame__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(var(--sa-wire), var(--sa-wire)) var(--sa-line-inset) 0 / calc(100% - var(--sa-line-inset) * 2) 1px no-repeat,
    linear-gradient(var(--sa-wire), var(--sa-wire)) var(--sa-line-inset) 100% / calc(100% - var(--sa-line-inset) * 2) 1px no-repeat,
    linear-gradient(90deg, var(--sa-wire), var(--sa-wire)) 0 var(--sa-line-inset) / 1px calc(100% - var(--sa-line-inset) * 2) no-repeat,
    linear-gradient(90deg, var(--sa-wire), var(--sa-wire)) 100% var(--sa-line-inset) / 1px calc(100% - var(--sa-line-inset) * 2) no-repeat;
}

.sa-grid-frame__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: var(--sa-dot), var(--sa-dot), var(--sa-dot), var(--sa-dot);
  background-size: var(--sa-dot-size), var(--sa-dot-size), var(--sa-dot-size), var(--sa-dot-size);
  background-position: left top, right top, left bottom, right bottom;
  background-repeat: no-repeat;
}

.sa-block,
.sa-section {
  position: relative;
  z-index: 2;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 40px);
  scroll-margin-top: calc(var(--nav-top) + 12px);
  /* Skip rendering (layout, paint, and animations) while offscreen. Big win
     on long pages and low-end devices; sizes memoize after first render. */
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

.sa-grid-frame__inner > .sa-block + .sa-block,
.sa-grid-frame__inner > .sa-block + .sa-section,
.sa-grid-frame__inner > .sa-section + .sa-section {
  border-top: none;
}

.sa-grid-frame__inner > .sa-block + .sa-block::before,
.sa-grid-frame__inner > .sa-block + .sa-section::before,
.sa-grid-frame__inner > .sa-section + .sa-section::before,
.sa-grid-frame__inner > .sa-section + .sa-block::before {
  content: "";
  position: absolute;
  left: var(--sa-line-inset);
  right: var(--sa-line-inset);
  top: 0;
  height: 1px;
  background: var(--sa-wire);
  pointer-events: none;
}

.sa-grid-frame__inner > .sa-block + .sa-block::after,
.sa-grid-frame__inner > .sa-block + .sa-section::after,
.sa-grid-frame__inner > .sa-section + .sa-section::after,
.sa-grid-frame__inner > .sa-section + .sa-block::after {
  content: "";
  position: absolute;
  top: -2.5px;
  left: 0;
  right: 0;
  height: var(--sa-dot-size);
  pointer-events: none;
  background-image: var(--sa-dot), var(--sa-dot);
  background-size: var(--sa-dot-size), var(--sa-dot-size);
  background-position: left top, right top;
  background-repeat: no-repeat;
}

.sa-block-head {
  max-width: 640px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.sa-block-head h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 12px;
}

.sa-block-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.sa-block-head code {
  color: var(--cyan);
  background: var(--cyan-dim);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
}

.sa-block-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: end;
}

.sa-block-head--split > p {
  max-width: 40ch;
}

/* Capability grid */
.sa-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: none;
  margin: 0 calc(-1 * clamp(24px, 4vw, 40px));
  width: calc(100% + 2 * clamp(24px, 4vw, 40px));
}

.sa-cap {
  padding: 28px clamp(20px, 3vw, 28px) 32px;
  background: #fff;
  border: none;
  position: relative;
  min-width: 0;
}

.sa-cap:nth-child(3n + 2)::before,
.sa-cap:nth-child(3n + 3)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--sa-wire);
}

.sa-cap:nth-child(n + 4)::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 1px;
  background: var(--sa-wire);
}

.sa-cap h3 {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.sa-cap p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.sa-cap p strong {
  color: var(--text);
  font-weight: 700;
}

.sa-cap p code {
  font-size: 12px;
  color: var(--cyan);
  background: var(--cyan-dim);
  padding: 1px 5px;
  border-radius: 4px;
}

.sa-cap-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.sa-cap-title-row h3 {
  margin: 0;
}

.sa-cap-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(10, 10, 11, 0.18);
  background: rgba(10, 10, 11, 0.04);
  color: var(--text);
}

.sa-cap-viz {
  height: 168px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #f7f7f8;
  border: 1px solid rgba(10, 10, 11, 0.06);
  overflow: hidden;
  position: relative;
  color: rgba(10, 10, 11, 0.55);
}

/* Shared card stage: a clean panel floating over faint ghost code */
.sa-stage {
  position: relative;
  width: min(92%, 250px);
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sa-stage-ghost {
  position: absolute;
  inset: 4px 6px auto;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: rgba(10, 10, 11, 0.12);
  white-space: pre;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.sa-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 210px;
  background: #fff;
  border: 1px solid rgba(10, 10, 11, 0.08);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(10, 10, 11, 0.08);
  overflow: hidden;
}

.sa-panel-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px 6px;
  border-bottom: 1px solid rgba(10, 10, 11, 0.05);
}

.sa-panel-bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.12);
}

.sa-panel-bar em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  position: relative;
  padding-left: 10px;
}

.sa-panel-bar em::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--cyan);
  animation: sa-caption-live 1.5s ease-in-out infinite;
}

@keyframes sa-caption-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.sa-caption-rows {
  display: grid;
  gap: 2px;
  padding: 6px 8px 10px;
}

.sa-caption-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 7px 8px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(6px);
  animation: sa-caption-row-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.35s + 0.15s);
}

.sa-caption-row time {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(10, 10, 11, 0.28);
}

.sa-caption-row span {
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: -0.02em;
  color: rgba(10, 10, 11, 0.38);
  line-height: 1.25;
}

.sa-caption-row.is-on {
  background: rgba(10, 10, 11, 0.06);
}

.sa-caption-row.is-on time {
  color: var(--cyan);
}

.sa-caption-row.is-on span {
  color: var(--text);
  font-weight: 700;
  animation: sa-caption-pulse 2.8s ease-in-out infinite;
  animation-delay: 1.2s;
}

@keyframes sa-caption-row-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sa-caption-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.sa-infograph {
  width: min(100%, 280px);
  height: 100%;
  display: block;
}

.sa-infograph-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  fill: rgba(10, 10, 11, 0.38);
}

.sa-infograph-label--hot {
  fill: var(--cyan);
}

/* Accuracy wave */
.sa-wave {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: sa-draw 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.sa-wave--dim {
  stroke: rgba(10, 10, 11, 0.28);
  animation-delay: 0.15s;
}

.sa-wave--hot {
  stroke: var(--cyan);
  stroke-width: 2;
  animation-delay: 0.35s;
}

.sa-wave-mark {
  stroke: rgba(10, 10, 11, 0.22);
  stroke-width: 1;
  opacity: 0;
  animation: sa-fade-in 0.6s ease forwards 1.4s;
}

.sa-wave-mark--hot {
  stroke: var(--cyan);
  opacity: 0;
  animation-delay: 1.55s;
}

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

@keyframes sa-fade-in {
  to { opacity: 1; }
}

/* Globe */
.sa-globe-ring {
  fill: none;
  stroke: rgba(10, 10, 11, 0.22);
  stroke-width: 1;
}

.sa-globe-dot {
  fill: var(--cyan);
  opacity: 0.85;
  transform-box: fill-box;
  transform-origin: center;
  animation: sa-dot-pulse 2.8s ease-in-out infinite;
}

.sa-globe-dot:nth-child(2) { animation-delay: 0.35s; }
.sa-globe-dot:nth-child(3) { animation-delay: 0.7s; }
.sa-globe-dot:nth-child(4) { animation-delay: 1.05s; }
.sa-globe-dot:nth-child(5) { animation-delay: 1.4s; }
.sa-globe-dot:nth-child(6) { animation-delay: 1.75s; }

.sa-globe-orbit {
  transform-origin: 0px 0px;
  animation: sa-orbit 8s linear infinite;
}

.sa-globe-sat {
  fill: var(--blue);
  filter: drop-shadow(0 0 3px rgba(120, 120, 126, 0.45));
}

@keyframes sa-orbit {
  to { transform: rotate(360deg); }
}

@keyframes sa-dot-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.25); }
}

/* Word-level timeline: sweeping playhead lights each token */
.sa-tl {
  padding: 13px 14px 11px;
}

.sa-tl-head,
.sa-tl-axis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.sa-tl-head {
  margin-bottom: 14px;
}

.sa-tl-head em {
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 9px;
  color: rgba(10, 10, 11, 0.34);
}

.sa-tl-head span {
  color: var(--cyan);
}

.sa-tl-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(10, 10, 11, 0.06);
}

.sa-tl-word {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 8px 2px 6px;
  border-radius: 8px;
  color: rgba(10, 10, 11, 0.3);
  animation: sa-tl-lit 4s ease-in-out infinite;
  animation-delay: calc(var(--s) * 1s);
}

.sa-tl-word b {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: inherit;
}

.sa-tl-word small {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: inherit;
  opacity: 0.7;
}

@keyframes sa-tl-lit {
  0% { color: rgba(10, 10, 11, 0.3); background: transparent; }
  1%, 23% { color: var(--cyan); background: var(--cyan-dim); }
  25%, 100% { color: rgba(10, 10, 11, 0.3); background: transparent; }
}

.sa-tl-playhead {
  position: absolute;
  top: 0;
  bottom: 12px;
  left: 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 0 3px rgba(10, 10, 11, 0.1);
  transform: translateX(calc(12.5% + 0px));
  animation: sa-tl-sweep 4s linear infinite;
}

@keyframes sa-tl-sweep {
  0% { left: 12.5%; }
  100% { left: 87.5%; }
}

.sa-tl-axis em {
  font-style: normal;
  color: rgba(10, 10, 11, 0.34);
}

/* Speaker identity + turn lanes */
.sa-spk-card {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.sa-spk-person {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(10, 10, 11, 0.02);
}

.sa-spk-person.is-on {
  border-color: rgba(10, 10, 11, 0.28);
  background: rgba(10, 10, 11, 0.06);
}

.sa-spk-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c, var(--cyan));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 750;
}

.sa-spk-person strong {
  display: block;
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.sa-spk-person em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: rgba(10, 10, 11, 0.4);
}

.sa-spk-live {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  position: relative;
  padding-left: 10px;
}

.sa-spk-live::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--cyan);
  animation: sa-spk-blink 1.4s ease-in-out infinite;
}

@keyframes sa-spk-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.sa-spk-lanes {
  display: grid;
  gap: 6px;
  padding: 4px 2px 2px;
}

.sa-spk-lane {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 4px;
  height: 6px;
}

.sa-spk-lane--b {
  grid-template-columns: 0.8fr 1.3fr 0.7fr;
}

.sa-spk-lane i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.55);
}

.sa-spk-lane--b i {
  background: rgba(120, 120, 126, 0.45);
}

.sa-spk-lane i.is-gap {
  background: rgba(10, 10, 11, 0.06);
}

.sa-spk-person.is-on .sa-spk-av {
  box-shadow: 0 0 0 3px rgba(10, 10, 11, 0.16);
}

/* Frame strip */
.sa-frame {
  fill: rgba(255, 255, 255, 0.7);
  stroke: rgba(10, 10, 11, 0.16);
  stroke-width: 1;
}

.sa-frame--on {
  stroke: var(--cyan);
  fill: rgba(10, 10, 11, 0.08);
  animation: sa-frame-pulse 2.6s ease-in-out infinite;
}

.sa-frame-scan {
  stroke: var(--cyan);
  stroke-width: 1.5;
  opacity: 0.8;
  animation: sa-frame-scan 2.6s ease-in-out infinite;
}

@keyframes sa-frame-pulse {
  0%, 100% { stroke-opacity: 0.55; }
  50% { stroke-opacity: 1; }
}

@keyframes sa-frame-scan {
  0%, 100% { transform: translateX(0); opacity: 0.3; }
  50% { transform: translateX(48px); opacity: 1; }
}

/* Dialect: language -> variety branch diagram with a routed signal */
.sa-dtree {
  width: min(100%, 280px);
}

.sa-dtree-root {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  fill: rgba(10, 10, 11, 0.5);
}

.sa-dtree-dot {
  fill: rgba(10, 10, 11, 0.42);
}

.sa-dtree-wire {
  stroke: rgba(10, 10, 11, 0.16);
  stroke-width: 1;
}

.sa-dtree-node {
  fill: #fff;
  stroke: rgba(10, 10, 11, 0.26);
  stroke-width: 1.4;
}

.sa-dtree-node--on {
  fill: var(--cyan);
  stroke: none;
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 3px rgba(10, 10, 11, 0.5));
  animation: sa-dtree-pulse 2.2s ease-in-out infinite;
}

.sa-dtree-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  fill: rgba(10, 10, 11, 0.34);
}

.sa-dtree-label--on {
  fill: var(--text);
  font-weight: 750;
}

.sa-dtree-conf {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  fill: var(--cyan);
}

.sa-dtree-flow {
  stroke: var(--cyan);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 14 92;
  stroke-dashoffset: 106;
  animation: sa-dtree-flow 2.4s linear infinite;
}

@keyframes sa-dtree-flow {
  to { stroke-dashoffset: 0; }
}

@keyframes sa-dtree-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.28); opacity: 0.78; }
}

@media (prefers-reduced-motion: reduce) {
  .sa-wave,
  .sa-wave-mark,
  .sa-globe-dot,
  .sa-globe-orbit,
  .sa-frame--on,
  .sa-frame-scan,
  .sa-panel-bar em::before,
  .sa-caption-row,
  .sa-caption-row.is-on span,
  .sa-tl-word,
  .sa-tl-playhead,
  .sa-dtree-flow,
  .sa-dtree-node--on,
  .sa-spk-live::before {
    animation: none !important;
  }

  .sa-wave {
    stroke-dashoffset: 0;
  }

  .sa-wave-mark {
    opacity: 1;
  }

  .sa-caption-row {
    opacity: 1;
    transform: none;
  }

  .sa-tl-word {
    color: rgba(10, 10, 11, 0.3);
  }

  .sa-tl-word:nth-child(3) {
    color: var(--cyan);
    background: rgba(10, 10, 11, 0.08);
  }

  .sa-tl-playhead {
    left: 62.5%;
  }

  .sa-dtree-flow {
    stroke-dashoffset: 92;
  }
}

/* Demo stage */
.sa-demo-stage {
  padding: 8px 0 0;
}

/* Benchmark */
.sa-bench-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.sa-bench-viz {
  border-radius: 16px;
  border: 1px solid rgba(10, 10, 11, 0.06);
  background: #f7f7f8;
  padding: 12px 8px 4px;
  color: rgba(10, 10, 11, 0.5);
  overflow: hidden;
}

.sa-bench-svg {
  display: block;
  width: 100%;
  height: auto;
}

.sa-bench-curve {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: sa-bench-draw 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.sa-bench-curve--field {
  stroke: rgba(10, 10, 11, 0.28);
  stroke-width: 1.6;
  animation-delay: 0.1s;
}

.sa-bench-curve--ours {
  stroke: var(--cyan);
  stroke-width: 2.2;
  animation-delay: 0.35s;
}

.sa-bench-peak {
  stroke: rgba(10, 10, 11, 0.2);
  stroke-width: 1;
  opacity: 0;
  animation: sa-fade-in 0.55s ease forwards 1.35s;
}

.sa-bench-peak--ours {
  stroke: var(--cyan);
  animation-delay: 1.5s;
}

.sa-bench-node {
  fill: rgba(10, 10, 11, 0.35);
  opacity: 0;
  animation: sa-fade-in 0.45s ease forwards 1.55s;
}

.sa-bench-node--ours {
  fill: var(--cyan);
  filter: drop-shadow(0 0 4px rgba(10, 10, 11, 0.45));
  animation-delay: 1.7s;
}

.sa-bench-axis {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  fill: rgba(10, 10, 11, 0.34);
  text-anchor: end;
}

.sa-bench-axis--hot {
  fill: var(--cyan);
}

.sa-bench-legend {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  fill: rgba(10, 10, 11, 0.38);
}

.sa-bench-legend--ours {
  fill: var(--cyan);
}

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

.sa-bench-board {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.sa-bench-board li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1.1fr) auto minmax(56px, 1fr) 48px;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(10, 10, 11, 0.08);
  opacity: 0;
  transform: translateY(6px);
  animation: sa-bench-row-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.sa-bench-board li:first-child { animation-delay: 0.15s; }
.sa-bench-board li:nth-child(2) { animation-delay: 0.25s; }
.sa-bench-board li:nth-child(3) { animation-delay: 0.35s; }
.sa-bench-board li:nth-child(4) { animation-delay: 0.45s; }
.sa-bench-board li:nth-child(5) { animation-delay: 0.55s; }

.sa-bench-board li:last-child {
  border-bottom: none;
}

@keyframes sa-bench-row-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.sa-bench-rank {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 650;
  color: rgba(10, 10, 11, 0.3);
  letter-spacing: 0.04em;
}

.sa-bench-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sa-bench-tag {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.12);
  color: var(--cyan);
}

.sa-bench-board li:not(.is-ours) .sa-bench-tag {
  display: none;
}

.sa-bench-board li:not(.is-ours) {
  grid-template-columns: 28px minmax(0, 1.2fr) minmax(56px, 1fr) 48px;
}

.sa-bench-line {
  position: relative;
  height: 2px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.08);
  overflow: hidden;
}

.sa-bench-line::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--pct, 50) * 1%);
  border-radius: inherit;
  background: rgba(10, 10, 11, 0.28);
  transform-origin: left center;
  animation: sa-bench-grow 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: inherit;
}

.sa-bench-board li.is-ours .sa-bench-line::after {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.sa-bench-board li:nth-child(1) .sa-bench-line::after { animation-delay: 0.35s; }
.sa-bench-board li:nth-child(2) .sa-bench-line::after { animation-delay: 0.45s; }
.sa-bench-board li:nth-child(3) .sa-bench-line::after { animation-delay: 0.55s; }
.sa-bench-board li:nth-child(4) .sa-bench-line::after { animation-delay: 0.65s; }
.sa-bench-board li:nth-child(5) .sa-bench-line::after { animation-delay: 0.75s; }

.sa-bench-pct {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  color: rgba(10, 10, 11, 0.45);
}

.sa-bench-board li.is-ours .sa-bench-pct {
  color: var(--cyan);
}

.sa-bench-board li.is-ours .sa-bench-rank {
  color: var(--cyan);
}

@keyframes sa-bench-grow {
  from {
    transform: scaleX(0);
    opacity: 0.4;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

.sa-benchmark-foot {
  margin: 24px 0 0;
  font-size: 13px;
  color: var(--muted-dim);
  max-width: 72ch;
}

/* Languages */
.sa-lang-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 8px;
}

.sa-lang-grid li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.sa-lang-grid li:hover {
  border-color: rgba(10, 10, 11, 0.35);
  background: #fff;
  transform: translateY(-1px);
}

.sa-lang-flag {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
  width: 1.35em;
  text-align: center;
}

.sa-lang-code {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cyan);
  background: var(--cyan-dim);
  border-radius: 7px;
  padding: 4px 7px;
  min-width: 2.75rem;
  text-align: center;
}

.sa-languages-foot {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--muted-dim);
}

/* Trust */
.sa-block--trust {
  padding-top: clamp(28px, 4vw, 40px);
  padding-bottom: clamp(28px, 4vw, 40px);
}

.sa-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 calc(-1 * clamp(24px, 4vw, 40px));
  width: calc(100% + 2 * clamp(24px, 4vw, 40px));
}

.sa-trust-item {
  padding: 8px clamp(20px, 3vw, 28px);
  position: relative;
}

.sa-trust-item + .sa-trust-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--sa-wire);
}

.sa-trust-item strong {
  display: block;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.sa-trust-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Docs intro */
.sa-docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.sa-docs-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.sa-docs-toc a {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

.sa-docs-toc a:hover {
  color: var(--text);
  border-color: var(--line-strong);
  text-decoration: none;
}

/* Sections */
.sa-section h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sa-section h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--cyan);
}

.sa-section p,
.sa-section li {
  color: var(--muted);
}

.sa-section ul {
  padding-left: 20px;
  margin: 8px 0;
}

.sa-section li {
  margin-bottom: 6px;
}

.sa-section li code {
  color: var(--cyan);
}

/* Method badges */
.sa-method {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
}

.sa-method-get {
  background: rgba(10, 10, 11, 0.06);
  color: var(--text);
}

.sa-method-post {
  background: var(--cyan-dim);
  color: var(--cyan);
}

.sa-endpoint {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
}

/* Callouts */
.sa-callouts {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.sa-callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(10, 10, 11, 0.22);
  background: rgba(10, 10, 11, 0.05);
  font-size: 14px;
  color: var(--text);
}

.sa-callout-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cyan-dim);
  color: var(--cyan);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

/* Quick start steps */
.sa-steps {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin: 16px 0;
}

.sa-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 20px 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.sa-step:last-child {
  border-bottom: none;
}

.sa-step-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.06em;
}

.sa-step-body h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.sa-step-body p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Code blocks */
.sa-code-wrap {
  position: relative;
  margin: 12px 0;
}

.sa-code-wrap pre {
  margin: 0;
}

pre {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: rgba(10, 10, 11, 0.82);
}

code {
  font-family: var(--mono);
  font-size: 13px;
}

pre code {
  background: none;
  padding: 0;
}

:not(pre) > code {
  background: rgba(10, 10, 11, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--cyan);
}

.sa-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.sa-copy-btn .sa-copy-icon {
  display: block;
}

.sa-copy-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.sa-copy-btn.is-copied {
  color: var(--green);
  border-color: rgba(10, 10, 11, 0.3);
}

/* Syntax: monochrome (weight + gray tone instead of hue) */
.s { color: #55555b; }
.k { color: #0a0a0b; font-weight: 700; }
.n { color: #0a0a0b; }
.c { color: #a0a0a5; }

/* Tables */
.sa-table-wrap {
  overflow-x: auto;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 480px;
}

th {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-dim);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(10, 10, 11, 0.02);
}

td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(10, 10, 11, 0.05);
  color: var(--text);
}

tr:last-child td {
  border-bottom: none;
}

td code {
  color: var(--cyan);
  background: var(--cyan-dim);
}

.sa-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sa-badge-required {
  background: rgba(10, 10, 11, 0.08);
  color: var(--text);
}

.sa-badge-optional {
  background: rgba(10, 10, 11, 0.06);
  color: var(--muted);
}

.sa-badge-free {
  background: rgba(10, 10, 11, 0.08);
  color: var(--text);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Get access - styled like the /studio pricing plan cards */
.sa-access {
  padding: 40px 36px 36px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(10, 10, 11, 0.05), transparent 55%),
    #ffffff;
  box-shadow: 0 1px 2px rgba(10, 10, 11, 0.04);
}

.sa-access-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 10px;
}

.sa-access h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.sa-access-trust {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted-dim);
}

/* Blue glow-sweep CTA (same treatment as the /studio signup button) */
.sa-btn-glow {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(135deg, #6ba8f5 0%, #3b82f6 55%, #3478ef 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 8px 22px rgba(37, 99, 235, 0.28);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.sa-btn-glow::before {
  content: "";
  position: absolute;
  top: -50%;
  bottom: -50%;
  left: 0;
  width: 28%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 25%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(191, 219, 254, 0.75) 55%,
    rgba(255, 255, 255, 0) 75%,
    transparent 100%
  );
  transform: translateX(-180%) skewX(-20deg);
  animation: sa-btn-glow-shine 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.sa-btn-glow:hover {
  background: linear-gradient(135deg, #5b9aef 0%, #3478ef 55%, #2f6fe8 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    0 10px 26px rgba(37, 99, 235, 0.34);
  transform: translateY(-1px);
  text-decoration: none;
}

@keyframes sa-btn-glow-shine {
  0%, 8% { transform: translateX(-180%) skewX(-20deg); }
  42% { transform: translateX(420%) skewX(-20deg); }
  100% { transform: translateX(420%) skewX(-20deg); }
}

.sa-btn-glow--lg {
  margin-top: 16px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
}

.sa-btn-glow--sm {
  padding: 8px 16px;
  font-size: 13px;
}


.sa-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 48px;
  text-align: center;
  color: var(--muted-dim);
  font-size: 13px;
}

.sa-footer a {
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .sa-btn-glow::before {
    animation: none;
    opacity: 0;
  }

  .sa-bench-curve,
  .sa-bench-peak,
  .sa-bench-node,
  .sa-bench-board li,
  .sa-bench-line::after {
    animation: none !important;
  }

  .sa-bench-curve {
    stroke-dashoffset: 0;
  }

  .sa-bench-peak,
  .sa-bench-node,
  .sa-bench-board li {
    opacity: 1;
    transform: none;
  }

  .sa-bench-line::after {
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 960px) {
  .sa-nav-links .sa-nav-anchor:not([href="#docs"]) {
    display: none;
  }

  .sa-block-head--split,
  .sa-bench-panel,
  .sa-trust-grid {
    grid-template-columns: 1fr;
  }

  .sa-docs-actions {
    justify-content: flex-start;
  }

  .sa-cap-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sa-cap:nth-child(3n + 2)::before,
  .sa-cap:nth-child(3n + 3)::before {
    display: none;
  }

  .sa-cap:nth-child(even)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: var(--sa-wire);
  }

  .sa-cap:nth-child(n + 3)::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 0;
    height: 1px;
    background: var(--sa-wire);
  }

  .sa-trust-item + .sa-trust-item::before {
    left: 12px;
    right: 12px;
    top: 0;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .sa-trust-item + .sa-trust-item {
    padding-top: 20px;
  }

  .sa-bench-board li,
  .sa-bench-board li:not(.is-ours) {
    grid-template-columns: 24px minmax(0, 1fr) 44px;
    gap: 8px;
  }

  .sa-bench-tag,
  .sa-bench-line {
    display: none;
  }

  .sa-lang-grid {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 6px;
  }
}

@media (max-width: 980px) {
  .sa-scene-stage {
    aspect-ratio: 16 / 10;
  }

  .sa-phone {
    left: 25%;
    --w: clamp(130px, 19vw, 168px);
  }

  .sa-node {
    left: 64%;
  }

  .sa-node {
    gap: 9px;
  }

  .sa-node-iso {
    width: 56px;
  }

  .sa-node-text b {
    font-size: 12px;
  }

  .sa-node-text small {
    font-size: 9px;
  }

  .sa-hub-iso {
    width: 52px;
  }

  .sa-hub-text b {
    font-size: 11px;
  }

  .sa-hub-text small {
    font-size: 8.5px;
  }

  .sa-deco {
    display: none;
  }
}

@media (max-width: 720px) {
  .sa-hero,
  .sa-grid-frame__inner {
    width: min(100% - 32px, var(--max));
  }

  /* Vertical card layout: phone on top, hub + nodes stacked beneath */
  .sa-scene-stage {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 14px 0 6px;
  }

  .sa-links {
    display: none;
  }

  .sa-phone {
    position: relative;
    left: auto;
    top: auto;
    translate: none;
    animation: none;
    --w: min(140px, 38vw);
    margin-bottom: 8px;
  }

  .sa-hub,
  .sa-node {
    position: relative;
    left: auto;
    top: auto;
    translate: none;
  }

  /* short connector ticks standing in for the wires */
  .sa-hub::before,
  .sa-node::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -26px;
    width: 1px;
    height: 22px;
    background: rgba(10, 10, 11, 0.22);
  }

  .sa-hub {
    gap: 5px;
  }

  .sa-hub-iso {
    width: 44px;
  }

  .sa-hub-text b {
    font-size: 11px;
  }

  .sa-node {
    gap: 12px;
  }

  .sa-node-iso {
    width: 48px;
  }

  .sa-scene {
    padding: 14px 14px 16px;
    border-radius: 16px;
  }

  .sa-flow {
    margin-top: 14px;
  }

  .sa-flow-step span {
    font-size: 8px;
    letter-spacing: 0.04em;
    text-align: center;
  }

  /* keep edge labels inside the panel */
  .sa-flow-step:first-child {
    align-items: flex-start;
  }

  .sa-flow-step:first-child span {
    text-align: left;
  }

  .sa-flow-step:last-child {
    align-items: flex-end;
  }

  .sa-flow-step:last-child span {
    text-align: right;
    max-width: 76px;
    white-space: normal;
  }

  .sa-cap-grid {
    grid-template-columns: 1fr;
  }

  .sa-cap:nth-child(even)::before {
    display: none;
  }

  .sa-cap:nth-child(n + 2)::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 0;
    height: 1px;
    background: var(--sa-wire);
  }

  .sa-cap-grid,
  .sa-trust-grid {
    margin: 0;
    width: 100%;
  }

  .sa-block,
  .sa-section {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ============================================================
   Low-power mode (.sa-lite on <html>)
   Set by JS on save-data, very low memory, or a failed fps probe.
   Strips decorative motion + expensive effects; content unchanged.
   ============================================================ */

/* Button shimmer: paint + blend every frame */
.sa-lite .sa-btn-glow::before {
  animation: none;
  opacity: 0;
}

/* Hero scene: keep the phase story, drop continuous motion */
.sa-lite .sa-phone {
  animation: none;
}

.sa-lite .sa-pulse {
  display: none;
}

.sa-lite .sa-scene-live i {
  animation: none;
}

/* Capability card idle loops */
.sa-lite .sa-panel-bar em::before,
.sa-lite .sa-spk-live::before,
.sa-lite .sa-caption-row.is-on span,
.sa-lite .sa-globe-dot,
.sa-lite .sa-globe-orbit,
.sa-lite .sa-tl-word,
.sa-lite .sa-tl-playhead,
.sa-lite .sa-frame--on,
.sa-lite .sa-frame-scan,
.sa-lite .sa-dtree-node--on,
.sa-lite .sa-dtree-flow {
  animation: none !important;
}

/* GPU-expensive filters and blurs */
.sa-lite .sa-globe-dot,
.sa-lite .sa-dtree-node--on {
  filter: none;
}

.sa-lite .sa-glass {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(255, 255, 255, 0.94);
}

/* Live-demo overlays: solid dark chips instead of backdrop blur over video */
.sa-lite .sad-blob {
  display: none;
}

.sa-lite .sad-speaker-tag,
.sa-lite .sad-status,
.sa-lite .sad-chip,
.sa-lite .sad-captions,
.sa-lite .sad-lang-sub {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.sa-lite .sad-speaker-tag-pulse {
  animation: none;
}
