body.landing-page {
  overflow: auto;
}

.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 32px 48px 56px;
  position: relative;
  overflow: hidden;
}

.landing::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(120deg, rgba(15, 23, 36, 0.94), rgba(11, 15, 20, 0.97)),
    conic-gradient(
      from 140deg at 20% 20%,
      rgba(45, 92, 112, 0.72),
      rgba(15, 23, 36, 0) 40%,
      rgba(52, 211, 153, 0.6)
    );
  opacity: 0.95;
  filter: blur(56px);
  z-index: 0;
}

.landing > * {
  position: relative;
  z-index: 1;
}

.landing-card {
  box-shadow: 0 16px 40px rgba(5, 10, 20, 0.55);
}

.landing-hero-media .image-placeholder,
.landing-step .image-placeholder {
  box-shadow: 0 12px 30px rgba(6, 16, 30, 0.5);
  border-color: rgba(45, 92, 112, 0.35);
}

.landing-step .image-placeholder,
.landing-step .landing-showcase-media {
  box-shadow:
    0 18px 42px rgba(3, 8, 18, 0.5),
    0 0 0 1px rgba(88, 188, 255, 0.35),
    0 0 22px rgba(88, 188, 255, 0.28);
  border-color: rgba(112, 190, 238, 0.55);
}

.landing-main {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(520px, 2.35fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
  margin-top: 26px;
}

.landing-hero-copy h1 {
  margin: 12px 0 16px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
}

.landing-hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.landing-hero-video-wrap {
  position: relative;
  margin-top: 36px;
}

.landing-demo-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 16px;
  background: rgba(6, 12, 22, 0.1);
  color: #f8fafc;
  cursor: pointer;
  transition: background 0.2s ease;
}

.landing-demo-play-btn:hover {
  background: rgba(6, 12, 22, 0.32);
}

.landing-demo-play-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
}

.landing-demo-play-icon svg {
  width: 30px;
  height: 30px;
  margin-left: 3px;
}

.landing-demo-play-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.landing-youtube-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 14, 0.9);
}

.landing-youtube-overlay.is-hidden {
  display: none;
}

.landing-youtube-modal {
  position: relative;
  width: min(960px, 100%);
}

.landing-youtube-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.landing-youtube-player {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.landing-youtube-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--muted);
}

.landing-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.landing-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(61, 92, 118, 0.38);
  background:
    radial-gradient(circle at top right, rgba(66, 128, 170, 0.2), rgba(66, 128, 170, 0) 44%),
    linear-gradient(180deg, rgba(22, 34, 48, 0.94), rgba(11, 18, 30, 0.95));
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.landing-grid-tight {
  gap: 12px;
}

.landing-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.landing-card-media {
  padding: 0px;
  gap: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Static, hand-coded flow-nodes "poster" for the landing page. Not the real
   editor — a stylized, non-interactive mock tilted in 3D so we can pile on
   depth/shadow. All coordinates are proportional (board uses a fixed aspect
   ratio) so the SVG edges stay aligned with the node cards at any width. */
.flow-mock {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  overflow: visible;
  /* Cast shadow traces the actual rendered (tilted) board silhouette and
     recomputes live as vanilla-tilt updates the board transform -> a natural,
     directional shadow instead of a fixed elliptical box-shadow blob. */
  filter:
    drop-shadow(0 18px 22px rgba(0, 0, 0, 0.75))
    drop-shadow(0 48px 56px rgba(0, 0, 0, 0.65));
}

.flow-mock-board {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background:
    radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.07) 1px, transparent 0)
      0 0 / 20px 20px,
    linear-gradient(160deg, #fbfdff 0%, #eef3f9 100%);
  border: 3px solid rgba(51, 65, 85, 0.85);
  transform-origin: center center;
  transform-style: preserve-3d;
  will-change: transform;
  /* Rests flat; vanilla-tilt overrides this inline with perspective(...)
     rotateX/rotateY on pointer move and eases back to flat on exit. */
  transform: perspective(1300px);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.6) inset,
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 14px 28px -10px rgba(0, 0, 0, 0.7),
    0 36px 64px -20px rgba(0, 0, 0, 0.8);
}

.flow-mock-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  overflow: visible;
  pointer-events: none;
  color: #6366f1;
}

