.tag.green { background: #75dfa728; color: #a6f1c9; }
.tag.violet { background: #c5aeff25; color: #dbcaff; }

@media (max-width: 650px) {
  .site-nav.menu-open {
    position: absolute;
    top: 61px;
    right: 0;
    display: flex;
    min-width: 180px;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border: 1px solid #dce5f2;
    border-radius: 12px;
    background: #fffffff2;
    box-shadow: 0 17px 30px #25416d1b;
  }

  .site-nav.menu-open a { padding: 10px; }
}

/* Landing-page rhythm and conversion polish */
body {
  background:
    radial-gradient(circle at 82% 4%, rgba(213, 225, 255, .82), transparent 25%),
    linear-gradient(180deg, #fffefb 0%, #fffdf8 46%, #f8fbff 100%);
}

.site-header {
  height: 76px;
}

.hero {
  min-height: 0;
  align-items: center;
  padding: 38px 0 54px;
}

.hero-copy {
  padding: 18px 0;
}

.hero h1 {
  max-width: 620px;
}

.hero-intro {
  margin: 21px 0;
}

.hero-proof {
  margin-top: 31px;
}

.hero-stage {
  min-height: 486px;
}

.hero-app {
  box-shadow: 0 23px 54px #425e9b24, 0 2px 0 #fff inset;
}

.stage-label {
  top: 5px;
}

.logo-strip {
  position: relative;
  padding: 19px 0;
}

.control-demo,
.how-it-works,
.modes,
.benefits,
.faq {
  position: relative;
  isolation: isolate;
  padding-top: 88px;
  padding-bottom: 88px;
}

.control-demo {
  gap: 68px;
}

.control-demo::before,
.how-it-works::before,
.benefits::before {
  position: absolute;
  z-index: -1;
  top: 26px;
  bottom: 26px;
  left: 50%;
  width: 100vw;
  border-top: 1px solid #e8eef8;
  border-bottom: 1px solid #e8eef8;
  content: '';
  transform: translateX(-50%);
}

.control-demo::before { background: linear-gradient(90deg, #f9fbff, #f3f7ff 50%, #fbfcff); }
.how-it-works::before { background: #fff; }
.benefits::before { background: linear-gradient(110deg, #f5f9ff, #fbfcff); }

.section-heading,
.how-heading,
.modes-copy,
.benefit-intro,
.faq-intro {
  align-self: start;
  padding-top: 7px;
}

.workflow-panel {
  border: 1px solid rgba(93, 132, 202, .26);
  box-shadow: 0 23px 52px #13275629;
}

.workflow-tabs button,
.mode-toggle button,
.app-inbox button,
.faq-list summary {
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.workflow-tabs button:hover:not(.selected) { color: #d6e4ff; }
.mode-toggle button:hover:not(.mode-active) { color: #4869a7; }
.app-inbox button:hover { transform: translateX(2px); }
.faq-list summary:hover { color: #4268b4; }

.how-it-works { gap: 66px; }
.modes { gap: 82px; }
.benefits { gap: 70px; }
.faq { gap: 70px; }

.steps article,
.benefit-grid article,
.mode-switcher {
  box-shadow: 0 10px 25px #2144750d;
}

.steps article:hover,
.benefit-grid article:hover {
  border-color: #c8d9f4;
  transform: translateY(-2px);
}

.steps article,
.benefit-grid article {
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.benefit-grid article {
  min-height: 154px;
  background: rgba(255, 255, 255, .74);
}

.faq-list {
  margin-top: 2px;
}

.final-cta {
  margin-top: 20px;
  padding-top: 70px;
  padding-bottom: 70px;
}

#publish-demo:disabled {
  cursor: wait;
  opacity: .82;
}

@media (max-width: 900px) {
  .hero { padding-top: 34px; }
  .hero-stage { min-height: 452px; }
  .control-demo,
  .how-it-works,
  .modes,
  .benefits,
  .faq { padding-top: 72px; padding-bottom: 72px; }
}

@media (max-width: 650px) {
  .site-header { height: 68px; }
  .hero { padding-top: 29px; padding-bottom: 39px; }
  .hero-copy { padding-top: 0; }
  .hero-stage { min-height: 390px; margin-top: 3px; }
  .control-demo,
  .how-it-works,
  .modes,
  .benefits,
  .faq { padding-top: 58px; padding-bottom: 58px; }
  .control-demo::before,
  .how-it-works::before,
  .benefits::before { top: 14px; bottom: 14px; }
  .workflow-panel { margin-inline: -1px; }
  .final-cta { margin-top: 8px; padding-top: 49px; padding-bottom: 49px; }
}
