/* Home page specific styles */

/* ===== Hero ===== */
.hero {
  padding: 80px 0 0;
  border-top: none;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}

.hero-wf {
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-1);
}
.hero-eyebrow b { color: var(--accent); font-weight: 500; }

.hero h1 {
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 28px 0 24px;
  font-weight: 500;
}
.hero h1 em {
  font-style: normal;
  color: var(--fg-3);
  position: relative;
}
.hero h1 em::before {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  top: 50%;
  height: 1px;
  background: var(--border);
}
.hero h1 .accent {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85em;
  letter-spacing: -0.02em;
}
.hero-sub {
  color: var(--fg-2);
  font-size: 17px;
  max-width: 480px;
  line-height: 1.55;
  margin: 0 0 32px;
}
.hero-cta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 40px;
}
.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.hero-meta > div {
  padding-right: 16px;
  border-right: 1px solid var(--border);
}
.hero-meta > div:last-child {
  border-right: 0;
}
.hero-meta b {
  display: block;
  font-family: var(--mono);
  font-size: 22px;
  color: var(--fg);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.hero-meta span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-meta-registry span {
  text-transform: none;
}

/* ===== Workflow canvas (mirrors Staq Workflow editor) ===== */
.wf-canvas {
  /* Design tokens from src/styles/wf-vars.css */
  --wf-bg-color: #1F2629;
  --wf-panel-bg-color: rgba(24, 30, 32, 0.9);
  --wf-panel-border-color: #2B3439;
  --wf-control-color: #F9FAFB;
  --wf-control-bg-color: #3D525C;
  --wf-control-bg-color-hover: #313e47;
  --wf-control-icon-color: #909090;
  --wf-text-color: #fff;
  --wf-text-color-secondary: #C2CFD6;
  --wf-color-error: #F7796E;
  --wf-color-active: #4084F8;
  --wf-color-success: #09C60F;
  --wf-color-warning: #FD9527;
  --wf-bg-dot-color: #2a3338;
  --wf-node-bg-color: #3D525C;
  --wf-node-bd-color: #526D7A;
  --wf-node-bd-radius: 12px;
  --wf-node-trigger-left-bd-radius: 18px;
  --wf-node-main-size: 60px;
  --wf-node-icon-size: 28px;
  --wf-node-label-fz: 14px;
  --wf-node-label-fw: 600;
  --wf-node-subtitle-fz: 12px;
  --wf-node-subtitle-color: #A3B8C2;
  --wf-node-status-icon-size: 12px;
  --wf-edge-color: #A3B8C2;
  --wf-execute-tag-color: #FD9527;

  position: relative;
  aspect-ratio: 5 / 4;
  border: 1px solid var(--wf-panel-border-color);
  background: var(--wf-bg-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--wf-text-color);
}
.wf-canvas::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 40px;
  bottom: 28px;
  z-index: 0;
  opacity: 0.88;
  border: none;
  /* не вешать .panel-ticks на .wf-canvas: у .panel-ticks::before заданы width/height 6px и перекрывают сетку */
  background-image: radial-gradient(
    circle at center,
    var(--wf-bg-dot-color) 0.75px,
    transparent 1.12px
  );
  background-size: 11px 11px;
  pointer-events: none;
}
.wf-chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--wf-panel-bg-color);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--wf-panel-border-color);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--wf-text-color-secondary);
  z-index: 3;
}
.wf-chrome .back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--wf-panel-border-color);
  border-radius: 4px;
  color: var(--wf-text-color-secondary);
  background: transparent;
}
.wf-chrome .title-pill {
  padding: 5px 12px;
  border: 1px solid var(--wf-panel-border-color);
  border-radius: 4px;
  color: var(--wf-text-color);
  background: var(--wf-control-bg-color);
}
.wf-chrome .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.wf-chrome .toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--wf-panel-border-color);
  border-radius: 999px;
  color: var(--wf-text-color-secondary);
  font-size: 11px;
}
.wf-chrome .toggle .sw {
  width: 22px; height: 12px; border-radius: 999px;
  background: #41C061;
  position: relative;
}
.wf-chrome .toggle .sw::after {
  content: ''; position: absolute; right: 1px; top: 1px;
  width: 10px; height: 10px; border-radius: 50%; background: #fff;
}
.wf-chrome .chip {
  padding: 5px 10px; border: 1px solid var(--wf-panel-border-color); border-radius: 4px;
  color: var(--wf-text-color-secondary); font-size: 11px;
  background: transparent;
}
.wf-chrome .chip.primary {
  background: var(--wf-color-active);
  color: #fff;
  border-color: var(--wf-color-active);
  font-weight: 600;
}

