:root {
  --bg: #f5f8fc;
  --surface-app: #f6f8fb;
  --panel: #ffffff;
  --border: #d8e1ee;
  --heading: #061524;
  --text-main: #071426;
  --sidebar: #04162b;
  --active: #0b3e70;
  --tile-orbit: #071523;
  --tile-orbit-2: #0b263c;
  --tile-orbit-3: #04111f;
  --flow-blue: #2a96ff;
  --flow-cyan: #48c7c0;
  --flow-green: #8fda58;
  --muted: rgba(7, 20, 38, 0.66);
  --muted-on-dark: rgba(245, 248, 252, 0.7);
  --shadow: 0 24px 80px rgba(4, 22, 43, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-main);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--flow-cyan);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-200vh);
  background: var(--panel);
  color: var(--heading);
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 72px;
  background: rgba(4, 22, 43, 0.9);
  border-bottom: 1px solid rgba(216, 225, 238, 0.14);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
}

.brand img {
  width: 160px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: rgba(245, 248, 252, 0.72);
  font-size: 14px;
  font-weight: 800;
}

.main-nav a,
.mobile-nav a {
  transition: color 180ms ease;
}

.main-nav a:hover,
.mobile-nav a:hover {
  color: var(--flow-cyan);
}

.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(216, 225, 238, 0.22);
  border-radius: 10px;
  background: transparent;
  color: var(--panel);
  cursor: pointer;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 4px auto;
}

.mobile-nav {
  display: none;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(320px, 0.62fr) minmax(0, 1.38fr);
  gap: 48px;
  align-items: center;
  padding: 132px 72px 72px;
  background: linear-gradient(135deg, var(--tile-orbit-3), var(--sidebar) 58%, var(--tile-orbit-2));
  color: var(--panel);
}

.hero-copy {
  grid-column: 1;
  min-width: 0;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--flow-cyan);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  font-family: Manrope, Inter, sans-serif;
  line-height: 1.04;
}

.hero h1 {
  color: var(--panel);
  font-size: 68px;
}

.hero-lead {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--muted-on-dark);
  font-size: 21px;
  line-height: 1.65;
}

.hero-actions {
  width: min(100%, 430px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 14px 22px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--flow-blue);
  color: var(--panel);
}

.button.primary:hover {
  background: var(--active);
}

.button.secondary {
  color: var(--panel);
  border-color: rgba(245, 248, 252, 0.34);
}

.button.secondary:hover {
  border-color: var(--flow-cyan);
  color: var(--flow-cyan);
}

.channel-list {
  width: 100%;
  max-width: 430px;
  margin: 18px 0 0;
}

.channel-marquee {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 225, 238, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.channel-symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.channel-track {
  width: max-content;
  display: flex;
  gap: 0;
  padding: 10px 0;
  animation: channel-marquee 18s linear infinite;
}

.channel-marquee:hover .channel-track {
  animation-play-state: paused;
}

.channel-set {
  display: flex;
  gap: 12px;
  padding-left: 12px;
}

.channel-item {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(216, 225, 238, 0.16);
  border-radius: 999px;
  padding: 10px 18px 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 248, 252, 0.9);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.channel-item svg {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  border: 1px solid rgba(216, 225, 238, 0.14);
  border-radius: 12px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.055);
}

.channel-item.whatsapp svg {
  color: var(--flow-green);
}

.channel-item.email svg {
  color: var(--flow-blue);
}

.channel-item.webchat svg {
  color: var(--flow-cyan);
}

.channel-item.bot svg {
  color: var(--panel);
}

