/* Ruviolta Stepflow Debugger website preview.
   This is a static HTML/CSS reproduction of the real debugger UI. */

.sf-demo-stage {
  padding: 22px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(67, 226, 188, .07), transparent 34%),
    radial-gradient(circle at 92% 5%, rgba(145, 103, 255, .12), transparent 38%),
    linear-gradient(155deg, rgba(7, 6, 16, .98), rgba(10, 9, 23, .98));
}

.sf-demo-window {
  position: relative;
  width: min(100%, 820px);
  margin: 0 auto;
  overflow: hidden;
  color: #f5f2ff;
  border: 1px solid rgba(255, 222, 139, .33);
  border-radius: 27px;
  background:
    radial-gradient(circle at 82% 0%, rgba(92, 39, 165, .26), transparent 38%),
    linear-gradient(180deg, #11172c 0%, #0b0a1d 32%, #080817 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
}

.sf-demo-window::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  height: 5px;
  background: linear-gradient(90deg, #f5c955 0%, #8be39e 29%, #5fd9f0 53%, #9867ff 78%, #efbc53 100%);
}

.sf-demo-full-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sf-demo-rmark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border-radius: 22px;
  color: #09091a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, #f0bf47 0%, #e8ad35 43%, #fff0a5 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 8px 22px rgba(235,184,67,.18);
}

.sf-demo-brand {
  min-width: 0;
  flex: 1;
}

.sf-demo-brand strong {
  display: block;
  color: #ffd866;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  letter-spacing: .11em;
  line-height: 1.05;
}

.sf-demo-brand span {
  display: block;
  margin-top: 8px;
  color: #a9a7bd;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .17em;
}

.sf-demo-head-actions,
.sf-demo-compact-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sf-demo-icon-button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  color: #f3efff;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
  font-size: 22px;
  font-weight: 700;
}

.sf-demo-full-body {
  padding: 26px 26px 24px;
}

.sf-demo-project-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #bbb6ce;
  font-size: 16px;
  font-weight: 800;
}

.sf-demo-project-line strong {
  color: #cbc7d8;
}

.sf-demo-step-pill {
  flex: 0 0 auto;
  padding: 8px 15px;
  border: 1px solid rgba(153, 96, 255, .58);
  border-radius: 999px;
  color: #ded2ff;
  background: rgba(117, 57, 204, .24);
  box-shadow: inset 0 0 16px rgba(143, 81, 255, .07);
  font-size: 14px;
  font-weight: 850;
}

.sf-demo-title {
  margin: 22px 0 18px;
  color: #fbfaff;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.15;
  font-weight: 850;
}

.sf-demo-called {
  padding: 16px 19px;
  border: 1px solid rgba(143, 83, 255, .53);
  border-left: 5px solid #9258ff;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(65,39,112,.62), rgba(50,28,87,.48));
}

.sf-demo-called strong {
  display: block;
  color: #ddd6f5;
  font-size: 16px;
  font-weight: 850;
}

.sf-demo-called span {
  display: block;
  margin-top: 5px;
  color: #8db6b4;
  font-size: 14px;
}

.sf-demo-codebox {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  margin-top: 17px;
  padding: 24px 14px 18px 22px;
  border: 1px solid rgba(65, 190, 176, .27);
  border-radius: 22px;
  background: #050716;
  overflow: hidden;
}

.sf-demo-codebox code {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding-top: 1px;
  color: #bdfff0;
  background: none;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(17px, 2.3vw, 22px);
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sf-demo-edit-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 49px;
  height: 49px;
  border: 1px solid rgba(232, 187, 67, .46);
  border-radius: 16px;
  color: #ffe064;
  background: rgba(171, 119, 21, .12);
  font-size: 21px;
}

.sf-demo-meta {
  display: flex;
  gap: 18px;
  padding: 16px 0 19px;
  color: #7f7a94;
  font-size: 14px;
  font-weight: 800;
}

.sf-demo-status {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 15px;
  align-items: start;
  padding: 17px 19px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 19px;
  background: rgba(255,255,255,.035);
}