.flow-mock-edge {
  fill: none;
  stroke: #6366f1;
  stroke-width: 2;
  stroke-linecap: round;
}

.flow-mock-node {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 13px;
  z-index: 1;
  border-radius: 13px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 10px 20px -12px rgba(15, 23, 42, 0.35),
    0 24px 40px -28px rgba(15, 23, 42, 0.4);
  /* Handles sit on the right of purple badges and peek past the card edge. */
  overflow: visible;
}

.flow-mock-node.is-start {
  border-top: 3px solid #10b981;
}

.flow-mock-node.is-end {
  border-top: 3px solid #f43f5e;
}

.flow-mock-node-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flow-mock-node-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
}

.flow-mock-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
}

.flow-mock-badge.is-start {
  color: #047857;
  background: rgba(16, 185, 129, 0.14);
}

.flow-mock-badge.is-end {
  color: #be123c;
  background: rgba(244, 63, 94, 0.14);
}

.flow-mock-node-task {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.35;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.flow-mock-pills {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-top: auto;
}

.flow-mock-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  box-sizing: border-box;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  color: #334155;
  background: rgba(148, 163, 184, 0.16);
}

.flow-mock-pill.has-edge {
  /* Room for the handle sitting on the right of the badge. */
  padding-right: 16px;
}

.flow-mock-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

/* Arrow base: indigo handle attached to the right of the purple badge. */
.flow-mock-handle {
  position: absolute;
  top: 50%;
  right: -5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #6366f1;
  border: 2px solid #ffffff;
  transform: translateY(-50%);
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.5);
}

.flow-mock-pill.is-transition {
  color: #4f46e5;
  background: rgba(99, 102, 241, 0.13);
}

.flow-mock-pill.is-rag {
  color: #7c3aed;
  background: rgba(139, 92, 246, 0.13);
}

.flow-mock-pill.is-http {
  color: #0284c7;
  background: rgba(14, 165, 233, 0.13);
}

/* Knowledge-base "documents table" poster. Shares the .flow-mock tilt/shadow
   shell; this is the content that fills the tilted board. Themed dark to match
   the real app UI (globals.css tokens). */
.flow-mock-board.is-kb,
.flow-mock-board.is-actions {
  background: linear-gradient(160deg, #16202f 0%, #0f1724 100%);
  border-color: rgba(120, 150, 185, 0.3);
  /* Dark card: drop the bright white top-inset gloss (fine on the white flow
     poster, but a harsh sliver here) and keep a faint rim + cast shadow. */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 14px 28px -10px rgba(0, 0, 0, 0.7),
    0 36px 64px -20px rgba(0, 0, 0, 0.8);
}

.kb-mock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  gap: 14px;
}

.kb-mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kb-mock-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.kb-mock-title {
  font-size: 16px;
  font-weight: 700;
  color: #eaf0f7;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kb-mock-sub {
  font-size: 11px;
  font-weight: 500;
  color: #9fb0c4;
}

.kb-mock-btn {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #366d84 0%, #2d5c70 100%);
  box-shadow: 0 1px 2px rgba(3, 8, 20, 0.5);
}

.kb-mock-table {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  border: 1px solid rgba(120, 150, 185, 0.16);
  border-radius: 12px;
  background: #0d1622;
  overflow: hidden;
}

.kb-mock-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 64px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  flex: 1 1 0;
  border-top: 1px solid rgba(120, 150, 185, 0.12);
}

.kb-mock-row-head {
  flex: 0 0 auto;
  padding-top: 9px;
  padding-bottom: 9px;
  border-top: none;
  background: rgba(120, 150, 185, 0.07);
}

.kb-mock-row-head .kb-mock-cell {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7c8da5;
}

.kb-mock-cell {
  font-size: 12.5px;
  color: #c3ccdb;
  min-width: 0;
}

.kb-mock-col-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #eaf0f7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kb-mock-col-size {
  text-align: right;
  color: #9fb0c4;
  font-variant-numeric: tabular-nums;
}

.kb-mock-file-icon {
  flex: 0 0 auto;
  width: 13px;
  height: 16px;
  border-radius: 2px 4px 2px 2px;
  background: rgba(69, 128, 160, 0.28);
  border: 1px solid rgba(120, 170, 200, 0.4);
  position: relative;
}