@keyframes channel-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.hero-media {
  grid-column: 2;
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(216, 225, 238, 0.34);
  border-radius: 16px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.hero-media video {
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 15px;
  background: var(--tile-orbit);
}

.section {
  padding: 112px 72px;
}

.story-module {
  display: grid;
  gap: 42px;
  background: linear-gradient(180deg, var(--surface-app) 0%, #f1f6fb 100%);
  border-bottom: 1px solid rgba(216, 225, 238, 0.8);
}

.story-module .section-heading {
  margin-bottom: 0;
}

.section-heading {
  max-width: 900px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading h2,
.flow-copy h2,
.human-copy h2 {
  font-size: 58px;
}

.section-heading p:not(.eyebrow),
.flow-copy p,
.human-copy > p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.intro-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  grid-auto-rows: 520px;
  gap: 36px;
}

.intro-card,
.module-card {
  min-height: 220px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 16px 50px rgba(4, 22, 43, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.intro-card {
  position: relative;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.module-card {
  padding: 28px;
  overflow: hidden;
}

.intro-card:hover,
.intro-card.is-open {
  border-color: rgba(42, 150, 255, 0.28);
  box-shadow: 0 20px 70px rgba(4, 22, 43, 0.1);
}

.intro-card:nth-child(1)::after,
.intro-card:nth-child(2)::after {
  content: "";
  position: absolute;
  top: 68px;
  right: -31px;
  z-index: 3;
  width: 44px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(42, 150, 255, 0.24), rgba(72, 199, 192, 0.86));
  opacity: 0.58;
  pointer-events: none;
  transition: opacity 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.intro-card:nth-child(1)::before,
.intro-card:nth-child(2)::before {
  content: "";
  position: absolute;
  top: 63px;
  right: -32px;
  z-index: 4;
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(72, 199, 192, 0.78);
  border-right: 2px solid rgba(72, 199, 192, 0.78);
  transform: rotate(45deg);
  pointer-events: none;
  transition: border-color 180ms ease, filter 180ms ease;
}

.intro-card.is-open:nth-child(1)::after,
.intro-card.is-open:nth-child(2)::after {
  background: linear-gradient(90deg, var(--flow-blue), var(--flow-cyan));
  box-shadow: 0 0 18px rgba(72, 199, 192, 0.24);
  opacity: 1;
}

.intro-card.is-open:nth-child(1)::before,
.intro-card.is-open:nth-child(2)::before {
  border-color: var(--flow-cyan);
  filter: drop-shadow(0 0 8px rgba(72, 199, 192, 0.34));
}

.intro-card-toggle {
  position: relative;
  width: 100%;
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 14px;
  border: 0;
  background: transparent;
  color: var(--text-main);
  padding: 28px;
  text-align: left;
  cursor: pointer;
}

.intro-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.intro-card-kicker {
  color: var(--flow-blue);
  font-size: 14px;
  font-weight: 900;
}

.intro-card-action {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-app);
  color: var(--active);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.intro-action-open {
  display: none;
}

.intro-card.is-open .intro-action-more {
  display: none;
}

.intro-card.is-open .intro-action-open {
  display: inline;
}

.intro-card.is-open .intro-card-action {
  border-color: rgba(72, 199, 192, 0.32);
  background: rgba(72, 199, 192, 0.12);
  color: var(--active);
}

.intro-card-toggle strong,
.module-card h3 {
  color: var(--heading);
  font-family: Manrope, Inter, sans-serif;
  font-size: 24px;
  line-height: 1.1;
}

.intro-card-toggle small,
.module-card p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.intro-card-toggle small {
  margin: 0;
}

.intro-simulation {
  margin-top: auto;
  padding: 0 20px 22px;
  transition: opacity 180ms ease, filter 180ms ease, transform 180ms ease;
}

.intro-card:not(.is-open) .intro-simulation {
  opacity: 0.38;
  filter: saturate(0.55);
  transform: translateY(4px);
  pointer-events: none;
}

.sim-window {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-app);
  padding: 16px;
}

.sim-topbar,
.sim-route,
.sim-client-head,
.sim-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sim-topbar span,
.sim-route span {
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--panel);
  color: var(--active);
  font-size: 12px;
  font-weight: 900;
}

.sim-message {
  margin: 14px 0;
  border-radius: 12px;
  background: var(--panel);
  padding: 14px;
}

.sim-message strong,
.sim-client-head span,
.sim-action-row span {
  color: var(--heading);
  font-weight: 900;
}

.sim-message p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.sim-route {
  flex-wrap: wrap;
}

.sim-client-head {
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.sim-client-head strong {
  color: var(--active);
  font-size: 12px;
}

.sim-facts {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.sim-facts div,
.sim-action-row {
  border-radius: 10px;
  background: var(--panel);
  padding: 12px;
}

.sim-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sim-facts dd {
  margin: 4px 0 0;
  color: var(--heading);
  font-weight: 900;
}

.action-sim {
  display: grid;
  gap: 10px;
}

.sim-action-row strong {
  color: var(--muted);
  font-size: 12px;
}

.sim-action-row.active {
  background: rgba(42, 150, 255, 0.1);
  outline: 1px solid rgba(42, 150, 255, 0.22);
}

.sim-action-row.active strong {
  color: var(--active);
}

.intro-bridge {
  max-width: 780px;
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 0 auto;
  text-align: center;
}

.intro-bridge::before {
  content: "";
  width: 2px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(42, 150, 255, 0.18), var(--flow-cyan));
}

.intro-bridge span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.bridge-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(42, 150, 255, 0.22);
  border-radius: 999px;
  background: var(--panel);
  color: var(--active);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 16px 44px rgba(4, 22, 43, 0.08);
}

.bridge-link::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.flow-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 40px;
  align-items: start;
  background: transparent;
}

.narrative-guide {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid rgba(216, 225, 238, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.5);
}

.flow-copy {
  position: sticky;
  top: 116px;
}

.narrative-copy {
  display: grid;
  gap: 22px;
}

.story-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.story-control {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--heading);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.story-control:hover {
  transform: translateY(-2px);
  border-color: rgba(42, 150, 255, 0.32);
}

.story-control.primary {
  background: var(--active);
  color: var(--panel);
  border-color: var(--active);
}

.story-stage {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.story-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
  background: var(--surface-app);
}

.story-step {
  min-height: 84px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 0;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.story-step:last-child {
  border-right: 0;
}

.story-step span {
  color: var(--flow-blue);
  font-size: 12px;
  font-weight: 900;
}

.story-step strong {
  color: inherit;
  font-size: 15px;
}

.story-step.is-active {
  background: var(--panel);
  color: var(--heading);
  box-shadow: inset 0 -3px 0 var(--flow-cyan);
}

.story-scenes {
  min-height: 460px;
}

.story-scene {
  min-height: 460px;
  display: none;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  align-items: stretch;
  padding: 28px;
}

.story-scene.is-active {
  display: grid;
}

.story-scene-copy {
  display: grid;
  align-content: center;
  gap: 16px;
}

.story-scene-copy > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(42, 150, 255, 0.1);
  color: var(--flow-blue);
  font-weight: 900;
}

.story-scene-copy h3 {
  font-size: 34px;
}

.story-scene-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.story-link {
  width: max-content;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--active);
  color: var(--panel);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 900;
}

.story-ui {
  min-width: 0;
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-app), #ffffff);
  padding: 22px;
}

