/* ============================================================
   HomeFix AI — Design System
   "Нулевой UI". Платформа, где интерфейс = ИИ.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  --bg:        #06070C;
  --bg-1:      #0A0C13;
  --bg-2:      #0F121A;
  --panel:     rgba(255, 255, 255, .028);
  --panel-2:   rgba(255, 255, 255, .05);
  --line:      rgba(255, 255, 255, .075);
  --line-2:    rgba(255, 255, 255, .14);

  --t0:        #F4F6FB;
  --t1:        #A7AFC1;
  --t2:        #6E7789;
  --t3:        #4A5265;

  --v:         #7C5CFF;
  --c:         #22D3EE;
  --a:         #FF9F45;
  --l:         #A3E635;
  --pink:      #F472B6;

  --grad:      linear-gradient(120deg, #7C5CFF 0%, #22D3EE 100%);
  --grad-warm: linear-gradient(120deg, #FF9F45 0%, #F472B6 100%);
  --grad-text: linear-gradient(100deg, #FFFFFF 0%, #C7BFFF 45%, #6FE7F7 100%);

  --r-xs: 8px;
  --r-s:  12px;
  --r-m:  18px;
  --r-l:  26px;
  --r-xl: 34px;

  --shadow:    0 30px 70px -28px rgba(0, 0, 0, .85);
  --shadow-sm: 0 12px 30px -16px rgba(0, 0, 0, .7);

  --max:   1200px;
  --nav-h: 74px;

  --ease: cubic-bezier(.22, .68, .16, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Space Grotesk', 'Inter', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--t0);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: rgba(124, 92, 255, .38); color: #fff; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #23283A;
  border-radius: 99px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #333A52; }

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

/* ---------- 3. AMBIENT BACKGROUND ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-fx::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 20%, transparent 78%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .5;
}
.orb-1 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(124, 92, 255, .58), transparent 68%);
  top: -260px; left: -160px;
  animation: drift 22s ease-in-out infinite;
}
.orb-2 {
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(34, 211, 238, .38), transparent 68%);
  top: -140px; right: -180px;
  animation: drift 28s ease-in-out infinite reverse;
}
.orb-3 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(255, 159, 69, .2), transparent 68%);
  top: 42%; right: -220px;
  animation: drift 34s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(60px, 40px, 0) scale(1.09); }
  66%      { transform: translate3d(-40px, 24px, 0) scale(.95); }
}

/* noise overlay */
.bg-fx::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ---------- 4. LAYOUT ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
  position: relative;
  z-index: 1;
}

main { position: relative; z-index: 1; }

.section { padding: 110px 0; position: relative; }
.section-sm { padding: 72px 0; }
.section-tight { padding-top: 0; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
  border: 0;
}

