/* ================================================
   Договоримся — Landing
   Dark high-tech theme
   ================================================ */

:root {
  --bg-0: #07080c;
  --bg-1: #0b0d14;
  --bg-2: #11141d;
  --bg-3: #161a25;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text-0: #f4f5f8;
  --text-1: #c9ccd6;
  --text-2: #8a8f9d;
  --text-3: #5b606e;

  --accent: #29e0c1;        /* mint-cyan */
  --accent-2: #7c5cff;      /* electric violet */
  --accent-3: #58a6ff;      /* tg-blue */
  --warn: #ff7a59;

  --glow-accent: 0 0 0 1px rgba(41, 224, 193, 0.25),
                 0 8px 40px -8px rgba(41, 224, 193, 0.35);
  --glow-violet: 0 0 0 1px rgba(124, 92, 255, 0.25),
                 0 8px 40px -8px rgba(124, 92, 255, 0.35);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --container: 1200px;
  --shell-pad: clamp(20px, 4vw, 48px);

  --font-sans: 'Inter', 'SF Pro Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

/* Background ambient gradients */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 12% 0%, rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 20%, rgba(41, 224, 193, 0.12), transparent 60%),
    radial-gradient(ellipse 80% 80% at 50% 120%, rgba(88, 166, 255, 0.08), transparent 60%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
  z-index: -1;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* ============================================
   Layout helpers
============================================ */
.shell {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--shell-pad);
}

.section {
  padding: clamp(72px, 12vw, 140px) 0;
  position: relative;
}

.section--tight {
  padding: clamp(56px, 8vw, 96px) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-top: 18px;
  max-width: 22ch;
}

.section-title .grad {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-3) 50%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-1);
  margin-top: 20px;
  max-width: 62ch;
}

.section-header {
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* ============================================
   Header / Nav
============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 14px 0;
  transition: background 0.3s var(--ease-out), backdrop-filter 0.3s var(--ease-out);
}

.header.is-scrolled {
  background: rgba(7, 8, 12, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand__logo {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  position: relative;
  overflow: hidden;
}

.brand__logo::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 8px;
  background: var(--bg-0);
}

.brand__logo svg {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
}

.brand__name {
  background: linear-gradient(120deg, var(--text-0) 0%, var(--text-1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav__link {
  font-size: 14px;
  color: var(--text-1);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--text-0);
  background: rgba(255, 255, 255, 0.04);
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-3) 100%);
  color: #07080c;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.header__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -8px rgba(41, 224, 193, 0.45);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
}

.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--text-0);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out), opacity 0.2s;
}

.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }

.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(7, 8, 12, 0.95);
  backdrop-filter: blur(24px) saturate(140%);
  padding: 100px var(--shell-pad) 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  font-size: 22px;
  font-weight: 500;
  color: var(--text-0);
  border-bottom: 1px solid var(--line);
}

.mobile-menu__link::after {
  content: '→';
  font-size: 20px;
  color: var(--text-2);
  transition: transform 0.2s, color 0.2s;
}

.mobile-menu__link:hover::after {
  color: var(--accent);
  transform: translateX(4px);
}

.mobile-menu__cta {
  margin-top: 32px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 18px 24px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-3) 100%);
  color: #07080c;
  font-weight: 600;
  font-size: 16px;
}

/* ============================================
   Hero
============================================ */
.hero {
  padding-top: clamp(120px, 18vw, 180px);
  padding-bottom: clamp(80px, 10vw, 120px);
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero__title {
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-top: 22px;
}

.hero__title .grad {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-3) 45%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: clamp(16px, 1.7vw, 20px);
  color: var(--text-1);
  margin-top: 26px;
  max-width: 56ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-3) 100%);
  color: #07080c;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(41, 224, 193, 0.5);
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-0);
  font-weight: 500;
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(41, 224, 193, 0.06);
}

.hero__stats {
  display: flex;
  gap: clamp(20px, 4vw, 48px);
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.stat {
  min-width: 100px;
}

.stat__num {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--text-0) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 4px;
}

