:root {
  --ink: #141625;
  --ink2: #3d4359;
  --muted: #6b7288;
  --purple: #644ce0;
  --purple-d: #4f38c4;
  --purple-l: #f1eeff;
  --purple-xl: #f8f6ff;
  --obsidian: #141524;
  --obsidian-2: #1c1e33;
  --line: #e6e8f0;
  --line-strong: #d4d8e6;
  --bg: #ffffff;
  --surface: #f7f8fc;
  --green: #14865c;
  --green-l: #e4f6ee;
  --red: #c94456;
  --red-l: #fdecef;
  --amber: #ffdf73;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: "SF Pro Display", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow-lg: 0 32px 72px -24px rgba(24, 20, 62, 0.22), 0 10px 26px -10px rgba(24, 20, 62, 0.12);
  --shadow-md: 0 18px 42px -18px rgba(24, 20, 62, 0.16), 0 4px 14px -4px rgba(24, 20, 62, 0.08);
  --shadow-sm: 0 4px 14px -4px rgba(24, 20, 62, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, p, ul, ol, figure {
  margin-top: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

code {
  font-family: var(--mono);
}

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--bg);
  color: var(--ink);
  padding: 8px 14px;
  z-index: 60;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: saturate(1.5) blur(16px);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header.scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 28px -12px rgba(20, 22, 37, 0.08);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(145deg, #7a62f0, #553cc9);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 6px 16px -4px rgba(100, 76, 224, 0.52);
}

.brand-name {
  color: var(--ink);
}

.brand-name b {
  color: var(--purple);
  font-weight: 800;
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink2);
}

.nav a {
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--purple);
}

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}

.signin {
  color: var(--ink2);
  transition: color 0.15s ease;
}

.signin:hover {
  color: var(--purple);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--purple);
  color: #fff;
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 650;
  font-size: 15px;
  border: 1px solid var(--purple);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 10px 24px -8px rgba(100, 76, 224, 0.5);
  cursor: pointer;
}

.button:hover {
  background: var(--purple-d);
  border-color: var(--purple-d);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -8px rgba(85, 60, 201, 0.56);
}

.button.small {
  padding: 8px 15px;
  font-size: 13.5px;
  border-radius: 9px;
  box-shadow: none;
}

.button.big {
  padding: 15px 24px;
  font-size: 15.5px;
  border-radius: 11px;
}

.button.ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: 0 2px 6px rgba(20, 22, 37, 0.04);
}

.button.ghost:hover {
  background: var(--purple-xl);
  border-color: #cfc6f7;
  color: var(--purple-d);
  transform: translateY(-1px);
  box-shadow: none;
}

.button.light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  box-shadow: 0 14px 32px -10px rgba(0, 0, 0, 0.45);
}

.button.light:hover {
  background: var(--purple-l);
  border-color: var(--purple-l);
}

.button.dark-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #eef0ff;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.button.dark-ghost:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-1px);
}

/* Shared typography & layout */
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--purple);
  margin: 0 0 14px;
}

h1, h2, h3 {
  letter-spacing: -0.038em;
  line-height: 1.08;
  font-weight: 800;
}

h2 {
  font-size: clamp(32px, 3.8vw, 48px);
  margin-bottom: 16px;
}

.section {
  padding: 108px 0;
}

.section-head {
  margin-bottom: 52px;
}

.section-head.center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-head.split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
}

.section-head.split .sub {
  max-width: 400px;
  margin: 0 0 6px;
}

.sub {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(20, 134, 92, 0.55);
  animation: pulse-ring 2.2s infinite;
}

