*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0a0c10;
  color: #e8eaef;
  line-height: 1.6;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.site-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  border-bottom: 1px solid #1e2230;
  background: #0a0c10;
  z-index: 10;
}

.page-body {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.page-scroll {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

@media (min-width: 901px) {
  .page-scroll {
    overflow-y: auto;
  }
}

main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  margin: 0;
}

.logo {
  font-size: 18px;
  font-weight: 600;
  color: #e8eaef;
  text-decoration: none;
}

.logo:hover {
  color: #5b8def;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-header nav a {
  color: #8b92a8;
  text-decoration: none;
  font-size: 14px;
}

.site-header nav a:hover {
  color: #e8eaef;
}

.nav-btn {
  padding: 8px 16px;
  border-radius: 8px;
}

.nav-btn-primary {
  background: #5b8def;
  color: #fff !important;
}

.nav-btn-primary:hover {
  background: #4a7de0;
  color: #fff !important;
}

.hero {
  flex-shrink: 0;
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(40px, 10vh, 88px) 28px clamp(14px, 2.5vh, 24px);
  text-align: center;
  width: 100%;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5b8def;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(28px, 4.2vh, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 18px;
}

.hero-tagline {
  font-size: clamp(15px, 2.2vh, 19px);
  font-weight: 500;
  color: #a8b4d4;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin: 0 0 12px;
}

.hero-reflow-note {
  font-size: clamp(13px, 1.8vh, 16px);
  font-weight: 400;
  color: #7d8ab0;
  line-height: 1.45;
  margin: 0 0 16px;
  max-width: 52ch;
}

.hero-subhead {
  font-size: clamp(17px, 2.8vw, 21px);
  font-weight: 600;
  color: #c8cdd8;
  line-height: 1.35;
  margin-bottom: 20px;
}

.lead {
  font-size: 18px;
  color: #8b92a8;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-pricing-note {
  margin-top: 8px;
  font-size: 12px;
  color: #6b7288;
  line-height: 1.4;
}

.works-with {
  margin: 0;
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.hero-bridge {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(4px, 1vh, 8px) 28px;
  gap: clamp(6px, 1vh, 10px);
}

.hero-bridge-eyebrow {
  margin-bottom: 0;
  width: 100%;
  text-align: center;
}

.works-with-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.works-with-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7288;
  flex-shrink: 0;
}

.works-with-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.works-with-list li {
  font-size: 11px;
  font-weight: 500;
  color: #a8b0c0;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #2e3344;
  background: #12151c;
}

.works-with-list-targets li {
  color: #b8c4e8;
  border-color: rgba(91, 141, 239, 0.28);
  background: rgba(91, 141, 239, 0.08);
}

#why-panelspec {
  scroll-margin-top: 12px;
}

.landing-why {
  flex-shrink: 0;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 24px 12px;
  border-top: 1px solid #1e2230;
  background: linear-gradient(180deg, rgba(12, 15, 21, 0.6) 0%, transparent 100%);
}

.workflow .landing-why {
  margin-top: clamp(7px, 1.25vh, 15px);
  padding-bottom: 20px;
}

.landing-why-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5b8def;
  margin: 0 0 10px;
  text-align: center;
}

.landing-why-intro {
  max-width: 720px;
  margin: 0 auto clamp(14px, 2.5vh, 24px);
  font-size: 15px;
  color: #9aa3b2;
  line-height: 1.6;
  text-align: center;
}

.landing-why-intro strong {
  color: #e8eaef;
  font-weight: 600;
}

.landing-why-intro em {
  color: #b8c4e8;
  font-style: normal;
}

.landing-compare-table-wrap {
  max-width: 920px;
  margin: clamp(16px, 3vh, 32px) auto 16px;
  overflow-x: auto;
  border: 1px solid #1e2230;
  border-radius: 12px;
  background: #0a0c10;
}

.landing-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.45;
}

.landing-compare-table th,
.landing-compare-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #1a1e28;
}

.landing-compare-table thead th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b92a8;
  background: #12151c;
}