/* ---------- 5. TYPE ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.028em;
}

.h-hero {
  font-size: clamp(2.6rem, 6.4vw, 4.9rem);
  line-height: 1.03;
  letter-spacing: -.04em;
}
.h-xl { font-size: clamp(2.05rem, 4.5vw, 3.3rem); }
.h-lg { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.h-md { font-size: clamp(1.22rem, 1.9vw, 1.5rem); }
.h-sm { font-size: 1.075rem; letter-spacing: -.015em; }

.lead {
  font-size: clamp(1.02rem, 1.55vw, 1.19rem);
  color: var(--t1);
  line-height: 1.72;
  max-width: 62ch;
}
.muted { color: var(--t1); }
.dim { color: var(--t2); }
.mono {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.grad-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- 6. EYEBROW / BADGE ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: .715rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--c);
  opacity: .6;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(124, 92, 255, .12), rgba(34, 211, 238, .07));
  font-size: .8rem;
  color: var(--t1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--l);
  box-shadow: 0 0 0 3px rgba(163, 230, 53, .16);
  animation: pulse 2.4s ease-in-out infinite;
  flex: none;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.82); }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: .76rem;
  color: var(--t1);
  font-family: var(--mono);
  letter-spacing: .04em;
}

/* ---------- 7. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: .925rem;
  font-weight: 500;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease),
              background .28s var(--ease), border-color .28s var(--ease), color .28s var(--ease);
  white-space: nowrap;
  position: relative;
  border: 1px solid transparent;
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary {
  background: var(--grad);
  color: #08090F;
  font-weight: 600;
  box-shadow: 0 10px 34px -12px rgba(124, 92, 255, .75);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -12px rgba(124, 92, 255, .95);
}

.btn-ghost {
  border-color: var(--line-2);
  background: var(--panel);
  color: var(--t0);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  background: var(--panel-2);
  border-color: rgba(255, 255, 255, .26);
  transform: translateY(-2px);
}

.btn-quiet { color: var(--t1); padding-inline: 14px; }
.btn-quiet:hover { color: var(--t0); }

.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 17px; font-size: .84rem; }
.btn-block { width: 100%; }

.btn-arrow { transition: transform .28s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- 8. NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 7, 12, .78);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom-color: var(--line);
}

.nav-inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.075rem;
  letter-spacing: -.03em;
  flex: none;
}
.logo-mark {
  width: 33px; height: 33px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--grad);
  box-shadow: 0 6px 20px -8px rgba(124, 92, 255, .9);
}
.logo-mark svg { width: 19px; height: 19px; }
.logo-ai {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .1em;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(34, 211, 238, .13);
  color: var(--c);
  border: 1px solid rgba(34, 211, 238, .26);
  transform: translateY(-1px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 11px;
  border-radius: 9px;
  font-size: .875rem;
  color: var(--t1);
  transition: color .22s, background .22s;
  position: relative;
}
.nav-links a:hover { color: var(--t0); background: var(--panel-2); }
.nav-links a.active { color: var(--t0); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 13px; right: 13px; bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.nav-cta { display: flex; align-items: center; gap: 8px; flex: none; }

.burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  place-items: center;
  flex: none;
}
.burger span {
  display: block;
  width: 17px; height: 1.6px;
  background: var(--t0);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.burger span + span { margin-top: 4.5px; }
.burger.open span:nth-child(1) { transform: translateY(6.1px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.1px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 99;
  background: rgba(6, 7, 12, .96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  padding: 18px 24px 30px;
  display: none;
  flex-direction: column;
  gap: 3px;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 1rem;
  color: var(--t1);
  border: 1px solid transparent;
}
.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--t0);
  background: var(--panel);
  border-color: var(--line);
}
.mobile-menu .btn { margin-top: 14px; }

/* ---------- 9. HERO ---------- */
.hero {
  padding-top: calc(var(--nav-h) + 88px);
  padding-bottom: 90px;
  position: relative;
}
.hero-inner { max-width: 940px; }
.hero h1 { margin: 22px 0 24px; }
.hero .lead { font-size: clamp(1.06rem, 1.75vw, 1.28rem); max-width: 60ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 38px;
  align-items: center;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.hero-meta-item { display: flex; flex-direction: column; gap: 3px; }
.hero-meta-item b {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.03em;
}
.hero-meta-item > span { font-size: .8rem; color: var(--t2); }

/* typing effect for hero subtitle word */
.type-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--c);
  margin-left: 3px;
  vertical-align: -.13em;
  animation: blink 1.05s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- 10. SURFACES ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: linear-gradient(165deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: border-color .4s var(--ease), transform .4s var(--ease), background .4s var(--ease);
}
.card:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
  background: linear-gradient(165deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
}
/* equal-height cards: content stays top-aligned, [data-bottom] pins to the base */
.card { display: flex; flex-direction: column; }
.card > [data-bottom] { margin-top: auto; }

.card-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(124, 92, 255, .5), transparent 42%, rgba(34, 211, 238, .34));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.card-glow:hover::before { opacity: 1; }

.card h3 { margin-bottom: 10px; font-size: 1.13rem; }
.card p { color: var(--t1); font-size: .93rem; line-height: 1.7; }

.icon-box {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: linear-gradient(140deg, rgba(124, 92, 255, .22), rgba(34, 211, 238, .12));
  border: 1px solid rgba(124, 92, 255, .28);
  color: #C7BFFF;
}
.icon-box svg { width: 21px; height: 21px; }
.icon-box.amber {
  background: linear-gradient(140deg, rgba(255, 159, 69, .22), rgba(244, 114, 182, .12));
  border-color: rgba(255, 159, 69, .3);
  color: #FFC58A;
}
.icon-box.cyan {
  background: linear-gradient(140deg, rgba(34, 211, 238, .2), rgba(124, 92, 255, .12));
  border-color: rgba(34, 211, 238, .3);
  color: #7FE7F7;
}
.icon-box.lime {
  background: linear-gradient(140deg, rgba(163, 230, 53, .18), rgba(34, 211, 238, .1));
  border-color: rgba(163, 230, 53, .28);
  color: #C7F077;
}

/* ---------- 11. GRIDS ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.bento > * { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .span-6 { grid-column: span 6; }

/* ---------- 12. SECTION HEAD ---------- */
.section-head { max-width: 720px; margin-bottom: 58px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head h2 { margin-bottom: 18px; }

.split-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.split-head .section-head { margin-bottom: 0; }

/* ---------- 13. STATS ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  background: linear-gradient(165deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
}
.stat {
  padding: 34px 28px;
  border-right: 1px solid var(--line);
  position: relative;
}
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 9px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat > span { font-size: .855rem; color: var(--t2); line-height: 1.5; display: block; }

/* ---------- 14. STEPS ---------- */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.step {
  padding: 30px 26px 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: linear-gradient(170deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .008));
  position: relative;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.step:hover { border-color: var(--line-2); transform: translateY(-4px); }
.step-num {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--c);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 211, 238, .45), transparent);
}
.step h3 { font-size: 1.06rem; margin-bottom: 9px; }
.step p { font-size: .89rem; color: var(--t1); line-height: 1.68; }