/* ============================================
   Telegram chat mock
============================================ */
.tg-mock {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
}

.tg-mock::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.tg-mock__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.tg-mock__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}

.tg-mock__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-0);
}

.tg-mock__status {
  font-size: 12px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tg-mock__status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.tg-mock__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px 4px;
}

.bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  position: relative;
  animation: bubble-in 0.5s var(--ease-out) backwards;
}

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.bubble--in {
  align-self: flex-start;
  background: var(--bg-3);
  border-bottom-left-radius: 6px;
  color: var(--text-0);
}

.bubble--out {
  align-self: flex-end;
  background: linear-gradient(120deg, var(--accent-3), var(--accent-2));
  border-bottom-right-radius: 6px;
  color: white;
}

.bubble__meta {
  font-size: 10px;
  opacity: 0.7;
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.bubble__author {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--accent);
}

.bubble--system {
  align-self: center;
  background: rgba(41, 224, 193, 0.08);
  border: 1px solid rgba(41, 224, 193, 0.2);
  color: var(--accent);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  max-width: none;
}

.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-3);
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  align-self: flex-start;
}

.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-2);
  animation: typing 1.4s infinite ease-in-out;
}

.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* Hero badge floating */
.hero__badge {
  position: absolute;
  top: 24px;
  right: -16px;
  padding: 10px 16px;
  background: rgba(7, 8, 12, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(41, 224, 193, 0.3);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 20px 40px -10px rgba(41, 224, 193, 0.3);
  z-index: 2;
}

.hero__badge .check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #07080c;
  font-weight: 700;
  font-size: 11px;
}

/* ============================================
   Problem section
============================================ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.problem-card {
  padding: 32px 28px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 89, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.problem-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.problem-card:hover::before {
  opacity: 1;
}

.problem-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 122, 89, 0.15), rgba(255, 122, 89, 0.05));
  border: 1px solid rgba(255, 122, 89, 0.2);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--warn);
}

.problem-card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.problem-card p {
  font-size: 15px;
  color: var(--text-1);
  line-height: 1.55;
}

/* ============================================
   How it works
============================================ */
.steps {
  display: grid;
  gap: 32px;
}

.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: clamp(32px, 5vw, 56px);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.step::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 224, 193, 0.06) 0%, transparent 60%);
  top: -300px;
  right: -200px;
  pointer-events: none;
}

.step:nth-child(2)::before {
  background: radial-gradient(circle, rgba(124, 92, 255, 0.06) 0%, transparent 60%);
}

.step:nth-child(3)::before {
  background: radial-gradient(circle, rgba(88, 166, 255, 0.06) 0%, transparent 60%);
}

.step--reverse {
  direction: rtl;
}

.step--reverse > * {
  direction: ltr;
}

.step__num {
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step__num::before {
  content: '';
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.step__title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 16px;
  line-height: 1.1;
}

.step__text {
  font-size: 16px;
  color: var(--text-1);
  margin-top: 16px;
  max-width: 50ch;
}

.step__list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step__list li {
  font-size: 14px;
  color: var(--text-1);
  padding-left: 22px;
  position: relative;
}

.step__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ============================================
   Features grid
============================================ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  padding: 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform 0.4s var(--ease-out), border-color 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}

.feature::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(41, 224, 193, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px;
  right: -100px;
  opacity: 0;
  transition: opacity 0.4s;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(41, 224, 193, 0.3);
  background: rgba(41, 224, 193, 0.03);
}

.feature:hover::after {
  opacity: 1;
}

.feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(41, 224, 193, 0.12), rgba(124, 92, 255, 0.08));
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.feature h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.feature p {
  font-size: 14px;
  color: var(--text-1);
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

/* ============================================
   For whom
============================================ */
.audience {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.audience__card {
  padding: 28px 24px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
}

.audience__card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.audience__emoji {
  font-size: 28px;
  margin-bottom: 16px;
  filter: grayscale(0.1);
}

.audience__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.audience__text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
}

/* ============================================
   CRM integration
============================================ */
.crm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.crm__list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.crm__list li {
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}

.crm__list li:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.crm__list b {
  font-weight: 600;
}

.crm__list span {
  color: var(--text-2);
  font-size: 13px;
}

.crm__diagram {
  position: relative;
  padding: 32px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  min-height: 380px;
  overflow: hidden;
}

.crm__node {
  position: absolute;
  padding: 12px 16px;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.crm__node--source { top: 24px; left: 24px; }
.crm__node--bot {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-color: var(--accent);
  box-shadow: var(--glow-accent);
  background: linear-gradient(135deg, rgba(41, 224, 193, 0.1), transparent);
}
.crm__node--crm1 { top: 24px; right: 24px; }
.crm__node--crm2 { bottom: 24px; right: 24px; }
.crm__node--crm3 { bottom: 24px; left: 24px; }

.crm__node .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.crm__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.crm__svg path {
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 4 4;
  opacity: 0.4;
  animation: dash 20s linear infinite;
}

@keyframes dash {
  to { stroke-dashoffset: -200; }
}

/* ============================================
   FAQ
============================================ */
.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item:first-child { border-top: 1px solid var(--line); }

.faq__btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  text-align: left;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-0);
  transition: color 0.2s;
}

.faq__btn:hover { color: var(--accent); }

.faq__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out), border-color 0.2s;
  color: var(--text-1);
}

.faq__item.is-open .faq__icon {
  transform: rotate(45deg);
  border-color: var(--accent);
  color: var(--accent);
}

.faq__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.faq__body-inner {
  padding-bottom: 24px;
  color: var(--text-1);
  font-size: 15px;
  max-width: 60ch;
}

/* ============================================
   Final CTA / Contact form
============================================ */
.cta {
  position: relative;
  padding: clamp(48px, 8vw, 80px);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(120deg, transparent 30%, rgba(41, 224, 193, 0.3) 50%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.cta::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border-radius: calc(var(--radius-xl) - 1px);
  z-index: 0;
}

.cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.cta__title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cta__lead {
  margin-top: 18px;
  color: var(--text-1);
  font-size: 17px;
  max-width: 48ch;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.field {
  position: relative;
}

.field input,
.field textarea {
  width: 100%;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text-0);
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
  transition: border-color 0.2s, background 0.2s;
}

.field textarea {
  min-height: 110px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-3);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(41, 224, 193, 0.04);
}

.contact-form .btn-primary {
  justify-self: start;
  margin-top: 6px;
}

.form-success {
  display: none;
  padding: 16px 18px;
  background: rgba(41, 224, 193, 0.08);
  border: 1px solid rgba(41, 224, 193, 0.3);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 14px;
}

.form-success.is-shown { display: block; }

/* ============================================
   Footer
============================================ */
.footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: clamp(72px, 10vw, 120px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

.footer__col h4 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}

.footer__col p,
.footer__col a {
  display: block;
  font-size: 15px;
  color: var(--text-1);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer__col a:hover { color: var(--accent); }

.footer__copy {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-3);
}

.footer__brand-line {
  font-size: 15px;
  color: var(--text-1);
  margin-top: 12px;
  max-width: 32ch;
}

/* ============================================
   Reveal animations
============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 980px) {
  html { scroll-padding-top: 70px; }

  .nav,
  .header__cta { display: none; }

  .burger { display: block; }

  .hero__grid,
  .step,
  .crm,
  .cta__inner {
    grid-template-columns: 1fr;
  }

  .step {
    gap: 32px;
  }

  .step--reverse {
    direction: ltr;
  }

  .problem-grid,
  .features {
    grid-template-columns: 1fr;
  }

  .audience {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__badge {
    right: 8px;
    top: 12px;
  }
}

@media (max-width: 560px) {
  .audience {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    gap: 18px;
  }

  .stat {
    min-width: 0;
    flex: 1 1 40%;
  }

  .crm__diagram {
    min-height: 320px;
  }

  .crm__node {
    font-size: 11px;
    padding: 8px 12px;
  }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