.landing-compare-table thead th:last-child {
  color: #b8c4e8;
}

.landing-compare-table tbody th[scope="row"] {
  font-weight: 500;
  color: #c8ceda;
  width: 34%;
}

.landing-compare-table tbody td:first-of-type {
  color: #8b92a8;
  width: 28%;
}

.landing-compare-table tbody td:last-child {
  color: #dce4f8;
  font-weight: 500;
  width: 38%;
}

.landing-compare-table tbody tr:last-child th,
.landing-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.landing-why-more {
  text-align: center;
  margin: 0 0 18px;
}

.landing-why-more a {
  font-size: 13px;
  font-weight: 600;
  color: #5b8def;
  text-decoration: none;
}

.landing-why-more a:hover {
  text-decoration: underline;
}

.landing-why-difference {
  max-width: 720px;
  margin: clamp(20px, 3.5vh, 40px) auto 0;
  text-align: center;
}

.landing-why-difference p {
  font-size: 14px;
  color: #8b92a8;
  line-height: 1.55;
  margin: 0 0 8px;
}

.landing-why-difference p:last-child {
  margin-bottom: 0;
}

.landing-why-difference strong {
  color: #e8eaef;
  font-weight: 600;
}

#how-it-works {
  scroll-margin-top: 56px;
}

/* —— Workflow demo (picture 1) —— */
.workflow {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: clamp(4px, 0.75vh, 9px);
  padding: clamp(6px, 1.25vh, 15px) 20px 12px;
  position: relative;
}

.layout-scope {
  flex-shrink: 0;
  width: min(300px, 34vw);
  padding: 24px 20px;
  border-right: 1px solid #1e2230;
  background: #0a0c10;
  overflow-y: auto;
  text-align: left;
}

.layout-scope-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5b8def;
  margin: 0 0 12px;
}

.layout-scope-goal {
  font-size: 14px;
  font-weight: 400;
  color: #9aa3b2;
  line-height: 1.55;
  margin: 0 0 20px;
}

.layout-scope h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: #e8eaef;
  line-height: 1.25;
}

.layout-scope-intro {
  font-size: 13px;
  color: #8b92a8;
  line-height: 1.5;
  margin: 0 0 20px;
}

.layout-scope-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.layout-scope-card {
  padding: 16px 18px;
  background: #12151c;
  border: 1px solid #1e2230;
  border-radius: 12px;
}

.layout-scope-card h3 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5b8def;
  margin-bottom: 10px;
}

.layout-scope-card-ai h3 {
  color: #8b92a8;
}

.layout-scope-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.layout-scope-card li {
  font-size: 13px;
  color: #a8b0c0;
  line-height: 1.4;
  padding: 5px 0 5px 16px;
  position: relative;
}

.layout-scope-card li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: #5b8def;
}

.layout-scope-card-ai li::before {
  color: #6b7288;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary {
  background: #5b8def;
  color: #fff;
}

.btn-primary:hover {
  background: #4a7de0;
}

.btn-secondary {
  background: #1a1d27;
  color: #e8eaef;
  border: 1px solid #2e3344;
}

.btn-secondary:hover {
  border-color: #5b8def;
  color: #5b8def;
}

.btn-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  color: #8b92a8;
  border-color: #2e3344;
}

.hero-dev-note {
  width: 100%;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7289;
}

/* —— Workflow demo (controls) —— */
.workflow-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5b8def;
  margin-bottom: 6px;
  text-align: center;
}

.workflow-steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 14px;
}

.wf-demo-hud {
  flex-shrink: 0;
  max-width: 840px;
  margin: 0 auto 12px;
  text-align: center;
  width: 100%;
}

