:root {
  --bg: #f5f6f7;
  --bg2: #edf1f2;
  --paper: rgba(255, 255, 255, 0.88);
  --ink: #13161a;
  --muted: #66707a;
  --line: rgba(24, 28, 37, 0.09);
  --red: #ec5b41;
  --cyan: #10908e;
  --gold: #e6a23d;
  --pink: #d85c83;
  --blue: #5978d8;
  --shadow: 0 14px 34px rgba(14, 24, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  background:
    radial-gradient(1200px 760px at 6% 4%, rgba(236, 91, 65, 0.35) 0%, rgba(236, 91, 65, 0.1) 42%, rgba(236, 91, 65, 0) 66%),
    radial-gradient(1120px 760px at 95% 8%, rgba(16, 144, 142, 0.36) 0%, rgba(16, 144, 142, 0.12) 44%, rgba(16, 144, 142, 0) 66%),
    radial-gradient(980px 700px at 48% 98%, rgba(89, 120, 216, 0.28) 0%, rgba(89, 120, 216, 0.08) 44%, rgba(89, 120, 216, 0) 70%),
    radial-gradient(920px 640px at 55% 25%, rgba(216, 92, 131, 0.24) 0%, rgba(216, 92, 131, 0.06) 40%, rgba(216, 92, 131, 0) 68%),
    linear-gradient(130deg, #d8e4eb 0%, #cddde6 34%, #c6d9e4 62%, #d5e5ee 100%);
  background-size: 220% 220%;
  animation: pageGradientShift 8s ease-in-out infinite, pageGradientPulse 6.5s ease-in-out infinite;
}

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

a {
  color: inherit;
  text-decoration: none;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.page-shell {
  width: min(1040px, calc(100% - 64px));
  margin: 0 auto;
  padding: 0 0 28px;
}

.site-header {
  position: sticky;
  top: 8px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

.wordmark,
h1,
h2 {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.wordmark {
  font-size: 0.96rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-header,
.teaser-section,
.hero,
.idea-grid,
.demo-grid {
  display: grid;
  gap: 14px;
}

.hero-header {
  grid-template-columns: 1fr;
  align-items: start;
}

.hero-copy,
 .teaser-card,
 .text-card,
 .pillars-card,
 .video-placeholder,
 .reasoning-panel,
 .wide-figure-card,
 .comparison-card,
 .citation-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 6px 16px rgba(14, 24, 38, 0.04);
}

.full-hero {
  min-width: 0;
}

.hero-copy,
.text-card,
.pillars-card,
.video-placeholder,
.reasoning-panel {
  padding: 16px;
}

.teaser-card,
.wide-figure-card,
.comparison-card {
  padding: 8px;
}

.hero-top {
  width: 100%;
}

.hero-brand-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.hero-brand-inline img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  perspective: 1200px;
}

.logo-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-bottom: 34px;
  position: relative;
  z-index: 3;
}

.rotating-logo {
  position: relative;
  width: 132px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 700ms ease;
}

.rotating-logo.is-flipped {
  transform: rotateY(180deg);
}

.logo-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.logo-face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(24, 28, 37, 0.16);
  box-shadow: 0 10px 24px rgba(14, 24, 38, 0.2);
}

.logo-face.back {
  transform: rotateY(180deg);
  backface-visibility: hidden;
}

.logo-face.front {
  backface-visibility: hidden;
}

.logo-hint {
  appearance: none;
  -webkit-appearance: none;
  margin-top: 18px;
  transform: translateY(10px);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(236, 91, 65, 0.45);
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, #ec5b41 0%, #d85c83 48%, #10908e 100%);
  background-size: 220% 220%;
  box-shadow: 0 5px 16px rgba(16, 46, 60, 0.28);
  animation: logoHintShift 3s ease-in-out infinite;
  text-align: center;
  position: relative;
  z-index: 6;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}

.logo-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 20, 30, 0.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 120;
}

.logo-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.logo-modal-frame {
  width: min(720px, calc(100vw - 48px));
  max-height: calc(100vh - 80px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 24px 60px rgba(4, 12, 20, 0.45);
  background: rgba(255, 255, 255, 0.95);
}

.logo-modal-frame img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 80px);
  object-fit: contain;
}

.hero-title-row h1 {
  margin: 0;
}

.mini-brand strong {
  display: block;
  font-size: 0.9rem;
}