/* left toolbar icons */
.wf-tools {
  position: absolute;
  left: 10px;
  top: 52px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 3;
}
.wf-tools span {
  width: 24px; height: 24px;
  border: 1px solid var(--wf-panel-border-color);
  border-radius: 4px;
  background: var(--wf-control-bg-color);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px;
  color: var(--wf-control-icon-color);
}
.wf-add {
  position: absolute;
  right: 12px; top: 52px;
  width: 28px; height: 28px;
  border: 1px solid var(--wf-panel-border-color);
  border-radius: 4px;
  background: var(--wf-control-bg-color);
  display: flex; align-items: center; justify-content: center;
  color: var(--wf-text-color-secondary);
  font-size: 14px;
  z-index: 3;
}

/* Test workflow floating button */
.wf-test {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 14px;
  background: var(--wf-execute-tag-color);
  color: #2a1204;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  z-index: 3;
  box-shadow: 0 8px 20px -10px rgba(253, 149, 39, 0.6);
}
.wf-test b { font-weight: 500; opacity: 0.7; font-size: 10px; display: block; }
.wf-test .play {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  color: #2a1204;
  font-size: 9px;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 70%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 70%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
}

.wf-inner {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  bottom: 28px;
  overflow: hidden;
  z-index: 1;
}

.wf-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.wf-node {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 96px;
  transition: transform .2s;
}
.wf-node-box {
  width: var(--wf-node-main-size);
  height: var(--wf-node-main-size);
  background: var(--wf-node-bg-color);
  border: 1px solid var(--wf-node-bd-color);
  border-radius: var(--wf-node-bd-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color .3s, box-shadow .3s, transform .2s;
}
/* Trigger node: rounded left corners */
.wf-node.trigger .wf-node-box {
  border-top-left-radius: var(--wf-node-trigger-left-bd-radius);
  border-bottom-left-radius: var(--wf-node-trigger-left-bd-radius);
}
.wf-node .n-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--wf-node-icon-size);
  height: var(--wf-node-icon-size);
  line-height: 1;
}
.wf-node .n-icon svg { display: block; width: var(--wf-node-icon-size); height: var(--wf-node-icon-size); }
.wf-node .n-icon img {
  display: block;
  width: var(--wf-node-icon-size);
  height: var(--wf-node-icon-size);
  object-fit: contain;
}
/* Status icon in bottom-right corner (like CanvasNode .statusContainer) */
.wf-node .n-check {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: var(--wf-node-status-icon-size);
  height: var(--wf-node-status-icon-size);
  border-radius: 50%;
  background: var(--wf-color-success);
  display: flex; align-items: center; justify-content: center;
  color: #0a2a0b;
  font-size: 8px;
  font-weight: 700;
}
.wf-node.active .wf-node-box {
  border-color: var(--wf-color-active);
  box-shadow: 0 0 0 3px rgba(64, 132, 248, 0.16);
}
.wf-node.done .wf-node-box {
  border-color: var(--wf-color-success);
}
.wf-node .n-title {
  color: var(--wf-text-color);
  font-size: var(--wf-node-label-fz);
  font-weight: var(--wf-node-label-fw);
  text-align: center;
  line-height: 1.25;
  font-family: var(--sans);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.wf-node .n-sub {
  font-family: var(--sans);
  font-size: var(--wf-node-subtitle-fz);
  color: var(--wf-node-subtitle-color);
  text-align: center;
  line-height: 1.2;
}
.wf-node.done .n-sub .ms { color: var(--wf-color-success); }
/* Handle dots on node box (output right, input left) */
.wf-node-box::after,
.wf-node-box::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--wf-edge-color);
  transform: translateY(-50%);
  z-index: 1;
}
.wf-node-box::after { right: -4px; }
.wf-node-box::before { left: -4px; }
.wf-node.trigger .wf-node-box::before { display: none; }