/* ---------- 15. CHAT DEMO ---------- */
.chat-window {
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: linear-gradient(170deg, #0D1018, #080A10);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 90px -50px rgba(124, 92, 255, .8);
}
.chat-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .022);
}
.dots { display: flex; gap: 6px; }
.dots i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #2A3145;
  display: block;
}
.dots i:nth-child(1) { background: #FF5F57; }
.dots i:nth-child(2) { background: #FEBC2E; }
.dots i:nth-child(3) { background: #28C840; }
.chat-bar-title {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--t2);
  text-transform: uppercase;
  margin-inline: auto;
}
.chat-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  color: var(--l);
  font-family: var(--mono);
}
.chat-status i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--l);
  animation: pulse 2s infinite;
}

.chat-body {
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 420px;
  max-height: 520px;
  overflow-y: auto;
}
.chat-body::-webkit-scrollbar { width: 5px; }
.chat-body::-webkit-scrollbar-thumb { background: #262D40; border-width: 1px; }

.msg { display: flex; gap: 11px; max-width: 88%; animation: msgIn .45s var(--ease) both; }
.msg-user { margin-left: auto; flex-direction: row-reverse; }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.msg-avatar {
  width: 30px; height: 30px;
  border-radius: 9px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 600;
  font-family: var(--display);
}
.msg-ai .msg-avatar {
  background: var(--grad);
  color: #08090F;
}
.msg-user .msg-avatar {
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line-2);
  color: var(--t1);
}
.bubble {
  padding: 13px 17px;
  border-radius: 16px;
  font-size: .9rem;
  line-height: 1.62;
  border: 1px solid var(--line);
  background: var(--panel);
}
.msg-ai .bubble { border-top-left-radius: 5px; }
.msg-user .bubble {
  border-top-right-radius: 5px;
  background: linear-gradient(135deg, rgba(124, 92, 255, .3), rgba(124, 92, 255, .16));
  border-color: rgba(124, 92, 255, .35);
  color: #EDEAFF;
}
.bubble b { color: #fff; font-weight: 600; }
.bubble .hl { color: var(--c); }

.typing { display: flex; gap: 4px; padding: 4px 2px; }
.typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--t2);
  animation: typeBounce 1.3s infinite;
}
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typeBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

/* cards injected by AI inside chat */
.ai-cards { display: grid; gap: 9px; margin-top: 12px; }
.ai-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  transition: border-color .3s, background .3s;
}
.ai-card:hover { border-color: rgba(34, 211, 238, .4); background: rgba(34, 211, 238, .05); }
.ai-card-avatar {
  width: 34px; height: 34px;
  border-radius: 10px;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #2A2F45, #1A1E2C);
  border: 1px solid var(--line-2);
  font-size: .78rem;
  font-weight: 600;
  color: #B9B3E8;
}
.ai-card-body { flex: 1; min-width: 0; }
.ai-card-body b { display: block; font-size: .855rem; font-weight: 500; color: var(--t0); }
.ai-card-body span { font-size: .74rem; color: var(--t2); }
.ai-card-price {
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--l);
  white-space: nowrap;
}

/* ---------- 16. APP MOCKUP ---------- */
.mockup-shell { position: relative; }
.mockup {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 500px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(170deg, #0C0F16, #070910);
  box-shadow: var(--shadow), 0 0 110px -50px rgba(124, 92, 255, .75);
}
.mockup-side {
  border-right: 1px solid var(--line);
  padding: 19px 14px;
  background: rgba(255, 255, 255, .016);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mockup-side .logo { font-size: .95rem; padding: 4px 8px 16px; }
.mockup-side .logo-mark { width: 27px; height: 27px; border-radius: 8px; }
.mockup-side .logo-mark svg { width: 15px; height: 15px; }
.side-label {
  font-family: var(--mono);
  font-size: .635rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--t3);
  padding: 14px 9px 7px;
}
.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: .845rem;
  color: var(--t1);
  border: 1px solid transparent;
  transition: background .25s, color .25s, border-color .25s;
  text-align: left;
  width: 100%;
  cursor: pointer;
}
.side-item:hover { background: var(--panel-2); color: var(--t0); }
.side-item.on {
  background: linear-gradient(120deg, rgba(124, 92, 255, .2), rgba(34, 211, 238, .08));
  border-color: rgba(124, 92, 255, .3);
  color: var(--t0);
}
.side-item svg { width: 15px; height: 15px; flex: none; opacity: .78; }
.side-badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: .65rem;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(163, 230, 53, .14);
  color: var(--l);
}

.mockup-main { display: flex; flex-direction: column; }
.mockup-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.mockup-top h4 { font-size: .95rem; font-weight: 500; font-family: var(--font); }
.mockup-top .chip { margin-left: auto; }

