/* vyshka.css — единый light-theme базовый стилевой каталог.
 * Источник: Claude Design v6 light landing (off-white #FAFAFB, акцент #6366f1).
 * Применяется на: /, /setup, /showcase. */

/* ── DESIGN TOKENS ── */
:root {
  --bg:        #FAFAFB;
  --bg2:       #F4F2F8;
  --bg3:       #FFFFFF;
  --bg4:       #EEE9FB;

  --ink:       #0E0B1A;
  --ink2:      #2A2640;
  --ink3:      #6B6880;
  --ink4:      #A8A4BB;

  --violet:    #6366f1;
  --violet2:   #8b5cf6;
  --violet3:   #C4B0FF;
  --violet4:   #EDE8FF;
  --vglow:     rgba(124,92,255,.18);
  --vglow2:    rgba(124,92,255,.10);

  --cyan:      #4FD1FF;
  --cyan2:     rgba(79,209,255,.14);

  --green:     #16A34A;
  --green-bg:  #DCFCE7;
  --amber:     #D97706;
  --red:       #DC2626;

  --border:    rgba(124,92,255,.10);
  --border2:   rgba(124,92,255,.20);
  --border3:   rgba(14,11,26,.07);

  --shadow-xs: 0 1px 2px rgba(14,11,26,.04);
  --shadow-sm: 0 1px 3px rgba(14,11,26,.06), 0 4px 12px rgba(124,92,255,.05);
  --shadow-md: 0 2px 8px rgba(14,11,26,.06), 0 8px 24px rgba(124,92,255,.08);
  --shadow-lg: 0 4px 16px rgba(14,11,26,.08), 0 16px 48px rgba(124,92,255,.10);

  --font:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font2: 'Manrope', 'Inter', sans-serif;
  --mono:  'SF Mono', 'Fira Code', ui-monospace, monospace;

  --radius:  14px;
  --radius2: 10px;
  --radius3: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
::selection { background: rgba(124,92,255,.15); color: var(--ink); }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* SKIP LINK */
.skip-link {
  position: absolute; top: -99px; left: 16px;
  padding: 8px 16px; background: var(--violet); color: #fff;
  font-size: 13px; font-weight: 600; border-radius: 8px; z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 8px; }

/* ── SUBTLE DOT PATTERN ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(124,92,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* ── BLOB GLOWS (hero & cta) ── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  background: rgba(250,250,251,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled {
  border-color: var(--border3);
  box-shadow: 0 1px 0 rgba(14,11,26,.04), 0 4px 24px rgba(124,92,255,.06);
}
.nav-logo {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font2); font-weight: 800;
  font-size: 17px; letter-spacing: -.03em;
  color: var(--ink); margin-right: 32px;
  flex-shrink: 0;
}
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--violet), var(--violet2));
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900; color: #fff;
  box-shadow: 0 2px 8px var(--vglow);
  flex-shrink: 0; letter-spacing: -.02em;
}
.nav-links { display: flex; gap: 0; list-style: none; flex: 1; }
.nav-links a {
  font-size: 13.5px; font-weight: 500; color: var(--ink3);
  padding: 6px 13px; border-radius: 7px;
  transition: color .14s, background .14s;
}
.nav-links a:hover { color: var(--ink); background: rgba(14,11,26,.04); }
.nav-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-version {
  font-size: 11px; font-weight: 600; font-family: var(--mono);
  color: var(--ink4); padding: 3px 10px;
  border: 1px solid var(--border3); border-radius: 100px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; cursor: pointer; transition: all .18s;
  border-radius: var(--radius2); white-space: nowrap;
  line-height: 1; letter-spacing: -.01em;
}
.btn-sm  { font-size: 13px;  padding: 8px 16px; }
.btn-md  { font-size: 14px;  padding: 11px 22px; }
.btn-lg  { font-size: 15px;  padding: 14px 30px; border-radius: var(--radius); }

.btn-primary {
  background: var(--violet); color: #fff;
  box-shadow: 0 2px 8px rgba(124,92,255,.30), 0 1px 2px rgba(124,92,255,.20);
}
.btn-primary:hover {
  background: var(--violet2); transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124,92,255,.35), 0 2px 6px rgba(124,92,255,.25);
  color: #fff;
}
.btn-ghost {
  background: #fff; color: var(--ink2);
  border: 1px solid var(--border3);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover {
  background: var(--bg2); border-color: var(--border2);
  color: var(--ink); box-shadow: var(--shadow-sm);
}
.btn-nav-ghost {
  background: transparent; color: var(--ink3);
  padding: 7px 13px; font-size: 13px; border-radius: 7px; font-weight: 500;
}
.btn-nav-ghost:hover { color: var(--ink); background: rgba(14,11,26,.04); }
.btn-nav-cta {
  background: var(--violet); color: #fff;
  padding: 8px 18px; font-size: 13px; border-radius: 8px;
  box-shadow: 0 2px 8px var(--vglow);
}
.btn-nav-cta:hover { background: var(--violet2); box-shadow: 0 4px 14px var(--vglow); transform: translateY(-1px); color:#fff; }

/* ── INPUTS ── */
.input, input.input, textarea.input, select.input {
  width: 100%;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border3);
  border-radius: var(--radius2);
  padding: 11px 14px;
  transition: border-color .15s, box-shadow .15s;
  line-height: 1.4;
}
.input:focus, input.input:focus, textarea.input:focus, select.input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124,92,255,.12);
}
.input::placeholder { color: var(--ink4); }
.label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--ink2); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .05em;
}

