/* ---------- Shared section layout ---------- */

.section {
  position: relative;
  padding: 150px 0;
}

.section-head {
  display: grid;
  gap: 22px;
  max-width: 820px;
  margin-bottom: 72px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

/* ---------- 01 · Story (Teams → product) ---------- */

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 80px;
}

.story-steps {
  position: relative;
  padding-left: 40px;
}

.story-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.story-progress i {
  position: absolute;
  inset: 0 0 auto;
  height: var(--p, 0%);
  background: linear-gradient(var(--accent-2), var(--accent));
  box-shadow: 0 0 14px var(--accent);
}

.story-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 64vh;
  opacity: 0.22;
  transition: opacity 0.7s var(--ease-out);
}

.story-step.is-active {
  opacity: 1;
}

.story-step .num {
  font: 500 13px var(--mono);
  color: var(--accent);
}

.story-step h3 {
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.1;
}

.story-step p {
  max-width: 440px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}

.stage-sticky {
  position: sticky;
  top: calc(50vh - 250px);
  height: 500px;
}

.stage-frame {
  position: relative;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(255, 106, 61, 0.08), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(139, 156, 255, 0.06), transparent 60%),
    var(--bg-elev);
  overflow: hidden;
}

.stage-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
  opacity: 0.5;
}

.stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 40px;
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(0.98);
  filter: blur(10px);
  pointer-events: none;
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out),
    filter 0.8s var(--ease-out);
}

.stage.is-active {
  opacity: 1;
  transform: none;
  filter: none;
  pointer-events: auto;
}

.stage [data-seq] {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.stage.is-active [data-seq] {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--s, 0) * 110ms + 200ms);
}

.stage-kicker {
  font: 500 12px var(--mono);
  color: var(--dim);
  letter-spacing: 0.04em;
}

.big-msg {
  display: flex;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 6px 20px 20px 20px;
  background: #13161c;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.big-msg .avatar {
  width: 40px;
  height: 40px;
  font-size: 13px;
}

.big-msg p {
  font-size: 19px;
  line-height: 1.5;
}

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

.chips span {
  padding: 7px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 106, 61, 0.7);
}

.req {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #0e1015;
  overflow: hidden;
}

.req-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.tag-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(61, 220, 151, 0.1);
  font: 500 11.5px var(--mono);
  color: var(--ok);
}

.req dl {
  display: grid;
  margin: 0;
}

.req dl div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.req dl div:last-child {
  border-bottom: 0;
}

.req dt {
  color: var(--muted);
}

.req dd {
  margin: 0;
}

.ask-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

.ask-line .avatar {
  width: 24px;
  height: 24px;
}

.term {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #07080a;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font: 11.5px var(--mono);
  color: var(--dim);
}

.term-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #23262d;
}

.term-bar span {
  margin-left: 8px;
}

.term-body {
  display: grid;
  gap: 4px;
  padding: 18px;
  font: 13px/1.7 var(--mono);
  color: var(--text);
}

.term-body .pr {
  color: var(--accent);
}

.term-body .ok {
  color: var(--ok);
}

.term-body .dim {
  color: var(--muted);
}

.gate {
  display: flex;
  align-items: center;
  gap: 28px;
}

.gate-ring {
  position: relative;
  flex: none;
  width: 130px;
  height: 130px;
}

.gate-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gate-ring circle {
  fill: none;
  stroke-width: 8;
}

.gate-ring .track {
  stroke: #1a1d24;
}

.gate-ring .arc {
  stroke: url(#ring-grad);
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1.6s var(--ease-out) 0.3s;
}

.stage.is-active .gate-ring .arc {
  stroke-dashoffset: 26;
}

.gate-ring div {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.gate-ring b {
  font-size: 28px;
  letter-spacing: -0.03em;
}

.gate-ring span {
  font-size: 11.5px;
  color: var(--muted);
}

.gate-text {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.gate-text p {
  color: var(--muted);
}

.checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
  font-size: 14px;
}

.checks li::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(61, 220, 151, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%233DDC97' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.pipeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 0 6px;
}

.pipeline::before,
.pipeline::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: 11px;
  height: 2px;
  border-radius: 2px;
  background: #1c1f26;
}

.pipeline::after {
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 2s var(--ease-in-out) 0.3s;
}

.stage.is-active .pipeline::after {
  transform: none;
}

.pipe-node {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.pipe-node i {
  width: 24px;
  height: 24px;
  border: 2px solid #2a2e37;
  border-radius: 50%;
  background: var(--bg-elev);
  transition:
    border-color 0.4s,
    background 0.4s,
    box-shadow 0.4s;
  transition-delay: calc(var(--n) * 0.45s + 0.3s);
}

.stage.is-active .pipe-node i {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(255, 106, 61, 0.15), 0 0 20px rgba(255, 106, 61, 0.6);
}

.live {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(61, 220, 151, 0.25);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(61, 220, 151, 0.07), rgba(61, 220, 151, 0.01));
}

.live-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  color: rgba(61, 220, 151, 0.6);
  background: var(--ok);
  animation: ping 1.8s infinite;
}