/* floating tags around mockup */
.float-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(12, 14, 22, .86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: .8rem;
  box-shadow: var(--shadow-sm);
  animation: float 6s ease-in-out infinite;
  z-index: 3;
  white-space: nowrap;
}
.float-tag svg { width: 15px; height: 15px; }
.float-tag-1 { top: 12%; left: -34px; color: var(--l); }
.float-tag-2 { bottom: 6%; right: -38px; animation-delay: -2.2s; color: var(--c); }
.float-tag-3 { bottom: 38%; left: -46px; animation-delay: -4s; color: #C7BFFF; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-11px); }
}

/* ---------- 17. LISTS / FEATURE ROWS ---------- */
.check-list { display: grid; gap: 13px; }
.check-list li {
  display: flex;
  gap: 12px;
  font-size: .92rem;
  color: var(--t1);
  line-height: 1.65;
}
.check-list li svg {
  width: 19px; height: 19px;
  flex: none;
  margin-top: 2px;
  color: var(--l);
}
.check-list li b { color: var(--t0); font-weight: 500; }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-row + .feature-row { margin-top: 100px; }
.feature-row.flip .feature-row-media { order: -1; }

/* ---------- 18. TABLE ---------- */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  background: linear-gradient(170deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008));
}
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 18px 22px;
  text-align: left;
  font-family: var(--mono);
  font-size: .685rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--t2);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .018);
}
tbody td {
  padding: 17px 22px;
  font-size: .9rem;
  border-bottom: 1px solid var(--line);
  color: var(--t1);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .25s; }
tbody tr:hover { background: rgba(255, 255, 255, .022); }
tbody td:first-child { color: var(--t0); font-weight: 500; }

.col-hi {
  background: linear-gradient(180deg, rgba(124, 92, 255, .1), rgba(34, 211, 238, .04));
  position: relative;
}
th.col-hi { color: var(--c); }
.col-hi b { color: var(--l); font-family: var(--display); }
.win { color: var(--l); font-weight: 500; }
.lose { color: var(--t2); }

/* ---------- 19. TABS ---------- */
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.tab {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: .875rem;
  color: var(--t1);
  transition: color .25s, background .25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tab:hover { color: var(--t0); }
.tab.on {
  background: var(--grad);
  color: #08090F;
  font-weight: 600;
  box-shadow: 0 6px 20px -10px rgba(124, 92, 255, .9);
}
.tab svg { width: 15px; height: 15px; }
.tab-panel { display: none; }
.tab-panel.on { display: block; animation: fadeUp .5s var(--ease) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 20. PRICING ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}
.price {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 34px 30px;
  background: linear-gradient(170deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01));
  position: relative;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.price:hover { border-color: var(--line-2); transform: translateY(-4px); }
.price.featured {
  border-color: rgba(124, 92, 255, .5);
  background: linear-gradient(170deg, rgba(124, 92, 255, .13), rgba(34, 211, 238, .045));
  box-shadow: 0 30px 80px -40px rgba(124, 92, 255, .9);
}
.price-tag {
  position: absolute;
  top: -12px;
  left: 30px;
  padding: 4px 13px;
  border-radius: 999px;
  background: var(--grad);
  color: #08090F;
  font-size: .7rem;
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.price h3 { font-size: 1.2rem; margin-bottom: 7px; }
.price-sub { font-size: .855rem; color: var(--t2); margin-bottom: 26px; }
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 6px;
}
.price-amount b {
  font-family: var(--display);
  font-size: clamp(2rem, 3.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -.04em;
}
.price-amount span { font-size: .875rem; color: var(--t2); }
.price-note { font-size: .79rem; color: var(--t3); margin-bottom: 26px; }
.price .check-list { margin-bottom: 30px; }
.price .btn { margin-top: auto; }

/* ---------- 21. TIMELINE ---------- */
.timeline { position: relative; padding-left: 34px; max-width: 900px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(124, 92, 255, .8), rgba(34, 211, 238, .5), transparent);
}
.tl-item { position: relative; padding-bottom: 46px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -34px; top: 7px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--v);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, .12);
}
.tl-item.done::before {
  background: var(--l);
  border-color: var(--l);
  box-shadow: 0 0 0 4px rgba(163, 230, 53, .16);
}
.tl-head {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  margin-bottom: 11px;
}
.tl-head h3 { font-size: 1.12rem; }
.tl-item p { color: var(--t1); font-size: .92rem; max-width: 68ch; }

.status {
  font-family: var(--mono);
  font-size: .675rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid;
}
.status-done { color: var(--l); border-color: rgba(163, 230, 53, .34); background: rgba(163, 230, 53, .09); }
.status-wip  { color: var(--c); border-color: rgba(34, 211, 238, .34); background: rgba(34, 211, 238, .09); }
.status-next { color: var(--t2); border-color: var(--line-2); background: var(--panel); }
.status-plan { color: var(--a); border-color: rgba(255, 159, 69, .34); background: rgba(255, 159, 69, .09); }

