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

  :root {
    --green: #00aa46;
    --green-dim: #007c25;
    --green-pale: #d5f5da;
    --green-deep: #001803;
    --green-text: #005b16;
    --bg: #f9fafb;
    --surface: #ffffff;
    --surface2: #f3f4f6;
    --border: #e5e7eb;
    --text: #111827;
    --text2: #4b5563;
    --text3: #9ca3af;
    --nav-bg: rgba(249,250,251,.88);
    --code-bg: #f3f4f6;
    --stats-bg: #001803;
    --stats-text: #8feea4;
    --font: 'Manrope', sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
  }

  [data-theme="dark"] {
    --bg: #0d1117;
    --surface: #161b22;
    --surface2: #1e2530;
    --border: #30363d;
    --text: #e6edf3;
    --text2: #8b949e;
    --text3: #484f58;
    --nav-bg: rgba(13,17,23,.88);
    --shadow: 0 1px 3px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.5);
    --code-bg: #1e2530;
    --stats-bg: #0a1f0d;
    --stats-text: #4cd676;
    --green-pale: rgba(0,170,70,.12);
    --green-text: #4cd676;
  }

  .theme-toggle {
    width: 52px; height: 28px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(245,158,11,.16), rgba(0,170,70,.16));
    border: 1px solid rgba(0,170,70,.35);
    cursor: pointer; position: relative;
    transition: background .25s, border-color .2s, transform .2s, box-shadow .2s;
    flex-shrink: 0; padding: 0 6px; outline: none;
    display: flex; align-items: center; justify-content: space-between;
    -webkit-tap-highlight-color: transparent;
    animation: toggleGlow 3s ease-in-out infinite;
  }
  [data-theme="dark"] .theme-toggle {
    background: linear-gradient(135deg, rgba(147,197,253,.16), rgba(0,170,70,.18));
    border-color: rgba(74,222,128,.35);
  }
  .theme-toggle:hover {
    transform: scale(1.08);
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(0,170,70,.12);
  }
  .theme-toggle:active { transform: scale(.97); }
  .theme-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
  @keyframes toggleGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,170,70,.28); }
    50% { box-shadow: 0 0 0 5px rgba(0,170,70,0); }
  }
  .theme-toggle .icon {
    width: 14px; height: 14px; position: relative; z-index: 1;
    transition: color .25s ease, opacity .25s ease;
  }
  .theme-icon-sun { color: #f59e0b; opacity: 1; }
  .theme-icon-moon { color: #93c5fd; opacity: .35; }
  [data-theme="dark"] .theme-icon-sun { opacity: .35; }
  [data-theme="dark"] .theme-icon-moon { opacity: 1; }
  .theme-toggle-thumb {
    position: absolute; top: 2px; left: 2px; z-index: 0;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.18);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
  }
  [data-theme="dark"] .theme-toggle-thumb { transform: translateX(24px); }

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background .3s, color .3s;
  }

  /* NAV */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    height: 64px;
    display: flex; align-items: center;
    transition: background .3s, border-color .3s;
  }
  .scroll-progress {
    position: fixed; top: 0; left: 0; z-index: 101;
    height: 3px; width: 0%;
    background: linear-gradient(90deg, #007c25, #00aa46, #4cd676);
    transition: width .12s linear;
    will-change: width;
  }
  @media (prefers-reduced-motion: reduce) {
    .scroll-progress { transition: none; }
  }
  .nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
  }
  .logo {
    font-size: 22px; font-weight: 700; letter-spacing: -0.5px;
    color: var(--text); text-decoration: none;
    display: flex; align-items: center; gap: 8px;
  }
  /* T-SC-NEW-LOGO: было 8px CSS-точка (заглушка), теперь реальный знак */
  .logo-icon { width: 28px; height: 28px; display: inline-block; flex-shrink: 0; }
  .nav-links { display: flex; align-items: center; gap: 32px; }
  .nav-links a { color: var(--text2); text-decoration: none; font-size: 15px; font-weight: 400; transition: color .2s; }
  .nav-links a:hover { color: var(--text); }
  .nav-cta { display: flex; align-items: center; gap: 8px; }
  /* T-SC-AUDIT: на ≤430px "Начать бесплатно"+тумблер темы+бургер не помещались —
     бургер (доступ к остальному меню на мобильном) уезжал за край экрана и был
     недоступен. Короткий текст экономит ~60px, полный остаётся на всех
     остальных ширинах. aria-label на <a> не меняется — скринридеру доступен
     полный текст независимо от видимого варианта. */
  .nav-cta-text-short { display: none; }
  .btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 20px; border-radius: 9px; font-size: 14px; font-weight: 500;
    font-family: var(--font); text-decoration: none; cursor: pointer;
    border: none; transition: all .18s ease; white-space: nowrap;
  }
  .btn-ghost { background: transparent; color: var(--text2); border: 1px solid var(--border); }
  .btn-ghost:hover { background: var(--surface); color: var(--text); }
  .btn-primary { background: var(--green); color: #fff; }
  .btn-primary:hover { background: var(--green-dim); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,170,70,.3); }
  .btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-sm); }

  /* Mobile nav burger */
  .nav-burger {
    display: none;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; width: 36px; height: 36px; flex-shrink: 0;
    background: transparent; border: 1px solid var(--border); border-radius: 8px;
    cursor: pointer; padding: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-burger span {
    display: block; width: 16px; height: 2px; border-radius: 2px;
    background: var(--text); transition: transform .25s ease, opacity .2s ease;
  }
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-burger:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
  .nav-link-mobile-only { display: none; }

  /* TICKER */
  .ticker-wrap { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 14px 0; background: var(--surface); margin-top: 64px; }
  .ticker { display: flex; gap: 0; width: max-content; animation: ticker 30s linear infinite; }
  .ticker-item { display: flex; align-items: center; gap: 10px; padding: 0 32px; font-size: 14px; font-weight: 500; color: var(--text2); white-space: nowrap; }
  .ticker-sep { color: var(--border); }
  @keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  /* HERO */
  .hero {
    padding-top: 96px; padding-bottom: 16px;
    max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px;
    text-align: center;
  }
  .badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--green-pale); color: var(--green-text);
    padding: 5px 14px; border-radius: 999px;
    font-size: 13px; font-weight: 500; margin-bottom: 16px;
    animation: fadeDown .6s ease both;
  }
  .hero h1 {
    font-size: clamp(28px, 4.5vw, 52px);
    font-weight: 800; letter-spacing: -1.5px; line-height: 1.1;
    color: var(--text);
    max-width: 760px; margin: 0 auto 14px;
    animation: fadeUp .7s .1s ease both;
  }
  .hero h1 em { font-style: normal; color: var(--green); }

  /* FLIP WORD EFFECT */
  .flip-word-container {
    display: inline-block;
    position: relative;
    perspective: 800px;
    white-space: nowrap;
    vertical-align: top;
    padding-bottom: .12em;
  }
  .flip-word-container::after {
    content: '';
    position: absolute;
    left: 4%; right: 4%; bottom: 0;
    height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--green) 50%, transparent);
    transform: scaleX(0);
    opacity: 0;
    transform-origin: center;
    pointer-events: none;
  }
  .flip-word-container.flip-in::after {
    animation: underlineSweep 1s cubic-bezier(.22,.61,.36,1) forwards;
  }
  .flip-word {
    display: inline-block;
    font-style: normal;
    color: var(--green);
    transform-origin: 50% 0%;
    transform-style: preserve-3d;
    will-change: transform, opacity, filter;
    text-shadow: 0 0 0 rgba(0,170,70,0);
  }
  .flip-word.flip-out {
    animation: flipDownOut .42s cubic-bezier(.55,.06,.68,.19) forwards;
  }
  .flip-word.flip-in {
    animation: flipDownIn .85s cubic-bezier(.22,1.4,.36,1) forwards;
  }
  @keyframes flipDownOut {
    0%   { transform: rotateX(0deg) translateY(0) scale(1); opacity: 1; filter: blur(0); }
    100% { transform: rotateX(100deg) translateY(14%) scale(.96); opacity: 0; filter: blur(3px); }
  }
  @keyframes flipDownIn {
    0%   { transform: rotateX(-115deg) translateY(-18%) scale(.9); opacity: 0; filter: blur(3px); text-shadow: 0 0 0 rgba(0,170,70,0); }
    45%  { opacity: 1; filter: blur(0); }
    68%  { transform: rotateX(8deg) translateY(0) scale(1.05); text-shadow: 0 0 26px rgba(0,170,70,.6); }
    100% { transform: rotateX(0deg) translateY(0) scale(1); opacity: 1; text-shadow: 0 0 0 rgba(0,170,70,0); }
  }
  @keyframes underlineSweep {
    0%   { transform: scaleX(0); opacity: 0; }
    35%  { transform: scaleX(1); opacity: .9; }
    100% { transform: scaleX(1); opacity: 0; }
  }
  .hero p {
    font-size: 17px; color: var(--text2); max-width: 540px; margin: 0 auto 22px;
    animation: fadeUp .7s .2s ease both;
    font-weight: 300;
  }
  .hero-cta {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
    animation: fadeUp .7s .3s ease both;
  }
  .hero-note { font-size: 13px; color: var(--text3); margin-top: 12px; animation: fadeUp .7s .4s ease both; }

  /* TRUST BAR */
  .trust {
    max-width: 1200px; margin: 20px auto 0; padding: 0 24px;
    display: flex; align-items: center; gap: 32px; flex-wrap: wrap; justify-content: center;
    animation: fadeUp .7s .5s ease both;
  }
  .trust-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; color: var(--text2);
  }
  .trust-icon { color: var(--green); font-size: 16px; }

  /* HERO SHOWCASE: T-SC-HERO-V2 — правка Maxim после T-SC-HERO-DEPLAGIARIZE
     (виджет по центру — «отстой»). Центральный визуал теперь стилизованный мокап
     РЕАЛЬНОГО канваса конструктора сценариев (карточки узлов — та же форма/палитра,
     что настоящий FlowNodeCard: rounded-xl border bg-white shadow-sm, цвет иконки
     по типу узла). Живой виджет — обычный embed в углу (см. конец landing.html),
     не в hero — эта секция чисто визуальная витрина. */
  .hero-showcase { position: relative; max-width: 1020px; margin: 32px auto 0; padding: 0 24px 8px; }
  .hero-showcase-label {
    font-size: 13px; font-weight: 600; color: var(--text2); text-align: center; margin-bottom: 20px;
  }

  .flow-mock {
    display: flex; align-items: center; gap: 0;
    overflow-x: auto; padding: 36px 20px;
    background: radial-gradient(ellipse 80% 100% at 50% 0%, var(--green-pale) 0%, transparent 70%);
    border-radius: 28px;
    scrollbar-width: none;
  }
  .flow-mock::-webkit-scrollbar { display: none; }

  .flow-node {
    flex: 0 0 208px; background: #fff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow); overflow: hidden;
    opacity: 0; transform: translateY(14px);
    animation: flowNodeIn .65s cubic-bezier(.16,1,.3,1) forwards;
  }
  .flow-mock .flow-node:nth-of-type(1) { animation-delay: .05s; }
  .flow-mock .flow-node:nth-of-type(3) { animation-delay: .25s; }
  .flow-mock .flow-node:nth-of-type(5) { animation-delay: .45s; }
  .flow-mock .flow-node:nth-of-type(7) { animation-delay: .65s; }
  .flow-mock .flow-node:nth-of-type(9) { animation-delay: .85s; }
  @keyframes flowNodeIn { to { opacity: 1; transform: none; } }

  .flow-node-head {
    display: flex; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 600; color: var(--text);
    padding: 11px 13px; border-bottom: 1px solid var(--border);
  }
  .flow-node-icon { width: 15px; height: 15px; display: flex; flex-shrink: 0; }
  .flow-node-icon .icon { width: 100%; height: 100%; }
  .kind-message .flow-node-icon { color: var(--green); }
  .kind-question .flow-node-icon { color: #10b981; }
  .kind-capture .flow-node-icon { color: #ec4899; }
  .kind-condition .flow-node-icon { color: #0ea5e9; }
  /* T-SC-MORNING-DEFECTS п.6: #f59e0b — тот же amber, что text-amber-500 у
     ai_node в реальном FlowCanvasTab.tsx (NODE_META.ai_node.color) — не
     подобран на глаз. Карточка также получает лёгкую amber-обводку, чтобы
     "AI дожимает" читался как акцент, не как рядовой узел в ряду. */
  .kind-ai .flow-node-icon { color: #f59e0b; }
  .kind-ai { border-color: rgba(245, 158, 11, .35); }
  .flow-node-star { width: 13px; height: 13px; margin-left: auto; color: #f59e0b; fill: #f59e0b; flex-shrink: 0; }

  .flow-node-body {
    padding: 11px 13px; font-size: 12px; line-height: 1.55; color: var(--text2); min-height: 2.7em;
  }
  .flow-node-pills { display: flex; gap: 6px; padding: 0 13px 13px; flex-wrap: wrap; }
  .flow-pill {
    font-size: 11px; font-weight: 500; padding: 4px 11px; border-radius: 999px;
    background: var(--surface2); color: var(--text2);
  }
  .flow-pill-yes { background: rgba(16,185,129,.12); color: #059669; }
  .flow-pill-no { background: rgba(239,68,68,.12); color: #dc2626; }

  /* «Сейчас выполняется» — тот же язык, что testActive-подсветка в реальном
     конструкторе (FlowCanvasTab.tsx, T-SC-FLOW-TEST-FIX), только цвет темы hero. */
  .flow-node-active {
    border-color: #10b981;
    animation: flowNodeIn .65s cubic-bezier(.16,1,.3,1) forwards, flowActivePulse 1.8s ease-in-out .9s infinite;
  }
  @keyframes flowActivePulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,.16); }
    50%      { box-shadow: 0 0 0 7px rgba(16,185,129,.28); }
  }

  .flow-connector {
    flex: 0 0 44px; position: relative; align-self: stretch;
    display: flex; align-items: center; justify-content: center;
  }
  .flow-connector::before {
    content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px;
    background: var(--border); transform: translateY(-1px);
  }
  .flow-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--green);
    position: relative; z-index: 1; opacity: 0;
    animation: flowDotMove 2.2s linear 1.2s infinite;
  }
  @keyframes flowDotMove {
    0%   { transform: translateX(-20px); opacity: 0; }
    12%  { opacity: 1; }
    88%  { opacity: 1; }
    100% { transform: translateX(20px); opacity: 0; }
  }

  /* T-SC-MORNING-DEFECTS п.6: подпись "Нет" на коннекторе к AI-узлу — та же
     красная палитра, что .flow-pill-no на самой карточке "Условие" (одна
     и та же ветка, не новый цвет). */
  .flow-connector-label {
    position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
    font-size: 10px; font-weight: 600; color: #dc2626; white-space: nowrap;
  }
  .hero-showcase-caption {
    font-size: 13px; color: var(--text2); text-align: center; margin-top: 16px;
  }
  .hero-showcase-caption strong { color: var(--text); font-weight: 600; }

  @media (max-width: 760px) {
    .flow-mock { padding: 24px 16px; border-radius: 20px; }
    .flow-node { flex-basis: 172px; }
    .flow-connector { flex-basis: 28px; }
  }

  /* T-SC-HERO-FLOW (правка Maxim 16.07 17:50): было — один горизонтальный ряд из
     5 узлов внутри max-width:1020px контейнера, реальная ширина контента ~1216px
     → скрытый скроллбар (scrollbar-width:none) означал, что AI-узел (последний в
     ряду) физически не попадал в кадр без прокрутки — на скрине выглядело как
     «обрезано» и «нет AI-узла», хотя узел в разметке был. Новая раскладка —
     3 узла в верхнем ряду + «Условие» соло по центру + НАСТОЯЩАЯ развилка (SVG,
     не текстовая подпись на одной линии) + 2 узла-ветки внизу. Ничего не обрезается
     ни на одном брейкпоинте — общая ширина верхнего ряда (3×208+2×44=712px) и
     нижнего (2×208+24=440px) обе меньше 1020px контейнера, скролл не нужен вообще. */
  .flow-mock-v2 {
    display: flex; flex-direction: column; align-items: center; gap: 0;
    padding: 36px 20px 32px;
    background: radial-gradient(ellipse 80% 100% at 50% 0%, var(--green-pale) 0%, transparent 70%);
    border-radius: 28px;
  }
  .flow-row-top { display: flex; align-items: center; gap: 0; }
  .flow-condition-solo { display: flex; }

  /* Вертикальный коннектор «Вопрос с кнопками» → «Условие» — та же точка (dot),
     что горизонтальные коннекторы, просто повёрнута в столбец. */
  .flow-connector-vertical {
    flex: 0 0 32px; width: 100%; position: relative;
    display: flex; align-items: center; justify-content: center;
  }
  .flow-connector-vertical::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
    background: var(--border); transform: translateX(-1px);
  }
  .flow-connector-vertical .flow-dot {
    animation: flowDotMoveV 2.2s linear 1.2s infinite;
  }
  @keyframes flowDotMoveV {
    0%   { transform: translateY(-14px); opacity: 0; }
    12%  { opacity: 1; }
    88%  { opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
  }

  /* Развилка: SVG с нормализованными координатами (viewBox 0 0 100 56,
     preserveAspectRatio="none") — растягивается на 100% ширины блока веток
     (.flow-row-bottom), поэтому визуально всегда бьёт точно в центр каждой из
     двух карточек снизу (grid 1fr 1fr → центры колонок ровно 25%/75%),
     независимо от фактической ширины на экране. Скругление — кубическая кривая
     (C ...), не прямые линии. */
  .flow-fork { width: 440px; max-width: 100%; height: 56px; }
  .flow-fork svg { width: 100%; height: 100%; display: block; }
  .flow-fork-path {
    fill: none; stroke: var(--border); stroke-width: 2; stroke-linecap: round;
  }
  .flow-fork-path-yes { stroke: rgba(16,185,129,.55); }
  .flow-fork-path-no  { stroke: rgba(239,68,68,.5); }
  /* «Поток» по линии — тот же мягкий язык, что flow-dot на горизонтальных
     коннекторах, только через бегущий пунктир (устойчивее к разным браузерам,
     чем offset-path, при той же мягкости движения). */
  .flow-fork-path-flow {
    stroke-dasharray: 6 10; animation: flowDashMove 2.4s linear infinite;
  }
  @keyframes flowDashMove { to { stroke-dashoffset: -32; } }

  .flow-row-bottom {
    display: grid; grid-template-columns: 1fr 1fr; width: 440px; max-width: 100%;
    column-gap: 24px; margin-top: -2px;
  }
  .flow-branch { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .flow-branch-label {
    font-size: 11px; font-weight: 700; white-space: nowrap;
  }
  .flow-branch-label-yes { color: #059669; }
  .flow-branch-label-no  { color: #dc2626; }
  .flow-branch .flow-node { flex: 0 0 auto; width: 100%; max-width: 208px; }

  .kind-ai-response .flow-node-icon { color: #f59e0b; }
  .kind-ai-response { border-color: rgba(245, 158, 11, .35); }

  @media (max-width: 760px) {
    /* Мобайл: линейный вертикальный степпер — весь путь Сообщение → AI-ответ →
       Вопрос → Условие → (ветка) сверху вниз, без SVG-развилки (нечитаемо узко). */
    .flow-mock-v2 { padding: 28px 16px; border-radius: 20px; }
    .flow-row-top { flex-direction: column; width: 100%; }
    .flow-row-top .flow-node { flex-basis: auto; width: 100%; max-width: 260px; }
    .flow-row-top .flow-connector {
      flex-basis: 32px; width: 2px; align-self: center;
    }
    .flow-row-top .flow-connector::before {
      left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto;
      transform: translateX(-1px);
    }
    .flow-row-top .flow-connector .flow-dot { animation: flowDotMoveV 2.2s linear 1.2s infinite; }
    .flow-condition-solo .flow-node { width: 100%; max-width: 260px; }
    .flow-fork { display: none; }
    .flow-row-bottom {
      display: flex; flex-direction: column; align-items: center; gap: 20px;
      width: 100%; margin-top: 20px;
    }
    .flow-row-bottom::before {
      content: ''; display: block; width: 2px; height: 20px; background: var(--border);
      margin: -20px auto 0;
    }
    .flow-branch .flow-node { max-width: 260px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .flow-connector-vertical .flow-dot { animation: none; opacity: .7; }
    .flow-fork-path-flow { animation: none; }
  }

  /* PERFORMANCE: reduce continuous main-thread work on mobile
     (backdrop-filter / filter / blur / endless animations are expensive
     to recompute every frame on low-end devices) */
  @media (max-width: 760px) {
    nav {
      backdrop-filter: none;
      background: var(--surface);
    }
    .theme-toggle { animation: none; }
    .float, .float-delay, .icon-spin-hover:hover .icon {
      animation: none !important;
    }
    .flow-dot { animation: none !important; opacity: .7; }
    .flow-node-active { animation: flowNodeIn .65s cubic-bezier(.16,1,.3,1) forwards !important; box-shadow: 0 0 0 3px rgba(16,185,129,.16); }
    /* Lighter flip-word transition: drop blur/glow, keep the flip motion */
    @keyframes flipDownOut {
      0%   { transform: rotateX(0deg) translateY(0) scale(1); opacity: 1; }
      100% { transform: rotateX(100deg) translateY(14%) scale(.96); opacity: 0; }
    }
    @keyframes flipDownIn {
      0%   { transform: rotateX(-115deg) translateY(-18%) scale(.9); opacity: 0; }
      45%  { opacity: 1; }
      68%  { transform: rotateX(8deg) translateY(0) scale(1.05); }
      100% { transform: rotateX(0deg) translateY(0) scale(1); opacity: 1; }
    }
  }

  /* Reduced motion: keep the flow-mock visible without the entrance/pulse/dot animations */
  @media (prefers-reduced-motion: reduce) {
    .flow-node { opacity: 1; transform: none; animation: none; }
    .flow-node-active { box-shadow: 0 0 0 3px rgba(16,185,129,.16); animation: none; }
    .flow-dot { animation: none; opacity: .7; }
  }

  /* T-SC-DEBT-ZERO п.2 (bottom-left floating widget): было "DISCOUNT COUNTER" — фейковый
     растущий % без связи с реальностью. Теперь статичная карточка честного условия
     триала (10 бесплатных лидов) — bar/maxed/glow состояния убраны за ненадобностью
     (нечему больше "дорастать" до 100%). */
  .discount-widget {
    position: fixed; left: 16px; bottom: 16px; z-index: 56;
    display: flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; box-shadow: var(--shadow-lg);
    padding: 10px 14px;
    opacity: 0; transform: translateY(16px) scale(.92);
    transition: opacity .45s ease, transform .45s cubic-bezier(.34,1.56,.64,1),
                border-color .3s ease, box-shadow .3s ease;
    pointer-events: none;
  }
  .discount-widget.show { opacity: 1; transform: translateY(0) scale(1); }
  .discount-icon {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    background: var(--green-pale); color: var(--green-text);
    display: flex; align-items: center; justify-content: center;
    transition: background .3s ease, color .3s ease;
  }
  .discount-icon .icon { width: 18px; height: 18px; }
  .discount-text { display: flex; flex-direction: column; gap: 2px; }
  .discount-label { font-size: 10.5px; color: var(--text2); white-space: nowrap; line-height: 1.2; }
  .discount-value {
    font-family: var(--mono); font-size: 17px; font-weight: 800; color: var(--green);
    line-height: 1.15; white-space: nowrap;
  }
  .discount-sub { font-size: 10px; color: var(--text2); white-space: nowrap; line-height: 1.2; }

  @media (max-width: 760px) {
    .discount-widget { left: 10px; bottom: 10px; padding: 8px 12px; gap: 8px; }
    .discount-icon { width: 30px; height: 30px; border-radius: 9px; }
    .discount-icon .icon { width: 15px; height: 15px; }
    .discount-value { font-size: 15px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .discount-widget { transition: opacity .3s ease; transform: none !important; }
  }

  /* ADVANTAGES STRIP */
  .advantages-strip { padding: 28px 24px 0; }
  .advantages-grid {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  }
  .advantage-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 16px; display: flex; align-items: center; gap: 12px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  }
  .advantage-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(0,170,70,.4); }
  .advantage-icon {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    background: var(--green-pale); color: var(--green-text);
    display: flex; align-items: center; justify-content: center;
  }
  .advantage-icon .icon { width: 20px; height: 20px; }
  .advantage-text { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.35; }

  @media (max-width: 900px) {
    .advantages-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 520px) {
    .advantages-grid { grid-template-columns: 1fr; }
  }

  /* DASHBOARD MOCK */
  .dashboard-wrap {
    max-width: 1100px; margin: 64px auto 0; padding: 0 24px;
    animation: fadeUp .8s .3s ease both;
  }
  .dashboard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
  }
  .dash-bar {
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    display: flex; align-items: center; gap: 8px;
  }
  .dot { width: 12px; height: 12px; border-radius: 50%; }
  .dot-r { background: #ff5f57; }
  .dot-y { background: #ffbd2e; }
  .dot-g { background: #28c840; }
  .dash-url {
    flex: 1; text-align: center; min-width: 0;
    font-family: var(--mono); font-size: 13px; color: var(--text2);
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 6px; padding: 4px 12px;
    max-width: 320px; margin: 0 auto;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .dash-body { display: grid; grid-template-columns: 220px 1fr 300px; height: 420px; }
  .dash-sidebar {
    border-right: 1px solid var(--border); padding: 16px 12px;
    display: flex; flex-direction: column; gap: 4px;
  }
  .dash-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--text2);
    cursor: pointer;
  }
  .dash-nav-item.active { background: var(--green-pale); color: var(--green-text); font-weight: 500; }
  .dash-nav-icon { width: 16px; height: 16px; background: currentColor; opacity: .4; border-radius: 3px; flex-shrink: 0; }
  .dash-main { padding: 16px; overflow: hidden; }
  .dash-main-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
  .dash-title { font-size: 14px; font-weight: 600; }
  .dash-status { font-size: 12px; color: var(--green); font-weight: 500; display: flex; align-items: center; gap: 4px; }
  .dash-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; animation: pulse 2s ease-in-out infinite; }
  .conv-list { display: flex; flex-direction: column; gap: 2px; }
  .conv-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px; border-radius: 10px; cursor: pointer;
    border: 1px solid transparent; transition: all .15s;
  }
  .conv-item.active { background: var(--green-pale); border-color: rgba(0,170,70,.3); }
  .conv-item:not(.active):hover { background: var(--surface2); }
  .conv-ava { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
  .ava-green { background: var(--green-pale); color: var(--green-text); }
  .ava-blue { background: #dbeafe; color: #1e40af; }
  .ava-orange { background: #ffedd5; color: #9a3412; }
  [data-theme="dark"] .ava-blue { background: rgba(59,130,246,.15); color: #93c5fd; }
  [data-theme="dark"] .ava-orange { background: rgba(249,115,22,.15); color: #fdba74; }
  .conv-info { flex: 1; min-width: 0; }
  .conv-name { font-size: 13px; font-weight: 500; }
  .conv-preview { font-size: 12px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .conv-time { font-size: 11px; color: var(--text3); flex-shrink: 0; }
  .conv-badge { background: var(--green); color: #fff; font-size: 10px; border-radius: 999px; padding: 1px 6px; }

  /* REAL SCREENSHOT FRAME — реальные скрины кабинета/виджета (тенант Test), та же
     «браузерная» рамка, что у dashboard-мока (dots + бар), чтобы не выбиваться по стилю. */
  .screen-frame {
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow-lg); overflow: hidden;
  }
  .screen-frame-bar {
    background: var(--surface2); border-bottom: 1px solid var(--border);
    padding: 10px 16px; display: flex; align-items: center; gap: 8px;
  }
  .screen-frame-label {
    flex: 1; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--text2);
  }
  .screen-frame img { display: block; width: 100%; height: auto; }
  .screen-frame.is-mobile { max-width: 300px; margin: 0 auto; }
  .dash-chat { border-left: 1px solid var(--border); display: flex; flex-direction: column; }
  .chat-header { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
  .chat-ava { width: 32px; height: 32px; border-radius: 50%; background: var(--green-pale); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--green-text); }
  .chat-name { font-size: 13px; font-weight: 500; }
  .chat-status-txt { font-size: 11px; color: var(--green); }
  .chat-msgs { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
  .msg { max-width: 85%; }
  .msg-bubble { font-size: 12px; padding: 8px 12px; border-radius: 12px; line-height: 1.5; }
  .msg-in .msg-bubble { background: var(--surface2); border-bottom-left-radius: 3px; }
  .msg-out { align-self: flex-end; }
  .msg-out .msg-bubble { background: var(--green); color: #fff; border-bottom-right-radius: 3px; }
  .msg-ai .msg-bubble { background: var(--green-pale); border: 1px solid rgba(0,170,70,.25); border-bottom-left-radius: 3px; }
  .msg-label { font-size: 10px; color: var(--text3); margin-bottom: 3px; }
  .msg-ai .msg-label { color: var(--green); }
  .chat-input { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
  .chat-input-field { flex: 1; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 7px 12px; font-size: 12px; font-family: var(--font); color: var(--text2); outline: none; }
  .chat-send { background: var(--green); color: #fff; border: none; border-radius: 8px; padding: 7px 14px; font-size: 12px; cursor: pointer; font-family: var(--font); }

  /* SECTIONS */
  section { padding: 100px 24px; }
  .container { max-width: 1200px; margin: 0 auto; }

  /* Section rhythm: shared dot-grid motif in corners */
  .section-dots {
    position: absolute; pointer-events: none;
    width: 180px; height: 180px; overflow: hidden;
    opacity: 0;
    animation: sectionDotsIn .6s ease forwards;
    background-image: radial-gradient(circle, var(--text3) 1.2px, transparent 1.2px);
    background-size: 20px 20px;
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at 100% 0%, black 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 90% 90% at 100% 0%, black 30%, transparent 75%);
  }
  .section-dots.bottom-left {
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at 0% 100%, black 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 90% 90% at 0% 100%, black 30%, transparent 75%);
  }
  @keyframes sectionDotsIn {
    to { opacity: .55; }
  }

  /* Subtle top-border fade instead of a hard line */
  .how-section, .ai-section, .features-section,
  .integrations-section, .faq-section {
    position: relative;
  }
  .how-section::before, .ai-section::before, .features-section::before,
  .integrations-section::before, .faq-section::before {
    content: '';
    position: absolute; inset: 0; bottom: auto;
    height: 1px;
    background: linear-gradient(90deg,
      transparent 0%,
      var(--border) 20%,
      var(--border) 80%,
      transparent 100%);
  }

  @media (max-width: 760px) {
    .section-dots { width: 120px; height: 120px; }
    @keyframes sectionDotsIn { to { opacity: .35; } }
  }
  @media (prefers-reduced-motion: reduce) {
    .section-dots { animation: none; opacity: .4; }
  }
  .section-label {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--green-pale); color: var(--green-text);
    padding: 4px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
    margin-bottom: 16px;
  }
  .section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800; letter-spacing: -1.5px; line-height: 1.1;
    margin-bottom: 16px;
  }
  .section-sub { font-size: 18px; color: var(--text2); max-width: 540px; font-weight: 300; line-height: 1.6; }

  /* HOW IT WORKS */
  .how-section { background: var(--surface); }
  .how-tabs { display: flex; gap: 4px; background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 4px; margin: 48px 0 40px; width: fit-content; }
  .how-tab { padding: 10px 22px; border-radius: 9px; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--text2); transition: all .2s; border: none; background: transparent; font-family: var(--font); }
  .how-tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
  .how-panels { }
  .how-panel { display: none; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .how-panel.active { display: grid; }
  .how-step-num { font-family: var(--mono); font-size: 13px; color: var(--green); font-weight: 500; margin-bottom: 12px; }
  .how-panel h3 { font-size: 28px; font-weight: 700; letter-spacing: -1px; margin-bottom: 16px; }
  .how-panel p { font-size: 16px; color: var(--text2); line-height: 1.7; margin-bottom: 24px; }
  .how-visual { background: var(--surface2); border: 1px solid var(--border); border-radius: 16px; padding: 28px; min-height: 300px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }

  /* TESTIMONIALS */
  .testimonial-section { background: var(--bg); }
  .testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
  .testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 20px; transition: box-shadow .2s; }
  .testimonial-card:hover { box-shadow: var(--shadow-lg); }
  .testimonial-card.featured { border-color: var(--green); border-width: 2px; }
  .stars { color: #f59e0b; font-size: 18px; letter-spacing: 2px; }
  .testimonial-text { font-size: 16px; color: var(--text); line-height: 1.7; font-style: italic; flex: 1; }
  .testimonial-author { display: flex; align-items: center; gap: 12px; }
  .author-ava { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; flex-shrink: 0; }
  .author-name { font-size: 15px; font-weight: 600; }
  .author-role { font-size: 13px; color: var(--text2); }

  /* INTEGRATIONS */
  /* T-SC-TECHDEBT-SWEEP: тот же .reveal-right overflow-фикс, что .ai-section выше. */
  .integrations-section { background: var(--surface); overflow-x: hidden; }
  .integrations-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .integration-list { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
  .integration-item { display: flex; align-items: center; gap: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; transition: all .2s; }
  .integration-item:hover { border-color: rgba(0,170,70,.4); transform: translateX(4px); }
  .integration-icon { font-size: 22px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; flex-shrink: 0; }
  .integration-name { font-size: 15px; font-weight: 600; }
  .integration-desc { font-size: 13px; color: var(--text2); }
  .code-block { background: var(--surface2); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
  .code-block-header { padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
  .code-block-title { font-family: var(--mono); font-size: 12px; color: var(--text2); margin-left: 4px; }
  .code-block pre { padding: 24px; font-family: var(--mono); font-size: 13px; line-height: 1.9; color: var(--text); overflow-x: auto; }
  .c-comment { color: var(--text3); }
  .c-tag { color: #00aa46; }
  .c-attr { color: #f59e0b; }
  .c-val { color: #60a5fa; }

  /* AI SECTION */
  /* T-SC-TECHDEBT-SWEEP: .reveal-right (translateX(40px) в скрытом состоянии до появления
     через IntersectionObserver) технически выходит за край документа — невидимо для юзера,
     но даёт horizontal scrollWidth-overflow 16-20px на мобильных ширинах (найдено T-SC-MOBILE-PERFECT
     свипом). Клипаем на уровне секции-обёртки, не трогая сам transform-паттерн анимации. */
  .ai-section { background: var(--surface); overflow-x: hidden; }
  .ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 64px; }
  .ai-features { display: flex; flex-direction: column; gap: 32px; }
  .ai-feat { display: flex; gap: 16px; }
  .ai-feat-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--green-pale); color: var(--green-text); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
  .ai-feat h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
  .ai-feat p { font-size: 15px; color: var(--text2); }

  /* CHAT DEMO WIDGET */
  .chat-demo {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
  }
  .chat-demo-header {
    background: linear-gradient(135deg, #007c25, #00aa46);
    padding: 20px;
    color: #fff;
  }
  .chat-demo-title { font-size: 16px; font-weight: 600; }
  .chat-demo-sub { font-size: 13px; opacity: .8; margin-top: 2px; display: flex; align-items: center; gap: 6px; }
  .chat-demo-msgs {
    padding: 20px; display: flex; flex-direction: column; gap: 12px;
    height: 360px; overflow-y: auto; scroll-behavior: smooth;
  }
  .chat-demo-msgs::-webkit-scrollbar { width: 4px; }
  .chat-demo-msgs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
  .demo-msg { display: flex; gap: 10px; align-items: flex-start; }
  .demo-msg.appear { animation: msgIn .4s cubic-bezier(.34,1.56,.64,1) both; }
  @keyframes msgIn {
    from { opacity: 0; transform: translateY(12px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  .demo-bubble-user.typing-cursor::after {
    content: '';
    display: inline-block;
    width: 2px; height: 13px;
    margin-left: 2px;
    background: var(--text2);
    vertical-align: text-bottom;
    animation: blink .8s step-end infinite;
  }
  @keyframes blink { 50% { opacity: 0; } }
  .demo-ava { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
  .demo-ava-ai { background: var(--green); color: #fff; }
  .demo-ava-user { background: var(--surface2); color: var(--text2); }
  .demo-bubble { font-size: 14px; padding: 10px 14px; border-radius: 12px; max-width: 260px; line-height: 1.5; }
  .demo-bubble-ai { background: var(--green-pale); border: 1px solid rgba(0,170,70,.25); border-top-left-radius: 3px; color: var(--text); }
  .demo-bubble-user { background: var(--surface2); border-top-left-radius: 3px; color: var(--text); }
  .ai-tag { font-size: 10px; color: var(--green); font-weight: 600; margin-bottom: 4px; }
  .typing { display: flex; gap: 4px; align-items: center; padding: 10px 14px; background: var(--green-pale); border: 1px solid rgba(0,170,70,.25); border-radius: 12px; border-top-left-radius: 3px; width: fit-content; }
  .typing span { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: bounce .9s infinite; }
  .typing span:nth-child(2) { animation-delay: .15s; }
  .typing span:nth-child(3) { animation-delay: .3s; }

  /* CHANNELS SECTION */
  .channels-section { background: var(--bg); position: relative; }
  .channels-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: auto;
    gap: 16px;
    margin-top: 48px;
  }
  .channels-grid-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
  }

  /* Featured card spans 2 rows on the left */
  .channel-card-featured {
    grid-row: 1 / 3;
    background: linear-gradient(145deg, #15803d 0%, #005b16 60%, #19532a 100%);
    border: none;
    border-radius: var(--radius);
    padding: 36px 32px;
    color: #fff;
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
  }
  .channel-card-featured:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(21,128,61,.35); }
  .channel-card-featured::before {
    content: '';
    position: absolute; top: -60px; right: -60px;
    width: 220px; height: 220px; border-radius: 50%;
    background: rgba(255,255,255,.06);
  }
  .channel-card-featured::after {
    content: '';
    position: absolute; bottom: -40px; left: -20px;
    width: 160px; height: 160px; border-radius: 50%;
    background: rgba(255,255,255,.04);
  }

  .ch-feat-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px; flex-shrink: 0; position: relative; z-index: 1;
  }
  .ch-feat-icon .icon { width: 26px; height: 26px; color: #fff; }
  .ch-feat-title { font-size: 24px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 10px; position: relative; z-index: 1; }
  .ch-feat-desc { font-size: 15px; line-height: 1.6; opacity: .85; flex: 1; position: relative; z-index: 1; }
  .ch-feat-metric {
    margin-top: 32px; padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.2);
    display: flex; align-items: flex-end; gap: 8px; position: relative; z-index: 1;
  }
  .ch-feat-metric-value { font-size: 40px; font-weight: 900; letter-spacing: -2px; line-height: 1; }
  .ch-feat-metric-label { font-size: 13px; opacity: .75; padding-bottom: 4px; }

  /* Regular cards */
  .channel-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 26px;
    transition: all .22s ease;
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; gap: 12px;
  }
  .channel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--green); }

  .ch-icon-wrap {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .ch-icon-wrap .icon { width: 20px; height: 20px; }
  .ch-icon-wrap.color-blue   { background: rgba(59,130,246,.12); color: #3b82f6; }
  .ch-icon-wrap.color-violet { background: rgba(139,92,246,.12); color: #8b5cf6; }
  .ch-icon-wrap.color-amber  { background: rgba(245,158,11,.12); color: #f59e0b; }
  .ch-icon-wrap.color-teal   { background: rgba(20,184,166,.12); color: #14b8a6; }
  .ch-icon-wrap.color-rose   { background: rgba(244,63,94,.12);  color: #f43f5e; }

  .ch-body { display: flex; flex-direction: column; gap: 4px; }
  .ch-name { font-size: 16px; font-weight: 700; }
  .ch-desc { font-size: 13.5px; color: var(--text2); line-height: 1.55; }
  .ch-badge {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 999px;
    font-size: 11px; font-weight: 600; margin-top: 2px;
    width: fit-content;
  }
  .ch-badge.color-blue   { background: rgba(59,130,246,.1);  color: #3b82f6; }
  .ch-badge.color-violet { background: rgba(139,92,246,.1);  color: #8b5cf6; }
  .ch-badge.color-amber  { background: rgba(245,158,11,.1);  color: #d97706; }
  .ch-badge.color-teal   { background: rgba(20,184,166,.1);  color: #0d9488; }
  .ch-badge.color-rose   { background: rgba(244,63,94,.1);   color: #e11d48; }

  @media (max-width: 900px) {
    .channels-grid { grid-template-columns: 1fr; }
    .channels-grid-right { grid-template-columns: 1fr 1fr; }
    .channel-card-featured { grid-row: auto; }
    .ch-feat-title { font-size: 20px; }
    .ch-feat-metric-value { font-size: 32px; }
  }
  @media (max-width: 560px) {
    .channels-grid-right { grid-template-columns: 1fr; }
  }

  /* FEATURES GRID */
  .features-section { background: var(--surface); }
  .features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 48px; }
  .feat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all .2s ease;
  }
  .feat-card:hover { box-shadow: var(--shadow); border-color: #bbf7d0; }
  .feat-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
  .feat-card p { font-size: 15px; color: var(--text2); }
  .feat-chip { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; display: inline-block; margin-bottom: 14px; background: var(--green-pale); color: var(--green-text); }

  /* USP / COMPARISON — T-SC-LANDING-USP (2026-07-15) */
  .usp-section { background: var(--bg); }
  .usp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
  .usp-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all .2s ease;
  }
  .usp-card:hover { box-shadow: var(--shadow); border-color: #bbf7d0; }
  .usp-card-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--green-pale); color: var(--green-text);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
  }
  .usp-card-icon .icon { width: 20px; height: 20px; }
  .usp-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
  .usp-card p { font-size: 14px; color: var(--text2); line-height: 1.55; }
  .usp-compare { font-size: 12.5px; color: var(--text3); margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
  @media (max-width: 900px) {
    .usp-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 640px) {
    .usp-grid { grid-template-columns: 1fr; }
  }

  /* STATS */
  .stats-section { background: var(--stats-bg); color: #fff; }
  .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 48px; text-align: center; }
  .stat-value { font-size: 52px; font-weight: 800; letter-spacing: -2px; color: var(--green); line-height: 1; }
  .stat-label { font-size: 15px; color: var(--stats-text); margin-top: 8px; }

  /* PRICING SECTION — #T-SC-PACKAGES: пакеты пополнения баланса (PAYG), НЕ тарифы */
  .pricing-section { background: var(--surface); }
  .pricing-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    margin-top: 48px; align-items: stretch;
  }
  .pricing-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px 24px; text-align: center; display: flex; flex-direction: column;
    align-items: center; position: relative;
  }
  .pricing-card-featured { border-color: var(--green); border-width: 2px; }
  .pricing-card-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--green); color: #fff; font-size: 12px; font-weight: 600;
    padding: 4px 14px; border-radius: 999px;
  }
  .pricing-card-name { font-size: 16px; font-weight: 700; color: var(--text); }
  .pricing-card-price { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; margin: 12px 0 2px; color: var(--text); }
  .pricing-card-note { font-size: 13px; color: var(--text3); margin-bottom: 24px; }
  .pricing-card-cta { width: 100%; justify-content: center; margin-top: auto; }
  .pricing-footnote { text-align: center; font-size: 14px; color: var(--text2); margin-top: 32px; }
  @media (max-width: 860px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 560px) {
    .pricing-grid { grid-template-columns: 1fr; }
  }

  /* BETA SECTION */
  .beta-section { background: var(--bg); }
  .beta-intro { margin: 0 auto 48px; }
  .beta-card-wrap { max-width: 720px; margin: 0 auto; }
  .beta-card {
    background: var(--surface); border: 2px solid var(--green); border-radius: 20px;
    padding: 48px; text-align: center; position: relative; overflow: hidden;
  }
  .beta-card-bar {
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #00aa46, #007c25, #00aa46);
  }
  .beta-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--green-pale); color: var(--green-text);
    padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
    margin-bottom: 24px;
  }
  .beta-badge-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--green);
    display: inline-block; animation: pulse 1.5s infinite;
  }
  .beta-title { font-size: 28px; font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
  .beta-desc { font-size: 16px; color: var(--text2); max-width: 480px; margin: 0 auto 36px; line-height: 1.6; }
  .beta-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 36px; }
  .beta-stat { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 20px 16px; }
  .beta-stat-value { font-size: 24px; font-weight: 800; color: var(--green); }
  .beta-stat-label { font-size: 13px; color: var(--text2); margin-top: 4px; }
  .beta-cta { width: 100%; justify-content: center; max-width: 360px; }
  .beta-note { font-size: 13px; color: var(--text3); margin-top: 14px; }

  @media (max-width: 680px) {
    .beta-intro { margin-bottom: 32px; }
    .beta-card { padding: 28px 18px; }
    .beta-title { font-size: 22px; }
    .beta-desc { font-size: 14px; margin-bottom: 24px; }
    .beta-stats { gap: 8px; margin-bottom: 24px; }
    .beta-stat { padding: 14px 6px; }
    .beta-stat-value { font-size: 19px; }
    .beta-stat-label { font-size: 10.5px; }
  }

  /* FAQ */
  .faq-section { background: var(--surface); }
  .faq-grid { max-width: 720px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 2px; }
  .faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
  .faq-q {
    padding: 18px 20px; font-weight: 500; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    background: var(--surface);
    user-select: none;
  }
  .faq-q-text { flex: 1; }
  .faq-q:hover { background: var(--surface2); }
  .faq-arrow { transition: transform .25s; font-style: normal; flex-shrink: 0; color: var(--text3); }
  .faq-item.open .faq-arrow { transform: rotate(180deg); }
  .faq-a { padding: 0 20px; font-size: 15px; color: var(--text2); max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease, opacity .3s ease; opacity: 0; }
  .faq-item.open .faq-a { max-height: 400px; padding: 0 20px 18px; opacity: 1; }

  /* CTA */
  .cta-section {
    background: linear-gradient(135deg, #001803, #19532a);
    color: #fff; text-align: center;
  }
  .cta-section .section-title { color: #fff; }
  .cta-section .section-sub { color: #8feea4; margin: 0 auto 40px; }
  .cta-section .btn-primary { background: #00aa46; }
  .cta-section .btn-primary:hover { background: #007c25; }

  /* FOOTER */
  footer { background: #111827; color: #9ca3af; padding: 64px 24px; }
  .footer-inner { max-width: 1200px; margin: 0 auto; }
  .footer-top { display: grid; grid-template-columns: 280px 1fr; gap: 64px; margin-bottom: 48px; }
  /* T-SC-NEW-LOGO: было текстовый "● SellChat" (буквальный символ ●), теперь
     иконка + текст, тот же паттерн, что .logo в шапке */
  .footer-logo { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
  .footer-desc { font-size: 14px; line-height: 1.7; }
  .footer-flag { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,170,70,.15); color: #8feea4; font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 999px; margin-top: 16px; }
  .footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .footer-col h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
  .footer-col a { display: block; color: #9ca3af; text-decoration: none; font-size: 14px; margin-bottom: 10px; transition: color .2s; }
  .footer-col a:hover { color: #00aa46; }
  /* T-SC-FEEDBACK-LINK: адрес поддержки + копирование как fallback (не у всех
     настроен почтовый клиент) — та же логика, что FeedbackLink.tsx в кабинете,
     здесь на голом HTML/CSS (лендинг — статический файл, React недоступен). */
  .footer-support-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
  .footer-support-row a { margin-bottom: 0; }
  .footer-copy-btn {
    background: none; border: none; padding: 4px 6px; margin: -4px -6px;
    font: inherit; font-size: 12px; color: #6b7280; cursor: pointer;
    transition: color .2s;
  }
  .footer-copy-btn:hover, .footer-copy-btn:focus-visible { color: #00aa46; }
  .footer-bottom { border-top: 1px solid #1f2937; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
  .footer-bottom-links { display: flex; gap: 20px; }
  .footer-bottom-links a { color: #6b7280; text-decoration: none; }
  .footer-bottom-links a:hover { color: #9ca3af; }

  /* ICONS */
  .icon {
    width: 1em; height: 1em;
    stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    vertical-align: -0.15em; flex-shrink: 0;
  }
  .icon-sm { width: 16px; height: 16px; }
  .icon-flag { width: 1.1em; height: 1.1em; vertical-align: -0.2em; border-radius: 2px; flex-shrink: 0; }
  .status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

  /* ANIMATIONS */
  @keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes fadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
  @keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(0,170,70,.35); }
    70% { box-shadow: 0 0 0 10px rgba(0,170,70,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,170,70,0); }
  }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  @keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  @keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
  }
  @keyframes popIn {
    0% { opacity: 0; transform: scale(.6); }
    70% { opacity: 1; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
  }

  /* Base reveal: fade + rise */
  .reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
    will-change: opacity, transform;
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  /* Slide from left / right */
  .reveal-left {
    opacity: 0; transform: translateX(-40px);
    transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
    will-change: opacity, transform;
  }
  .reveal-left.visible { opacity: 1; transform: translateX(0); }

  .reveal-right {
    opacity: 0; transform: translateX(40px);
    transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
    will-change: opacity, transform;
  }
  .reveal-right.visible { opacity: 1; transform: translateX(0); }

  /* Scale pop-in */
  .reveal-scale {
    opacity: 0; transform: scale(.9);
    transition: opacity .6s cubic-bezier(.34,1.56,.64,1), transform .6s cubic-bezier(.34,1.56,.64,1);
    will-change: opacity, transform;
  }
  .reveal-scale.visible { opacity: 1; transform: scale(1); }

  /* Staggered children reveal */
  .reveal-stagger > * {
    opacity: 0; transform: translateY(24px);
    transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
    will-change: opacity, transform;
  }
  .reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
  .reveal-stagger.visible > *:nth-child(1) { transition-delay: .03s; }
  .reveal-stagger.visible > *:nth-child(2) { transition-delay: .09s; }
  .reveal-stagger.visible > *:nth-child(3) { transition-delay: .15s; }
  .reveal-stagger.visible > *:nth-child(4) { transition-delay: .21s; }
  .reveal-stagger.visible > *:nth-child(5) { transition-delay: .27s; }
  .reveal-stagger.visible > *:nth-child(6) { transition-delay: .33s; }

  /* Hover micro-interactions */
  .icon-spin-hover:hover .icon { animation: spinSlow .6s ease; }
  .icon-bounce-hover:hover .icon { animation: bounce .5s ease; }

  .btn { transition: all .18s ease, transform .15s ease; }
  .btn:active { transform: scale(.96); }

  /* Floating elements */
  .float { animation: float 5s ease-in-out infinite; }
  .float-delay { animation: float 5s ease-in-out infinite; animation-delay: 1.2s; }

  /* Pulse ring for live/online indicators */
  .pulse-ring { animation: pulseRing 2s infinite; border-radius: 50%; }

  /* Shimmer badge */
  .shimmer-badge {
    background: linear-gradient(90deg, var(--green-pale) 25%, rgba(0,170,70,.35) 50%, var(--green-pale) 75%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
  }

  /* Number pop animation for stats */
  .stat-value.pop { animation: popIn .6s cubic-bezier(.34,1.56,.64,1) both; }

  /* Smooth lift for interactive cards already present, add active press */
  .channel-card, .channel-card-featured, .feat-card, .testimonial-card, .integration-item, .beta-stat {
    will-change: transform;
  }
  .channel-card:active, .feat-card:active { transform: translateY(-1px) scale(.99); }

  /* Tab content fade-in on switch */
  .how-panel.active { animation: fadeUp .5s ease both; }

  /* Reduced motion support */
  @media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-stagger > *,
    .float, .float-delay, .shimmer-badge, .ticker, .typing span,
    .how-panel.active, .stat-value.pop, .theme-toggle,
    .flip-word.flip-out, .flip-word.flip-in, .flip-word-container.flip-in::after {
      animation: none !important;
      transition: none !important;
      opacity: 1 !important;
      transform: none !important;
    }
  }

  /* RESPONSIVE */
  @media (max-width: 900px) {
    .dash-body { grid-template-columns: 1fr; }
    .dash-chat, .dash-sidebar { display: none; }
    .ai-grid, .features-grid { grid-template-columns: 1fr; gap: 32px; }
    .how-panel { grid-template-columns: 1fr; gap: 28px; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .integrations-inner { grid-template-columns: 1fr; gap: 32px; }
    .channels-grid { grid-template-columns: 1fr; }
    .channels-grid-right { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-links { grid-template-columns: 1fr 1fr; }

    /* Mobile nav: hamburger + dropdown */
    .nav-burger { display: flex; }
    .btn-ghost { display: none; }
    .nav-link-mobile-only { display: block; }
    .nav-links {
      position: absolute; top: 64px; left: 0; right: 0; z-index: 99;
      flex-direction: column; align-items: stretch; gap: 0;
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      max-height: 0; overflow: hidden;
      transition: max-height .3s ease;
    }
    .nav-links.open { max-height: 420px; }
    .nav-links a {
      padding: 14px 24px; font-size: 15px;
      border-top: 1px solid var(--border);
    }
    .nav-links a:hover, .nav-links a:active { background: var(--surface2); }
  }

  @media (max-width: 680px) {
    section { padding: 64px 20px; }
    .nav-inner { padding: 0 16px; }
    .section-sub { font-size: 16px; }

    .how-tabs {
      max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .how-tabs::-webkit-scrollbar { display: none; }
    .how-tab { flex-shrink: 0; padding: 9px 16px; font-size: 13px; }
    .how-visual { min-height: 220px; padding: 20px; }
    .how-panel h3 { font-size: 22px; }

    .testimonial-card, .feat-card, .channel-card { padding: 22px; }

    .chat-demo-msgs { height: 320px; }
    .dashboard-wrap { margin-top: 32px; }

    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }

    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  }

  @media (max-width: 430px) {
    .nav-cta-text-full { display: none; }
    .nav-cta-text-short { display: inline; }
  }

  /* T-SC-AUDIT доп.: короткий CTA-текст закрыл overflow на 375/414px (живой прогон
     подтвердил), но на 320px (iPhone SE 1-го поколения — редкий, но не нулевой трафик)
     бургер всё ещё уезжал за край на 13px. Чуть плотнее паддинг/gap именно на этой
     узкой полосе. */
  @media (max-width: 340px) {
    .nav-inner { padding: 0 10px; }
    .nav-cta { gap: 4px; }
  }

  @media (max-width: 560px) {
    .footer-links { grid-template-columns: 1fr; gap: 4px; }
    .footer-col { margin-bottom: 12px; }
  }

  @media (max-width: 480px) {
    .channels-grid-right { grid-template-columns: 1fr; }
  }
/* #31 Фаза1: убрать минимальный горизонтальный overflow на мобайле. nav fixed → не ломается. */
html, body { overflow-x: hidden; max-width: 100%; }
