
.sectionHead--center{
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
}

.demoTabs{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.demoTab{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.demoTab.is-active{
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
@media (hover: hover) and (pointer: fine){
  .demoTab:not(.is-active):hover{
    border-color: rgba(119,61,250,.45);
    transform: translateY(-1px);
  }
}
@media (min-width: 720px){
  .demoTabs{
    display: flex;
    justify-content: center;
  }
}
.section--demo .demoBlock{ margin-top: 18px; }
.demoPanel[hidden]{ display: none; }
.demoPanel .bdemo:not([data-ready]){ min-height: 520px; }
.demoBlock__cta .mini{ margin: 0; }

.mockup .chipBtn{
  position: relative;
  overflow: hidden;
}
.mockup.is-rotating .chipBtn.is-active::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--brand);
  transform-origin: left;
  animation: mockProgress 4.2s linear forwards;
}
@keyframes mockProgress{
  from{ transform: scaleX(0); }
  to{ transform: scaleX(1); }
}

.ba{
  display: grid;
  gap: 16px;
}
@media (min-width: 860px){
  .ba{ grid-template-columns: 1fr 1.25fr; align-items: stretch; }
}
.ba__side{
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.ba__side--after{
  border-color: rgba(119,61,250,.45);
  box-shadow: 0 0 0 1px rgba(119,61,250,.15), var(--shadow);
}
.ba__label{
  align-self: flex-start;
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(239,68,68,.12);
  color: #ef4444;
}
.ba__side--after .ba__label{
  background: var(--pillBg);
  color: var(--brand);
}
.ba__list{
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ba__list li{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: .92rem;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface2);
}
.ba__side--before .ba__list li::before{ content: "✕"; color: #ef4444; }
.ba__side--after .ba__list li::before{ content: "✓"; color: var(--success); }
.chaos{
  list-style: none;
  margin: 0;
  padding: 6px;
  border-radius: 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
}
.chaos__row{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
}
.chaos__row + .chaos__row{ border-top: 1px solid var(--border); }
.chaos__avatar{
  flex: 0 0 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(119,61,250,.35), rgba(119,61,250,.12));
}
.chaos__text{
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.chaos__text strong{ font-size: .95rem; }
.chaos__text span{
  color: var(--muted);
  font-size: .88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chaos__meta{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.chaos__meta small{ color: #ef4444; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.chaos__meta b{
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--success);
  color: #fff;
  font-size: .75rem;
  display: grid;
  place-items: center;
}
@media (prefers-reduced-motion: no-preference){
  .chaos__meta b{ animation: chaosPulse 1.8s ease-in-out infinite; }
  .chaos__row:nth-child(2) .chaos__meta b{ animation-delay: .4s; }
  .chaos__row:nth-child(3) .chaos__meta b{ animation-delay: .8s; }
  .chaos__row:nth-child(4) .chaos__meta b{ animation-delay: 1.2s; }
}
@keyframes chaosPulse{
  0%, 100%{ transform: scale(1); }
  50%{ transform: scale(1.18); }
}

.order__meta{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.order__meta i{
  font-style: normal;
  font-weight: 800;
  font-size: .72rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--pillBg);
  border: 1px solid var(--pillBorder);
  color: var(--brand);
}
.order__meta small{ color: var(--muted); font-size: .75rem; white-space: nowrap; }
.order .chaos__text span{ color: var(--success); font-weight: 700; }
.order .chaos__avatar{ background: linear-gradient(135deg, rgba(34,197,94,.35), rgba(34,197,94,.12)); }

.segGrid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 860px){
  .segGrid{ grid-template-columns: repeat(4, 1fr); }
}
.segCard{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .2s, transform .2s;
}
.segCard__icon{
  font-size: 1.6rem;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--pillBg);
}
.segCard strong{ font-size: 1.02rem; line-height: 1.25; }
.segCard__tags{ display: flex; flex-wrap: wrap; gap: 6px; }
.segCard__tags i{
  font-style: normal;
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--pillBorder);
  color: var(--brand);
}

.intGrid{
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 860px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.intChip{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 800;
}
.intChip span{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  font-size: .9rem;
}

.modGrid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 860px){
  .modGrid{ grid-template-columns: repeat(4, 1fr); }
}
.modSwitch{
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon toggle" "name name" "link link";
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .3s, transform .2s;
}
.modSwitch__icon{ grid-area: icon; font-size: 1.5rem; }
.modSwitch strong{ grid-area: name; font-size: 1.05rem; }
.modSwitch small{ grid-area: link; color: var(--brand); font-weight: 700; }
.modSwitch__toggle{
  grid-area: toggle;
  justify-self: end;
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: var(--border);
  transition: background .35s ease var(--d, 0ms);
}
.modSwitch__toggle::after{
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
  transition: transform .35s cubic-bezier(.2,.8,.2,1) var(--d, 0ms);
}
.modSwitch.is-visible .modSwitch__toggle,
.modSwitch:not(.reveal) .modSwitch__toggle{ background: var(--brand); }
.modSwitch.is-visible .modSwitch__toggle::after,
.modSwitch:not(.reveal) .modSwitch__toggle::after{ transform: translateX(20px); }
.modSwitch.is-visible{ border-color: rgba(119,61,250,.45); }
.modFoot{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.modNote{ text-align: center; margin: 14px 0 0; }

@media (hover: hover) and (pointer: fine){
  .segCard:hover, .modSwitch:hover{
    border-color: rgba(119,61,250,.55);
    transform: translateY(-2px);
  }
}
@media (max-width: 480px){
  .modFoot .btn{ width: 100%; }
}

.hero--stage{
  padding: 48px 0 8px;
  background:
    radial-gradient(900px 360px at 50% 0%, rgba(119,61,250,.12), transparent 65%),
    var(--bg);
}
.heroIntro{
  text-align: center;
  max-width: 820px;
}
.heroIntro h1{
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  margin: 0 0 14px;
}
.heroIntro .lead{
  max-width: 560px;
  margin: 0 auto 22px;
}
.heroIntro .hero__actions{ justify-content: center; }
.heroIntro .mini{ margin-top: 12px; }

.heroStage{ margin-top: 28px; }
.heroStage__caps{ display: none; }
.heroStage__frame{ min-width: 0; }
.hero--stage .mockup__top{ justify-content: flex-start; }
@media (max-width: 980px){
  .hero--stage .mockup__top{ gap: 6px; padding: 10px; justify-content: center; }
  .hero--stage .chipBtn{ padding: 8px 10px; font-size: .84rem; }
}

@media (min-width: 981px){
  .hero--stage .mockup__top{ justify-content: center; }
  .heroStage.is-live{
    height: calc(100vh + 180vh);
    margin-top: 20px;
  }
  .heroStage.is-live .heroStage__sticky{
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    padding-top: 12px;
  }
  .heroStage.is-live .heroStage__caps{ align-self: center; }
  .heroStage.is-live .heroStage__caps{
    display: grid;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .heroCap{
    cursor: pointer;
    padding: 14px 16px;
    border-left: 3px solid var(--border);
    opacity: .4;
    transition: opacity .3s, border-color .3s;
  }
  .heroCap strong{ display: block; font-size: 1.15rem; line-height: 1.25; }
  .heroCap span{ display: block; color: var(--muted); margin-top: 4px; }
  .heroCap.is-active{ opacity: 1; border-left-color: var(--brand); }
  .heroStage.is-live .heroStage__frame{ perspective: 1400px; }
  .heroStage.is-live .mockup{
    transform-origin: 50% 0;
    will-change: transform;
  }
  .heroStage.is-live .mockup.reveal{ animation: none; opacity: 1; }
  .heroStage.is-live .mockPreview{
    height: auto;
    max-height: calc(100vh - 260px);
    aspect-ratio: 5 / 3;
    object-fit: contain;
    background: #fff;
    border-style: solid;
  }
  .heroStage.is-live .mockup__hint{ display: none; }
}