@keyframes pulse-ring {
  70% {
    box-shadow: 0 0 0 8px rgba(20, 134, 92, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(20, 134, 92, 0);
  }
}

/* Hero */
.hero {
  position: relative;
  padding: 68px 0 92px;
  overflow: hidden;
  background: linear-gradient(180deg, #faf9ff 0%, #ffffff 78%);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(100, 76, 224, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(100, 76, 224, 0.055) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 80% 72% at 62% 24%, #000 18%, transparent 74%);
  mask-image: radial-gradient(ellipse 80% 72% at 62% 24%, #000 18%, transparent 74%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 680px;
  height: 440px;
  right: -120px;
  top: -80px;
  background: radial-gradient(circle, rgba(112, 88, 220, 0.16) 0%, rgba(112, 88, 220, 0) 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 52px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border: 1px solid #dfd8fb;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  margin-bottom: 24px;
  box-shadow: 0 6px 18px -6px rgba(100, 76, 224, 0.16);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.status-pill:hover {
  border-color: #c2b5f7;
  transform: translateY(-1px);
}

.pill-arrow {
  color: var(--purple);
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(42px, 4.7vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin-bottom: 22px;
}

.accent-text {
  color: var(--purple);
  position: relative;
  display: inline-block;
}

.accent-text::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0.04em;
  height: 0.22em;
  background: rgba(100, 76, 224, 0.16);
  border-radius: 4px;
  z-index: -1;
}

.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink2);
  max-width: 510px;
  margin-bottom: 30px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.actions.center {
  justify-content: center;
}

.hero-metrics {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 28px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.hero-metrics li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-metrics svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Interactive Workbench */
.workbench {
  position: relative;
}

.wb-shell {
  background: #fff;
  border: 1px solid #ded8f6;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.wb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: var(--obsidian);
  color: #e6e7f5;
}

.wb-dots {
  display: flex;
  gap: 6px;
}

.wb-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.wb-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.07);
  padding: 3px;
  border-radius: 9px;
}

.wb-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #b4b7cf;
  font: 600 12px/1 var(--sans);
  padding: 7px 11px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.wb-tab:hover {
  color: #ffffff;
}

.wb-tab.is-active {
  background: var(--purple);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(100, 76, 224, 0.45);
}

.wb-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #6ee7b7;
}

.wb-urlbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
}

.wb-method {
  background: var(--purple-l);
  color: var(--purple-d);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10.5px;
}

.wb-url {
  color: var(--ink2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.wb-meta {
  color: var(--muted);
  white-space: nowrap;
  font-size: 11px;
}

.wb-body {
  padding: 24px 22px;
  min-height: 204px;
}

.wb-product {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 22px;
  align-items: center;
}

.prod-thumb svg {
  display: block;
  width: 100%;
  height: auto;
}

.prod-kicker {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 5px;
}

.prod-detail h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.prod-price-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.price-old {
  color: #9ba1b4;
  font-size: 14px;
}

.price-now {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.delta-down {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--green-l);
  color: var(--green);
  padding: 2px 7px;
  border-radius: 5px;
}

.selector-box {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1.5px dashed var(--purple);
  background: var(--purple-xl);
  border-radius: 10px;
}

.selector-label {
  position: absolute;
  top: -10px;
  left: 10px;
  background: var(--purple);
  color: #fff;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.state-pill {
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}

.state-pill.is-in {
  background: var(--green-l);
  color: var(--green);
}

.state-from {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
}

/* Text diff panel inside workbench */
.wb-code-diff {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
}

.code-line {
  display: flex;
  gap: 12px;
  padding: 7px 11px;
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink2);
  overflow-x: auto;
}

.code-line span {
  color: #9ba1b4;
  user-select: none;
  flex: none;
}

.code-line.is-del {
  background: var(--red-l);
  color: var(--red);
}

.code-line.is-add {
  background: var(--green-l);
  color: var(--green);
}

/* Image diff panel inside workbench */
.wb-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: center;
}

.wb-img-frame {
  margin: 0;
}

.wb-img-frame svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.wb-img-frame figcaption {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* Workbench footer diff & dispatch */
.wb-diff-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  background: #fcfcfe;
}

.wb-diff-col {
  padding: 12px 18px;
}

.wb-diff-col + .wb-diff-col {
  border-left: 1px solid var(--line);
}

.diff-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 4px;
}

.wb-diff-col code {
  font-size: 12px;
  color: var(--ink2);
}

del {
  background: var(--red-l);
  color: var(--red);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  padding: 1px 6px;
  border-radius: 4px;
}

ins {
  background: var(--green-l);
  color: var(--green);
  text-decoration: none;
  padding: 1px 6px;
  border-radius: 4px;
}

.wb-dispatch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: var(--obsidian-2);
  color: #d7d9ec;
  font-size: 12px;
}

.dispatch-badge {
  background: rgba(20, 134, 92, 0.24);
  color: #6ee7b7;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
}

.dispatch-channels {
  font-weight: 600;
  color: #fff;
}

.dispatch-rule {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: #a6aac7;
}

/* Channels strip */
.channels-strip {
  border-block: 1px solid var(--line);
  background: #fff;
}

.channels-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 0;
}

.channels-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.channels-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.channels-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
}

.channels-list svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--purple);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Monitors section */
.monitors {
  background: #fff;
}

.monitor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.monitor-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 20px 26px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.monitor-card:hover {
  transform: translateY(-4px);
  border-color: #d3caf6;
  box-shadow: var(--shadow-md);
}

.monitor-preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 15px;
  min-height: 174px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mp-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}

.mp-bar em {
  font-style: normal;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--purple-l);
  color: var(--purple-d);
}

.mp-bar em.ok {
  background: var(--green-l);
  color: var(--green);
}

.mp-snippet {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
}

.mp-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-row.muted {
  color: var(--muted);
}

.mp-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mp-thumb svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.mp-thumb span {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}