.sf-demo-status-dot {
  width: 15px;
  height: 15px;
  margin-top: 4px;
  border-radius: 999px;
  background: #ffdb61;
  box-shadow: 0 0 14px rgba(255,219,97,.48);
}

.sf-demo-status strong {
  display: block;
  color: #f6f3fc;
  font-size: 17px;
}

.sf-demo-status span {
  display: block;
  margin-top: 6px;
  color: #8e899e;
  font-size: 14px;
  line-height: 1.45;
}

.sf-demo-full-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  min-height: 134px;
  padding: 22px 26px 26px;
  align-items: flex-end;
}

.sf-demo-action {
  min-width: 144px;
  padding: 15px 25px;
  border-radius: 18px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .01em;
}

.sf-demo-action.exit {
  color: #ff87af;
  border: 1px solid rgba(216,70,126,.55);
  background: rgba(126,30,72,.17);
}

.sf-demo-action.next {
  color: #101020;
  border: 1px solid rgba(255,231,143,.80);
  background: linear-gradient(135deg, #ffe48f 0%, #d9a83f 74%, #fff0a5 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

/* Compact debugger */
.sf-demo-window.compact {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 15px;
  width: min(100%, 800px);
  padding: 20px 17px;
  border-radius: 27px;
}

.sf-demo-window.compact::before {
  height: 3px;
}

.sf-demo-window.compact .sf-demo-rmark {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  font-size: 30px;
}

.sf-demo-compact-copy {
  min-width: 0;
}

.sf-demo-compact-title {
  overflow: hidden;
  color: #ffd660;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sf-demo-compact-step {
  color: #ffd660;
}

.sf-demo-compact-code {
  overflow: hidden;
  margin-top: 5px;
  color: #9c99aa;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sf-demo-compact-actions {
  gap: 10px;
}

.sf-demo-compact-action {
  display: grid;
  place-items: center;
  min-width: 78px;
  height: 58px;
  padding: 0 16px;
  border-radius: 17px;
  font-size: 17px;
  font-weight: 900;
}

.sf-demo-compact-action.exit {
  color: #ff85aa;
  border: 1px solid rgba(216,70,126,.55);
  background: rgba(126,30,72,.17);
}

.sf-demo-compact-action.next {
  color: #101020;
  border: 1px solid rgba(255,231,143,.80);
  background: linear-gradient(135deg, #ffe48f 0%, #d9a83f 74%, #fff0a5 100%);
}

.sf-demo-compact-action.icon {
  min-width: 58px;
  width: 58px;
  padding: 0;
  color: #f0ebff;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.055);
  font-size: 20px;
}

@media (max-width: 760px) {
  .sf-demo-stage { padding: 10px; }
  .sf-demo-full-header { gap: 12px; padding: 21px 16px 17px; }
  .sf-demo-rmark { width: 50px; height: 50px; border-radius: 17px; font-size: 26px; }
  .sf-demo-brand strong { font-size: 20px; }
  .sf-demo-brand span { margin-top: 5px; font-size: 11px; }
  .sf-demo-head-actions { gap: 7px; }
  .sf-demo-icon-button { width: 42px; height: 42px; border-radius: 14px; }
  .sf-demo-full-body { padding: 20px 16px 16px; }
  .sf-demo-project-line { align-items: flex-start; flex-direction: column; gap: 10px; }
  .sf-demo-title { margin-top: 18px; }
  .sf-demo-called { padding: 14px 15px; }
  .sf-demo-codebox { min-height: 98px; padding: 20px 12px 15px 15px; }
  .sf-demo-codebox code { white-space: normal; overflow-wrap: anywhere; }
  .sf-demo-full-footer { min-height: 104px; padding: 16px; }
  .sf-demo-action { min-width: 112px; padding: 13px 17px; font-size: 16px; }

  .sf-demo-window.compact {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 17px 14px;
  }
  .sf-demo-window.compact .sf-demo-rmark { width: 52px; height: 52px; }
  .sf-demo-compact-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .sf-demo-compact-action { min-width: 68px; height: 48px; font-size: 15px; }
  .sf-demo-compact-action.icon { min-width: 48px; width: 48px; }
}