.live-url {
  margin-top: 4px;
  font: 12.5px var(--mono);
  color: var(--muted);
}

.live-meta {
  font-size: 12.5px;
  color: var(--muted);
  text-align: right;
}

.own {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 02 · Knowledge graph ---------- */

.graph-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  min-height: 600px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(60% 60% at 30% 30%, rgba(139, 156, 255, 0.06), transparent 70%),
    #08090c;
  overflow: hidden;
}

.graph-stage {
  position: relative;
  min-height: 600px;
}

.graph-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ask {
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(14, 16, 21, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 14px;
}

.ask svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.ask-text::after {
  content: '';
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}

.graph-tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: grid;
  gap: 2px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #15181e;
  font-size: 12.5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 14px));
  transition: opacity 0.2s;
}

.graph-tip.is-visible {
  opacity: 1;
}

.graph-tip span {
  font-size: 11px;
  color: var(--muted);
}

.legend {
  position: absolute;
  left: 22px;
  bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 11.5px;
  color: var(--muted);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
}

.graph-hint {
  position: absolute;
  right: 22px;
  bottom: 18px;
  font-size: 11.5px;
  color: var(--dim);
}

.graph-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-left: 1px solid var(--line);
  background: rgba(10, 11, 15, 0.7);
}

.side-title {
  font: 500 11px var(--mono);
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.scenarios {
  display: grid;
  gap: 8px;
}

.scenario {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  font-size: 13.5px;
  text-align: left;
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.3s,
    border-color 0.3s,
    background 0.3s;
}

.scenario:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.scenario.is-active {
  color: var(--text);
  border-color: rgba(255, 106, 61, 0.45);
  background: rgba(255, 106, 61, 0.07);
}

.scenario .q {
  display: block;
  margin-bottom: 3px;
  font: 500 10.5px var(--mono);
  color: var(--dim);
  letter-spacing: 0.08em;
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.istat {
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
}

.istat b {
  display: block;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.istat b.bump {
  animation: bump 0.45s var(--ease-out);
}

.istat span {
  font-size: 11px;
  color: var(--muted);
}

@keyframes bump {
  40% {
    color: var(--accent);
    transform: scale(1.18);
  }
}

.impact-list {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 2px;
  min-height: 120px;
  max-height: 190px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 75%, transparent);
  mask-image: linear-gradient(#000 75%, transparent);
}

.impact-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  font-size: 13px;
  animation: msg-in 0.4s var(--ease-out) both;
}

.impact-list i {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
}

.impact-list em {
  margin-left: auto;
  font: 11px var(--mono);
  font-style: normal;
  color: var(--dim);
}

.risk {
  padding: 12px 14px;
  border: 1px solid rgba(255, 106, 61, 0.3);
  border-radius: 12px;
  background: rgba(255, 106, 61, 0.06);
  font-size: 13px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
}

.risk.is-in {
  opacity: 1;
  transform: none;
}

.risk b {
  color: var(--accent);
}

.risk span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
}

.points h3 {
  margin-bottom: 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.points p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 03 · Digital workforce ---------- */

.agents-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.agent {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-elev);
  overflow: hidden;
  transition: border-color 0.6s, transform 0.5s var(--ease-out);
}

.agent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c), transparent);
  opacity: 0;
  transition: opacity 0.6s;
}

.agent.is-pulse {
  border-color: color-mix(in srgb, var(--c) 45%, transparent);
}

.agent.is-pulse::after {
  opacity: 1;
}

.agent-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.agent-ic {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  color: var(--c);
}

.agent-ic svg {
  width: 22px;
  height: 22px;
}

.agent-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 500 10.5px var(--mono);
  color: var(--ok);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.agent-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  color: rgba(61, 220, 151, 0.6);
  background: var(--ok);
  animation: ping 2s infinite;
}

.agent h3 {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.agent p {
  flex: 1;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.agent-metric {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.agent-metric b {
  display: block;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.agent.is-pulse .agent-metric b {
  animation: bump 0.5s var(--ease-out);
}

.agent-metric span {
  font-size: 12.5px;
  color: var(--muted);
}

.stream {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #08090c;
  overflow: hidden;
}

.stream-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.stream-head > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.stream-list {
  height: 316px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  overflow: hidden;
  font: 13px var(--mono);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}

.stream-list li {
  display: grid;
  grid-template-columns: 78px 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  animation: line-in 0.7s var(--ease-out) both;
}

.stream-list li.no-anim {
  animation: none;
}

.stream-list li:first-child:not(.no-anim) {
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 8%, transparent), transparent 60%);
}

@keyframes line-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
    filter: blur(4px);
  }
}

.stream-time {
  color: var(--dim);
}

.stream-tag {
  color: var(--c);
}

.stream-msg {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text);
}

.stream-status {
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 11px;
  color: var(--muted);
}

.stream-status.merged {
  border-color: rgba(61, 220, 151, 0.3);
  color: var(--ok);
}

.stream-status.review {
  border-color: rgba(255, 181, 71, 0.3);
  color: var(--accent-2);
}

/* ---------- 04 · Modernization ---------- */