.mp-price-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-variant-numeric: tabular-nums;
}

.mp-price-head s {
  color: #9ba1b4;
  font-size: 14px;
}

.mp-price-head strong {
  font-size: 27px;
  letter-spacing: -0.04em;
}

.mp-price-head span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--green-l);
  color: var(--green);
  padding: 2px 7px;
  border-radius: 5px;
}

.mp-chart {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 10px;
}

.mono-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--purple);
}

.monitor-copy h3 {
  font-size: 22px;
  margin: 8px 0 10px;
}

.monitor-copy > p {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 18px;
}

.mini-list {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
}

.mini-list li::before {
  content: "→";
  color: var(--purple);
  margin-right: 8px;
}

/* How it works pipeline */
.workflow {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
}

.pipe-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}

.pipe-index {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--purple);
  background: var(--purple-l);
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.pipe-step h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.pipe-step p {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 22px;
}

.pipe-mock {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink2);
  overflow: hidden;
}

.pm-dim {
  color: #9ba1b4;
}

.pipe-mock code {
  color: var(--purple-d);
  font-weight: 700;
}

.pm-ok {
  margin-left: auto;
  font-style: normal;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  background: var(--green-l);
  color: var(--green);
  padding: 2px 7px;
  border-radius: 5px;
}

.pm-alert {
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.pm-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--purple);
  color: #fff;
  font-size: 13px;
}

.pm-alert time {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}

/* Capabilities Bento */
.capabilities {
  background: #fff;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.bcard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.bcard:hover {
  transform: translateY(-3px);
  border-color: #d3caf6;
  box-shadow: var(--shadow-md);
}

.span-7 {
  grid-column: span 7;
}

.span-6 {
  grid-column: span 6;
}

.span-5 {
  grid-column: span 5;
}

.horizontal {
  flex-direction: row;
  align-items: center;
  gap: 32px;
}

.horizontal .bcard-copy,
.horizontal .bcard-vis {
  flex: 1;
}

.bcard-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.bcard-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--purple);
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bcard h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.bcard p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
}

.bcard.is-dark {
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: #fff;
}

.bcard.is-dark:hover {
  border-color: #36395c;
}

.bcard.is-dark .bcard-icon {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
}

.bcard.is-dark .bcard-icon svg {
  stroke: #cfc4ff;
}

.bcard.is-dark p {
  color: #b1b5cc;
}

.bcard-note {
  font-size: 12px !important;
  color: #8287a5 !important;
}

/* DOM target visual */
.dom-skel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px;
}

.bar {
  display: block;
  height: 8px;
  background: #e7e9f2;
  border-radius: 6px;
  margin: 10px 0;
}

.w75 { width: 75%; }
.w65 { width: 65%; }
.w45 { width: 45%; }
.w35 { width: 35%; }

.dom-target {
  position: relative;
  margin: 18px 0;
  padding: 16px 14px;
  border: 1.5px solid var(--purple);
  background: var(--purple-xl);
  border-radius: 10px;
  box-shadow: 0 0 0 4px rgba(100, 76, 224, 0.1);
}

.dom-chip {
  position: absolute;
  top: -10px;
  left: 10px;
  background: var(--purple);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.dom-target strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
}

.dom-target p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink2);
}

mark {
  background: var(--amber);
  color: var(--ink);
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 700;
}

/* Browser steps visual */
.step-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 600;
  color: #ebedfa;
}

.step-item.is-done span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(20, 134, 92, 0.25);
  color: #6ee7b7;
  font-size: 11px;
}

.step-item.is-run {
  border-color: rgba(167, 150, 255, 0.45);
  background: rgba(100, 76, 224, 0.18);
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(207, 196, 255, 0.3);
  border-top-color: #cfc4ff;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Conditions & Schedule visuals */
.rule-stack,
.schedule-vis {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.rule-row,
.sched-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13.5px;
  color: var(--ink2);
}

.op {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: var(--purple);
  color: #fff;
  border-radius: 5px;
  padding: 3px 8px;
  min-width: 44px;
  text-align: center;
}

.rule-row b {
  color: var(--ink);
}

.rule-row code,
.sched-row code {
  background: var(--purple-l);
  color: var(--purple-d);
  font-size: 12px;
  font-weight: 700;
  border-radius: 5px;
  padding: 2px 8px;
}

.sched-row {
  justify-content: space-between;
}

.sched-label {
  font-weight: 650;
  color: var(--ink);
  font-size: 13px;
}

.sched-row code.ok-code {
  background: var(--green-l);
  color: var(--green);
}

/* Use cases */
.cases {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.case-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.case-card:hover {
  border-color: #d3caf6;
  box-shadow: var(--shadow-md);
}

.case-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--purple-l);
  margin-bottom: 22px;
}

