:root {
  --bg: #0e1412;
  --panel: #151d1a;
  --panel-2: #1c2622;
  --line: #2a3a34;
  --ink: #e7f4ee;
  --muted: #8aa399;
  --mint: #3dd6a3;
  --mint-2: #1fa97a;
  --warn: #ff6a3d;
  --gold: #e2c36b;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --sans: "IBM Plex Sans", "PingFang SC", "Noto Sans SC", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.04em; }
.mark {
  width: 28px; height: 28px; border-radius: 6px; background: var(--mint);
  color: #06281c; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 700;
}
.nav { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; background: var(--mint); color: #06281c; font-weight: 700;
  padding: 10px 16px; border-radius: 8px; cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.warn { background: var(--warn); color: #1a0a04; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; padding: 28px 0 72px; align-items: center; }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint); }
h1 { font-size: clamp(36px, 5.4vw, 64px); letter-spacing: -0.05em; line-height: 0.95; margin: 10px 0 16px; }
.lede { color: var(--muted); font-size: 17px; max-width: 46ch; }
.hero-actions { display: flex; gap: 10px; margin: 24px 0 12px; flex-wrap: wrap; }
.note { color: var(--muted); font-size: 13px; }
.canvas {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; min-height: 390px; box-shadow: var(--shadow); position: relative;
}
.node {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; width: 82%;
}
.node.trigger { border-color: #3d6bff; }
.node.action { border-color: var(--mint); margin-left: 18%; }
.pipe { width: 2px; height: 28px; background: var(--line); margin: 0 auto; }
.node .t { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.node h3 { margin: 4px 0 0; font-size: 16px; }
.cost {
  position: absolute; right: 16px; top: 16px; background: #2a120c; color: #ffb199;
  border: 1px solid #5a2418; border-radius: 8px; padding: 8px 10px; font-size: 12px; font-family: var(--mono);
}
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.03em; }
.who { color: var(--muted); font-size: 12px; font-family: var(--mono); }
.section { padding: 72px 0; }
h2 { font-size: clamp(26px, 3.6vw, 42px); letter-spacing: -0.04em; margin: 0 0 10px; }
.sub { color: var(--muted); margin: 0 0 28px; max-width: 62ch; }
.three, .tpls, .pricing { display: grid; gap: 14px; }
.three { grid-template-columns: repeat(3, 1fr); }
.tpls { grid-template-columns: repeat(4, 1fr); }
.pricing { grid-template-columns: 1fr 1.2fr; }
.card, .price {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px;
}
.card h3, .price h3 { margin: 0 0 8px; }
.mini { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.price.featured { background: #12352b; border-color: var(--mint-2); }
.amt { font-size: 52px; letter-spacing: -0.06em; margin: 6px 0; }
ul { color: var(--muted); padding-left: 18px; }
footer { display: flex; justify-content: space-between; padding: 28px 0 48px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.app-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(14,20,18,0.92); z-index: 8;
}
.tabs { display: flex; gap: 6px; }
.tab { background: transparent; border: 0; color: var(--muted); padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.tab.active { background: var(--panel-2); color: var(--ink); }
.app { width: min(1180px, calc(100% - 28px)); margin: 18px auto 60px; }
.panel { display: none; }
.panel.show { display: block; }
.split { display: grid; grid-template-columns: 280px 1fr 300px; gap: 14px; min-height: 620px; }
.col { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; overflow: auto; }
.wf {
  display: block; width: 100%; text-align: left; background: transparent; border: 1px solid transparent;
  padding: 10px; border-radius: 10px; cursor: pointer; margin-bottom: 6px;
}
.wf.active, .wf:hover { background: var(--panel-2); border-color: var(--line); }
.wf b { display: block; }
.wf span { color: var(--muted); font-size: 12px; }
.stage { display: flex; flex-direction: column; align-items: stretch; padding: 28px 18px; min-height: 560px; justify-content: center; }
label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 6px; }
input, select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; outline: none;
}
textarea { min-height: 72px; resize: vertical; }
.log {
  font-family: var(--mono); font-size: 12px; background: #0a100e; border-radius: 10px; padding: 12px; min-height: 180px;
  white-space: pre-wrap; color: #b7e8cf;
}
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat b { display: block; font-size: 26px; letter-spacing: -0.04em; }
.run {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
  display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 10px; align-items: center;
}
.ok { color: var(--mint); }
.bad { color: var(--warn); }
.step { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); margin-top: 6px; flex: none; }
.dot.wait { background: var(--gold); }
.dot.fail { background: var(--warn); }
.tpl { cursor: pointer; }
.hint { color: var(--muted); font-size: 12px; }
.empty { padding: 40px; text-align: center; color: var(--muted); }
@media (max-width: 980px) {
  .hero, .three, .tpls, .pricing, .split, .strip .wrap, .run { grid-template-columns: 1fr; }
  .nav { display: none; }
  .node.action { margin-left: 0; }
}