.story-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.story-toolbar span,
.story-client-head span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--active);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
}

.story-message {
  border-radius: 14px;
  background: var(--panel);
  padding: 18px;
  box-shadow: 0 12px 30px rgba(4, 22, 43, 0.06);
}

.story-message strong,
.story-client-head strong,
.story-assignment strong,
.story-task strong,
.timeline-event strong {
  color: var(--heading);
}

.story-message p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.story-status-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--active);
  font-size: 13px;
  font-weight: 900;
}

.story-status-line span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--flow-green);
  box-shadow: 0 0 0 6px rgba(143, 218, 88, 0.18);
}

.story-client-head,
.story-assignment,
.story-task,
.timeline-event {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.story-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.story-facts div,
.story-assignment,
.story-task,
.timeline-event {
  border-radius: 12px;
  background: var(--panel);
  padding: 14px;
}

.story-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.story-facts dd {
  margin: 4px 0 0;
  color: var(--heading);
  font-weight: 900;
}

.story-assignment span,
.story-task span,
.timeline-event span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.story-assignment.active,
.story-task.active,
.timeline-event.active {
  outline: 1px solid rgba(42, 150, 255, 0.24);
  background: rgba(42, 150, 255, 0.09);
}

.timeline-story {
  position: relative;
}

.timeline-event {
  position: relative;
}

.modules-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(246, 248, 251, 0.82)),
    var(--bg);
}

.evidence-heading {
  margin-bottom: 40px;
}

.live-demo-shell {
  max-width: 1360px;
  min-height: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  border: 1px solid rgba(216, 225, 238, 0.92);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 30px 100px rgba(4, 22, 43, 0.18);
  overflow: hidden;
}

.demo-sidebar {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(42, 150, 255, 0.24), transparent 30%),
    linear-gradient(180deg, var(--sidebar), var(--tile-orbit-3));
  color: var(--muted-on-dark);
}

.demo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(72, 199, 192, 0.32);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--flow-blue), var(--flow-cyan));
  color: var(--panel);
  font-weight: 950;
}

.demo-brand strong {
  display: block;
  color: var(--panel);
  font-size: 22px;
}

.demo-brand small,
.demo-sidebar-card small {
  display: block;
  margin-top: 2px;
  color: rgba(245, 248, 252, 0.6);
  font-size: 12px;
}

.demo-nav {
  display: grid;
  gap: 8px;
}