.mini-label,
.section-label,
.qa-label {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-label {
  margin: 0 0 6px;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  line-height: 0.93;
  letter-spacing: -0.04em;
}

h2 {
  margin: 0 0 8px;
  font-size: clamp(1.1rem, 1.7vw, 1.55rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-lede,
.hero-copy p,
.text-card p,
.pillars-card p,
.section-heading p,
.reasoning-header p,
.qa-block p,
.demo-title {
  color: var(--muted);
  line-height: 1.5;
}

.hero-lede {
  margin: 10px 0 0;
  font-size: 0.88rem;
}

.hero-lede span {
  color: var(--red);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.button,
.nav-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.nav-arrow:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.secondary,
.nav-arrow {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.button.small {
  padding: 8px 12px;
}

#play-toggle.button.primary {
  border-color: rgba(236, 91, 65, 0.42);
  background: linear-gradient(120deg, #2b323a 0%, #243742 45%, #22363f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#play-toggle.button.primary.is-thinking {
  background: linear-gradient(120deg, #ec5b41 0%, #d85c83 48%, #10908e 100%);
  background-size: 220% 220%;
  border-color: rgba(236, 91, 65, 0.62);
  box-shadow: 0 0 0 1px rgba(216, 92, 131, 0.22), 0 0 20px rgba(216, 92, 131, 0.46), 0 0 30px rgba(16, 144, 142, 0.28);
  animation: thinkGlow 1.9s ease-in-out infinite;
}

.hero-paper-copy {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.hero-paper-copy p {
  max-width: 880px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.84rem;
}

.hero-paper-copy p + p {
  margin-top: 10px;
}

.pillar,
.qa-block > div {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
}

.pillar strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.88rem;
}

.pillar p,
.qa-block p {
  margin: 0;
  font-size: 0.84rem;
}

.figure-toolbar {
  display: flex;
  gap: 7px;
  padding: 2px 4px 10px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d2d7dd;
}

.teaser-stage {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #fafafa;
  padding: 12px;
}

.teaser-stage img,
.compact-figure img {
  width: 100%;
  height: auto;
}

.teaser-stage img {
  width: 88%;
  margin: 0 auto;
}

.dynamic-teaser {
  display: grid;
  gap: 14px;
}

.dynamic-row {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.8);
}

.dynamic-row-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.dynamic-row-head h3 {
  margin: 0;
  font-size: 0.8rem;
  color: #2a3340;
  letter-spacing: 0.01em;
}

.dynamic-row-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #87402f;
  background: rgba(236, 91, 65, 0.14);
}

.dynamic-row-kicker.grounded {
  color: #0f5f66;
  background: rgba(16, 144, 142, 0.14);
}

.frame-lane {
  position: relative;
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: visible;
  gap: 8px;
  padding: 3px 0 8px;
  scrollbar-width: thin;
}

.lane-frame {
  position: relative;
  flex: 0 0 128px;
  width: 128px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(24, 28, 37, 0.16);
  background: rgba(220, 226, 232, 0.55);
  aspect-ratio: 16 / 9;
  margin-left: 0;
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
  transform-origin: center bottom;
}

.lane-frame:first-child {
  margin-left: 0;
}

.lane-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lane-frame::after {
  content: attr(data-label);
  position: absolute;
  left: 6px;
  bottom: 6px;
  border-radius: 999px;
  padding: 2px 5px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(19, 22, 26, 0.62);
}

.lane-frame.keyframe {
  box-shadow: 0 0 0 1px rgba(236, 91, 65, 0.35), 0 6px 14px rgba(27, 35, 46, 0.15);
}

.lane-frame.keyframe::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(236, 91, 65, 0.7);
  border-radius: 10px;
  pointer-events: none;
}

.lane-frame.pseudoframe {
  border-style: dashed;
  border-color: rgba(122, 131, 143, 0.55);
  background: linear-gradient(130deg, rgba(189, 196, 206, 0.65), rgba(221, 226, 233, 0.9));
  opacity: 0.48;
  transform: scale(0.98);
  transition: opacity 300ms ease, transform 300ms ease;
}

.lane-frame.pseudoframe::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(141, 151, 163, 0.14) 0px,
    rgba(141, 151, 163, 0.14) 6px,
    rgba(220, 227, 234, 0.28) 6px,
    rgba(220, 227, 234, 0.28) 12px
  );
}

.lane-frame .unknown-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  font-weight: 800;
  color: rgba(77, 88, 102, 0.88);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.48);
}

.lane-frame.pseudoframe.active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 0 1px rgba(128, 138, 151, 0.38), 0 6px 12px rgba(26, 34, 46, 0.08);
}

.lane-frame:hover {
  z-index: 16;
  transform: scale(1.68) translateY(-2px);
  box-shadow: 0 10px 20px rgba(16, 22, 34, 0.3);
}