/* ---------- 22. FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 4px;
  text-align: left;
  font-size: 1.03rem;
  font-family: var(--display);
  font-weight: 500;
  color: var(--t0);
  letter-spacing: -.015em;
  transition: color .25s;
}
.faq-q:hover { color: var(--c); }
.faq-icon {
  margin-left: auto;
  width: 26px; height: 26px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  position: relative;
  transition: transform .35s var(--ease), border-color .3s;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--t1);
  border-radius: 2px;
  transition: transform .35s var(--ease), background .3s;
}
.faq-icon::before { width: 11px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 11px; }
.faq-item.open .faq-icon { transform: rotate(180deg); border-color: rgba(34, 211, 238, .5); }
.faq-item.open .faq-icon::after { transform: scaleY(0); }
.faq-item.open .faq-icon::before { background: var(--c); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease);
}
.faq-a p {
  padding: 0 60px 26px 4px;
  color: var(--t1);
  font-size: .93rem;
  line-height: 1.75;
  max-width: 76ch;
}

/* ---------- 23. CTA BAND ---------- */
.cta-band {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 74px 56px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(124, 92, 255, .16), rgba(34, 211, 238, .07) 55%, rgba(255, 159, 69, .05));
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 70% 100% at 50% 50%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 50%, #000, transparent 72%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 18px; }
.cta-band .lead { margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- 24. FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 34px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(124, 92, 255, .045));
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 46px;
  padding-bottom: 52px;
}
.footer-brand p {
  color: var(--t2);
  font-size: .89rem;
  max-width: 34ch;
  margin: 18px 0 22px;
  line-height: 1.7;
}
.footer-col h5 {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--t3);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a {
  font-size: .885rem;
  color: var(--t1);
  transition: color .22s, padding-left .22s;
  display: inline-block;
}
.footer-col a:hover { color: var(--t0); padding-left: 4px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-size: .815rem;
  color: var(--t3);
}
.socials { display: flex; gap: 9px; }
.socials a {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--t1);
  transition: border-color .25s, color .25s, background .25s, transform .25s;
}
.socials a:hover {
  border-color: var(--line-2);
  color: var(--t0);
  background: var(--panel-2);
  transform: translateY(-2px);
}
.socials svg { width: 15px; height: 15px; }

/* ---------- 25. PAGE HEADER (inner pages) ---------- */
.page-head {
  padding-top: calc(var(--nav-h) + 76px);
  padding-bottom: 58px;
  position: relative;
}
.page-head .lead { max-width: 66ch; }
.page-head h1 { margin: 20px 0 22px; }

.crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .8rem;
  color: var(--t3);
  margin-bottom: 22px;
}
.crumb a { color: var(--t2); transition: color .2s; }
.crumb a:hover { color: var(--c); }
.crumb span { color: var(--t3); }

/* ---------- 26. MARQUEE ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 22px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 52px;
  width: max-content;
  animation: scroll 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--t2);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: -.01em;
}
.marquee-item svg { width: 17px; height: 17px; opacity: .6; }

/* ---------- 27. REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 28. MISC ---------- */
.note {
  display: flex;
  gap: 13px;
  padding: 18px 20px;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: .875rem;
  color: var(--t1);
  line-height: 1.65;
}
.note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--c); }
/* подпись-метка в начале ремарки — отдельная колонка, не переносится */
.note > b { flex: none; white-space: nowrap; }

.kv { display: grid; gap: 14px; }
.kv-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: .89rem;
}
.kv-row:last-child { border-bottom: 0; padding-bottom: 0; }
.kv-row span { color: var(--t2); }
.kv-row b { font-weight: 500; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

.code {
  font-family: var(--mono);
  font-size: .78rem;
  background: rgba(255, 255, 255, .055);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 6px;
  color: #C7BFFF;
  white-space: nowrap;
}

.arch {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 30px;
  background: linear-gradient(170deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .008));
}
.arch-layer {
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 18px 20px;
  background: rgba(255, 255, 255, .022);
  margin-bottom: 12px;
}
.arch-layer:last-child { margin-bottom: 0; }
.arch-layer-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.arch-layer-top b {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: .99rem;
  font-weight: 600;
}
.arch-layer-top .chip { margin-left: auto; }
.arch-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.arch-node {
  font-family: var(--mono);
  font-size: .735rem;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--t1);
  transition: border-color .25s, color .25s, background .25s;
}
.arch-node:hover {
  border-color: rgba(124, 92, 255, .5);
  color: #fff;
  background: rgba(124, 92, 255, .12);
}
.arch-node.hot {
  border-color: rgba(34, 211, 238, .36);
  color: #9DE9F5;
  background: rgba(34, 211, 238, .08);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
  align-items: start;
}