/* Right-side port labels on nodes */
.wf-node .n-ports {
  position: absolute;
  left: calc(50% + 30px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  pointer-events: none;
}
.wf-node .n-port {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--fg-3);
  letter-spacing: 0.03em;
}
.wf-node .n-port::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-2);
}
.wf-node .n-port.on::before {
  background: var(--accent);
  border-color: var(--accent);
}

.wf-footer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 28px;
  border-top: 1px solid var(--wf-panel-border-color);
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--wf-text-color-secondary);
  gap: 16px;
  background: var(--wf-panel-bg-color);
  z-index: 3;
}
.wf-footer .step {
  color: var(--wf-text-color);
}
.wf-footer .bar {
  flex: 1;
  height: 2px;
  background: #283034;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.wf-footer .bar > span {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--wf-color-active);
  transition: width .6s ease;
}

/* edge colors */
.wf-edge {
  fill: none;
  stroke: var(--wf-edge-color, #A3B8C2);
  stroke-width: 1;
}
.wf-edge.active {
  stroke: var(--wf-color-active, #4084F8);
  stroke-width: 1.5;
  animation: dash 0.6s linear infinite;
  stroke-dasharray: 3 3;
}
.wf-edge.done {
  stroke: var(--wf-color-success, #09C60F);
  stroke-width: 1.2;
}
@keyframes dash { to { stroke-dashoffset: -12; } }

/* Hero workflow canvas — светлая тема */
[data-theme="light"] .wf-canvas {
  --wf-bg-color: oklch(0.93 0.008 250);
  --wf-panel-bg-color: color-mix(in oklch, oklch(0.99 0.002 250) 88%, oklch(0.92 0.01 250));
  --wf-panel-border-color: oklch(0.84 0.012 250);
  --wf-control-color: oklch(0.22 0.02 250);
  --wf-control-bg-color: oklch(0.91 0.01 250);
  --wf-control-bg-color-hover: oklch(0.86 0.012 250);
  --wf-control-icon-color: oklch(0.48 0.02 250);
  --wf-text-color: oklch(0.22 0.02 250);
  --wf-text-color-secondary: oklch(0.46 0.02 250);
  --wf-bg-dot-color: oklch(0.86 0.012 250);
  --wf-node-bg-color: oklch(0.99 0.003 250);
  --wf-node-bd-color: oklch(0.82 0.015 250);
  --wf-node-subtitle-color: oklch(0.48 0.02 250);
  --wf-edge-color: oklch(0.62 0.03 250);
}
[data-theme="light"] .wf-footer .bar {
  background: oklch(0.86 0.012 250);
}
[data-theme="light"] .wf-node.active .wf-node-box {
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--wf-color-active) 28%, transparent);
}

/* ===== Terminal hero variant ===== */
.term-hero { font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--fg-2); padding: 20px; padding-top: 52px; height: 100%; overflow: hidden; }
.term-hero .prompt { color: var(--accent); }
.term-hero .c-dim { color: var(--fg-4); }
.term-hero .c-ok { color: var(--ok); }
.term-hero .c-warn { color: var(--warn); }

/* ASCII hero variant */
.ascii-hero {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.2;
  color: var(--fg-3);
  white-space: pre;
  padding: 52px 20px 30px;
  height: 100%;
  overflow: hidden;
}
.ascii-hero b { color: var(--accent); font-weight: normal; }