.demo-tab {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: rgba(245, 248, 252, 0.72);
  padding: 0 12px;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.demo-tab span {
  width: 28px;
  color: rgba(72, 199, 192, 0.78);
  font-size: 12px;
}

.demo-tab:hover,
.demo-tab.is-active {
  border-color: rgba(72, 199, 192, 0.24);
  background: rgba(11, 62, 112, 0.76);
  color: var(--panel);
}

.demo-tab.is-active {
  box-shadow: inset 3px 0 0 var(--flow-cyan);
}

.demo-sidebar-card {
  margin-top: auto;
  border: 1px solid rgba(216, 225, 238, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  padding: 18px;
}

.demo-sidebar-card span {
  color: rgba(143, 218, 88, 0.9);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.demo-sidebar-card strong {
  display: block;
  margin-top: 8px;
  color: var(--panel);
  font-size: 20px;
}

.demo-workspace {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface-app);
}

.demo-topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  padding: 18px 22px;
}

.demo-search {
  min-height: 44px;
  min-width: 260px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  padding: 0 14px;
}

.demo-search span {
  width: 11px;
  height: 11px;
  border: 2px solid var(--active);
  border-radius: 50%;
  box-shadow: 6px 6px 0 -4px var(--active);
}

.demo-search p {
  margin: 0;
  color: rgba(7, 20, 38, 0.52);
  font-size: 14px;
  font-weight: 700;
}

.demo-topbar-actions,
.demo-filter-row,
.demo-chat-actions,
.demo-doc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.demo-chip,
.demo-live-pill,
.demo-filter-row span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.demo-chip.active,
.demo-live-pill,
.demo-filter-row span.active {
  border-color: rgba(72, 199, 192, 0.32);
  background: rgba(72, 199, 192, 0.12);
  color: var(--active);
}

.demo-screens {
  min-width: 0;
  padding: 22px;
}

.demo-screen {
  display: none;
}

.demo-screen.is-active {
  display: block;
  animation: demo-screen-in 220ms ease both;
}

.demo-screen[hidden] {
  display: none !important;
}

@keyframes demo-screen-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.demo-screen-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.demo-kicker {
  color: var(--flow-blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.demo-screen-head h3 {
  margin: 8px 0 6px;
  color: var(--heading);
  font-family: Manrope, Inter, sans-serif;
  font-size: 34px;
  line-height: 1.05;
}

.demo-screen-head p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.demo-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.demo-metric,
.demo-chart-card,
.demo-status-card,
.demo-conversations,
.demo-chat-panel,
.demo-context-panel,
.demo-client-list,
.demo-client-profile,
.demo-activity-summary article,
.demo-task-card,
.demo-doc-table,
.demo-doc-detail,
.demo-history-stats article,
.demo-history-timeline {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 14px 40px rgba(4, 22, 43, 0.06);
}

.demo-metric {
  padding: 18px;
}

.demo-metric span,
.demo-status-card span,
.demo-document-preview span,
.demo-client-summary span,
.demo-doc-detail span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.demo-metric strong {
  display: block;
  margin-top: 10px;
  color: var(--heading);
  font-size: 34px;
  line-height: 1;
}

.demo-metric small,
.demo-status-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.demo-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 16px;
}

.demo-chart-card,
.demo-status-card {
  padding: 20px;
}

.demo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.demo-card-head strong {
  color: var(--heading);
}

.demo-card-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.demo-bars {
  height: 220px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 14px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(216, 225, 238, 0.32) 1px, transparent 1px) 0 0 / 100% 25%,
    var(--surface-app);
  padding: 20px;
}

.demo-bars span {
  height: var(--bar);
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, var(--flow-blue), var(--flow-cyan));
}

.demo-chart-labels {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.demo-alert-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
}

.demo-alert-row span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(42, 150, 255, 0.12);
  color: var(--active);
  font-weight: 950;
}

.demo-alert-row p {
  margin: 0;
  color: var(--text-main);
  font-weight: 760;
}

.demo-alert-row.danger span {
  background: rgba(241, 188, 104, 0.2);
  color: #77510f;
}

.demo-alert-row.green span {
  background: rgba(143, 218, 88, 0.22);
  color: #315f0c;
}

.demo-messages-layout {
  display: grid;
  grid-template-columns: 284px minmax(360px, 1fr) 294px;
  gap: 16px;
  align-items: stretch;
}

.demo-conversations,
.demo-context-panel {
  padding: 16px;
}

.demo-conversations {
  display: grid;
  align-content: start;
  gap: 10px;
}

.demo-filter-row {
  margin-bottom: 6px;
}

.demo-conversation {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.demo-conversation.is-selected {
  border-color: rgba(42, 150, 255, 0.35);
  background: rgba(42, 150, 255, 0.08);
}

.demo-channel {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--heading);
  font-size: 11px;
  font-weight: 950;
}

.demo-channel.wa {
  background: rgba(143, 218, 88, 0.28);
}

.demo-channel.em {
  background: rgba(42, 150, 255, 0.17);
}