.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-size: .815rem; color: var(--t2); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--r-s);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  font-size: .9rem;
  color: var(--t0);
  transition: border-color .25s, background .25s;
  font-family: inherit;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--t3); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(124, 92, 255, .6);
  background: rgba(124, 92, 255, .06);
}
.field textarea { resize: vertical; min-height: 118px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- 30. BETA BAR ---------- */
.beta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 10px 24px;
  font-size: .795rem;
  color: var(--t1);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(124, 92, 255, .16), rgba(34, 211, 238, .1) 55%, rgba(163, 230, 53, .07));
  position: relative;
  z-index: 2;
}
.beta-bar b { color: var(--t0); font-weight: 500; }
.beta-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--l);
  flex: none;
  animation: betaPulse 2.2s var(--ease) infinite;
}
@keyframes betaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(163, 230, 53, .5); }
  50%      { box-shadow: 0 0 0 6px rgba(163, 230, 53, 0); }
}

/* ---------- 31. AUTH (вход / регистрация) ---------- */
.auth {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 56px;
  align-items: start;
  padding: 44px 0 96px;
}
.auth-card {
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 40px;
  background: linear-gradient(170deg, rgba(255, 255, 255, .052), rgba(255, 255, 255, .012));
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(124, 92, 255, .55), transparent 45%, rgba(34, 211, 238, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.auth-card > * { position: relative; }
.auth-head h2 { font-size: 1.62rem; margin-bottom: 9px; }
.auth-head p { color: var(--t1); font-size: .9rem; margin-bottom: 26px; }

.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  margin-bottom: 28px;
}
.auth-tabs a {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: .875rem;
  color: var(--t1);
  transition: color .25s, background .25s;
  white-space: nowrap;
}
.auth-tabs a:hover { color: var(--t0); }
.auth-tabs a.on {
  background: var(--grad);
  color: #08090F;
  font-weight: 600;
  box-shadow: 0 6px 20px -10px rgba(124, 92, 255, .9);
}

.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-s);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .035);
  font-size: .865rem;
  color: var(--t0);
  transition: background .25s, border-color .25s, transform .25s;
}
.btn-oauth:hover { background: var(--panel-2); border-color: rgba(124, 92, 255, .45); transform: translateY(-1px); }
.btn-oauth svg { width: 17px; height: 17px; flex: none; }

.or {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 24px 0;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--t3);
}
.or::before, .or::after { content: ''; height: 1px; flex: 1; background: var(--line); }

.auth-foot {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .855rem;
  color: var(--t2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.auth-foot a { color: var(--c); }
.auth-foot a:hover { color: #fff; }

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: .845rem;
  color: var(--t1);
  line-height: 1.6;
  margin-bottom: 22px;
  cursor: pointer;
}
.check-row input {
  width: 17px; height: 17px;
  margin: 2px 0 0;
  flex: none;
  accent-color: #7C5CFF;
  cursor: pointer;
}

/* шаги регистрации */
.auth-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font-family: var(--mono);
  font-size: .715rem;
  letter-spacing: .08em;
  color: var(--t3);
}
.auth-steps i {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  border: 1px solid var(--line-2);
  background: var(--panel);
  flex: none;
}
.auth-steps i.on { background: var(--grad); border-color: transparent; color: #08090F; font-weight: 700; }
.auth-steps .bar { flex: 1; height: 1px; background: var(--line); }

/* выбор роли */
.role-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.role-opt {
  position: relative;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 17px 15px;
  background: rgba(255, 255, 255, .022);
  display: grid;
  gap: 7px;
  transition: border-color .3s, background .3s, transform .3s;
}
.role-opt:hover { border-color: var(--line-2); transform: translateY(-2px); }
.role-opt input { position: absolute; opacity: 0; pointer-events: none; }
.role-opt svg { width: 20px; height: 20px; color: #C7BFFF; }
.role-opt b { font-family: var(--display); font-size: .95rem; font-weight: 600; }
.role-opt span { font-size: .79rem; color: var(--t2); line-height: 1.45; }
.role-opt:has(input:checked) {
  border-color: rgba(124, 92, 255, .72);
  background: linear-gradient(150deg, rgba(124, 92, 255, .17), rgba(34, 211, 238, .07));
  box-shadow: 0 0 0 1px rgba(124, 92, 255, .35) inset;
}
.role-opt:has(input:checked) b { color: #fff; }
.role-opt:has(input:checked) svg { color: var(--c); }

/* ---------- 32. AUTH VISUAL / СТАТУС СИСТЕМЫ ---------- */
.auth-visual { display: grid; gap: 18px; }
.sys-panel {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: linear-gradient(170deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008));
  overflow: hidden;
}
.sys-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .018);
  font-family: var(--mono);
  font-size: .715rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--t2);
}
.sys-head .beta-dot { margin-left: auto; }
.sys-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  font-size: .87rem;
}
.sys-row:last-child { border-bottom: 0; }
.sys-row .name { flex: 1; color: var(--t0); }
.sys-row .status { flex: none; }

.health {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--l);
}
.health i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--l);
  font-style: normal;
  animation: betaPulse 2.2s var(--ease) infinite;
}