.case-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--purple);
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.case-card h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.case-card p {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 24px;
}

.case-example {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-example span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.case-example code {
  font-size: 12px;
  color: var(--ink2);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 7px;
}

/* Pricing */
.pricing {
  background: linear-gradient(180deg, #ffffff 0%, var(--purple-xl) 100%);
  border-top: 1px solid var(--line);
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  align-items: stretch;
  max-width: 1040px;
  margin: 0 auto;
}

.plans .loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 32px 0;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.plan.featured {
  border: 2px solid var(--purple);
  box-shadow: 0 28px 64px -26px rgba(100, 76, 224, 0.42);
}

.plan.featured::before {
  content: "Most popular";
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--purple);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 999px;
}

.plan h3 {
  font-size: 21px;
  margin-bottom: 6px;
}

.plan > p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px;
}

.plan-price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin: 14px 0 4px;
  font-variant-numeric: tabular-nums;
}

.plan-price small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}

.plan ul {
  margin: 20px 0 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14px;
  color: var(--ink2);
}

.plan li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.plan li::before {
  content: "✓";
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-l);
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  transform: translateY(-1px);
}

.plan li.off {
  color: #9ba1b4;
}

.plan li.off::before {
  content: "–";
  background: var(--surface);
  color: #b0b5c7;
}

.plan .button {
  margin-top: auto;
  width: 100%;
}

.plan:not(.featured) .button {
  background: #fff;
  color: var(--purple-d);
  border-color: #d6cff6;
  box-shadow: none;
}

.plan:not(.featured) .button:hover {
  background: var(--purple-l);
  border-color: #c2b6f3;
}

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 24px 0 0;
}

/* FAQ */
.faq {
  background: var(--purple-xl);
  padding-top: 48px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 64px;
  align-items: start;
}

.faq-intro .sub {
  font-size: 15.5px;
}

.faq-intro .sub a {
  color: var(--purple-d);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq details[open] {
  border-color: #cfc6f6;
  box-shadow: 0 12px 28px -16px rgba(24, 20, 62, 0.2);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 19px 0;
  font-weight: 700;
  font-size: 15.5px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple-l);
  color: var(--purple);
  font-size: 18px;
  font-weight: 600;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 20px;
  padding-right: 40px;
}

/* Final CTA */
.final {
  padding: 32px 0 88px;
  background: linear-gradient(180deg, var(--purple-xl) 0%, #ffffff 58%);
}

.final-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--obsidian);
  color: #fff;
  border-radius: 26px;
  padding: 84px 32px;
  box-shadow: var(--shadow-lg);
}

.final-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(112, 88, 220, 0.38), transparent 62%),
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: auto, 38px 38px, 38px 38px;
  pointer-events: none;
}

.final-card .eyebrow {
  position: relative;
  color: #bfb3ff;
}

.final-card h2 {
  position: relative;
  font-size: clamp(32px, 4.4vw, 54px);
  margin-bottom: 16px;
}

.final-sub {
  position: relative;
  color: #b4b8d1;
  font-size: 16.5px;
  max-width: 480px;
  margin: 0 auto 32px;
}

.final-card .actions {
  position: relative;
}

/* Footer */
.footer {
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 56px 0 64px;
}

.foot-brand p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 280px;
}

.foot-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.foot-col a {
  display: block;
  font-size: 14px;
  color: var(--ink2);
  padding: 5px 0;
  transition: color 0.15s ease;
}

.foot-col a:hover {
  color: var(--purple);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .workbench {
    max-width: 660px;
    width: 100%;
    margin: 0 auto;
  }

  .monitor-grid,
  .pipeline,
  .case-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .span-7,
  .span-6,
  .span-5 {
    grid-column: span 1;
  }

  .horizontal {
    flex-direction: column;
    align-items: stretch;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 820px) {
  .nav {
    display: none;
  }

  .header-inner {
    height: 64px;
    gap: 16px;
  }

  .section {
    padding: 76px 0;
  }

  .section-head.split {
    display: block;
  }

  .section-head.split .sub {
    margin-top: 8px;
  }

  .channels-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }

  .hero {
    padding: 46px 0 68px;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .wb-topbar {
    flex-wrap: wrap;
  }

  .wb-live {
    display: none;
  }

  .wb-product {
    grid-template-columns: 1fr;
  }

  .prod-thumb {
    max-width: 96px;
  }

  .wb-diff-strip {
    grid-template-columns: 1fr;
  }

  .wb-diff-col + .wb-diff-col {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .dispatch-rule {
    margin-left: 0;
    width: 100%;
  }

  .signin {
    display: none;
  }

  .actions .button.big {
    width: 100%;
  }

  .final-card {
    padding: 60px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