.demo-channel.wc {
  background: rgba(72, 199, 192, 0.22);
}

.demo-conversation strong,
.demo-client-row strong {
  display: block;
  color: var(--heading);
  font-size: 14px;
}

.demo-conversation p {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-conversation small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.demo-chat-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.demo-chat-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding: 18px;
}

.demo-chat-head strong {
  display: block;
  color: var(--heading);
  font-size: 18px;
}

.demo-chat-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.demo-secondary-action,
.demo-take-case {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--active);
  padding: 0 13px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.demo-take-case {
  border-color: transparent;
  background: linear-gradient(135deg, var(--flow-blue), var(--flow-cyan));
  color: var(--panel);
  box-shadow: 0 12px 24px rgba(42, 150, 255, 0.2);
}

.demo-take-case.is-taken {
  background: linear-gradient(135deg, var(--active), var(--tile-orbit-2));
}

.demo-chat-thread {
  display: grid;
  align-content: start;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(246, 248, 251, 0.95), rgba(255, 255, 255, 0.8)),
    var(--surface-app);
  padding: 18px;
}

.demo-message {
  max-width: 78%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  padding: 12px 14px;
}

.demo-message span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.demo-message p {
  margin: 5px 0 0;
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.55;
}

.demo-message.outbound {
  justify-self: end;
  border-color: rgba(42, 150, 255, 0.22);
  background: rgba(42, 150, 255, 0.1);
}

.demo-message.system {
  max-width: 86%;
  justify-self: center;
  border-style: dashed;
  background: rgba(72, 199, 192, 0.11);
}

.demo-reply-box {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--border);
  background: var(--panel);
  padding: 16px 18px;
}

.demo-reply-box p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.demo-reply-box span {
  white-space: nowrap;
  color: var(--active);
  font-size: 12px;
  font-weight: 900;
}

.demo-context-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.demo-client-summary,
.demo-document-preview,
.demo-mini-timeline {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-app);
  padding: 16px;
}

.demo-client-summary strong,
.demo-document-preview strong,
.demo-status-card strong,
.demo-doc-detail strong {
  display: block;
  margin-top: 8px;
  color: var(--heading);
  font-size: 20px;
}

.demo-client-summary p,
.demo-document-preview p,
.demo-doc-detail p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.demo-mini-timeline {
  display: grid;
  gap: 9px;
}

.demo-mini-timeline span {
  color: var(--text-main);
  font-size: 12px;
  font-weight: 800;
}

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

.demo-client-list {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
}

.demo-client-row {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  padding: 16px;
}

.demo-client-row.is-selected {
  border-color: rgba(72, 199, 192, 0.34);
  background: rgba(72, 199, 192, 0.1);
}

.demo-client-row span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.demo-client-profile {
  padding: 22px;
}

.demo-profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.demo-profile-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.demo-profile-head h3 {
  margin: 6px 0 0;
  color: var(--heading);
  font-size: 34px;
}

.demo-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.demo-profile-grid div,
.demo-profile-note {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-app);
  padding: 16px;
}

.demo-profile-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.demo-profile-grid dd {
  margin: 8px 0 0;
  color: var(--heading);
  font-weight: 900;
}

.demo-profile-note {
  margin-top: 12px;
}

.demo-profile-note strong {
  color: var(--heading);
}

.demo-profile-note p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.demo-activity-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.demo-activity-summary article {
  padding: 18px;
}

.demo-activity-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.demo-activity-summary strong {
  display: block;
  margin-top: 8px;
  color: var(--heading);
  font-size: 32px;
}

.demo-activity-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.demo-task-card {
  min-height: 210px;
  padding: 22px;
}

.demo-task-card.active {
  border-color: rgba(42, 150, 255, 0.3);
  background:
    linear-gradient(145deg, rgba(42, 150, 255, 0.11), rgba(72, 199, 192, 0.1)),
    var(--panel);
}

.demo-task-card span {
  color: var(--flow-blue);
  font-size: 12px;
  font-weight: 950;
}

.demo-task-card h4 {
  margin: 16px 0 8px;
  color: var(--heading);
  font-size: 22px;
}

.demo-task-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.demo-doc-table {
  overflow: hidden;
}

.demo-doc-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.82fr 0.74fr;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding: 17px 18px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 760;
}

.demo-doc-row:first-child {
  border-top: 0;
}