/* ---------- 33. ПАРТНЁРЫ ---------- */
.partner-hero {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 48px;
  align-items: center;
}
.partner-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}
.partner-mark {
  width: 62px; height: 62px;
  flex: none;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(124, 92, 255, .3), rgba(34, 211, 238, .16));
  border: 1px solid rgba(124, 92, 255, .38);
  color: #C7BFFF;
}
.partner-mark svg { width: 30px; height: 30px; }
.partner-brand b { font-family: var(--display); font-size: 1.28rem; font-weight: 700; letter-spacing: -.02em; display: block; }
.partner-brand span { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--t2); }

.partner-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
}
.partner-fact { background: var(--bg-1); padding: 20px 22px; }
.partner-fact b { font-family: var(--display); font-size: 1.42rem; font-weight: 600; display: block; margin-bottom: 5px; }
.partner-fact span { font-size: .795rem; color: var(--t2); line-height: 1.5; }

.logo-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.logo-tile {
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 24px 22px;
  background: rgba(255, 255, 255, .022);
  display: grid;
  gap: 13px;
  transition: border-color .35s, background .35s, transform .35s;
}
.logo-tile:hover {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, .045);
  transform: translateY(-3px);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.025em;
}
.wordmark svg { width: 26px; height: 26px; flex: none; }
.logo-tile p { font-size: .835rem; color: var(--t1); line-height: 1.62; }
.logo-tile .chip { justify-self: start; }

.deal-note {
  font-family: var(--mono);
  font-size: .73rem;
  letter-spacing: .04em;
  color: var(--t3);
  line-height: 1.7;
}

/* ---------- 29. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .nav-cta { margin-left: auto; }

  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento > * { grid-column: span 2; }
  .bento .span-4 { grid-column: span 4; }
  .bento .span-3 { grid-column: span 4; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .feature-row { gap: 40px; }
  .float-tag { display: none; }
}

@media (max-width: 900px) {
  .section { padding: 78px 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.flip .feature-row-media { order: 0; }
  .feature-row + .feature-row { margin-top: 72px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .mockup { grid-template-columns: 1fr; }
  .mockup-side { display: none; }
  .grid-feature { grid-template-columns: 1fr !important; gap: 22px !important; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .cta-band { padding: 54px 28px; }
}

@media (max-width: 680px) {
  .wrap, .nav-inner { padding-inline: 18px; }
  .nav-inner { gap: 14px; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn-quiet { display: none; }
  .section { padding: 64px 0; }
  .hero { padding-top: calc(var(--nav-h) + 54px); padding-bottom: 60px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento > *, .bento .span-3, .bento .span-4 { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .card { padding: 24px; }
  .hero-meta { gap: 20px; }
  .hero-meta-item b { font-size: 1.28rem; }
  .split-head { margin-bottom: 34px; }
  /* на узком экране ремарка складывается в столбик, а не сжимает текст в узкую колонку */
  .note { flex-direction: column; gap: 8px; }
  .note > b { white-space: normal; }
  .section-head { margin-bottom: 40px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .chat-body { padding: 18px 15px; min-height: 380px; }
  .msg { max-width: 94%; }
  .table-wrap { overflow-x: auto; }
  table { min-width: 560px; }
  .arch { padding: 20px; }
  .faq-a p { padding-right: 20px; }
  .tl-item { padding-bottom: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 34. RESPONSIVE — AUTH / BETA / PARTNERS ---------- */
@media (max-width: 1080px) {
  .auth { grid-template-columns: 1fr; gap: 36px; padding: 44px 0 84px; }
  .auth-visual { order: -1; }
  .partner-hero { grid-template-columns: 1fr; gap: 34px; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .auth-card { padding: 32px 26px; }
  .role-pick { grid-template-columns: 1fr; }
  .role-opt { grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 13px; }
  .role-opt svg { grid-row: span 2; align-self: center; }
}
@media (max-width: 680px) {
  .beta-bar { font-size: .735rem; padding: 9px 16px; text-align: center; }
  .auth-card { padding: 26px 20px; }
  .auth-head h2 { font-size: 1.36rem; }
  .social-row { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: 1fr; }
  .partner-facts { grid-template-columns: 1fr; }
  .auth-foot { flex-direction: column; align-items: flex-start; }
}

/* ---------- 35. FOUNDER PAGE ---------- */
.founder-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(270px, .85fr);
  gap: 48px;
  align-items: center;
}
.founder-hero .hero-inner { max-width: none; }
.founder-hero .hero-actions { margin-top: 32px; }
.founder-hero .h-hero { font-size: clamp(1.95rem, 3.25vw, 2.85rem); }
/* 4 метрики в одну строку (длинные подписи иначе переносятся) */
.hero-meta-4 { gap: 22px 26px; }
.hero-meta-4 .hero-meta-item { flex: 1 1 0; min-width: 0; }
@media (max-width: 760px) {
  .hero-meta-4 { gap: 20px 24px; }
  .hero-meta-4 .hero-meta-item { flex: 1 1 42%; }
}

.founder-portrait {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 280px;
  overflow: hidden;
  background:
    radial-gradient(120% 85% at 25% 15%, rgba(124, 92, 255, .55), transparent 58%),
    radial-gradient(110% 80% at 85% 92%, rgba(34, 211, 238, .38), transparent 60%),
    linear-gradient(160deg, #0B0E16, #070810);
}
.founder-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  filter: saturate(1.02) contrast(1.03);
}
.founder-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 7, 12, .92) 0%, rgba(6, 7, 12, .18) 38%, transparent 62%),
    radial-gradient(120% 100% at 100% 0%, rgba(34, 211, 238, .22), transparent 55%),
    radial-gradient(110% 100% at 0% 100%, rgba(124, 92, 255, .30), transparent 60%);
}
.founder-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(8, 10, 16, .82);
  backdrop-filter: blur(10px);
}