.kb-mock-file-icon::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 5px;
  height: 5px;
  border-left: 1px solid rgba(120, 170, 200, 0.4);
  border-bottom: 1px solid rgba(120, 170, 200, 0.4);
  background: #0d1622;
}

.kb-mock-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.kb-mock-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.kb-mock-status.is-completed {
  color: #34d399;
  background: rgba(52, 211, 153, 0.14);
}

.kb-mock-status.is-pending {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.16);
}

/* "Actions" poster: an HTTP function/tool config card. Shares the dark themed
   .flow-mock board shell with the KB poster. */
.actions-mock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  gap: 12px;
}

.actions-mock-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.actions-mock-titles {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.actions-mock-title {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  color: #eaf0f7;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.actions-mock-sub {
  font-size: 11px;
  font-weight: 500;
  color: #9fb0c4;
}

.actions-mock-type {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  padding: 3px 9px;
  border-radius: 999px;
}

.actions-mock-req {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 8px;
  background: rgba(120, 150, 185, 0.07);
  border: 1px solid rgba(120, 150, 185, 0.12);
  min-width: 0;
}

.actions-mock-method {
  flex: 0 0 auto;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  color: #34d399;
  background: rgba(52, 211, 153, 0.14);
  padding: 2px 7px;
  border-radius: 5px;
}

.actions-mock-url {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  color: #c3ccdb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.actions-mock-field-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7c8da5;
}

.actions-mock-code {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.65;
  color: #c3ccdb;
  background: #0b131e;
  border: 1px solid rgba(120, 150, 185, 0.12);
  border-radius: 8px;
  padding: 11px 13px;
  white-space: pre;
}

.actions-mock-code .tok-key {
  color: #7dd3fc;
}

.actions-mock-code .tok-var {
  color: #c4b5fd;
}

.actions-mock-code .tok-punc {
  color: #6b7a90;
}

.actions-mock-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.actions-mock-secret {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10.5px;
  color: #7c8da5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.actions-mock-btn {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #366d84 0%, #2d5c70 100%);
  box-shadow: 0 1px 2px rgba(3, 8, 20, 0.5);
}

@media (max-width: 900px) {
  .flow-mock {
    max-width: 100%;
    /* Soften cast shadow so it doesn't paint over the stacked copy below. */
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45));
    margin-bottom: 8px;
  }

  .flow-mock-board {
    transform: none;
    box-shadow:
      0 2px 0 rgba(255, 255, 255, 0.6) inset,
      0 0 0 1px rgba(255, 255, 255, 0.22),
      0 8px 16px -8px rgba(0, 0, 0, 0.55);
  }

  .flow-mock-node {
    padding: 8px 9px;
    gap: 4px;
    border-radius: 10px;
  }

  .flow-mock-node-title {
    font-size: 11px;
  }

  .flow-mock-badge {
    font-size: 8px;
    padding: 1px 5px;
  }

  /* Task copy is the first thing to crush in narrow cards — drop it. */
  .flow-mock-node-task {
    display: none;
  }

  .flow-mock-pills {
    gap: 4px;
  }

  .flow-mock-pill {
    font-size: 8px;
    padding: 3px 7px 3px 6px;
    gap: 4px;
  }

  .flow-mock-pill.has-edge {
    padding-right: 12px;
  }

  .flow-mock-pill-dot {
    width: 5px;
    height: 5px;
  }

  .flow-mock-handle {
    width: 8px;
    height: 8px;
    right: -3px;
    border-width: 1.5px;
  }

  .kb-mock {
    padding: 13px 14px;
    gap: 10px;
  }

  .kb-mock-title {
    font-size: 13px;
  }

  .kb-mock-btn {
    font-size: 9px;
    padding: 5px 9px;
  }

  .kb-mock-cell {
    font-size: 10.5px;
  }

  .kb-mock-status {
    font-size: 9px;
    padding: 2px 7px;
  }

  .actions-mock {
    padding: 13px 14px;
    gap: 9px;
  }

  .actions-mock-title {
    font-size: 12.5px;
  }

  .actions-mock-url,
  .actions-mock-code {
    font-size: 10.5px;
  }

  .actions-mock-secret {
    font-size: 9px;
  }

  .actions-mock-btn {
    font-size: 9px;
    padding: 5px 9px;
  }
}