.wf-phase-caption {
  font-size: clamp(14px, 1.9vh, 16px);
  font-weight: 500;
  color: #c8cdd8;
  line-height: 1.4;
  margin: 0 0 10px;
  min-height: 1.4em;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.wf-phase-caption.wf-caption-fade {
  opacity: 0;
  transform: translateY(4px);
}

.wf-demo-progress {
  height: 3px;
  border-radius: 999px;
  background: #1e2230;
  overflow: hidden;
  margin-bottom: 10px;
}

.wf-demo-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5b8def, #7aa8ff);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.wf-device-track {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.wf-device-chip {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7289;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #2e3344;
  background: #12141c;
  transition: color 0.35s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.wf-device-chip.wf-device-active {
  color: #e8ecf4;
  border-color: #5b8def;
  background: rgba(91, 141, 239, 0.12);
  box-shadow: 0 0 0 1px rgba(91, 141, 239, 0.25);
}

.wf-device-chip.wf-device-done {
  color: #9ec5ff;
  border-color: #3d5a8a;
}

.wf-trained-banner {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  margin: 0;
  text-align: center;
  font-size: clamp(12px, 1.6vh, 15px);
  font-weight: 600;
  color: #9ec5ff;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
  z-index: 2;
}

.wf-trained-banner:not([hidden]) {
  pointer-events: auto;
}

.wf-trained-banner.wf-trained-visible {
  opacity: 1;
  transform: translateY(0);
}

.wf-trained-banner a {
  color: #7aa8ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(122, 168, 255, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.wf-trained-banner a:hover {
  color: #b8d4ff;
  border-bottom-color: rgba(184, 212, 255, 0.55);
}

.workflow-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8b92a8;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.35s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.workflow-step.wf-step-active {
  color: #e8ecf4;
  border-color: #5b8def;
  background: rgba(91, 141, 239, 0.1);
  box-shadow: 0 0 0 1px rgba(91, 141, 239, 0.2);
}

.workflow-step.wf-step-active .workflow-num {
  background: #5b8def;
  border-color: #5b8def;
  color: #fff;
}

.workflow-step.wf-step-done {
  color: #9ec5ff;
}

.workflow-step.wf-step-done .workflow-num {
  border-color: #3d5a8a;
  color: #9ec5ff;
}

.workflow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1a1d27;
  border: 1px solid #2e3344;
  font-size: 11px;
  font-weight: 600;
  color: #c8cdd8;
  flex-shrink: 0;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.workflow-demo-viewport {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  width: 100%;
  padding-bottom: clamp(4px, 0.75vh, 9px);
}

.workflow-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 16px 14px;
  transform-origin: center center;
  will-change: transform;
  width: 100%;
  max-width: 1100px;
}