/* ===== Logo strip ===== */
.logos {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logos-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 24px;
}
.logos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  align-items: center;
}
.logos-grid > div {
  padding: 16px 24px;
  text-align: center;
  color: var(--fg-3);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-right: 1px solid var(--border);
  transition: color .15s;
}
.logos-grid > div:last-child { border-right: 0; }
.logos-grid > div:hover { color: var(--fg); }

/* ===== Features grid ===== */
.features {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feat {
  background: var(--bg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  position: relative;
}
.feat-1 { grid-column: span 6; }
.feat-2 { grid-column: span 6; }
.feat-3 { grid-column: span 4; }
.feat-4 { grid-column: span 4; }
.feat-5 { grid-column: span 4; }
.feat-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-4);
  letter-spacing: 0.1em;
}
.feat h3 {
  font-size: 20px;
  margin: 0;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.feat p {
  color: var(--fg-2);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}
.feat-visual {
  margin-top: auto;
  height: 100px;
  border: 1px solid var(--border);
  background: var(--bg-1);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
}
.feat-visual .tick {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-4);
  letter-spacing: 0.08em;
}
.feat-visual .tick.tl { top: 8px; left: 10px; }
.feat-visual .tick.br { bottom: 8px; right: 10px; color: var(--accent); }

/* Feat 01 — имитация drag + connect узлов (края → сближение → связь → разрыв) */
.feat-1 .feat-visual {
  height: 116px;
}
.fev-canvas {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 26px;
  bottom: 8px;
  border-radius: 4px;
  background: var(--bg-2);
  overflow: hidden;
}
.fev-grid {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image: radial-gradient(color-mix(in oklch, var(--fg-4) 55%, transparent) 0.6px, transparent 0.6px);
  background-size: 14px 14px;
}
.fev-strip {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  animation: fev-strip-pull 9s ease-in-out infinite;
}
.fev-node {
  position: relative;
  flex: 0 0 auto;
  width: 56px;
  height: 34px;
  border-radius: 6px;
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-sizing: border-box;
  animation: fev-node-state 9s ease-in-out infinite;
}
.fev-node-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--fg-2);
  letter-spacing: 0.02em;
}
.fev-port {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  box-sizing: border-box;
}
.fev-port--out {
  right: -4px;
  border-color: color-mix(in oklch, var(--accent) 45%, var(--border-2));
}
.fev-port--in {
  left: -4px;
}
.fev-wire {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(120px, calc(100% - 140px));
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background: var(--accent);
  z-index: 1;
  transform: translate(-50%, 0) scaleX(0);
  transform-origin: center;
  opacity: 0;
  pointer-events: none;
  animation: fev-wire-sync 9s ease-in-out infinite;
}
@keyframes fev-strip-pull {
  0%,
  6% {
    padding-left: 2px;
    padding-right: 2px;
  }
  30%,
  70% {
    padding-left: 26%;
    padding-right: 26%;
  }
  94%,
  100% {
    padding-left: 2px;
    padding-right: 2px;
  }
}
@keyframes fev-wire-sync {
  0%,
  28% {
    transform: translate(-50%, 0) scaleX(0);
    opacity: 0;
  }
  34%,
  56% {
    transform: translate(-50%, 0) scaleX(1);
    opacity: 1;
  }
  62%,
  100% {
    transform: translate(-50%, 0) scaleX(0);
    opacity: 0;
  }
}
@keyframes fev-node-state {
  0%,
  8% {
    box-shadow: 0 5px 14px color-mix(in oklch, var(--fg) 10%, transparent);
    border-color: var(--border-2);
  }
  32%,
  58% {
    box-shadow: none;
    border-color: color-mix(in oklch, var(--accent) 38%, var(--border-2));
  }
  92%,
  100% {
    box-shadow: 0 5px 14px color-mix(in oklch, var(--fg) 10%, transparent);
    border-color: var(--border-2);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fev-strip,
  .fev-wire,
  .fev-node {
    animation: none;
  }
  .fev-strip {
    padding-left: 26%;
    padding-right: 26%;
  }
  .fev-wire {
    transform: translate(-50%, 0) scaleX(1);
    opacity: 1;
  }
  .fev-node {
    box-shadow: none;
    border-color: color-mix(in oklch, var(--accent) 38%, var(--border-2));
  }
}

/* Feat visuals — schematic */
.schema-code {
  position: absolute; inset: 10px; top: 26px;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 10px;
  color: var(--fg-3);
}
.schema-code .l { display: flex; gap: 8px; }
.schema-code .l .no { color: var(--fg-4); width: 14px; text-align: right; }
.schema-code .kw { color: var(--accent); }
.schema-code .str { color: var(--fg-2); }

.schema-chart {
  position: absolute; inset: 20px;
  display: flex; align-items: flex-end; gap: 6px;
}
.schema-chart > span {
  flex: 1;
  background: var(--bg-3);
  border-top: 2px solid var(--accent);
}

.schema-timeline {
  position: absolute; left: 12px; right: 12px; top: 50%; transform: translateY(-50%);
  height: 2px; background: var(--bg-3);
}
.schema-timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 65%; background: var(--accent);
}
.schema-timeline > span {
  position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
}