@media (max-width: 600px) {
  .flow-mock-node {
    padding: 6px 7px;
    gap: 3px;
  }

  .flow-mock-node-title {
    font-size: 10px;
  }

  .flow-mock-pill {
    font-size: 7.5px;
    padding: 2px 6px 2px 5px;
  }

  .kb-mock {
    padding: 11px 12px;
    gap: 8px;
  }

  .kb-mock-cell {
    font-size: 9.5px;
  }

  .kb-mock-row {
    grid-template-columns: minmax(0, 1fr) auto 48px;
    padding: 0 10px;
  }

  .actions-mock {
    padding: 11px 12px;
    gap: 7px;
  }

  .actions-mock-url,
  .actions-mock-code {
    font-size: 9.5px;
  }

  .landing-showcase-copy h3 {
    font-size: 28px;
  }

  .landing-showcase-copy p {
    font-size: 16px;
  }
}

.landing-showcase {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.landing-showcase-row {
  display: grid;
  grid-template-columns: minmax(420px, 1.35fr) minmax(220px, 1fr);
  gap: 24px;
  align-items: center;
}

.landing-showcase-row.is-right {
  direction: rtl;
}

.landing-showcase-row.is-right > * {
  direction: ltr;
}

.landing-showcase-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.landing-showcase-copy h3 {
  font-size: 40px;
  margin: 0;
}

.landing-showcase-copy p {
  font-size: 20px;
}

.landing-split {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(220px, 1fr);
  gap: 32px;
  align-items: center;
}

.feature-list {
  padding-left: 18px;
  margin: 0;
  display: grid;
  gap: 10px;
}

.image-placeholder {
  border: 1px dashed var(--border);
  background: var(--panel-2);
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 16px;
}

.placeholder-lg {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
}

.landing-hero-media .placeholder-lg {
  aspect-ratio: 16 / 9;
  min-height: 640px;
}

.placeholder-md {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 220px;
}

.placeholder-sm {
  width: 100%;
  aspect-ratio: 3 / 2;
  min-height: 140px;
}

.landing-step .placeholder-sm {
  aspect-ratio: 16 / 9;
  /* min-height: 0px; */
}

.landing-showcase-media {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: auto;
  min-height: 0;
  border-radius: 16px;
  border: 1px solid rgba(45, 92, 112, 0.55);
  box-shadow:
    0 110px 260px rgba(1, 4, 12, 0.99),
    0 60px 160px rgba(1, 4, 12, 0.95),
    0 24px 70px rgba(1, 4, 12, 0.88),
    0 10px 30px rgba(1, 4, 12, 0.8);
}

.landing-hero-media .landing-showcase-media {
  aspect-ratio: auto;
  min-height: 0;
  box-shadow:
    0 54px 120px rgba(1, 4, 12, 0.7),
    0 24px 54px rgba(1, 4, 12, 0.56),
    0 10px 24px rgba(1, 4, 12, 0.42);
}

.landing-step .landing-showcase-media {
  border-radius: 14px;
  border: 1px solid rgba(112, 190, 238, 0.55);
  background: rgba(4, 9, 16, 0.86);
  padding: 0;
}

.landing-step .landing-icon-panel {
  border: none;
  background: transparent;
  box-shadow: none;
}

.landing-icon-panel {
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 28px;
  background:
    radial-gradient(circle at top, rgba(88, 188, 255, 0.14), rgba(88, 188, 255, 0) 42%),
    linear-gradient(180deg, rgba(15, 23, 36, 0.96), rgba(8, 14, 24, 0.98));
  color: rgba(220, 240, 255, 0.95);
  text-align: center;
}

.landing-icon-badge {
  border: 1px solid rgba(112, 190, 238, 0.55);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(11, 18, 30, 0.66);
  color: rgba(163, 214, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-icon-glyph {
  width: min(180px, 58%);
  height: auto;
  stroke: currentColor;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-icon-glyph-node {
  width: min(230px, 72%);
  stroke-width: 4;
}

.landing-icon-glyph-sm {
  width: min(130px, 52%);
}

.landing-icon-label {
  max-width: 300px;
  color: rgba(200, 222, 244, 0.88);
  font-size: 16px;
  line-height: 1.5;
}

/* Stylized avatar-catalog poster for the "Choose" step. Dark themed to match
   the showcase posters; fills the step card's media slot (no 3D tilt here). */
.choose-mock {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  aspect-ratio: auto;
  min-height: 0;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(160deg, #16202f 0%, #0f1724 100%);
  border: 1px solid rgba(120, 150, 185, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 44px -20px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.choose-mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.choose-mock-title {
  font-size: 13px;
  font-weight: 700;
  color: #eaf0f7;
}

.choose-mock-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #7c8da5;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(120, 150, 185, 0.08);
  border: 1px solid rgba(120, 150, 185, 0.14);
}

.choose-mock-search svg {
  width: 11px;
  height: 11px;
}

.choose-mock-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.choose-mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 9px;
  border-radius: 10px;
  background: rgba(120, 150, 185, 0.05);
  border: 1px solid rgba(120, 150, 185, 0.1);
}

.choose-mock-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(140deg, var(--a, #3b82f6), var(--b, #8b5cf6));
}

.choose-mock-avatar svg {
  width: 17px;
  height: 17px;
}

.choose-mock-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.choose-mock-name {
  font-size: 12px;
  font-weight: 600;
  color: #eaf0f7;
  line-height: 1.2;
}

.choose-mock-desc {
  font-size: 9.5px;
  color: #7c8da5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.choose-mock-trending {
  margin-left: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  padding: 2px 7px;
  border-radius: 999px;
}

.choose-mock-trending svg {
  width: 10px;
  height: 10px;
}

/* Stylized "Orchestrate" poster: a stage node with attached tool pills. Dark
   themed to match the other step posters; fills the step card's media slot. */
.orch-mock {
  display: flex;
  align-items: center;
  width: 100%;
  aspect-ratio: auto;
  min-height: 0;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(160deg, #16202f 0%, #0f1724 100%);
  border: 1px solid rgba(120, 150, 185, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 44px -20px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.orch-mock-node {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid rgba(120, 150, 185, 0.2);
  border-top: 3px solid #38bdf8;
  background: rgba(120, 150, 185, 0.06);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.8);
}

.orch-mock-node-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.orch-mock-node-title {
  font-size: 13px;
  font-weight: 700;
  color: #eaf0f7;
}

.orch-mock-badge {
  margin-left: auto;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.14);
  padding: 2px 7px;
  border-radius: 999px;
}

.orch-mock-task {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.35;
  color: #9fb0c4;
}

.orch-mock-field-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7c8da5;
}

.orch-mock-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.orch-mock-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}

.orch-mock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.orch-mock-pill.is-knowledge {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.16);
}

.orch-mock-pill.is-action {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.14);
}

.orch-mock-pill.is-hook {
  color: #5eead4;
  background: rgba(20, 184, 166, 0.16);
}

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
}

.cta-band-actions {
  margin-top: 0;
  flex-shrink: 0;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 16, 0.7);
}

.modal-card {
  position: relative;
  width: min(520px, 92vw);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 1;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-form input,
.modal-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(31, 42, 58, 0.9);
  background: rgba(15, 23, 36, 0.9);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal-form input::placeholder,
.modal-form textarea::placeholder {
  color: rgba(159, 176, 196, 0.7);
}

.modal-form input:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.modal-form textarea {
  resize: vertical;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-open {
  overflow: hidden;
}

@media (max-width: 1400px) {
  .landing {
    padding: 24px 24px 40px;
  }

  .landing-hero,
  .landing-split,
  .landing-showcase-row {
    grid-template-columns: 1fr;
  }

  /* Extra room under the media so the flow-mock shadow doesn't sit on the copy. */
  .landing-showcase-row {
    gap: 36px;
  }

  /* globals.css .card uses width: min(720px, 100%); stretch cards when layout stacks */
  main.landing-main .card {
    width: 100%;
    max-width: none;
  }

  .landing-hero {
    margin-bottom: 28px;
  }

  /* Hero full_demo is very wide (~2.64:1). A tall min-height + object-fit:contain
     letterboxes empty bands inside the <video> border on narrow viewports. */
  .landing-hero-video-wrap {
    margin-top: 0;
  }

  .landing-hero-media .placeholder-lg {
    min-height: 0;
    margin-top: 0;
    aspect-ratio: auto;
    height: auto;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}