/* ── CONTAINER + CARD ── */
.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 40px;
}
.container-narrow { max-width: 680px; }
.card {
  background: #fff;
  border: 1px solid var(--border3);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; font-family: var(--mono);
  color: var(--ink3); background: #fff;
  border: 1px solid var(--border3); border-radius: 7px;
  padding: 4px 10px; box-shadow: var(--shadow-xs);
}
.chip-violet { color: var(--violet); background: var(--violet4); border-color: rgba(124,92,255,.15); }
.chip-green  { color: var(--green);  background: var(--green-bg); border-color: rgba(22,163,74,.15); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 100px 60px 80px;
  position: relative;
  overflow: hidden;
}
.hero-blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,92,255,.12) 0%, transparent 70%);
  top: -100px; left: -150px;
}
.hero-blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(79,209,255,.08) 0%, transparent 70%);
  top: 40%; right: 5%;
}
.hero-left { position: relative; z-index: 3; max-width: 580px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--violet4); border: 1px solid rgba(124,92,255,.18);
  border-radius: 100px; padding: 5px 14px 5px 7px;
  font-size: 11.5px; font-weight: 700; color: var(--violet);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 28px;
}
.badge-ring {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(124,92,255,.12); border: 1px solid rgba(124,92,255,.25);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 2px var(--green-bg);
  animation: dot-pulse 2.5s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.25); opacity: .8; }
}