.schema-lock {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 8px, var(--border) 8px 9px);
  color: var(--fg-3);
}
.schema-lock .pad {
  background: var(--bg-1); border: 1px solid var(--border-2); padding: 6px 10px;
  display: flex; align-items: center; gap: 6px;
}
.schema-lock .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

/* ===== Integrations ===== */
.integ-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.integ-cell {
  aspect-ratio: 1;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  transition: background .15s;
  cursor: pointer;
  position: relative;
}
.integ-cell:hover { background: var(--bg-1); }
.integ-cell:hover .integ-label { color: var(--fg); }
.integ-cell.more {
  background: var(--bg-1);
  color: var(--fg-3);
}
.integ-ico {
  width: 36px; height: 36px;
  background: none;
  border: none;
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--fg-2);
  overflow: hidden;
  padding: 0;
  flex-shrink: 0;
}
.integ-ico img,
.integ-ico .integ-svg,
.integ-ico .integ-svg > svg {
  width: 100%; height: 100%;
  display: block;
  object-fit: contain;
}
.integ-ico.dark img,
.integ-ico.dark .integ-svg > svg {
  filter: brightness(0) invert(0.82);
}
.integ-ico.more { font-size: 12px; }
.integ-ico.accent { }
.integ-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color .15s;
}
.integ-cell .corner {
  position: absolute;
  top: 6px; right: 6px;
  width: 4px; height: 4px;
  background: var(--ok);
  border-radius: 50%;
  opacity: 0.6;
}

/* ===== Use cases ===== */
.usecases {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  min-width: 0;
}
.uc-tabs { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.uc-tab {
  text-align: left;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  border-left: 2px solid var(--border);
  color: var(--fg-3);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.uc-tab:hover { color: var(--fg-2); }
.uc-tab.active {
  color: var(--fg);
  border-left-color: var(--accent);
  background: var(--bg-1);
}
.uc-tab .num { color: var(--fg-4); font-size: 10px; }
.uc-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--bg-1);
  min-height: 420px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}