.demo-doc-head {
  background: var(--surface-app);
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.demo-doc-row.is-selected {
  background: rgba(42, 150, 255, 0.08);
}

.demo-doc-detail {
  padding: 20px;
}

.demo-doc-actions {
  margin-top: 18px;
}

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

.demo-history-stats {
  display: grid;
  gap: 12px;
}

.demo-history-stats article {
  padding: 18px;
}

.demo-history-stats strong {
  display: block;
  color: var(--heading);
  font-size: 32px;
}

.demo-history-stats span {
  color: var(--muted);
  font-weight: 850;
}

.demo-history-timeline {
  padding: 20px;
}

.demo-history-timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  border-left: 2px solid var(--border);
  padding: 0 0 26px 20px;
}

.demo-history-timeline article:last-child {
  padding-bottom: 0;
}

.demo-history-timeline article::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--flow-blue);
}

.demo-history-timeline article.active::before {
  background: var(--flow-green);
  box-shadow: 0 0 0 6px rgba(143, 218, 88, 0.16);
}

.demo-history-timeline span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.demo-history-timeline strong {
  color: var(--heading);
}

.demo-history-timeline p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.human-section {
  --human-progress: 1;
  --human-banner-offset: 0px;
  --human-banner-radius: 0px;
  --human-banner-y: 0px;
  --human-image-scale: 1.08;
  --human-image-x: 0%;
  --human-image-saturation: 0.92;
  --human-image-brightness: 0.72;
  --human-overlay-opacity: 0.92;
  --human-glass-opacity: 1;
  --human-copy-opacity: 1;
  --human-copy-y: 0px;
  --human-form-opacity: 1;
  --human-form-y: 0px;
  --human-form-scale: 1;
  --human-form-shadow-y: 18px;
  --human-form-shadow-blur: 52px;
  --human-form-shadow-alpha: 0.18;
  padding: 112px 72px;
  background: var(--surface-app);
}

.human-section[data-human-scroll] {
  min-height: 190vh;
  padding: 0;
}

.human-banner {
  position: relative;
  max-width: 1360px;
  min-height: 720px;
  margin: 0 auto;
  display: grid;
  align-items: stretch;
  border: 1px solid rgba(216, 225, 238, 0.8);
  border-radius: 24px;
  background: var(--tile-orbit);
  box-shadow: 0 30px 100px rgba(4, 22, 43, 0.16);
  overflow: hidden;
  isolation: isolate;
}

.human-section[data-human-scroll] .human-banner {
  position: sticky;
  top: 76px;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 76px);
  border-radius: 0;
}

.human-section.is-scroll-ready .human-banner {
  width: calc(100% - var(--human-banner-offset, 0px));
  max-width: calc(100% - var(--human-banner-offset, 0px));
  border-radius: var(--human-banner-radius, 0px);
  transform: translateY(var(--human-banner-y, 0px));
  will-change: width, border-radius, transform;
  transition: box-shadow 180ms ease;
}

.human-banner img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.human-section.is-scroll-ready .human-banner img {
  transform: scale(var(--human-image-scale, 1.08)) translateX(var(--human-image-x, 0%));
  filter: saturate(var(--human-image-saturation, 0.92)) brightness(var(--human-image-brightness, 0.72));
  will-change: transform, filter;
}

.human-banner::before,
.human-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.human-banner::before {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4, 22, 43, 0.72) 0%, rgba(4, 22, 43, 0.56) 32%, rgba(4, 22, 43, 0.16) 62%, rgba(4, 22, 43, 0.02) 100%),
    linear-gradient(0deg, rgba(4, 22, 43, 0.38), transparent 55%);
}

.human-section.is-scroll-ready .human-banner::before {
  opacity: var(--human-overlay-opacity, 0.92);
}

.human-banner::after {
  z-index: -1;
  width: 52%;
  background: linear-gradient(90deg, rgba(245, 248, 252, 0.2), rgba(245, 248, 252, 0.06), transparent);
  backdrop-filter: blur(7px);
  mask-image: linear-gradient(90deg, #000 0%, #000 68%, transparent 100%);
}

.human-section.is-scroll-ready .human-banner::after {
  opacity: var(--human-glass-opacity, 1);
}

.human-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 42px;
  align-items: end;
  padding: 66px;
}

.human-copy {
  max-width: 720px;
  color: var(--panel);
}

.human-section.is-scroll-ready .human-copy {
  opacity: var(--human-copy-opacity, 1);
  transform: translateY(var(--human-copy-y, 0px));
  will-change: opacity, transform;
}

.human-copy h2 {
  max-width: 680px;
  color: var(--panel);
}

.human-copy > p {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(245, 248, 252, 0.82);
}

.human-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.human-points span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(245, 248, 252, 0.28);
  border-radius: 999px;
  background: rgba(245, 248, 252, 0.12);
  color: rgba(245, 248, 252, 0.9);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 900;
}