@media (max-width: 900px) {
  .founder-hero { grid-template-columns: 1fr; gap: 34px; }
  .founder-portrait { aspect-ratio: 16 / 11; min-height: 220px; }
  .founder-photo { object-position: center 18%; }
}

/* ---------- 36. BEFORE / AFTER ---------- */
.ba-wrap { display: grid; gap: 34px; margin-top: 40px; }
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.ba-item {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  background: #0A0C12;
  box-shadow: var(--shadow);
}
.ba-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.ba-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--mono);
  font-size: .655rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  backdrop-filter: blur(8px);
}
.ba-tag-do {
  color: var(--t1);
  border-color: var(--line-2);
  background: rgba(10, 12, 18, .74);
}
.ba-tag-after {
  color: #08090F;
  font-weight: 500;
  background: var(--grad);
}
.ba-cap {
  margin: 16px 0 0;
  font-size: .89rem;
  color: var(--t1);
  line-height: 1.68;
  max-width: 78ch;
}
.ba-cap b { color: var(--t0); font-weight: 500; }

.ba-styles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 34px;
}
.ba-style {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
  background: #0A0C12;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.ba-style:hover { border-color: var(--line-2); transform: translateY(-4px); }
.ba-style img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.ba-style figcaption {
  padding: 14px 16px;
  font-size: .845rem;
  color: var(--t1);
  line-height: 1.55;
  border-top: 1px solid var(--line);
}
.ba-style figcaption b {
  display: block;
  color: var(--t0);
  font-weight: 500;
  font-family: var(--display);
  font-size: .92rem;
  margin-bottom: 3px;
}

@media (max-width: 1080px) {
  .ba-styles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .ba-grid { grid-template-columns: 1fr; }
  .ba-styles { grid-template-columns: 1fr; }
}

/* ---------- 37. FOUNDER: МАНИФЕСТ · ПРОТИВ/ЗА · ВИДЕНИЕ ---------- */
.pull-quote {
  position: relative;
  margin: 0;
  padding-left: 26px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.18rem, 2vw, 1.68rem);
  line-height: 1.38;
  letter-spacing: -.015em;
  color: var(--t0);
  max-width: 44ch;
}
.pull-quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: var(--grad);
}
.pull-quote .grad-text { display: inline; }

.manifesto { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.mf-item { display: flex; flex-direction: column; padding: 30px 30px 32px; }
.mf-item .step-num { margin-bottom: 16px; }
.mf-quote {
  margin: 0 0 13px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
  line-height: 1.36;
  letter-spacing: -.012em;
  color: var(--t0);
}
.mf-item p { margin: 0; color: var(--t1); font-size: .905rem; line-height: 1.72; }
.mf-item p b { color: var(--t0); font-weight: 500; }
.mf-item.wide { grid-column: 1 / -1; }
.mf-item.wide p { max-width: 92ch; }
.mf-item.wide .mf-quote { max-width: 48ch; }

.against-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.against-grid .card { padding: 30px; }
.against-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.against-head svg { width: 19px; height: 19px; flex: none; }
.against-head h3 { font-size: 1.04rem; margin: 0; }
.x-list { display: grid; gap: 15px; }
.x-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--t1); font-size: .92rem; line-height: 1.66; }
.x-list li svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: #FF7C7C; }
.x-list li b { color: var(--t0); font-weight: 500; }

.vision-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.vision-item { display: flex; gap: 15px; align-items: flex-start; padding: 26px 28px; }
.vision-item .icon-box { margin: 0; flex: none; }
.vision-item h3 { font-size: 1.02rem; margin-bottom: 7px; }
.vision-item p { margin: 0; color: var(--t1); font-size: .895rem; line-height: 1.7; }

@media (max-width: 900px) {
  .manifesto,
  .against-grid,
  .vision-grid { grid-template-columns: 1fr; }
  .mf-item { padding: 26px 24px; }
  .mf-item.wide { grid-column: auto; }
  .pull-quote { padding-left: 20px; }
}