.uc-panel h3 {
  font-size: 26px;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.uc-panel p {
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 0 24px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.uc-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 28px;
  min-width: 0;
}
.uc-stat {
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius);
  min-width: 0;
}
.uc-stat b {
  display: block;
  font-family: var(--mono);
  font-size: 24px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.uc-stat span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.uc-flow {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
}
.uc-flow .step {
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 11px;
  border-radius: var(--radius);
  white-space: nowrap;
  background: var(--bg);
  color: var(--fg-2);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  max-width: 100%;
}
.uc-flow .step .k { color: var(--fg-4); }
.uc-flow .arr {
  color: var(--fg-4);
  padding: 0 10px;
  font-family: var(--mono);
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.price {
  padding: 32px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg);
  position: relative;
}
.price:last-child { border-right: 0; }
.price.featured { background: var(--bg-1); }
.price.featured::before {
  content: 'популярный';
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 3px 8px;
  border: 1px solid var(--accent);
  border-radius: 999px;
}
.price h3 {
  font-family: var(--mono);
  font-size: 14px;
  margin: 0;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0;
}
.price .p-desc { color: var(--fg-3); font-size: 13px; margin: 0; }
.price .p-amt {
  font-size: clamp(26px, 1.6vw + 14px, 36px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
  row-gap: 2px;
  margin: 8px 0 0;
}
.price .p-amt-main {
  white-space: nowrap;
}
.price .p-amt .per,
.price .p-amt small {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  font-weight: 400;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  margin-left: 0;
}
.price .p-tokens {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: -6px;
}
.price ul {
  list-style: none; padding: 0; margin: 20px 0 0;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.price ul li {
  font-size: 13px;
  color: var(--fg-2);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.price ul li::before {
  content: '→';
  color: var(--accent);
  font-family: var(--mono);
  flex: none;
  width: 12px;
}

/* ===== Testimonials ===== */
.testis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.testi {
  padding: 28px;
  border-right: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.testi:last-child { border-right: 0; }
.testi blockquote {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  letter-spacing: -0.01em;
  flex: 1;
}
.testi blockquote::before {
  content: '«';
  color: var(--accent);
  font-size: 32px;
  line-height: 0;
  position: relative;
  top: 10px;
  margin-right: 4px;
}
.testi-person {
  display: flex;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.testi-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-3);
  font-family: var(--mono); font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg);
  font-weight: 500;
}
.testi-person .who b { display: block; font-size: 13px; font-weight: 500; }
.testi-person .who span { font-family: var(--mono); font-size: 11px; color: var(--fg-3); }

/* ===== Security ===== */
.sec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sec-cell {
  background: var(--bg);
  padding: 24px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.sec-cell .k {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sec-cell b {
  font-size: 16px;
  display: block;
  margin-top: 4px;
  font-weight: 500;
}
.sec-cell p {
  color: var(--fg-3);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.sec-cell .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--fg-2);
  width: max-content;
  letter-spacing: 0.04em;
}

/* ===== Final CTA ===== */
.cta-final {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  background:
    linear-gradient(color-mix(in oklch, var(--border) 40%, transparent) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, color-mix(in oklch, var(--border) 40%, transparent) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--bg-1);
  position: relative;
  overflow: hidden;
}
.cta-final h2 {
  font-size: 44px;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
  line-height: 1;
  font-weight: 500;
}
.cta-final p {
  color: var(--fg-2);
  font-size: 16px;
  max-width: 440px;
  margin: 0 0 24px;
}
.cta-final .ctas { display: flex; gap: 10px; }
.cta-sticker {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  border: 1px dashed var(--border-2);
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cta-sticker .k { color: var(--fg-4); }
.cta-sticker code {
  background: var(--bg-2);
  padding: 8px 12px;
  border-radius: 3px;
  display: block;
  color: var(--accent);
  font-size: 12px;
}

/* Final CTA — мини-панель запусков (иллюстрация) */
.cta-sticker.cta-runboard {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--fg-2);
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.cta-runboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--bg-2) 70%, transparent);
}
.cta-runboard-title {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-4);
}
.cta-runboard-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-3);
}
.cta-runboard-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ok) 35%, transparent);
}
.cta-runboard-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}
.cta-runboard-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px 14px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 55%, transparent);
  font-size: 13px;
}
.cta-runboard-list li:last-child {
  border-bottom: 0;
}
.cta-rb-name {
  font-weight: 500;
  color: var(--fg);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cta-rb-ok {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--ok);
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--ok) 14%, transparent);
  white-space: nowrap;
}
.cta-rb-ms {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1100px) {
  .usecases {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .uc-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .uc-stat b {
    font-size: 22px;
  }
}

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-wf {
    margin-top: 28px;
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
  .features { grid-template-columns: repeat(6, 1fr); }
  .feat-1, .feat-2 { grid-column: span 6; }
  .feat-3, .feat-4, .feat-5 { grid-column: span 6; }
  .integ-grid { grid-template-columns: repeat(4, 1fr); }
  .pricing-grid, .testis { grid-template-columns: 1fr; }
  .price, .testi { border-right: 0; border-bottom: 1px solid var(--border); }
  .sec-grid { grid-template-columns: 1fr 1fr; }
  .cta-final { grid-template-columns: 1fr; padding: 48px 28px; }
  .cta-final h2 { font-size: 32px; }
  .logos-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Hero workflow — телефоны */
@media (max-width: 640px) {
  .hero-wf {
    max-width: none;
    margin-top: 20px;
  }
  .wf-canvas {
    --wf-node-main-size: 48px;
    --wf-node-icon-size: 24px;
    --wf-node-label-fz: 11px;
    --wf-node-subtitle-fz: 10px;
    aspect-ratio: 10 / 12;
  }
  .wf-node {
    width: 82px;
  }
  .wf-node .n-check {
    bottom: 4px;
    right: 4px;
    width: 11px;
    height: 11px;
    font-size: 7px;
  }
  .wf-chrome {
    padding: 0 8px;
    gap: 6px;
    font-size: 11px;
  }
  .wf-chrome .back {
    display: none;
  }
  .wf-chrome .toggle {
    display: none;
  }
  .wf-chrome .title-pill {
    min-width: 0;
    max-width: min(42vw, 160px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 4px 8px;
  }
  .wf-chrome .chip {
    padding: 4px 8px;
    font-size: 10px;
  }
  .wf-tools {
    left: 6px;
    top: 48px;
    gap: 2px;
  }
  .wf-tools span {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  .wf-add {
    right: 8px;
    top: 48px;
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .wf-test {
    bottom: 36px;
    padding: 5px 10px 5px 12px;
    font-size: 11px;
    max-width: calc(100% - 20px);
  }
  .wf-footer {
    padding: 0 8px;
    gap: 8px;
    font-size: 9px;
  }
  .wf-footer .step {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    padding-top: 48px;
  }
  .hero h1 {
    font-size: clamp(30px, 8.5vw, 52px);
    margin-top: 20px;
  }
  .hero-eyebrow {
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
    letter-spacing: 0.06em;
  }
  .hero-sub {
    font-size: 15px;
    margin-bottom: 24px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 28px;
  }
  .hero-cta .btn {
    justify-content: center;
    width: 100%;
  }
  .hero-meta {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 16px;
  }
  .hero-meta > div {
    padding-right: 0;
    padding-left: 0 !important;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
    margin-bottom: 2px;
  }
  .hero-meta > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .integ-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sec-grid {
    grid-template-columns: 1fr;
  }
  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .logos-grid > div {
    border-right: 1px solid var(--border);
    padding: 14px 16px;
    font-size: 13px;
  }
  .logos-grid > div:nth-child(2n) {
    border-right: 0;
  }
  .feat {
    padding: 22px 18px;
    min-height: 0;
  }
  .cta-final {
    padding: 36px 20px;
  }
  .cta-final h2 {
    font-size: clamp(26px, 7vw, 34px);
  }
  .cta-final .ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-final .ctas .btn {
    justify-content: center;
  }

  .uc-panel {
    padding: 22px 16px;
    min-height: 0;
    overflow-x: visible;
  }
  .uc-panel h3 {
    font-size: clamp(18px, 5.2vw, 22px);
  }
  .uc-flow {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    overflow-x: visible;
  }
  .uc-flow .arr {
    display: none;
  }
  .uc-flow .step {
    white-space: normal;
    flex-shrink: 1;
    flex-wrap: wrap;
  }
}