.demo-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(4, 22, 43, 0.08);
}

.human-form {
  align-self: center;
  border-color: rgba(245, 248, 252, 0.34);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(4, 22, 43, 0.28);
  backdrop-filter: blur(18px);
  scroll-margin-top: 96px;
}

.human-section.is-scroll-ready .human-form {
  opacity: var(--human-form-opacity, 0.28);
  transform: translateY(var(--human-form-y, 92px)) scale(var(--human-form-scale, 0.94));
  box-shadow: 0 var(--human-form-shadow-y, 18px) var(--human-form-shadow-blur, 52px) rgba(4, 22, 43, var(--human-form-shadow-alpha, 0.18));
  will-change: opacity, transform, box-shadow;
}

.form-intro {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.form-intro span {
  color: var(--flow-blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.form-intro h3 {
  margin: 0;
  color: var(--heading);
  font-family: Manrope, Inter, sans-serif;
  font-size: 30px;
  line-height: 1.05;
}

.form-intro p,
.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.form-note {
  border: 1px solid rgba(72, 199, 192, 0.25);
  border-radius: 12px;
  background: rgba(72, 199, 192, 0.09);
  padding: 12px;
  font-weight: 800;
}

.demo-form label {
  display: grid;
  gap: 8px;
  font-weight: 900;
  color: var(--heading);
}

.demo-form input,
.demo-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-app);
  color: var(--text-main);
  padding: 14px 16px;
}

.demo-form input::placeholder,
.demo-form textarea::placeholder {
  color: rgba(7, 20, 38, 0.46);
  font-size: 14px;
  font-weight: 760;
}

.demo-form textarea {
  resize: vertical;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 38px 20px;
  background: var(--tile-orbit-3);
  color: var(--muted-on-dark);
  text-align: center;
}

.site-footer img {
  width: 170px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1180px) {
  .site-header,
  .hero,
  .section,
  .human-section {
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero,
  .flow-section {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-media,
  .channel-list {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-media {
    max-width: 920px;
  }

  .flow-copy {
    position: static;
  }

  .live-demo-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .demo-sidebar {
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .demo-brand {
    min-width: 190px;
  }

  .demo-nav {
    display: flex;
    flex: 1;
    overflow-x: auto;
  }

  .demo-tab {
    min-width: 142px;
  }

  .demo-sidebar-card {
    min-width: 210px;
    margin-top: 0;
  }

  .demo-metric-grid,
  .demo-activity-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-dashboard-grid,
  .demo-client-layout,
  .demo-doc-layout,
  .demo-history-layout {
    grid-template-columns: 1fr;
  }

  .demo-messages-layout {
    grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1fr);
  }

  .demo-context-panel {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .human-section[data-human-scroll] {
    min-height: auto;
    padding: 72px 18px;
  }

  .human-section[data-human-scroll] .human-banner {
    position: relative;
    top: auto;
    width: 100%;
    max-width: 1360px;
    min-height: 820px;
    border-radius: 24px;
    transform: none;
  }

  .human-section.is-scroll-ready .human-banner,
  .human-section.is-scroll-ready .human-copy,
  .human-section.is-scroll-ready .human-form {
    opacity: 1;
    transform: none;
  }

  .human-section.is-scroll-ready .human-banner img {
    transform: none;
    filter: saturate(0.98) brightness(0.76);
  }

  .hero h1 {
    font-size: 54px;
  }

  .section-heading h2,
  .flow-copy h2,
  .human-copy h2 {
    font-size: 42px;
  }

  .human-banner {
    min-height: 820px;
  }

  .human-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 52px;
  }

  .intro-grid,
  .demo-activity-lanes,
  .demo-messages-layout {
    grid-template-columns: 1fr;
  }

  .demo-screen-head h3,
  .demo-profile-head h3 {
    font-size: 30px;
  }

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

  .intro-grid {
    gap: 34px;
  }

  .story-controls {
    margin-bottom: 4px;
  }

  .story-steps {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .story-step {
    min-width: 150px;
    scroll-snap-align: start;
  }

  .story-scene {
    grid-template-columns: 1fr;
  }

  .story-scene-copy {
    align-content: start;
  }

  .intro-card:nth-child(1)::after,
  .intro-card:nth-child(2)::after {
    top: auto;
    right: auto;
    bottom: -31px;
    left: 50%;
    width: 2px;
    height: 28px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(42, 150, 255, 0.24), rgba(72, 199, 192, 0.86));
  }

  .intro-card:nth-child(1)::before,
  .intro-card:nth-child(2)::before {
    top: auto;
    right: auto;
    bottom: -32px;
    left: calc(50% - 5px);
    transform: rotate(135deg);
  }

  .demo-chat-head,
  .demo-reply-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 72px;
    padding: 0 18px;
  }

  .brand img {
    width: 138px;
  }

  .main-nav {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 72px;
    display: none;
    padding: 18px;
    background: var(--sidebar);
    border-bottom: 1px solid rgba(216, 225, 238, 0.12);
  }

  .mobile-nav.open {
    display: grid;
    gap: 4px;
  }

  .mobile-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    color: var(--panel);
    font-weight: 900;
  }

  .hero {
    min-height: auto;
    padding: 112px 18px 56px;
    gap: 34px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .channel-list {
    max-width: 100%;
  }

  .channel-item {
    min-height: 52px;
  }

  .section,
  .human-section {
    padding: 72px 18px;
  }

  .section-heading {
    margin-bottom: 30px;
    text-align: left;
  }

  .section-heading h2,
  .flow-copy h2,
  .human-copy h2 {
    font-size: 34px;
  }

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

  .story-stage {
    border-radius: 14px;
  }

  .narrative-guide {
    padding: 16px;
    border-radius: 18px;
  }

  .story-scenes {
    min-height: 0;
  }

  .story-scene {
    min-height: 0;
    gap: 20px;
    padding: 18px;
  }

  .story-scene-copy h3 {
    font-size: 28px;
  }

  .story-ui {
    padding: 16px;
  }

  .story-client-head,
  .story-assignment,
  .story-task,
  .timeline-event {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-demo-shell {
    border-radius: 16px;
  }

  .demo-sidebar {
    gap: 14px;
    padding: 16px;
  }

  .demo-brand {
    min-width: 160px;
  }

  .demo-brand strong {
    font-size: 19px;
  }

  .demo-tab {
    min-width: 126px;
    min-height: 44px;
  }

  .demo-sidebar-card {
    display: none;
  }

  .demo-topbar,
  .demo-screen-head,
  .demo-profile-head {
    align-items: stretch;
    flex-direction: column;
  }

  .demo-topbar {
    padding: 14px;
  }

  .demo-search {
    min-width: 0;
    width: 100%;
  }

  .demo-search p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .demo-screens {
    padding: 14px;
  }

  .demo-screen-head h3,
  .demo-profile-head h3 {
    font-size: 26px;
  }

  .demo-metric-grid,
  .demo-activity-summary,
  .demo-profile-grid,
  .demo-dashboard-grid,
  .demo-client-layout,
  .demo-doc-layout,
  .demo-history-layout,
  .demo-doc-row {
    grid-template-columns: 1fr;
  }

  .demo-messages-layout,
  .demo-context-panel,
  .demo-activity-lanes {
    grid-template-columns: 1fr;
  }

  .demo-conversations,
  .demo-chat-panel,
  .demo-context-panel,
  .demo-client-list,
  .demo-client-profile,
  .demo-doc-detail,
  .demo-history-timeline {
    border-radius: 14px;
  }

  .demo-chat-actions,
  .demo-doc-actions {
    width: 100%;
  }

  .demo-secondary-action,
  .demo-take-case {
    min-height: 44px;
  }

  .demo-message {
    max-width: 100%;
  }

  .demo-history-timeline article {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .human-banner {
    min-height: 640px;
    align-items: end;
    border-radius: 18px;
  }

  .human-section[data-human-scroll] .human-banner {
    min-height: 640px;
    border-radius: 18px;
  }

  .human-banner img {
    object-position: 62% center;
  }

  .human-banner::before {
    background:
      linear-gradient(0deg, rgba(4, 22, 43, 0.82) 0%, rgba(4, 22, 43, 0.68) 45%, rgba(4, 22, 43, 0.16) 100%),
      linear-gradient(90deg, rgba(4, 22, 43, 0.52), rgba(4, 22, 43, 0.08));
  }

  .human-banner::after {
    inset: auto 0 0;
    width: 100%;
    height: 78%;
    background: linear-gradient(0deg, rgba(245, 248, 252, 0.14), rgba(245, 248, 252, 0.04), transparent);
    mask-image: linear-gradient(0deg, #000 0%, #000 74%, transparent 100%);
  }

  .human-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px;
  }

  .form-intro h3 {
    font-size: 26px;
  }

  .human-points {
    display: grid;
  }

  .human-points span,
  .human-form .button {
    width: 100%;
    justify-content: center;
  }
}

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

  .channel-track {
    animation: none;
    transform: none;
  }
}