.wf-design {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.wf-prompt,
.wf-chat {
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.wf-arrow {
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.wf-stage {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.wf-palette {
  width: 96px;
  flex-shrink: 0;
  padding: 10px 8px;
  background: #12141c;
  border: 1px solid #1e2230;
  border-radius: 10px;
}

.wf-palette-title {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7289;
  margin-bottom: 8px;
  padding: 0 4px;
}

.wf-palette-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px;
  margin-bottom: 4px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 500;
  color: #c8cdd8;
}

.wf-palette-idle {
  opacity: 0.35;
  animation: none;
}

.wf-palette-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 3px;
  background: #1a1d27;
  border: 1px solid #2e3344;
  position: relative;
}

.wf-palette-icon.chart::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 2px;
  right: 2px;
  height: 7px;
  background: linear-gradient(to right, #007aff 33%, #5ac8fa 33% 66%, #007aff 66%);
  border-radius: 1px;
}

.wf-palette-icon.button::after {
  content: "";
  position: absolute;
  inset: 4px 2px;
  background: #5b8def;
  border-radius: 2px;
}

.wf-palette-icon.label::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 2px;
  right: 2px;
  height: 2px;
  background: #8b92a8;
  box-shadow: 0 4px 0 #8b92a8;
  border-radius: 1px;
}

.wf-palette-icon.image::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: linear-gradient(135deg, #5ac8fa, #007aff);
  border-radius: 2px;
}

/* —— Device shells (phone / macbook / web / laptop) —— */
.wf-device-shell {
  flex-shrink: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.wf-frame {
  display: none;
}

.wf-device-phone .wf-frame-phone { display: block; }
.wf-device-macbook .wf-frame-macbook { display: block; }
.wf-device-web .wf-frame-web { display: block; }
.wf-device-laptop .wf-frame-laptop { display: block; }

.wf-device-screen {
  position: relative;
  background: #fff;
  overflow: hidden;
}

.wf-screen-body {
  position: absolute;
  inset: 0;
}

.wf-status {
  position: relative;
  z-index: 1;
  padding: 14px 16px 0;
  font-size: 10px;
  font-weight: 600;
  color: #000;
}

/* Phone */
.wf-device-phone .wf-phone-bezel {
  position: relative;
  width: 168px;
  padding: 10px;
  background: linear-gradient(160deg, #3a3a3e 0%, #1c1c1e 50%, #0f0f10 100%);
  border-radius: 32px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 16px 40px rgba(0, 0, 0, 0.45);
}

.wf-island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 16px;
  background: #000;
  border-radius: 12px;
  z-index: 2;
}

.wf-device-phone .wf-device-screen {
  height: 300px;
  border-radius: 24px;
}

/* MacBook */
.wf-mac-lid {
  width: 220px;
  padding: 8px 8px 0;
  background: linear-gradient(180deg, #3a3a3e, #1c1c1e);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.wf-mac-menu {
  display: flex;
  gap: 4px;
  padding: 4px 6px 6px;
}

.wf-mac-menu span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6b7289;
}

.wf-device-macbook .wf-device-screen {
  height: 128px;
  border-radius: 4px 4px 0 0;
}

.wf-mac-base {
  width: 240px;
  height: 10px;
  margin: 0 auto;
  margin-left: -10px;
  background: linear-gradient(180deg, #2a2a2e, #141416);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* Web browser */
.wf-browser {
  width: 236px;
  background: #dee1e6;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 16px 36px rgba(0, 0, 0, 0.35);
}

.wf-browser-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  background: #e8eaed;
  border-bottom: 1px solid #c4c7cc;
}

.wf-traffic {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.wf-traffic.r { background: #ff5f57; }
.wf-traffic.y { background: #febc2e; }
.wf-traffic.g { background: #28c840; }

.wf-url {
  flex: 1;
  margin-left: 4px;
  padding: 3px 8px;
  background: #fff;
  border-radius: 4px;
  font-size: 8px;
  color: #666;
}

.wf-device-web .wf-device-screen {
  height: 132px;
}

/* Windows laptop */
.wf-win-lid {
  width: 210px;
  padding: 7px 7px 0;
  background: linear-gradient(180deg, #4a4a50, #2a2a2e);
  border-radius: 8px 8px 0 0;
}

.wf-device-laptop .wf-device-screen {
  height: 124px;
  border-radius: 3px 3px 0 0;
}

.wf-win-base {
  width: 228px;
  height: 9px;
  margin-left: -9px;
  background: linear-gradient(180deg, #3a3a40, #1a1a1e);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.wf-palette-item.wf-palette-hidden {
  display: none;
}

.wf-palette-icon.tab::after {
  content: "";
  position: absolute;
  inset: 3px 2px;
  border-bottom: 2px solid #5b8def;
}

.wf-palette-icon.map::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: linear-gradient(160deg, #a8d8a8 40%, #5ac8fa 100%);
  border-radius: 2px;
}

/* Placed components — base */
.wf-comp {
  position: absolute;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.35s ease, transform 0.35s ease;
  box-sizing: border-box;
}

.wf-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 48px;
  margin-bottom: 4px;
}

.wf-chart-bars.sm {
  height: 32px;
  gap: 4px;
  margin-bottom: 2px;
}

.wf-chart-bars span {
  flex: 1;
  background: #007aff;
  border-radius: 2px 2px 0 0;
  min-height: 4px;
}

.wf-chart-label {
  font-size: 9px;
  color: #666;
  font-weight: 500;
}

/* —— iPhone —— */
.wf-device-phone .wf-comp-chart {
  left: 50%;
  top: 52px;
  width: 108px;
  margin-left: -54px;
  padding: 8px;
  background: #fafafa;
  border: 1px solid #c7c7cc;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: scale(0.92);
}

.wf-device-phone .wf-comp-button {
  left: 50%;
  top: 168px;
  padding: 8px 24px;
  background: #007aff;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
  transform: translateX(-50%) scale(0.92);
}

/* —— MacBook: chart top, button bottom —— */
.wf-device-macbook .wf-comp-chart {
  left: 50%;
  top: 8px;
  width: 88px;
  margin-left: -44px;
  padding: 6px;
  background: #fafafa;
  border: 1px solid #c7c7cc;
  border-radius: 6px;
  transform: scale(0.92);
}

.wf-device-macbook .wf-comp-button {
  left: 50%;
  bottom: 8px;
  top: auto;
  padding: 5px 18px;
  background: #007aff;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  transform: translateX(-50%) scale(0.92);
}

/* —— Web: image top, button row bottom —— */
.wf-comp-image,
.wf-ghost-image {
  left: 10px;
  right: 10px;
  top: 6px;
  height: 48px;
  background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 50%, #60a5fa 100%);
  border: 1px solid #c7c7cc;
  border-radius: 6px;
}

.wf-ghost-image {
  position: absolute;
  width: 156px;
  left: auto;
  right: auto;
}

.wf-comp-btns,
.wf-ghost-btns {
  left: 8px;
  right: 8px;
  bottom: 8px;
  top: auto;
  display: flex;
  gap: 5px;
  justify-content: center;
}

.wf-comp-btns span,
.wf-ghost-btns span {
  padding: 5px 10px;
  background: #007aff;
  color: #fff;
  font-size: 8px;
  font-weight: 600;
  border-radius: 5px;
  white-space: nowrap;
}

.wf-ghost-btns span:nth-child(2) {
  background: #f2f2f7;
  color: #007aff;
  border: 1px solid #c7c7cc;
}

.wf-ghost-btns span:nth-child(3) {
  background: #f2f2f7;
  color: #333;
  border: 1px solid #c7c7cc;
}

.wf-ghost-btns {
  position: absolute;
  width: 168px;
}

/* —— Laptop: tabs top, list + map side by side —— */
.wf-comp-tabs,
.wf-ghost-tab {
  left: 6px;
  right: 6px;
  top: 4px;
  height: 18px;
  display: flex;
  gap: 2px;
  background: #f2f2f7;
  border: 1px solid #c7c7cc;
  border-radius: 5px 5px 0 0;
  padding: 2px 3px 0;
  overflow: hidden;
}

.wf-comp-tabs span,
.wf-ghost-tab span {
  padding: 2px 6px;
  font-size: 7px;
  font-weight: 600;
  color: #666;
  border-radius: 3px 3px 0 0;
}

.wf-comp-tabs span.on,
.wf-ghost-tab span.on {
  background: #fff;
  color: #007aff;
}

.wf-ghost-tab {
  position: absolute;
  width: 178px;
}

.wf-comp-list,
.wf-ghost-list {
  left: 6px;
  top: 24px;
  width: 42%;
  bottom: 6px;
  background: #fafafa;
  border: 1px solid #c7c7cc;
  border-radius: 0 0 0 5px;
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wf-comp-list span,
.wf-ghost-list span {
  height: 8px;
  background: #e5e5ea;
  border-radius: 2px;
}

.wf-comp-list span:first-child,
.wf-ghost-list span:first-child {
  background: #d1d1d6;
  width: 80%;
}

.wf-ghost-list {
  position: absolute;
  width: 72px;
  height: 72px;
}

.wf-comp-map,
.wf-ghost-map {
  right: 6px;
  top: 24px;
  width: 48%;
  bottom: 6px;
  left: auto;
  background: linear-gradient(160deg, #c8e6c9 30%, #81c784 60%, #4fc3f7 100%);
  border: 1px solid #c7c7cc;
  border-radius: 0 0 5px 0;
}

.wf-ghost-map {
  position: absolute;
  width: 82px;
  height: 72px;
}

/* Visibility when placed — scoped per shell only */
#wf-shell-anim.wf-place-chart .wf-comp-chart,
#wf-shell-result.wf-place-chart .wf-comp-chart {
  opacity: 1;
  transform: scale(1);
}

#wf-shell-anim.wf-device-phone.wf-place-button .wf-comp-button,
#wf-shell-result.wf-device-phone.wf-place-button .wf-comp-button {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

#wf-shell-anim.wf-place-button .wf-comp-button,
#wf-shell-result.wf-place-button .wf-comp-button {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

#wf-shell-anim.wf-place-image .wf-comp-image,
#wf-shell-result.wf-place-image .wf-comp-image {
  opacity: 1;
  transform: scale(1);
}

#wf-shell-anim.wf-place-btns .wf-comp-btns,
#wf-shell-result.wf-place-btns .wf-comp-btns {
  opacity: 1;
  transform: scale(1);
}

#wf-shell-anim.wf-place-tab .wf-comp-tabs,
#wf-shell-result.wf-place-tab .wf-comp-tabs {
  opacity: 1;
  transform: scale(1);
}

#wf-shell-anim.wf-place-list .wf-comp-list,
#wf-shell-result.wf-place-list .wf-comp-list {
  opacity: 1;
  transform: scale(1);
}

#wf-shell-anim.wf-place-map .wf-comp-map,
#wf-shell-result.wf-place-map .wf-comp-map {
  opacity: 1;
  transform: scale(1);
}

.wf-palette-item.wf-used {
  opacity: 0.4;
  background: rgba(91, 141, 239, 0.06);
}

.workflow-demo.wf-cycle-out .wf-design,
.workflow-demo.wf-cycle-out .wf-prompt,
.workflow-demo.wf-cycle-out .wf-chat,
.workflow-demo.wf-cycle-out .wf-result,
.workflow-demo.wf-cycle-out > .wf-arrow {
  opacity: 0 !important;
  transform: scale(0.98) !important;
  transition: opacity 0.52s ease, transform 0.52s ease;
}

.workflow-demo.wf-cycle-in .wf-design,
.workflow-demo.wf-cycle-in .wf-prompt,
.workflow-demo.wf-cycle-in .wf-chat,
.workflow-demo.wf-cycle-in .wf-result,
.workflow-demo.wf-cycle-in > .wf-arrow {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.52s ease, transform 0.52s ease;
}

.workflow-demo.wf-cycle-in.wf-cycle-in-ready .wf-design,
.workflow-demo.wf-cycle-in.wf-cycle-in-ready .wf-prompt,
.workflow-demo.wf-cycle-in.wf-cycle-in-ready .wf-chat,
.workflow-demo.wf-cycle-in.wf-cycle-in-ready .wf-result,
.workflow-demo.wf-cycle-in.wf-cycle-in-ready > .wf-arrow {
  opacity: 1;
  transform: scale(1);
}

/* Cursor → result handoff */
.workflow-demo.wf-handoff > .wf-arrow:nth-last-of-type(1) {
  color: #5b8def;
  animation: wf-handoff-arrow 0.55s ease-in-out 2;
}

.workflow-demo.wf-handoff .wf-chat-paste {
  color: #c8cdd8;
  transition: color 0.4s ease;
}

@keyframes wf-handoff-arrow {
  0%, 100% { opacity: 0.35; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(5px); }
}

/* Result device — smooth reveal */
#wf-shell-result {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#wf-shell-result.wf-result-loading {
  opacity: 0.55;
  transform: scale(0.985);
}

#wf-shell-result .wf-comp {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#wf-shell-result.wf-result-visible {
  opacity: 1;
  transform: scale(1);
}

.wf-device-result .wf-frame-phone .wf-phone-bezel,
.wf-device-result .wf-mac-lid,
.wf-device-result .wf-browser,
.wf-device-result .wf-win-lid {
  transition: box-shadow 0.55s ease;
}

.wf-device-result.wf-result-glow .wf-frame-phone .wf-phone-bezel,
.wf-device-result.wf-result-glow .wf-mac-lid,
.wf-device-result.wf-result-glow .wf-browser,
.wf-device-result.wf-result-glow .wf-win-lid {
  box-shadow:
    0 0 0 1px rgba(91, 141, 239, 0.35),
    0 0 20px rgba(91, 141, 239, 0.12),
    0 16px 40px rgba(0, 0, 0, 0.4);
}

.wf-ghost {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.wf-ghost-chart {
  width: 108px;
  padding: 8px;
  background: #fafafa;
  border: 1px solid #c7c7cc;
  border-radius: 8px;
}

.wf-ghost-button {
  padding: 8px 24px;
  background: #007aff;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
}

.wf-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 48px;
  margin-bottom: 4px;
}

.wf-chart-bars.sm {
  height: 32px;
  gap: 4px;
  margin-bottom: 2px;
}

.wf-chart-bars span {
  flex: 1;
  background: #007aff;
  border-radius: 2px 2px 0 0;
  min-height: 4px;
}

.wf-chart-label {
  font-size: 9px;
  color: #666;
  font-weight: 500;
}


.wf-cursor {
  position: absolute;
  width: 14px;
  height: 14px;
  top: 0;
  left: 0;
  z-index: 15;
  pointer-events: none;
  opacity: 0;
}

.wf-cursor::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 8px solid #000;
  border-right: 4px solid transparent;
  border-bottom: 10px solid transparent;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

.wf-generate-btn {
  padding: 8px 12px;
  background: #1a1d27;
  border: 1px solid #5b8def;
  border-radius: 8px;
  color: #5b8def;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  max-width: 100%;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.workflow-demo.wf-generating .wf-generate-btn {
  background: #5b8def;
  color: #fff;
  box-shadow: 0 0 20px rgba(91, 141, 239, 0.4);
}

.workflow-demo.wf-cursor-press .wf-cursor::before {
  transform: scale(0.82);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

.workflow-demo.wf-cursor-press .wf-generate-btn {
  transform: scale(0.97);
}

.workflow-demo.wf-chat-send .wf-chat-send {
  transform: scale(0.88);
  background: #4a7de0;
}

.wf-arrow {
  font-size: 22px;
  color: #2e3344;
  flex-shrink: 0;
}

.wf-prompt {
  width: min(220px, 100%);
  background: #12141c;
  border: 1px solid #2e3344;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0.3;
  transform: scale(0.92);
  transition: opacity 0.4s, transform 0.4s;
}

.workflow-demo.wf-show-prompt .wf-prompt {
  opacity: 1;
  transform: scale(1);
}

.wf-prompt-header {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #8b92a8;
  border-bottom: 1px solid #1e2230;
}

.wf-prompt-view {
  margin: 0;
  padding: 6px 12px 0;
  font-size: 10px;
  font-weight: 600;
  color: #9ec5ff;
  letter-spacing: 0.01em;
}

.wf-prompt-body {
  margin: 0;
  padding: 10px 12px;
  font-size: 9px;
  line-height: 1.45;
  color: #5b8def;
  overflow: hidden;
}

.wf-prompt-body code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.wf-prompt.wf-prompt-updated .wf-prompt-view,
.wf-prompt.wf-prompt-updated .wf-prompt-body {
  animation: wf-prompt-flash 0.65s ease;
}

@keyframes wf-prompt-flash {
  0% { color: #c8e0ff; }
  35% { color: #5b8def; }
  100% { color: inherit; }
}

body.wf-demo-recording .workflow-eyebrow,
body.wf-demo-recording .workflow-demo-intro,
body.wf-demo-recording .workflow-steps {
  display: none !important;
}

body.wf-demo-recording .wf-prompt {
  width: min(300px, 100%);
}

body.wf-demo-recording .wf-prompt-view {
  font-size: 11px;
}

body.wf-demo-recording .wf-prompt-body {
  font-size: 10px;
  line-height: 1.5;
  max-height: 220px;
}

body.wf-demo-recording .wf-device-track {
  opacity: 1;
}

body.wf-demo-recording .wf-device-chip {
  font-size: 12px;
  padding: 5px 12px;
}

body.wf-demo-recording .wf-demo-hud {
  margin-bottom: 8px;
}

.wf-chat {
  width: min(200px, 100%);
  background: #12141c;
  border: 1px solid #2e3344;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0.25;
  transform: scale(0.92);
  transition: opacity 0.4s, transform 0.4s;
}

.workflow-demo.wf-show-chat .wf-chat {
  opacity: 1;
  transform: scale(1);
}

.wf-chat-header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  font-size: 11px;
  color: #8b92a8;
  border-bottom: 1px solid #1e2230;
}

.wf-chat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2e3344;
}

.wf-chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px;
  padding: 8px 10px;
  background: #0a0c10;
  border: 1px solid #2e3344;
  border-radius: 8px;
  font-size: 10px;
}

.wf-chat-paste {
  color: #6b7289;
  transition: color 0.4s;
}

.workflow-demo.wf-show-chat .wf-chat-paste {
  color: #c8cdd8;
}

.wf-chat-send {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #5b8def;
  color: #fff;
  border-radius: 6px;
  font-size: 11px;
  transition: transform 0.15s ease, background 0.15s ease;
}

/* Completed layout — static iPhone on the right */
.wf-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.wf-result-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7289;
  transition: color 0.45s ease;
}

@media (max-width: 900px) {
  .page-body {
    flex-direction: column;
  }

  main {
    display: block;
    flex: none;
    min-height: auto;
  }

  .page-scroll {
    overflow-y: auto;
  }

  .workflow {
    flex: none;
    min-height: auto;
    padding-bottom: 28px;
  }

  .workflow-demo-viewport {
    flex: none;
    min-height: auto;
    overflow: visible;
  }

  .workflow-demo {
    transform: none !important;
  }

  .wf-trained-banner {
    position: static;
    margin-top: 20px;
  }

  .page-scroll {
    order: 1;
  }

  .layout-scope {
    order: 2;
    width: 100%;
    border-right: none;
    border-top: 1px solid #1e2230;
    padding: 20px 24px 28px;
    flex-shrink: 0;
    overflow-y: visible;
  }

  .layout-scope-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .workflow-demo {
    flex-direction: column;
  }

  .workflow-step {
    padding: 5px 10px;
    font-size: 13px;
  }

  .wf-demo-hud {
    margin-bottom: 20px;
  }

  .wf-arrow {
    transform: rotate(90deg);
  }

  .wf-stage {
    flex-direction: column;
    align-items: center;
  }

  .wf-palette {
    width: 100%;
    max-width: 280px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
  }

  .wf-palette-title {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .layout-scope-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding: 14px 20px;
  }

  .site-footer {
    flex-direction: column;
    gap: 10px;
    padding: 14px 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .workflow {
    padding-left: 20px;
    padding-right: 20px;
  }

  .workflow-step-text {
    max-width: 220px;
    line-height: 1.35;
  }

  .wf-device-chip {
    font-size: 10px;
    padding: 3px 8px;
  }

  .wf-device-phone .wf-phone-bezel {
    width: 150px;
  }

  .wf-device-phone .wf-device-screen {
    height: 268px;
  }

  .wf-mac-lid { width: 190px; }
  .wf-device-macbook .wf-device-screen { height: 110px; }
  .wf-browser { width: 200px; }
  .wf-device-web .wf-device-screen { height: 112px; }
  .wf-win-lid { width: 180px; }
  .wf-device-laptop .wf-device-screen { height: 106px; }

  .wf-result {
    width: 100%;
  }
}

.site-footer {
  flex-shrink: 0;
  margin-bottom: 10px;
  padding: 10px 24px;
  border-top: 1px solid #1e2230;
  background: #0a0c10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #8b92a8;
  z-index: 10;
}

.site-footer a {
  color: #5b8def;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7288;
}