.compare {
  --pos: 50%;
  position: relative;
  height: 460px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #08090c;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.pane {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 26px 32px;
}

.pane-modern {
  align-items: flex-end;
  background:
    radial-gradient(70% 80% at 100% 50%, rgba(61, 220, 151, 0.06), transparent 70%),
    #07090d;
}

.pane-legacy {
  z-index: 2;
  background:
    radial-gradient(70% 80% at 0% 50%, rgba(255, 92, 122, 0.06), transparent 70%),
    #0c0a0a;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.pane-legacy::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 80px;
  background: linear-gradient(transparent, rgba(255, 92, 122, 0.08), transparent);
  animation: scan 5s var(--ease-in-out) infinite;
  pointer-events: none;
}

@keyframes scan {
  0%,
  100% {
    transform: translateY(-80px);
  }
  50% {
    transform: translateY(460px);
  }
}

.pane-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 500 12px var(--mono);
  color: var(--muted);
}

.pane-label .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot.bad {
  background: var(--danger);
  box-shadow: 0 0 10px var(--danger);
}

.dot.ok {
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}

.code {
  flex: 1;
  display: flex;
  align-items: center;
  margin: 0;
  font: 12.5px/1.8 var(--mono);
  color: #c9ccd3;
  white-space: pre;
}

.code .k {
  color: #ff8f6b;
}

.code .t {
  color: #8b9cff;
}

.code .s {
  color: #a6e3a1;
}

.code .f {
  color: #ffd27a;
}

.code mark {
  padding: 1px 2px;
  border-radius: 3px;
  color: inherit;
}

.code mark.bad {
  background: rgba(255, 92, 122, 0.14);
  text-decoration: underline wavy rgba(255, 92, 122, 0.8);
  text-underline-offset: 4px;
}

.code mark.ok {
  background: rgba(61, 220, 151, 0.1);
}

.flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flags li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
}

.flags .bad {
  background: rgba(255, 92, 122, 0.1);
  color: #ff8fa3;
}

.flags .ok {
  background: rgba(61, 220, 151, 0.1);
  color: var(--ok);
}

.handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 3;
  width: 0;
  outline: none;
}

.handle::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: linear-gradient(transparent, var(--accent) 20%, var(--accent-2) 50%, var(--accent) 80%, transparent);
  box-shadow: 0 0 18px var(--accent);
}

.handle-knob {
  position: absolute;
  top: 50%;
  left: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--text);
  color: #111;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 6px rgba(255, 106, 61, 0.18), 0 0 34px rgba(255, 106, 61, 0.55);
  transition: transform 0.3s var(--ease-out);
}

.handle-knob svg {
  width: 20px;
  height: 20px;
}

.compare.is-dragging .handle-knob,
.handle:focus-visible .handle-knob {
  transform: translate(-50%, -50%) scale(1.12);
}

.mod-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.mod-steps li {
  display: grid;
  gap: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}

.mod-steps span {
  font: 500 12px var(--mono);
  color: var(--accent);
}

.mod-steps h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.mod-steps p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 05 · Enterprise ---------- */

.ent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--line);
  overflow: hidden;
}

.ent {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 34px;
  background: var(--bg);
}

.ent svg {
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  color: var(--accent);
}

.ent h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.ent p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- CTA & footer ---------- */

.cta {
  position: relative;
  padding: 190px 0;
  text-align: center;
  overflow: hidden;
}

.cta-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 760px;
  height: 760px;
  margin: -380px 0 0 -380px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff6a3d, #ffb547, #8b9cff, #ff3d6e, #ff6a3d);
  filter: blur(130px);
  opacity: 0.2;
  animation: spin 22s linear infinite;
  pointer-events: none;
}

.cta-rings {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.6;
}

.cta-inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 30px;
}

.cta h2 {
  font-size: clamp(40px, 6vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.footer {
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--dim);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer nav {
  display: flex;
  gap: 24px;
}

.footer a {
  text-decoration: none;
  transition: color 0.3s;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .agents-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .graph-shell {
    grid-template-columns: 1fr;
  }

  .graph-side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .impact-list {
    max-height: 150px;
  }

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

  .teams-list {
    display: none;
  }

  .pane-modern {
    align-items: flex-start;
  }

  .code {
    font-size: 11px;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 140px;
  }

  .demo {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 44px 600px;
    height: auto;
  }

  .teams-rail {
    display: none;
  }

  .section {
    padding: 110px 0;
  }

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

  .story-stage {
    order: -1;
    position: sticky;
    top: 70px;
    z-index: 2;
  }

  .stage-sticky {
    position: relative;
    top: 0;
    height: 420px;
  }

  .stage {
    padding: 24px;
  }

  .story-step {
    min-height: 56vh;
  }

  .points,
  .mod-steps,
  .ent-grid {
    grid-template-columns: 1fr;
  }

  .stream-list li {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 4px 12px;
  }

  .stream-status,
  .stream-time {
    display: none;
  }

  .code {
    font-size: 9.5px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .agents-grid,
  .checks {
    grid-template-columns: 1fr;
  }

  .graph-hint {
    display: none;
  }

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

  .req dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

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