.bbox-overlay {
  position: absolute;
  border: 2px solid rgba(53, 188, 208, 0.95);
  border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(14, 42, 53, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  background: rgba(16, 144, 142, 0.08);
  opacity: 0.32;
  transition: opacity 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.sparse-lane .lane-frame.keyframe .bbox-overlay {
  opacity: 0.92;
  border-color: rgba(236, 91, 65, 0.96);
  box-shadow: 0 0 0 1px rgba(71, 35, 24, 0.4), 0 0 12px rgba(236, 91, 65, 0.4);
  background: rgba(236, 91, 65, 0.11);
}

.dense-lane .lane-frame {
  box-shadow: 0 0 0 1px rgba(16, 144, 142, 0.24);
}

.dense-lane .lane-frame.active {
  box-shadow: 0 0 0 2px rgba(16, 144, 142, 0.62), 0 8px 16px rgba(13, 88, 90, 0.2);
  transform: translateY(-1px);
}

.dense-lane .lane-frame.active .bbox-overlay {
  opacity: 1;
  border-color: rgba(53, 188, 208, 1);
  box-shadow: 0 0 0 1px rgba(22, 64, 76, 0.5), 0 0 14px rgba(53, 188, 208, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  animation: bboxPulse 0.82s ease-in-out infinite alternate;
}

.trajectory-overlay {
  position: absolute;
  left: 0;
  top: 42%;
  width: 100%;
  height: 32%;
  pointer-events: none;
}

.trajectory-overlay path {
  fill: none;
  stroke: rgba(16, 144, 142, 0.9);
  stroke-width: 0.42;
  stroke-linecap: round;
  stroke-linejoin: round;
  marker-end: url(#traj-arrow-head);
  stroke-dasharray: 1.5 0.95;
  animation: trajectoryDash 2.4s linear infinite;
}

.trajectory-overlay marker path {
  fill: rgba(16, 144, 142, 0.95);
}

.dynamic-qa {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(24, 28, 37, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  padding: 10px;
}

.qa-line {
  display: grid;
  gap: 4px;
}

.qa-tag {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.dynamic-qa p {
  margin: 0;
  font-size: 0.78rem;
  color: #394352;
  line-height: 1.45;
}

.teaser-explainer {
  padding: 14px 10px 8px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
}

.teaser-explainer-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-copy {
  max-width: 650px;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.8rem;
}

.stt-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.motion-legend {
  margin: 0 0 10px;
}

.legend-chip {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.72);
}

.legend-chip.active {
  color: var(--ink);
  border-color: rgba(16, 144, 142, 0.24);
  background: rgba(16, 144, 142, 0.1);
}

.trace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.trace-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.trace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.trace-title {
  font-size: 0.92rem;
  font-weight: 700;
}

.trace-badge {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(16, 144, 142, 0.1);
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.baseline-badge {
  background: rgba(89, 120, 216, 0.1);
  color: var(--blue);
}

.trace-output {
  min-height: 235px;
  padding: 0;
  font-size: 0.78rem;
  line-height: 1.66;
}

.static-trace {
  color: var(--muted);
}

.idea-grid {
  grid-template-columns: 1.05fr 0.95fr;
  margin-top: 12px;
}

.pillar-list {
  display: grid;
  gap: 10px;
}

.pillar-kicker {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 154, 152, 0.1);
  color: var(--cyan);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pillar.accent {
  background: linear-gradient(135deg, rgba(15, 154, 152, 0.08), rgba(230, 162, 61, 0.12));
}

.demo-section,
.figure-section,
.comparison-section,
.footer-row {
  margin-top: 12px;
}

.demo-heading,
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-heading p {
  margin: 0;
}

.top-shift {
  margin-bottom: 8px;
}

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

.demo-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.demo-jump {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.demo-jump.active {
  color: #fff;
  border-color: rgba(16, 144, 142, 0.5);
  background: linear-gradient(120deg, #10908e 0%, #5978d8 100%);
}

.demo-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 16px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.comparison-media {
  max-width: 100%;
}

.comparison-gif-card {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.comparison-gif {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 12px;
}

.demo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.demo-index {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.demo-title {
  font-size: 0.88rem;
  font-weight: 700;
}

.video-screen {
  position: relative;
  min-height: 260px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, #1e2832 0%, #27404c 58%, #31404b 100%);
  perspective: 1200px;
}

.video-flip {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 560ms ease;
}

.video-flip.show-grounded {
  transform: rotateY(180deg);
}

.video-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}

.grounded-face {
  transform: rotateY(180deg);
  background: linear-gradient(145deg, #1a2530 0%, #213847 58%, #243742 100%);
  overflow-y: auto;
  padding: 12px;
}

.demo-gif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grounded-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.grounded-card {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.grounded-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grounded-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
}

.frame-label {
  position: absolute;
  left: 16px;
  top: 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  z-index: 4;
}

.frame-strip {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 8px;
  z-index: 4;
}

.frame-chip {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.frame-chip.active {
  background: rgba(216, 92, 131, 0.35);
  border-color: rgba(255, 255, 255, 0.3);
}

.qa-block {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.demo-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--red);
}

.reasoning-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.reasoning-header p {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
}

.live-pill {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(15, 154, 152, 0.1);
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.reasoning-output {
  min-height: 380px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  font-size: 0.84rem;
  line-height: 1.66;
}

.reasoning-line,
.motion-focus {
  margin: 0 0 10px;
}

.motion-focus {
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(15, 154, 152, 0.07);
  border: 1px solid rgba(15, 154, 152, 0.18);
}

.motion-focus strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.typing-cursor::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--red);
  animation: blink 0.85s steps(1) infinite;
}

.token {
  display: inline-block;
  margin: 0 1px;
  padding: 1px 5px;
  border-radius: 8px;
  font-weight: 500;
}

.token.obj {
  background: rgba(216, 92, 131, 0.14);
  color: #a63d63;
}

.token.box {
  background: rgba(89, 120, 216, 0.14);
  color: #4460b4;
}

.token.time {
  background: rgba(230, 162, 61, 0.2);
  color: #9a6817;
}

.token.motion {
  background: rgba(15, 154, 152, 0.18);
  color: #0b7473;
}

.compact-figure {
  max-width: 500px;
  margin: 0 auto;
}

.figure-section .compact-figure {
  max-width: 760px;
}

.compact-bibtex {
  max-width: 440px;
  padding: 14px 16px;
}

.compact-bibtex pre {
  margin: 6px 0 0;
  font-size: 0.76rem;
  line-height: 1.5;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes pageGradientShift {
  0% {
    background-position: 0% 8%;
  }
  25% {
    background-position: 82% 12%;
  }
  50% {
    background-position: 100% 92%;
  }
  75% {
    background-position: 24% 100%;
  }
  100% {
    background-position: 0% 8%;
  }
}

@keyframes pageGradientPulse {
  0% {
    background-size: 210% 210%;
  }
  50% {
    background-size: 238% 238%;
  }
  100% {
    background-size: 210% 210%;
  }
}

@keyframes thinkGlow {
  0% {
    background-position: 0% 50%;
    transform: translateY(0);
    box-shadow: 0 0 0 1px rgba(216, 92, 131, 0.18), 0 0 14px rgba(216, 92, 131, 0.34), 0 0 20px rgba(16, 144, 142, 0.2);
  }
  50% {
    background-position: 100% 50%;
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(216, 92, 131, 0.28), 0 0 24px rgba(216, 92, 131, 0.56), 0 0 34px rgba(16, 144, 142, 0.34);
  }
  100% {
    background-position: 0% 50%;
    transform: translateY(0);
    box-shadow: 0 0 0 1px rgba(216, 92, 131, 0.18), 0 0 14px rgba(216, 92, 131, 0.34), 0 0 20px rgba(16, 144, 142, 0.2);
  }
}

@keyframes trajectoryDash {
  to {
    stroke-dashoffset: -2.45;
  }
}

@keyframes bboxPulse {
  from {
    transform: scale(0.99);
  }
  to {
    transform: scale(1.01);
  }
}

@keyframes logoHintShift {
  0% {
    background-position: 0% 50%;
    box-shadow: 0 5px 14px rgba(216, 92, 131, 0.3);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 0 6px 18px rgba(16, 144, 142, 0.38);
  }
  100% {
    background-position: 0% 50%;
    box-shadow: 0 5px 14px rgba(216, 92, 131, 0.3);
  }
}

@media (max-width: 980px) {
  .hero-header,
  .trace-grid,
  .hero,
  .idea-grid,
  .demo-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .demo-heading,
  .section-heading,
  .teaser-explainer-head {
    align-items: start;
    flex-direction: column;
  }

  .hero-title-row {
    gap: 10px;
  }

  .rotating-logo {
    width: 96px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 1040px);
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 16px, 1200px);
  }

  .site-header {
    flex-direction: column;
    gap: 10px;
    border-radius: 20px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .demo-controls {
    grid-template-columns: 1fr;
  }
}