.hero-h1 {
  font-family: var(--font2);
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 800; letter-spacing: -.055em;
  line-height: 1.04; color: var(--ink);
  margin-bottom: 20px; text-wrap: balance;
}
.h1-accent {
  background: linear-gradient(130deg, var(--violet) 30%, var(--violet2) 70%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-tagline {
  font-size: clamp(16px, 1.6vw, 19px); color: var(--ink2);
  font-weight: 500; margin-bottom: 8px; line-height: 1.5;
}
.hero-tagline strong { color: var(--ink); font-weight: 700; }
.hero-sub {
  font-size: 15px; color: var(--ink3); line-height: 1.75;
  margin-bottom: 34px; max-width: 480px;
}
.hero-actions {
  display: flex; gap: 10px; align-items: center;
  flex-wrap: wrap; margin-bottom: 36px;
}
.hero-chips {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}
.hero-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; font-family: var(--mono);
  color: var(--ink3); background: #fff;
  border: 1px solid var(--border3); border-radius: 7px;
  padding: 4px 10px; box-shadow: var(--shadow-xs);
}
.chip-sep { color: var(--ink4); font-size: 11px; }

/* ── SPHERE ── */
.hero-right {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: center;
}
.sphere-wrap {
  position: relative; width: 460px; height: 460px;
  display: flex; align-items: center; justify-content: center;
}
.sphere-canvas { position: absolute; inset: 0; }
.sphere-ring {
  position: absolute; border-radius: 50%;
  animation: ring-spin linear infinite;
}
.sphere-ring-1 {
  width: 220px; height: 220px; animation-duration: 22s;
  border: 1px solid rgba(124,92,255,.14);
}
.sphere-ring-2 {
  width: 320px; height: 320px; animation-duration: 38s;
  animation-direction: reverse;
  border: 1px solid rgba(124,92,255,.08);
}
.sphere-ring-3 {
  width: 420px; height: 420px; animation-duration: 55s;
  border: 1px solid rgba(124,92,255,.05);
}
.sphere-ring::before {
  content: '';
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: var(--violet); box-shadow: 0 0 8px var(--vglow), 0 0 0 2px #fff;
  top: -4px; left: 50%; transform: translateX(-50%);
}
@keyframes ring-spin { to { transform: rotate(360deg); } }

.sphere-core {
  position: relative; z-index: 2;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%,
    rgba(255,255,255,.95) 0%,
    rgba(220,210,255,.85) 30%,
    rgba(160,130,255,.70) 60%,
    rgba(100,70,220,.55) 100%);
  box-shadow:
    0 0 0 1px rgba(124,92,255,.15),
    0 8px 32px rgba(124,92,255,.20),
    0 24px 80px rgba(124,92,255,.12),
    inset 0 2px 8px rgba(255,255,255,.80),
    inset -4px -4px 20px rgba(100,70,200,.15);
  animation: pearl-breathe 4.5s ease-in-out infinite;
  display: flex; align-items: center; justify-content: center;
}
@keyframes pearl-breathe {
  0%,100% {
    box-shadow:
      0 0 0 1px rgba(124,92,255,.14),
      0 8px 32px rgba(124,92,255,.18),
      0 24px 80px rgba(124,92,255,.10),
      inset 0 2px 8px rgba(255,255,255,.80);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(124,92,255,.20),
      0 12px 44px rgba(124,92,255,.26),
      0 36px 100px rgba(124,92,255,.14),
      inset 0 2px 8px rgba(255,255,255,.90);
    transform: scale(1.04);
  }
}
.sphere-letter {
  font-family: var(--font2); font-weight: 900;
  font-size: 54px; letter-spacing: -.06em; line-height: 1;
  color: var(--violet);
  text-shadow: 0 2px 8px rgba(124,92,255,.25), 0 0 24px rgba(255,255,255,.6);
}
.orbit-label {
  position: absolute; font-size: 11px; font-weight: 600;
  font-family: var(--mono); color: var(--ink3);
  background: #fff; border: 1px solid var(--border3);
  border-radius: 7px; padding: 4px 10px;
  white-space: nowrap; letter-spacing: .02em;
  box-shadow: var(--shadow-sm);
}
.ol-1 { top: 28px;  right: 50px;  color: var(--green); border-color: rgba(22,163,74,.2); }
.ol-2 { top: 120px; right: 4px; }
.ol-3 { bottom: 100px; right: 22px; color: var(--violet); border-color: rgba(124,92,255,.2); }
.ol-4 { bottom: 38px; left: 50px; }
.ol-5 { top: 78px; left: 12px; color: #0891B2; border-color: rgba(8,145,178,.2); }

/* ── TICKER ── */
.ticker-wrap {
  background: #fff; border-top: 1px solid var(--border3);
  border-bottom: 1px solid var(--border3); height: 38px;
  overflow: hidden; position: relative; z-index: 10;
}
.ticker-inner {
  display: flex; align-items: center; gap: 56px;
  white-space: nowrap; animation: ticker-scroll 54s linear infinite;
  height: 38px; padding-left: 180px; width: max-content;
}
.ticker-inner:hover { animation-play-state: paused; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
.ti { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink3); }
.ti-tag {
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 100px; text-transform: uppercase; letter-spacing: .05em;
}
.tag-ok { background: var(--green-bg); color: var(--green); }
.tag-v  { background: var(--violet4);  color: var(--violet); }
.tag-a  { background: #FEF3C7; color: var(--amber); }
.tag-c  { background: #E0F7FF; color: #0891B2; }
.ticker-live {
  position: absolute; left: 0; top: 0; bottom: 0;
  display: flex; align-items: center; padding: 0 18px; gap: 7px;
  background: #fff; border-right: 1px solid var(--border3);
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--ink4); z-index: 2;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 2px var(--green-bg);
  animation: dot-pulse 2s ease-in-out infinite;
}

/* ── SECTIONS ── */
.section { padding: 96px 60px; position: relative; }
.section-alt { background: var(--bg2); }
.section-white { background: #fff; }
.section-inner { max-width: 1060px; margin: 0 auto; position: relative; z-index: 2; }
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: var(--violet); margin-bottom: 12px;
}
.section-label::before {
  content: ''; display: block; width: 18px; height: 1.5px;
  background: var(--violet);
}
.section-h2 {
  font-family: var(--font2);
  font-size: clamp(26px, 3.8vw, 48px);
  font-weight: 800; letter-spacing: -.05em;
  line-height: 1.07; color: var(--ink);
  text-wrap: balance; margin-bottom: 12px;
}
.section-sub {
  font-size: 15.5px; color: var(--ink3);
  max-width: 500px; line-height: 1.72;
}

/* ── LIVE STATS ── */
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 12px; margin-top: 48px;
}
.stat-tile {
  background: #fff; border: 1px solid var(--border3);
  border-radius: var(--radius); padding: 28px 24px 22px;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
  position: relative; overflow: hidden;
}
.stat-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-tile::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--violet3));
  opacity: 0; transition: opacity .2s;
}
.stat-tile:hover::before { opacity: 1; }
.stat-num {
  font-family: var(--mono); font-size: 42px; font-weight: 700;
  color: var(--ink); line-height: 1; margin-bottom: 6px;
  letter-spacing: -.04em;
}
.stat-num span { color: var(--violet); }
.stat-label { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.stat-sub    { font-size: 12px; color: var(--ink3); }

/* ── MANIFEST ── */
.manifest-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start; margin-top: 48px;
}
.manifest-quote {
  font-family: var(--font2);
  font-size: clamp(19px, 2.2vw, 26px); font-weight: 700;
  color: var(--ink); line-height: 1.45; letter-spacing: -.03em;
  margin-bottom: 28px; text-wrap: balance;
}
.manifest-quote em {
  font-style: normal;
  background: linear-gradient(110deg, var(--violet), var(--violet2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.manifest-points { display: flex; flex-direction: column; gap: 18px; }
.manifest-point  { display: flex; gap: 14px; align-items: flex-start; }
.mp-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--violet4); border: 1px solid rgba(124,92,255,.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 15px;
}
.mp-text { font-size: 14px; color: var(--ink3); line-height: 1.65; }
.mp-text strong { color: var(--ink2); font-weight: 600; }

/* JSON BLOCK */
.json-block {
  background: var(--ink); border-radius: var(--radius);
  overflow: hidden; font-family: var(--mono);
  font-size: 12px; line-height: 1.9; position: relative;
  box-shadow: var(--shadow-lg);
}
.json-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.3); letter-spacing: .05em;
}
.json-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: dot-pulse 2s ease-in-out infinite; }
.json-filename { color: rgba(255,255,255,.5); }
.json-body { padding: 18px 20px; overflow-x: auto; }
.jk { color: #a78bfa; }
.jv { color: #86efac; }
.jn { color: #fbbf24; }
.js2{ color: #67e8f9; }
.jb { color: #f472b6; }
.jc { color: rgba(255,255,255,.25); }
.cursor-blink {
  display: inline-block; width: 6px; height: 13px;
  background: var(--violet3); border-radius: 1px;
  animation: blink .85s infinite; vertical-align: middle; margin-left: 2px;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ── COGNITIVE STACK ── */
.stack-grid {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 48px; max-width: 760px; margin-left: auto; margin-right: auto;
}
.stack-level {
  display: grid; grid-template-columns: 140px 1fr auto;
  gap: 20px; align-items: center;
  background: #fff; border: 1px solid var(--border3);
  border-radius: var(--radius); padding: 18px 22px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow .2s, border-color .2s, transform .18s;
  position: relative; overflow: hidden; cursor: default;
}
.stack-level:hover {
  box-shadow: var(--shadow-md); border-color: var(--border2);
  transform: translateX(4px);
}
.stack-level::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  opacity: .5; transition: opacity .2s;
}
.sl-1::before { background: var(--violet); }
.sl-2::before { background: var(--violet2); }
.sl-3::before { background: var(--green); }
.sl-4::before { background: var(--amber); }
.sl-5::before { background: var(--cyan); }
.stack-level:hover::before { opacity: 1; }
.sl-num { font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--ink4); display: block; margin-bottom: 2px; text-transform: uppercase; letter-spacing: .08em; }
.sl-name { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.sl-desc { font-size: 13px; color: var(--ink3); line-height: 1.6; }
.sl-timer {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: var(--violet); background: var(--violet4);
  border: 1px solid rgba(124,92,255,.18); border-radius: 8px;
  padding: 4px 11px; white-space: nowrap;
}

/* 22 THREADS */
.threads-section { margin-top: 52px; }
.threads-title {
  font-size: 14.5px; font-weight: 700; color: var(--ink);
  margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.threads-count {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: var(--violet); background: var(--violet4);
  border: 1px solid rgba(124,92,255,.18); border-radius: 100px; padding: 3px 10px;
}
.threads-grid {
  display: grid; grid-template-columns: repeat(11,1fr); gap: 5px;
}
.thread-cell {
  aspect-ratio: 1; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 8.5px; font-family: var(--mono); font-weight: 700;
  color: rgba(124,92,255,.35); background: var(--violet4);
  border: 1px solid rgba(124,92,255,.12);
  transition: all .2s; cursor: default;
}
.thread-cell.active {
  background: rgba(124,92,255,.10); border-color: rgba(124,92,255,.28);
  color: var(--violet); box-shadow: 0 2px 6px rgba(124,92,255,.08);
  animation: thread-pulse 2.8s ease-in-out infinite;
}
@keyframes thread-pulse {
  0%,100% { box-shadow: 0 2px 6px rgba(124,92,255,.08); opacity: 1; }
  50%      { box-shadow: 0 2px 12px rgba(124,92,255,.16); opacity: .85; }
}
.thread-cell:nth-child(3n+1).active { animation-delay: .2s; }
.thread-cell:nth-child(3n+2).active { animation-delay: .7s; }
.thread-cell:nth-child(3n).active   { animation-delay: 1.3s; }

/* ── FEATURES ── */
.feat-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 12px; margin-top: 48px;
}
.feat-card {
  background: #fff; border: 1px solid var(--border3);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
  position: relative; overflow: hidden;
}
.feat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feat-card::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius);
  background: linear-gradient(140deg, var(--violet4) 0%, transparent 50%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.feat-card:hover::before { opacity: 1; }
.feat-icon {
  width: 40px; height: 40px; border-radius: var(--radius2);
  background: var(--violet4); border: 1px solid rgba(124,92,255,.18);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feat-icon svg { width: 19px; height: 19px; stroke: var(--violet); fill: none; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.feat-n { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--ink4); font-family: var(--mono); text-transform: uppercase; margin-bottom: 7px; }
.feat-t { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -.025em; margin-bottom: 10px; line-height: 1.3; }
.feat-d { font-size: 13.5px; color: var(--ink3); line-height: 1.72; }
.feat-tag {
  display: inline-flex; margin-top: 14px;
  background: var(--violet4); border: 1px solid rgba(124,92,255,.18);
  border-radius: 100px; padding: 3px 10px;
  font-size: 10.5px; font-weight: 700; color: var(--violet);
  text-transform: uppercase; letter-spacing: .06em;
}
.feat-tag-g { background: var(--green-bg); border-color: rgba(22,163,74,.2); color: var(--green); }
.feat-tag-c { background: #E0F7FF; border-color: rgba(8,145,178,.2); color: #0891B2; }
.feat-tag-a { background: #FEF3C7; border-color: rgba(217,119,6,.2); color: var(--amber); }
.feat-wide  { grid-column: span 2; }

/* ── SHOWCASE ── */
.showcase-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 14px; margin-top: 48px;
}
.showcase-card {
  background: #fff; border: 1px solid var(--border3);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
  display: block;
}
.showcase-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.sc-chrome {
  background: var(--bg2); border-bottom: 1px solid var(--border3);
  padding: 10px 14px; display: flex; align-items: center; gap: 10px;
}
.sc-dots { display: flex; gap: 5px; }
.sc-dot  { width: 10px; height: 10px; border-radius: 50%; }
.sc-dot:nth-child(1) { background: #FC635D; }
.sc-dot:nth-child(2) { background: #FDBC40; }
.sc-dot:nth-child(3) { background: #34C749; }
.sc-url {
  flex: 1; background: #fff; border: 1px solid var(--border3);
  border-radius: 6px; padding: 4px 10px;
  font-family: var(--mono); font-size: 11px; color: var(--ink4);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sc-url span { color: var(--violet); font-weight: 600; }
.sc-body  { padding: 18px; }
.sc-title {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ink4); margin-bottom: 14px; font-family: var(--mono);
}
.entity-rows { display: flex; flex-direction: column; gap: 7px; }
.entity-row  { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: start; }
.er-key  { font-family: var(--mono); font-size: 11px; color: var(--ink4); }
.er-val  { font-size: 12.5px; color: var(--ink2); font-weight: 500; }
.er-badge {
  display: inline-block; background: var(--violet4);
  border: 1px solid rgba(124,92,255,.2); border-radius: 5px;
  padding: 1px 7px; font-size: 10px; font-family: var(--mono); color: var(--violet);
}
.er-green { background: var(--green-bg); border-color: rgba(22,163,74,.2); color: var(--green); }
.diary-entries { display: flex; flex-direction: column; gap: 9px; }
.diary-entry {
  background: var(--bg2); border: 1px solid var(--border3);
  border-radius: 9px; padding: 11px 13px;
}
.de-time { font-family: var(--mono); font-size: 10px; color: var(--ink4); margin-bottom: 4px; }
.de-text { font-size: 12px; color: var(--ink3); line-height: 1.6; }
.de-tag  { display: inline-block; margin-top: 5px; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 100px; }
.dt-r    { background: #FEE2E2; color: var(--red); }
.dt-g    { background: var(--green-bg); color: var(--green); }
.dt-v    { background: var(--violet4); color: var(--violet); }
.dreams-list { display: flex; flex-direction: column; gap: 8px; }
.dream-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px; background: var(--violet4);
  border: 1px solid rgba(124,92,255,.14); border-radius: 9px;
}
.di-num {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  color: var(--violet); background: #fff; border: 1px solid rgba(124,92,255,.2);
  border-radius: 5px; padding: 2px 6px; flex-shrink: 0; margin-top: 1px;
}
.di-text { font-size: 12px; color: var(--ink2); line-height: 1.5; }
.di-text strong { color: var(--ink); font-weight: 700; }

/* ── ARCHITECTURE ── */
.arch-wrap {
  margin-top: 48px; background: #fff;
  border: 1px solid var(--border3); border-radius: 18px;
  padding: 40px 44px; overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
.arch-diagram {
  display: flex; align-items: center;
  justify-content: center; gap: 0; min-width: 680px;
}
.arch-side { display: flex; flex-direction: column; gap: 8px; }
.arch-side-node {
  background: var(--bg2); border: 1px solid var(--border3);
  border-radius: var(--radius2); padding: 10px 16px;
  text-align: center; min-width: 110px;
  transition: border-color .2s, box-shadow .2s;
}
.arch-side-node:hover { border-color: var(--border2); box-shadow: var(--shadow-sm); }
.asn-label { font-size: 9.5px; font-family: var(--mono); color: var(--ink4); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.asn-name  { font-size: 13px; font-weight: 700; color: var(--ink); }
.arch-node {
  background: var(--bg2); border: 1px solid var(--border3);
  border-radius: var(--radius); padding: 16px 20px; text-align: center; flex-shrink: 0;
}
.arch-node.center {
  background: var(--violet4); border-color: rgba(124,92,255,.30);
  box-shadow: 0 4px 24px rgba(124,92,255,.12); padding: 22px 30px;
}
.an-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink4); margin-bottom: 5px; font-family: var(--mono); }
.an-name  { font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -.025em; margin-bottom: 6px; font-family: var(--font2); }
.an-sub   { font-size: 11px; color: var(--ink3); line-height: 1.55; }
.arch-arrow {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 0 16px; flex-shrink: 0;
}
.arch-arrow-line {
  width: 56px; height: 1px;
  background: linear-gradient(90deg, rgba(124,92,255,.2), rgba(124,92,255,.5), rgba(124,92,255,.2));
  position: relative;
}
.arch-arrow-line::after {
  content: '▶'; position: absolute; right: -7px; top: -6px;
  font-size: 10px; color: var(--violet); opacity: .6;
}
.arch-arrow-label { font-size: 9.5px; font-family: var(--mono); color: var(--ink4); letter-spacing: .03em; }
.arch-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-top: 28px;
}

/* ── BIG NUMBERS ── */
.numbers-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 12px; margin-top: 48px;
}
.big-num-cell {
  background: #fff; border: 1px solid var(--border3);
  border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
  text-align: center; position: relative; overflow: hidden;
}
.big-num-cell:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.big-num-cell::before {
  content: ''; position: absolute; top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 80px;
  background: radial-gradient(circle, var(--vglow) 0%, transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.big-num-cell:hover::before { opacity: 1; }
.bn-num {
  font-family: var(--font2);
  font-size: clamp(46px, 5.5vw, 72px);
  font-weight: 800; letter-spacing: -.07em;
  line-height: 1; color: var(--ink); margin-bottom: 8px;
}
.bn-num span { color: var(--violet); }
.bn-label { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.bn-sub   { font-size: 12px; color: var(--ink3); }

/* ── HOW TO START ── */
.steps-grid {
  display: grid; grid-template-columns: repeat(5,1fr);
  gap: 0; margin-top: 48px; position: relative;
}
.steps-connector {
  position: absolute; top: 26px;
  left: calc(10% + 18px); right: calc(10% + 18px);
  height: 1px; background: linear-gradient(90deg, transparent, rgba(124,92,255,.2) 15%, rgba(124,92,255,.2) 85%, transparent);
}
.step-item { text-align: center; position: relative; z-index: 2; padding: 0 10px; }
.step-num {
  width: 50px; height: 50px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  color: var(--violet); margin: 0 auto 18px;
  box-shadow: var(--shadow-sm); transition: all .2s;
}
.step-item:hover .step-num {
  background: var(--violet4); border-color: rgba(124,92,255,.45);
  box-shadow: 0 4px 16px rgba(124,92,255,.18);
}
.step-t { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 7px; letter-spacing: -.01em; }
.step-d { font-size: 12.5px; color: var(--ink3); line-height: 1.65; }

/* ── PRICING ── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 12px; margin-top: 48px;
}
.pricing-card {
  background: #fff; border: 1px solid var(--border3);
  border-radius: 18px; padding: 28px 26px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
  position: relative; overflow: hidden;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.pricing-card.featured {
  border-color: rgba(124,92,255,.30);
  box-shadow: 0 4px 24px rgba(124,92,255,.10);
}
.pricing-card.featured::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--violet), var(--violet3));
}
.pc-badge {
  display: inline-flex; margin-bottom: 14px;
  background: var(--violet4); border: 1px solid rgba(124,92,255,.2);
  border-radius: 100px; padding: 3px 11px;
  font-size: 10.5px; font-weight: 700; color: var(--violet);
  text-transform: uppercase; letter-spacing: .07em;
}
.pc-name  { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--ink4); margin-bottom: 8px; font-family: var(--mono); }
.pc-price { font-family: var(--font2); font-size: 44px; font-weight: 800; letter-spacing: -.07em; color: var(--ink); line-height: 1; margin-bottom: 3px; }
.pc-price sup { font-size: 18px; vertical-align: top; margin-top: 9px; font-weight: 600; }
.pc-per   { font-size: 11.5px; color: var(--ink4); margin-bottom: 6px; }
.pc-users {
  font-size: 12px; color: var(--ink3);
  background: var(--bg2); border: 1px solid var(--border3);
  border-radius: 7px; padding: 4px 10px;
  display: inline-block; margin-bottom: 18px;
}
.pc-hr     { height: 1px; background: var(--border3); margin-bottom: 18px; }
.pc-feats  { list-style: none; display: flex; flex-direction: column; gap: 9px; flex: 1; margin-bottom: 20px; }
.pc-feats li { font-size: 13px; color: var(--ink3); display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
.pf-y { color: var(--green); flex-shrink: 0; font-style: normal; font-weight: 600; }
.pf-n { color: var(--ink4); flex-shrink: 0; font-style: normal; }
.pc-btn {
  width: 100%; justify-content: center; padding: 12px;
  border-radius: var(--radius2); font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: var(--font); transition: all .18s;
  display: flex; align-items: center; gap: 6px; text-decoration: none;
}
.pc-btn-p { background: var(--violet); color: #fff; border: none; box-shadow: 0 2px 10px rgba(124,92,255,.30); }
.pc-btn-p:hover { background: var(--violet2); box-shadow: 0 4px 18px rgba(124,92,255,.40); transform: translateY(-1px); }
.pc-btn-g { background: var(--bg2); color: var(--ink2); border: 1px solid var(--border3); }
.pc-btn-g:hover { border-color: var(--border2); color: var(--ink); background: var(--violet4); }
.pricing-note { text-align: center; font-size: 12.5px; color: var(--ink4); margin-top: 18px; line-height: 1.75; }
.pricing-note a { color: var(--violet); font-weight: 600; }
.pricing-note a:hover { color: var(--violet2); }

/* ── FAQ ── */
.faq-wrap { max-width: 680px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 6px; }
.faq-item {
  background: #fff; border: 1px solid var(--border3);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-xs); transition: border-color .15s, box-shadow .15s;
}
.faq-item.open {
  border-color: rgba(124,92,255,.25);
  box-shadow: 0 4px 20px rgba(124,92,255,.08);
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 17px 20px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--ink);
  gap: 16px; user-select: none; transition: background .14s;
  background: transparent; width: 100%; text-align: left;
}
.faq-q:hover { background: var(--bg2); }
.faq-icon { color: var(--ink4); transition: transform .22s, color .14s; font-size: 20px; font-weight: 300; flex-shrink: 0; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--violet); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .38s ease, padding .22s;
  font-size: 13.5px; color: var(--ink3); line-height: 1.8;
  padding: 0 20px;
}
.faq-item.open .faq-a { max-height: 280px; padding: 0 20px 18px; }
.faq-a a { color: var(--violet); font-weight: 600; }
.faq-a a:hover { color: var(--violet2); }

/* ── FINAL CTA ── */
.final-cta {
  padding: 120px 60px; text-align: center;
  position: relative; overflow: hidden;
  background: var(--bg);
}
.cta-blob-1 {
  width: 700px; height: 500px;
  background: radial-gradient(circle, rgba(124,92,255,.10) 0%, transparent 65%);
  top: -100px; left: 50%; transform: translateX(-50%);
}
.cta-blob-2 {
  width: 400px; height: 300px;
  background: radial-gradient(circle, rgba(79,209,255,.06) 0%, transparent 70%);
  bottom: -60px; right: 10%;
}
.cta-sphere {
  width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%,
    rgba(255,255,255,.95) 0%,
    rgba(220,210,255,.85) 30%,
    rgba(160,130,255,.70) 60%,
    rgba(100,70,220,.55) 100%);
  box-shadow:
    0 0 0 1px rgba(124,92,255,.15),
    0 8px 32px rgba(124,92,255,.20),
    0 24px 70px rgba(124,92,255,.10),
    inset 0 2px 6px rgba(255,255,255,.80);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
  animation: pearl-breathe 4.5s ease-in-out infinite;
  font-family: var(--font2); font-weight: 900;
  font-size: 36px; letter-spacing: -.04em; color: var(--violet);
}
.cta-inner { position: relative; z-index: 2; max-width: 540px; margin: 0 auto; }
.cta-h2 {
  font-family: var(--font2);
  font-size: clamp(32px, 4.8vw, 54px);
  font-weight: 800; letter-spacing: -.06em;
  color: var(--ink); line-height: 1.05;
  margin-bottom: 14px; text-wrap: balance;
}
.cta-h2 span { color: var(--violet); }
.cta-sub  { font-size: 16px; color: var(--ink3); margin-bottom: 34px; line-height: 1.7; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.cta-note { font-size: 12px; color: var(--ink4); }
.cta-note span { color: var(--ink3); }

/* ── FOOTER ── */
.footer {
  background: var(--ink); border-top: 1px solid rgba(255,255,255,.06);
  padding: 56px 60px 28px;
}
.footer-inner { max-width: 1060px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 44px;
}
.fb-logo { display: flex; align-items: center; gap: 9px; font-family: var(--font2); font-weight: 800; font-size: 17px; letter-spacing: -.03em; color: #fff; margin-bottom: 14px; }
.logo-mark-light {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, var(--violet), var(--violet2));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; color: #fff;
}
.fb-desc { font-size: 12.5px; color: rgba(255,255,255,.35); line-height: 1.7; max-width: 230px; margin-bottom: 16px; }
.fb-meta { display: flex; flex-direction: column; gap: 5px; }
.fb-m { font-size: 12px; color: rgba(255,255,255,.3); }
.fb-m a { color: rgba(255,255,255,.45); transition: color .15s; }
.fb-m a:hover { color: #fff; }
.fc-head { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.25); margin-bottom: 14px; }
.fc-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.fc-links a { font-size: 13px; color: rgba(255,255,255,.35); transition: color .15s; }
.fc-links a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between;
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,.07);
  font-size: 11.5px; color: rgba(255,255,255,.25);
  flex-wrap: wrap; gap: 10px; align-items: center;
}
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700; padding: 3px 9px;
  border-radius: 100px; border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.3); letter-spacing: .04em; text-transform: uppercase;
}
.fb-data { border-color: rgba(34,197,94,.25); color: rgba(34,197,94,.6); }

/* ── STICKY BAR ── */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,.96); backdrop-filter: blur(20px);
  border-top: 1px solid var(--border3);
  box-shadow: 0 -4px 24px rgba(14,11,26,.08);
  padding: 12px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transform: translateY(100%); transition: transform .3s cubic-bezier(.22,.1,.36,1);
}
.sticky-bar.visible { transform: translateY(0); }
.sb-text { font-size: 13.5px; color: var(--ink3); }
.sb-text strong { color: var(--ink); }
.sb-btns { display: flex; gap: 8px; align-items: center; }

/* ── PAGE CONTENT (для setup/showcase обёрток) ── */
.page-wrap { padding: 100px 40px 60px; min-height: calc(100vh - 60px); }
.page-h1 {
  font-family: var(--font2);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800; letter-spacing: -.04em;
  line-height: 1.1; color: var(--ink);
  margin-bottom: 12px;
}
.page-sub {
  font-size: 15px; color: var(--ink3); margin-bottom: 32px;
  max-width: 680px; line-height: 1.7;
}

/* ── LEGACY VARS COMPAT LAYER ──
 * Старые страницы (pricing/faq/case/onboarding/demo) использовали vyshka-tokens.css
 * с dark-токенами `--text`, `--primary`, `--bg-card` etc. После миграции они
 * линкуются на /assets/vyshka.css вместо vyshka-tokens.css. Их inline CSS
 * остаётся как было — но resolve в light-значения через эти aliases.
 * Каждый legacy var = маппинг на light v0.5 эквивалент. */
:root {
  /* Bg */
  --bg-soft:        var(--bg2);
  --bg-card:        #fff;
  --bg-elevated:    var(--bg3);
  --bg-glass:       rgba(255,255,255,.85);

  /* Text */
  --text:           var(--ink2);
  --text-strong:    var(--ink);
  --text-soft:      var(--ink3);
  --text-muted:     var(--ink4);
  --text-faint:     var(--ink4);

  /* Brand */
  --primary:        var(--violet);
  --primary-2:      var(--violet2);
  --primary-3:      var(--violet3);
  --primary-soft:   var(--violet4);
  --primary-dark:   #5B47CC;

  /* Borders / dividers */
  --border:         var(--border3);
  --border-soft:    var(--border3);
  --border-strong:  var(--border2);
  --border-glow:    var(--border2);

  /* Status */
  --success:        var(--green);
  --success-soft:   var(--green-bg);
  --warning:        var(--amber);
  --warning-soft:   #FEF3C7;
  --danger:         var(--red);
  --danger-soft:    #FEE2E2;
  --info:           var(--cyan);
  --info-soft:      var(--cyan2);

  /* Shadows */
  --shadow-sm-legacy: var(--shadow-xs);
  --shadow-md-legacy: var(--shadow-sm);
  --shadow-lg:        var(--shadow-md);
  --shadow-xl:        var(--shadow-lg);

  /* Gradients */
  --grad-primary:   linear-gradient(135deg, var(--violet), var(--violet2));
  --grad-soft:      linear-gradient(135deg, var(--violet4), #fff);

  /* Spacing aliases (compat) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-7: 28px; --s-8: 32px;
  --s-10: 40px; --s-12: 48px; --s-16: 64px;

  /* Type aliases */
  --t-xs: 11px; --t-sm: 13px; --t-body: 14px; --t-lg: 16px;
  --t-h3: 20px; --t-h2: 26px; --t-h1: 38px; --t-display: 56px;
  --w-regular: 400; --w-medium: 500; --w-semibold: 600; --w-bold: 700; --w-black: 800;
  --ls-snug: -.02em; --ls-tight: -.04em;

  /* Misc */
  --r: var(--radius2);
  --r-lg: var(--radius);
  --r-xl: 18px;
  --t-fast: .15s;
  --t-base: .22s;
  --z-sticky: 200;
  --font: var(--font);
}

/* Body на legacy-страницах должен унаследовать light bg даже если они
 * сами не reset'ят. Не используем !important — только specificity boost. */
body[class*="legacy-light"] { background: var(--bg); color: var(--ink2); }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; padding: 90px 40px 64px; }
  .hero-right { display: none; }
  .manifest-grid { grid-template-columns: 1fr; gap: 36px; }
  .showcase-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: repeat(3,1fr); }
  .steps-grid { grid-template-columns: repeat(3,1fr); gap: 24px; }
  .steps-connector { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .nav { padding: 0 20px; }
  .nav-links, .nav-version { display: none; }
  .section { padding: 72px 24px; }
  .hero { padding: 88px 24px 60px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .feat-grid { grid-template-columns: 1fr; }
  .feat-wide { grid-column: span 1; }
  .numbers-grid { grid-template-columns: repeat(2,1fr); }
  .steps-grid { grid-template-columns: repeat(2,1fr); gap: 20px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer { padding: 44px 24px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .final-cta { padding: 80px 24px; }
  .sticky-bar { padding: 10px 20px; flex-direction: column; gap: 10px; text-align: center; }
  .cta-btns { flex-direction: column; align-items: center; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .container, .page-wrap { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 480px) {
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .arch-diagram { flex-direction: column; }
}
