/* ================================
   AI MANAGER — PREMIUM LANDING CSS
   ================================ */


/* ===== VARIABLES ===== */
:root {
  --bg-primary:    #07080f;
  --bg-secondary:  #0d0f1c;
  --bg-card:       #111420;
  --bg-card-hover: #161a2e;
  --border:        rgba(255,255,255,0.07);
  --border-accent: rgba(82,160,255,0.25);

  --text-primary:  #f0f2ff;
  --text-secondary:#8b94b8;
  --text-muted:    #4a5170;

  --accent:        #4fa3ff;
  --accent-dim:    rgba(79,163,255,0.10);
  --accent-glow:   rgba(79,163,255,0.30);

  --danger:        #ff4f72;
  --success:       #2dd6a2;

  --font-display:  'Space Grotesk', sans-serif;
  --font-body:     'Inter', sans-serif;

  --radius:    14px;
  --radius-sm:  8px;
  --radius-lg: 20px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }

/* ===== TYPOGRAPHY UTILS ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  padding: 6px 14px;
  border-radius: 40px;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.8vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.75;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.22s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 28px rgba(79,163,255,0.30);
}
.btn-primary:hover {
  background: #6bb8ff;
  box-shadow: 0 0 40px rgba(79,163,255,0.50);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.09);
  color: var(--text-primary);
  border-color: var(--border-accent);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7,8,15,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: 1160px;
  margin: 0 auto;
}

/* Nav takes remaining space, pushes CTA to far right */
.nav { margin-left: auto; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--text-primary);
  flex-shrink: 0;
}
.logo-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(79,163,255,0.45);
}
.logo-icon svg { width: 18px; height: 18px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  transition: all 0.18s;
}
.nav a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.25s;
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 63px; left: 0; right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px 20px;
  z-index: 99;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  transition: color 0.18s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--text-primary); }
.mobile-nav__cta {
  margin-top: 8px;
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: var(--radius-sm);
  padding: 13px 16px !important;
  text-align: center;
  font-weight: 600 !important;
  border-bottom: none !important;
}

/* ===== HERO ===== */
/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  background: radial-gradient(ellipse 90% 70% at 65% 40%, rgba(8,16,42,0.95) 0%, var(--bg-primary) 72%);
}

/* Neural canvas */
.hero__neural {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: 0.65;
}

/* Ambient glows */
.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero__glow-1 {
  position: absolute; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(79,163,255,0.09) 0%, transparent 65%);
  top: -180px; right: -80px; border-radius: 50%;
}
.hero__glow-2 {
  position: absolute; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(20,50,140,0.14) 0%, transparent 65%);
  bottom: -100px; left: -60px; border-radius: 50%;
}
.hero__glow-3 {
  position: absolute; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(79,163,255,0.06) 0%, transparent 65%);
  top: 50%; right: 28%; transform: translateY(-50%); border-radius: 50%;
}

/* Two-column layout */
.hero__layout {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 0;
  align-items: center;
  width: 100%;
}

/* LEFT: text */
.hero__content { max-width: 600px; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(79,163,255,0.08);
  border: 1px solid rgba(79,163,255,0.20);
  border-radius: 40px; padding: 6px 16px 6px 8px; margin-bottom: 28px;
}
.hero__badge-dot {
  width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 8px var(--accent); animation: pulse 2s infinite;
}
.hero__badge span { font-size: 13px; font-weight: 500; color: var(--accent); }
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.6; transform:scale(1.35); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 62px);
  font-weight: 700; line-height: 1.1;
  margin-bottom: 22px; letter-spacing: -0.02em;
}
.hero__title .highlight { color: var(--accent); }
.hero__subtitle {
  font-size: clamp(14px, 1.7vw, 16px);
  color: var(--text-secondary); max-width: 520px;
  line-height: 1.75; margin-bottom: 36px;
}
.hero__actions {
  display: flex; align-items: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 52px;
}
.hero__stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero__stat { display: flex; flex-direction: column; }
.hero__stat-num {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  color: var(--text-primary); line-height: 1;
}
.hero__stat-num span { color: var(--accent); }
.hero__stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ===== RIGHT: visual ===== */
.hero__visual {
  position: relative;
  height: 100%;
  min-height: 520px;
  display: flex; align-items: center; justify-content: flex-end;
}

/* Holographic grid — sits underneath photo */
.hero__holo-grid {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Node pulse animations — very slow, very subtle */
.hnode { opacity: 0.55; }
.hnode--1 { animation: nodePulse 9s  2.0s ease-in-out infinite; }
.hnode--2 { animation: nodePulse 11s 0.5s ease-in-out infinite; }
.hnode--3 { animation: nodePulse 13s 4.5s ease-in-out infinite; }
.hnode--4 { animation: nodePulse 10s 1.5s ease-in-out infinite; }
.hnode--5 { animation: nodePulse 14s 6.0s ease-in-out infinite; }
.hnode--6 { animation: nodePulse 8s  3.5s ease-in-out infinite; }

@keyframes nodePulse {
  0%,100% { opacity: 0.20; filter: none; }
  50%      { opacity: 0.85; filter: drop-shadow(0 0 5px #4fa3ff); }
}

/* Photo wrapper */
.hero__photo-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  pointer-events: none;
}

/* The photo itself */
.hero__photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  position: relative;
  z-index: 2;
  /* CSS mask: fade all four edges into the dark background */
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, black 18%, black 100%),
    linear-gradient(to bottom, transparent 0%, black 10%, black 88%, transparent 100%),
    linear-gradient(to left,   transparent 0%, black 8%, black 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right,  transparent 0%, black 18%, black 100%),
    linear-gradient(to bottom, transparent 0%, black 10%, black 88%, transparent 100%),
    linear-gradient(to left,   transparent 0%, black 8%, black 100%);
  mask-composite: intersect;
  /* Subtle float */
  animation: heroFloat 8s ease-in-out infinite;
}

@keyframes heroFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}

/* Soft blue aura behind figure */
.hero__photo-glow {
  position: absolute;
  inset: 10% 0 0 10%;
  background: radial-gradient(ellipse 70% 60% at 55% 45%, rgba(79,163,255,0.18) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* Extra edge fade divs for crisp blending */
.hero__photo-fade {
  position: absolute; z-index: 3; pointer-events: none;
}
.hero__photo-fade--left {
  top: 0; left: 0; bottom: 0; width: 28%;
  background: linear-gradient(to right, var(--bg-primary) 0%, transparent 100%);
}
.hero__photo-fade--bottom {
  left: 0; right: 0; bottom: 0; height: 20%;
  background: linear-gradient(to top, var(--bg-primary) 0%, transparent 100%);
}
.hero__photo-fade--top {
  left: 0; right: 0; top: 0; height: 10%;
  background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 100%);
}

/* Floating UI chips */
.hero__chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(7,10,26,0.82);
  border: 1px solid rgba(79,163,255,0.30);
  border-radius: 30px;
  padding: 6px 14px 6px 9px;
  font-size: 12px; font-weight: 600; color: var(--text-primary);
  backdrop-filter: blur(10px);
  white-space: nowrap; z-index: 4;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 10px rgba(79,163,255,0.12);
}
.hchip-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 6px var(--accent);
  animation: pulse 2.5s ease-in-out infinite;
}
.hchip-dot--green {
  background: var(--success); box-shadow: 0 0 6px var(--success);
}

.hero__chip--tl {
  top: 12%; left: -8px;
  animation: chipBob 7s 0s ease-in-out infinite;
}
.hero__chip--tr {
  top: 30%; right: 4%;
  animation: chipBob 9s 2s ease-in-out infinite;
}
.hero__chip--br {
  bottom: 22%; right: 8%;
  animation: chipBob 8s 4s ease-in-out infinite;
}

@keyframes chipBob {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-7px); }
}

/* ===== HERO RESPONSIVE ===== */
@media (max-width: 1100px) {
  .hero__layout { grid-template-columns: 1fr 420px; }
}

@media (max-width: 880px) {
  .hero__layout { grid-template-columns: 1fr 320px; }
  .hero__chip { display: none; }
}

@media (max-width: 768px) {
  .hero__layout { grid-template-columns: 1fr; }
  .hero__visual {
    position: absolute;
    top: 60px; right: -30px;
    width: 300px; min-height: auto;
    opacity: 0.20; pointer-events: none; z-index: 1;
  }
  .hero__photo-wrap { max-width: 300px; }
  .hero__content { position: relative; z-index: 3; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .hero__stats { gap: 24px; }
  .hero__chip { display: none; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 26px; }
  .hero__stat-num { font-size: 22px; }
  .hero__stats { gap: 16px; }
  .hero__visual { right: -50px; opacity: 0.12; width: 240px; }
}


/* ===== PAIN ===== */
.pain { background: var(--bg-secondary); }
.pain__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.pain__list { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.pain__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}
.pain__item:hover { border-color: rgba(255,79,114,0.25); }
.pain__item-icon { width: 18px; height: 18px; min-width: 18px; margin-top: 2px; color: var(--danger); }
.pain__item-icon svg { width: 100%; height: 100%; }
.pain__item-text { font-size: 14px; color: var(--text-secondary); }

.pain__widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.pain__widget-header {
  padding: 12px 18px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pain__widget-dots { display: flex; gap: 6px; }
.pain__widget-dots span { width: 10px; height: 10px; border-radius: 50%; }
.pain__widget-dots span:nth-child(1) { background: #ff5f56; }
.pain__widget-dots span:nth-child(2) { background: #ffbd2e; }
.pain__widget-dots span:nth-child(3) { background: #27c93f; }
.pain__widget-title { font-size: 12px; color: var(--text-muted); margin-left: 4px; }
.pain__messages { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.pain__msg { display: flex; flex-direction: column; gap: 3px; }
.pain__msg-bubble {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 85%;
}
.pain__msg.client .pain__msg-bubble {
  background: rgba(255,255,255,0.06);
  border-radius: 10px 10px 10px 2px;
  color: var(--text-primary);
}
.pain__msg.status .pain__msg-bubble {
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-style: italic;
  align-self: center;
  padding: 0;
}
.pain__msg-time { font-size: 10px; color: var(--text-muted); padding-left: 2px; }
.pain__msg.unanswered { opacity: 0.45; }
.pain__lost-badge {
  margin: 0 18px 18px;
  padding: 11px 15px;
  background: rgba(255,79,114,0.07);
  border: 1px solid rgba(255,79,114,0.20);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 10px;
}
.pain__lost-badge-icon { width: 16px; height: 16px; color: var(--danger); }
.pain__lost-badge-icon svg { width: 100%; height: 100%; }
.pain__lost-badge span { font-size: 12px; font-weight: 500; color: var(--danger); }

/* ===== SOLUTION ===== */
.solution { background: var(--bg-primary); }
.solution__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.solution__features { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.solution__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.solution__feature:hover { border-color: var(--border-accent); background: var(--bg-card-hover); }
.solution__feature-icon { width: 18px; height: 18px; min-width: 18px; margin-top: 2px; color: var(--success); }
.solution__feature-icon svg { width: 100%; height: 100%; }
.solution__feature-text { font-size: 14px; color: var(--text-secondary); }
.solution__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.solution__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.solution__card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.solution__card:hover { border-color: var(--border-accent); }
.solution__card-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.solution__card-value { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.solution__card-desc { font-size: 12px; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }

/* ===== WHO ===== */
.who { background: var(--bg-secondary); }
.who__header { text-align: center; margin-bottom: 48px; }
.who__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.who__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 18px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  transition: all 0.22s;
}
.who__card:hover { border-color: var(--border-accent); background: var(--bg-card-hover); transform: translateY(-2px); }
.who__card-icon { font-size: 22px; line-height: 1; }
.who__card-title { font-size: 14px; font-weight: 600; color: var(--text-primary); line-height: 1.35; }

/* ===== HOW ===== */
.how { background: var(--bg-primary); }
.how__header { margin-bottom: 48px; }
.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.how__step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: all 0.22s;
}
.how__step:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.how__step-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: rgba(79,163,255,0.10);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.04em;
}
.how__step-title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.how__step-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ===== BENEFITS ===== */
.benefits { background: var(--bg-secondary); }
.benefits__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.benefits__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
}
.benefits__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}
.benefits__item:hover { border-color: var(--border-accent); }
.benefits__item-icon { width: 15px; height: 15px; min-width: 15px; margin-top: 3px; color: var(--accent); }
.benefits__item-icon svg { width: 100%; height: 100%; }
.benefits__item-text { font-size: 13px; color: var(--text-secondary); line-height: 1.45; }

.benefits__chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 14px;
}
.benefits__chart-title { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.benefits__bars { display: flex; flex-direction: column; gap: 14px; }
.benefits__bar-row { display: flex; align-items: center; gap: 10px; }
.benefits__bar-label { font-size: 12px; color: var(--text-muted); width: 76px; min-width: 76px; }
.benefits__bar-track {
  flex: 1; height: 7px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px; overflow: hidden;
}
.benefits__bar-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), #7dd3fc);
  transition: width 1.6s ease;
  width: 0%;
}
.benefits__bar-tag { font-size: 11px; font-weight: 500; color: var(--accent); width: 90px; text-align: right; }

.benefits__note-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; align-items: flex-start; gap: 14px;
}
.benefits__note-icon { font-size: 22px; line-height: 1; min-width: 28px; }
.benefits__note-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.benefits__note-desc { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ===== GROWS ===== */
.grows { background: var(--bg-primary); }
.grows__header { text-align: center; margin-bottom: 48px; }
.grows__header .section-subtitle { margin: 0 auto; }
.grows__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.grows__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: all 0.22s;
}
.grows__card:hover { border-color: var(--border-accent); background: var(--bg-card-hover); transform: translateY(-2px); }
.grows__card-icon { font-size: 24px; line-height: 1; }
.grows__card-title { font-size: 14px; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.grows__card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.grows__note {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(79,163,255,0.06);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  max-width: 760px; margin: 0 auto;
}
.grows__note-icon { font-size: 22px; line-height: 1; min-width: 28px; }
.grows__note-text { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* ===== PACKAGES ===== */
.packages { background: var(--bg-secondary); }
.packages__header { text-align: center; margin-bottom: 52px; }
.packages__header .section-subtitle { margin: 0 auto; }
.packages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.package {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex; flex-direction: column;
  position: relative;
  transition: all 0.25s;
}
.package:hover { transform: translateY(-3px); border-color: var(--border-accent); }
.package.featured { border-color: var(--accent); background: linear-gradient(160deg, var(--bg-card-hover), var(--bg-card)); }
.package.featured::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.package__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 40px;
}
.package__tier { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.package__name { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.package__desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 24px; flex: 1; }
.package__divider { height: 1px; background: var(--border); margin-bottom: 20px; }
.package__features { display: flex; flex-direction: column; gap: 9px; margin-bottom: 28px; }
.package__feature { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--text-secondary); }
.package__feature-dot { width: 15px; height: 15px; min-width: 15px; margin-top: 2px; color: var(--accent); }
.package__feature-dot svg { width: 100%; height: 100%; }

/* ===== DEMO ===== */
.demo { background: var(--bg-secondary); }
.demo__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.demo__text .section-subtitle { margin-bottom: 28px; }
.demo__actions { margin-top: 28px; }
.demo__chat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,0.35);
}
.demo__chat-header {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
}
.demo__chat-avatar {
  width: 36px; height: 36px;
  background: var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 12px rgba(79,163,255,0.40);
  font-size: 16px;
}
.demo__chat-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.demo__chat-status {
  font-size: 11px; color: var(--success);
  display: flex; align-items: center; gap: 5px;
}
.demo__chat-status::before {
  content: ''; width: 6px; height: 6px;
  background: var(--success); border-radius: 50%; display: inline-block;
}
.demo__chat-body {
  padding: 20px 18px;
  display: flex; flex-direction: column; gap: 14px;
  height: 420px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.demo__msg { display: flex; flex-direction: column; gap: 3px; max-width: 85%; }
.demo__msg.user { align-self: flex-end; align-items: flex-end; }
.demo__msg.ai { align-self: flex-start; }
.demo__msg-bubble { padding: 11px 14px; border-radius: 12px; font-size: 13px; line-height: 1.55; }
.demo__msg.user .demo__msg-bubble { background: var(--accent); color: #fff; border-radius: 12px 12px 3px 12px; }
.demo__msg.ai .demo__msg-bubble { background: rgba(255,255,255,0.06); color: var(--text-primary); border-radius: 12px 12px 12px 3px; }
.demo__msg-time { font-size: 10px; color: var(--text-muted); }
.demo__chat-footer {
  border-top: 1px solid var(--border);
  padding: 12px 18px;
  display: flex; align-items: center; gap: 10px;
}
.demo__input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 13px;
  font-size: 13px; color: var(--text-muted);
}
.demo__send {
  width: 36px; height: 36px;
  background: var(--accent); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 12px rgba(79,163,255,0.30); flex-shrink: 0;
}
.demo__send svg { width: 15px; height: 15px; }
.demo__note {
  font-size: 11px; color: var(--text-muted);
  text-align: center; padding: 10px 18px;
  border-top: 1px solid var(--border);
  font-style: italic;
}

/* Typing dots */
.typing-indicator { display: flex; align-items: center; gap: 4px; padding: 12px 14px; background: rgba(255,255,255,0.06); border-radius: 12px 12px 12px 3px; width: fit-content; }
.typing-dot { width: 7px; height: 7px; background: var(--text-muted); border-radius: 50%; animation: typing 1.2s infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%,60%,100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ===== FAQ ===== */
.faq { background: var(--bg-primary); }
.faq__header { text-align: center; margin-bottom: 48px; }
.faq__list { display: flex; flex-direction: column; gap: 8px; max-width: 760px; margin: 0 auto; }
.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq__item.open { border-color: var(--border-accent); }
.faq__question {
  width: 100%;
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; cursor: pointer; text-align: left;
}
.faq__question-text { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.faq__icon {
  width: 22px; height: 22px; min-width: 22px;
  background: rgba(255,255,255,0.06); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.22s; color: var(--text-muted);
}
.faq__icon svg { width: 12px; height: 12px; transition: transform 0.22s; }
.faq__item.open .faq__icon { background: var(--accent-dim); color: var(--accent); }
.faq__item.open .faq__icon svg { transform: rotate(45deg); }
.faq__answer { max-height: 0; overflow: hidden; transition: max-height 0.32s ease; }
.faq__answer-inner {
  padding: 0 22px 18px;
  font-size: 14px; color: var(--text-secondary); line-height: 1.7;
  border-top: 1px solid var(--border); padding-top: 14px;
}

/* ===== CONTACT ===== */
.contact { background: var(--bg-secondary); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
  align-items: start;
}
.contact__info-list { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.contact__info-item { display: flex; align-items: flex-start; gap: 14px; }
.contact__info-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.contact__info-label { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.06em; }
.contact__info-value { font-size: 14px; font-weight: 500; color: var(--text-secondary); }

.contact__form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.contact__form-wrap::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.form__label { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.form__input, .form__select, .form__textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  -webkit-appearance: none; appearance: none;
  width: 100%;
}
.form__input::placeholder, .form__textarea::placeholder { color: var(--text-muted); }
.form__input:focus, .form__select:focus, .form__textarea:focus {
  border-color: var(--accent);
  background: rgba(79,163,255,0.05);
}
.form__select { cursor: pointer; }
.form__select option { background: var(--bg-card); color: var(--text-primary); }
.form__textarea { resize: vertical; min-height: 90px; }

.form__consent-field { margin-bottom: 18px; }
.form__checkbox-label { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; user-select: none; }
.form__checkbox { display: none; }
.form__checkbox-custom {
  width: 18px; height: 18px; min-width: 18px; margin-top: 2px;
  border: 1.5px solid var(--border); border-radius: 4px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s; position: relative;
}
.form__checkbox:checked + .form__checkbox-custom { background: var(--accent); border-color: var(--accent); }
.form__checkbox:checked + .form__checkbox-custom::after {
  content: '';
  position: absolute;
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}
.form__checkbox-label:hover .form__checkbox-custom { border-color: var(--accent); }
.form__consent-text { font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.form__submit { width: 100%; justify-content: center; padding: 14px; font-size: 15px; }

.form__success { text-align: center; padding: 40px 20px; }
.form__success-icon { font-size: 48px; margin-bottom: 14px; }
.form__success-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.form__success-text { font-size: 14px; color: var(--text-secondary); }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
}
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__copy { font-size: 13px; color: var(--text-muted); }
.footer__links { display: flex; gap: 20px; }
.footer__links a { font-size: 13px; color: var(--text-muted); transition: color 0.18s; }
.footer__links a:hover { color: var(--text-secondary); }

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .who__grid { grid-template-columns: repeat(2, 1fr); }
  .how__steps { grid-template-columns: repeat(2, 1fr); }
  .packages__grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .grows__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .nav { display: none; }
  .header__cta { display: none; }
  .mobile-menu-btn { display: flex; }

  .pain__inner,
  .solution__inner,
  .benefits__inner,
  .demo__inner,
  .contact__inner { grid-template-columns: 1fr; gap: 36px; }

  .pain__visual { order: -1; }
  .who__grid { grid-template-columns: repeat(2, 1fr); }
  .how__steps { grid-template-columns: 1fr; }
  .benefits__list { grid-template-columns: 1fr; }
  .solution__cards { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .contact__form-wrap { padding: 24px 18px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .hero__stats { gap: 24px; }
  .packages__grid { max-width: 100%; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .hero__title { font-size: 28px; }
  .section-title { font-size: 22px; }
  .who__grid { grid-template-columns: 1fr; }
  .grows__grid { grid-template-columns: 1fr; }
  .solution__cards { grid-template-columns: 1fr; }
  .hero__stat-num { font-size: 22px; }
  .hero__stats { gap: 18px; }
  .contact__form-wrap { padding: 20px 16px; }
  .package { padding: 28px 18px; }
}

/* ================================
   NEW CONVERSION BLOCKS
   ================================ */

/* ===== CTA STRIP ===== */
.cta-strip { padding: 36px 0; }
.cta-strip--danger { background: linear-gradient(135deg, #120a10 0%, #1a0d18 100%); border-top: 1px solid rgba(255,79,114,0.15); border-bottom: 1px solid rgba(255,79,114,0.15); }
.cta-strip--accent { background: linear-gradient(135deg, #080c1a 0%, #0d1428 100%); border-top: 1px solid var(--border-accent); border-bottom: 1px solid var(--border-accent); }
.cta-strip--subtle { background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.cta-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-strip__text { flex: 1; }
.cta-strip__title {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 4px;
}
.cta-strip__desc { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }
.cta-strip .btn { flex-shrink: 0; }

/* ===== FREE AUDIT ===== */
.audit { background: var(--bg-secondary); }
.audit__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.audit__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.audit__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.22s;
}
.audit__card:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.audit__card-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: rgba(79,163,255,0.15);
  line-height: 1;
}
.audit__card-text { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* ===== BEFORE / AFTER ===== */
.before-after { background: var(--bg-primary); }
.before-after__header { text-align: center; margin-bottom: 52px; }
.before-after__cols {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
}
.before-after__col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.before-after__col--before { border-color: rgba(255,79,114,0.20); }
.before-after__col--after { border-color: rgba(45,214,162,0.25); }
.before-after__col-header { margin-bottom: 24px; }
.before-after__badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 40px;
  letter-spacing: 0.03em;
}
.before-after__badge--before { background: rgba(255,79,114,0.12); color: #ff7090; border: 1px solid rgba(255,79,114,0.25); }
.before-after__badge--after { background: rgba(45,214,162,0.10); color: var(--success); border: 1px solid rgba(45,214,162,0.25); }

.before-after__list { display: flex; flex-direction: column; gap: 12px; }
.before-after__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.before-after__icon {
  width: 20px; height: 20px; min-width: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; margin-top: 1px;
}
.before-after__icon--minus { background: rgba(255,79,114,0.15); color: #ff7090; }
.before-after__icon--plus { background: rgba(45,214,162,0.12); color: var(--success); }

.before-after__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}
.before-after__arrow {
  font-size: 28px;
  color: var(--accent);
  font-weight: 300;
  opacity: 0.5;
}

/* ===== TRUST BLOCK ===== */
.trust { background: var(--bg-secondary); }
.trust__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.trust__accent {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
}
.trust__accent-icon { font-size: 24px; line-height: 1; min-width: 32px; }
.trust__accent-text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

.trust__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.trust__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  display: flex; flex-direction: column; gap: 8px;
  transition: all 0.22s;
}
.trust__card:hover { border-color: var(--border-accent); background: var(--bg-card-hover); transform: translateY(-2px); }
.trust__card-icon { font-size: 22px; line-height: 1; }
.trust__card-title { font-size: 14px; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.trust__card-desc { font-size: 12px; color: var(--text-muted); line-height: 1.55; }

/* ===== CONSULT PREVIEW ===== */
.consult { background: var(--bg-primary); }
.consult__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.consult__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.consult__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.consult__item:hover { border-color: var(--border-accent); }
.consult__item-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: rgba(79,163,255,0.25);
  line-height: 1;
  min-width: 28px;
  margin-top: 1px;
}
.consult__item-text { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* ===== RESPONSIVE FOR NEW BLOCKS ===== */
@media (max-width: 768px) {
  .cta-strip__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cta-strip .btn { width: 100%; justify-content: center; }

  .audit__inner { grid-template-columns: 1fr; gap: 36px; }
  .audit__cards { grid-template-columns: 1fr 1fr; }

  .before-after__cols { grid-template-columns: 1fr; gap: 16px; }
  .before-after__divider { padding: 8px 0; }
  .before-after__arrow { transform: rotate(90deg); }

  .trust__inner { grid-template-columns: 1fr; gap: 36px; }
  .trust__cards { grid-template-columns: 1fr 1fr; }

  .consult__inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 480px) {
  .audit__cards { grid-template-columns: 1fr; }
  .trust__cards { grid-template-columns: 1fr; }
}

/* ================================
   FINAL POLISH — v4
   ================================ */

/* Before/after arrow fix on mobile */
@media (max-width: 768px) {
  .before-after__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
  }
  .before-after__arrow {
    font-size: 22px;
    transform: rotate(90deg);
    opacity: 0.4;
  }
}

/* Prevent any element from causing horizontal overflow */
* { max-width: 100%; }
img, svg, video { max-width: 100%; height: auto; }

/* Form error message */
#formError {
  color: #ff7090;
  font-size: 13px;
  margin-top: 8px;
  line-height: 1.5;
}

/* form tag — keep same look as the old div */
form.contact__form {
  display: block;
}

/* Success panel spacing */
.form__success {
  text-align: center;
  padding: 48px 24px;
}

/* Ensure select arrow visible on all browsers */
.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a5170' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Smooth scroll offset for fixed header */
[id] { scroll-margin-top: 80px; }

/* Mobile: stack cta-strip buttons */
@media (max-width: 480px) {
  .cta-strip__title { font-size: 16px; }
  .before-after__col { padding: 24px 18px; }
  .audit__card { padding: 18px 14px; }
  .consult__item { padding: 13px 14px; }
  .trust__card { padding: 18px 14px; }
}

/* ===== LANG SWITCHER ===== */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 6px;
}
.lang-switcher__btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 7px;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.18s;
  letter-spacing: 0.04em;
}
.lang-switcher__btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.08);
}
.lang-switcher__btn--active {
  color: var(--accent);
  background: var(--accent-dim);
}
.lang-switcher__sep {
  color: var(--border);
  font-size: 11px;
  user-select: none;
  padding: 0 1px;
}

/* Mobile nav lang switcher */
.mobile-nav .lang-switcher {
  margin: 10px 0 4px;
  border-color: var(--border-accent);
  align-self: flex-start;
}

@media (max-width: 768px) {
  .header__cta .lang-switcher { display: none; }
}

/* ===== LANG SWITCHER MOBILE REFINEMENTS ===== */
@media (max-width: 768px) {
  /* Show switcher inside mobile nav only */
  .header__cta .lang-switcher { display: none; }
  .mobile-nav .lang-switcher {
    display: inline-flex;
    margin: 8px 0 4px;
    flex-wrap: wrap;
  }
}

@media (max-width: 360px) {
  .lang-switcher__btn { padding: 3px 5px; font-size: 11px; }
}

/* ================================================
   PREMIUM AI ANIMATIONS — added
   ================================================ */

/* ── 1. HERO: photo breathing glow ── */
.hero__photo-glow {
  animation: glowBreathe 5s ease-in-out infinite;
}
@keyframes glowBreathe {
  0%,100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.04); }
}

/* Photo very soft breath */
.hero__photo {
  animation: heroFloat 8s ease-in-out infinite, photoBreathe 6s ease-in-out infinite;
}
@keyframes photoBreathe {
  0%,100% { filter: drop-shadow(0 0 40px rgba(79,163,255,0.18)); }
  50%      { filter: drop-shadow(0 0 60px rgba(79,163,255,0.30)); }
}

/* ── 2. FADE-IN: staggered cards ── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Stagger delay for grid children */
.who__grid    .fade-in:nth-child(2) { transition-delay: 0.06s; }
.who__grid    .fade-in:nth-child(3) { transition-delay: 0.12s; }
.who__grid    .fade-in:nth-child(4) { transition-delay: 0.18s; }
.who__grid    .fade-in:nth-child(5) { transition-delay: 0.24s; }
.who__grid    .fade-in:nth-child(6) { transition-delay: 0.30s; }
.who__grid    .fade-in:nth-child(7) { transition-delay: 0.36s; }
.who__grid    .fade-in:nth-child(8) { transition-delay: 0.42s; }

.how__steps   .fade-in:nth-child(2) { transition-delay: 0.08s; }
.how__steps   .fade-in:nth-child(3) { transition-delay: 0.16s; }
.how__steps   .fade-in:nth-child(4) { transition-delay: 0.24s; }
.how__steps   .fade-in:nth-child(5) { transition-delay: 0.32s; }
.how__steps   .fade-in:nth-child(6) { transition-delay: 0.40s; }

.grows__grid  .fade-in:nth-child(2) { transition-delay: 0.07s; }
.grows__grid  .fade-in:nth-child(3) { transition-delay: 0.14s; }
.grows__grid  .fade-in:nth-child(4) { transition-delay: 0.21s; }
.grows__grid  .fade-in:nth-child(5) { transition-delay: 0.28s; }
.grows__grid  .fade-in:nth-child(6) { transition-delay: 0.35s; }

.packages__grid .fade-in:nth-child(2) { transition-delay: 0.10s; }
.packages__grid .fade-in:nth-child(3) { transition-delay: 0.20s; }

.trust__cards .fade-in > .trust__card:nth-child(2) { transition-delay: 0.07s; }
.trust__cards .fade-in > .trust__card:nth-child(3) { transition-delay: 0.14s; }
.trust__cards .fade-in > .trust__card:nth-child(4) { transition-delay: 0.21s; }
.trust__cards .fade-in > .trust__card:nth-child(5) { transition-delay: 0.28s; }
.trust__cards .fade-in > .trust__card:nth-child(6) { transition-delay: 0.35s; }

/* ── 3. CARDS: premium hover lift + blue glow ── */
.who__card,
.how__step,
.grows__card,
.trust__card,
.audit__card,
.consult__item,
.benefits__item {
  transition: transform 0.28s ease, border-color 0.28s ease,
              box-shadow 0.28s ease, background 0.28s ease;
}

.who__card:hover,
.how__step:hover,
.grows__card:hover,
.trust__card:hover,
.audit__card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 8px 32px rgba(79,163,255,0.12), 0 2px 8px rgba(0,0,0,0.3);
  background: var(--bg-card-hover);
}

.benefits__item:hover {
  border-color: var(--border-accent);
  box-shadow: 0 4px 16px rgba(79,163,255,0.08);
}

.consult__item:hover {
  border-color: var(--border-accent);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(79,163,255,0.08);
}

/* Package cards — stronger glow */
.package {
  transition: transform 0.30s ease, border-color 0.30s ease, box-shadow 0.30s ease;
}
.package:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
  box-shadow: 0 12px 40px rgba(79,163,255,0.14), 0 4px 12px rgba(0,0,0,0.4);
}
.package.featured:hover {
  box-shadow: 0 12px 40px rgba(79,163,255,0.25), 0 4px 12px rgba(0,0,0,0.4);
}

/* Before/after cols */
.before-after__col {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.before-after__col:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

/* ── 4. BUTTONS: premium glow + sheen ── */
.btn {
  transition: all 0.26s ease;
  position: relative;
  overflow: hidden;
}

/* Sheen sweep on hover */
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}
.btn:hover::after { left: 125%; }

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 28px rgba(79,163,255,0.50), 0 4px 16px rgba(0,0,0,0.3);
}
.btn-outline:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(79,163,255,0.20);
}
.btn-ghost:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ── 5. FAQ: smooth icon rotation ── */
.faq__icon { transition: background 0.22s, color 0.22s; }
.faq__icon svg { transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1); }
.faq__item.open .faq__icon svg { transform: rotate(45deg); }

.faq__answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.38s ease, opacity 0.30s ease;
}
.faq__item.open .faq__answer { opacity: 1; }

/* ── 6. SOLUTION CARDS: subtle top accent on hover ── */
.solution__card {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.solution__card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(79,163,255,0.10);
}

/* ── 7. SECTION LABELS: slide in from left ── */
.section-label {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ── 8. HERO BADGE pulse ring ── */
.hero__badge {
  position: relative;
}
.hero__badge::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 40px;
  border: 1px solid rgba(79,163,255,0.15);
  animation: badgeRing 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes badgeRing {
  0%,100% { opacity: 0; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.03); }
}

/* ── 9. PREFERS-REDUCED-MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in { opacity: 1 !important; transform: none !important; }
  .hero__photo { animation: none !important; filter: none !important; }
  .hero__photo-glow { animation: none !important; }
  .hero__badge::before { animation: none !important; }
  .hnode { animation: none !important; }
  .hero__badge-dot { animation: none !important; }
  .hchip-dot { animation: none !important; }
  .hero__chip { animation: none !important; }
  .hero__ai-ring { animation: none !important; }
  canvas { display: none !important; }
}

/* ================================================
   PRIVACY PAGE STYLES
   ================================================ */
.privacy {
  padding: 60px 0 80px;
  min-height: 70vh;
}
.privacy__wrap {
  max-width: 760px;
  margin: 0 auto;
}
.privacy__back {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 32px;
  transition: opacity 0.18s;
}
.privacy__back:hover { opacity: 0.75; }
.privacy__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.2;
}
.privacy__company {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.privacy__section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.privacy__section:last-child { border-bottom: none; }
.privacy__section-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.privacy__section-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}
.privacy__gdpr {
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 16px;
}

/* ================================================
   IMPETUS AI — ANIMATED LOGO
   ================================================ */

/* Remove old logo-icon style for new SVG logo */
.logo--animated,
.logo--footer {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__svg {
  width: 160px;
  height: 29px;
  overflow: visible;
  display: block;
}

.logo__svg--sm {
  width: 140px;
  height: 26px;
  opacity: 0.7;
}

/* ── Pulse sweep animation ──────────────────────── */
/* The sweep-rect inside clipPath moves left→right  */
/* Full cycle: 4s — 1.5s sweep + 0.5s AI glow + 2s pause */
@keyframes sweepMove {
  /*  0% : rect is far left (hidden)         */
  0%   { transform: translateX(0px);   }
  /*  45%: rect sweeps fully across IMPETUS  */
  45%  { transform: translateX(370px); }
  /* 100%: hold right, then loop             */
  100% { transform: translateX(370px); }
}

/* Apply to the animated rect inside the clipPath */
.logo--animated .sweep-rect {
  animation: sweepMove 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Reset each cycle — we use animation-delay trick below */
/* The clipPath rect starts at x=-220 (set in SVG), so:
   at t=0   rect covers x=-220..-100  → no overlap with text (x=0)
   sweeps → by t=45% rect is at ~150 covering full IMPETUS
   by t=100% it's past   */

/* ── AI glow pulse ──────────────────────────────── */
/* Synced: AI glows when pulse arrives (~45% of 4s = 1.8s) */
@keyframes aiGlowPulse {
  0%    { opacity: 0.75; filter: url(#aiGlow) brightness(1); }
  /* low before pulse arrives */
  40%   { opacity: 0.75; filter: url(#aiGlow) brightness(1); }
  /* pulse arrives → bright burst */
  52%   { opacity: 1;    filter: url(#aiGlow) brightness(1.6); }
  65%   { opacity: 0.95; filter: url(#aiGlow) brightness(1.2); }
  /* fade back down */
  80%   { opacity: 0.8;  filter: url(#aiGlow) brightness(1); }
  100%  { opacity: 0.75; filter: url(#aiGlow) brightness(1); }
}

.logo--animated .logo__ai {
  animation: aiGlowPulse 4s ease-in-out infinite;
}

/* ── Separator dot twinkle ──────────────────────── */
@keyframes dotTwinkle {
  0%,100% { opacity: 0.4; }
  50%     { opacity: 0.9; }
}
.logo--animated .logo__dot {
  animation: dotTwinkle 4s ease-in-out infinite;
  animation-delay: 1.8s;
}

/* ── IMPETUS base: subtle shimmer on hover ──────── */
.logo--animated:hover .logo__impetus {
  fill: #ffffff;
  transition: fill 0.3s ease;
}

/* ── Reduced motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .logo--animated .sweep-rect   { animation: none !important; }
  .logo--animated .logo__ai     { animation: none !important; }
  .logo--animated .logo__dot    { animation: none !important; }
}

/* ── Mobile adjustments ─────────────────────────── */
@media (max-width: 480px) {
  .logo__svg { width: 130px; height: 24px; }
  .logo__svg--sm { width: 120px; height: 22px; }
}

/* ================================================
   LOGO — IMAGE VERSION (IMPETUS AI brand)
   ================================================ */
.logo--img {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  /* Subtle hover lift */
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.logo--img:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.logo__img {
  display: block;
  width: 220px;
  height: auto;
  /* The logo has dark bg — blend naturally with header */
  mix-blend-mode: lighten;
  /* Boost vibrancy slightly */
  filter: brightness(1.05) contrast(1.02);
  object-fit: contain;
}

/* Footer variant — smaller + dimmed */
.logo--footer .logo__img,
.logo__img--sm {
  width: 180px;
  opacity: 0.7;
  filter: brightness(0.9) saturate(0.85);
}
.logo--footer:hover .logo__img {
  opacity: 0.9;
}

/* Mobile */
@media (max-width: 768px) {
  .logo__img { width: 160px; }
  .logo__img--sm { width: 140px; }
}
@media (max-width: 380px) {
  .logo__img { width: 130px; }
}

/* Remove old SVG logo styles that may conflict */
.logo__svg { display: none; }

/* ================================================
   HEADER LAYOUT FIX — lang switcher inline
   ================================================ */

/* header__cta: single flex row, all elements aligned */
.header__cta {
  display: flex;
  align-items: center;
  flex-direction: row;      /* force horizontal */
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: nowrap;        /* never wrap to second line */
}

/* lang-switcher sits between nav and CTA button */
.header__cta .lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 6px;
  flex-shrink: 0;
}

/* On mobile: hide lang from header, show in mobile-nav only */
@media (max-width: 900px) {
  /* Shrink nav links to make room */
  .nav a { padding: 6px 8px; font-size: 13px; }
  .header__cta { gap: 8px; }
}

@media (max-width: 768px) {
  /* On mobile: hide CTA button and lang from header */
  .header__cta { display: none; }
}

/* ================================================
   LANG DROPDOWN — hover/click menu
   ================================================ */
.lang-drop {
  position: relative;
  flex-shrink: 0;
}

/* Trigger button — same height/padding as .btn */
.lang-drop__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;        /* matches .btn padding */
  font-family: var(--font-body);
  font-size: 15px;           /* matches .btn font-size */
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  line-height: 1;
}
.lang-drop__btn:hover,
.lang-drop.open .lang-drop__btn {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-dim);
}

.lang-drop__current { min-width: 22px; text-align: center; }

.lang-drop__arrow {
  width: 10px; height: 6px;
  flex-shrink: 0;
  transition: transform 0.15s;
  opacity: 0.55;
}
.lang-drop.open .lang-drop__arrow { transform: rotate(180deg); opacity: 1; }

/* Dropdown menu — NO transition, instant open */
.lang-drop__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: rgba(8,11,26,0.98);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 5px;
  display: none;           /* hidden by default — NO opacity trick */
  flex-direction: column;
  gap: 3px;
  min-width: 100%;         /* at least as wide as the trigger */
  box-shadow: 0 8px 28px rgba(0,0,0,0.55), 0 0 16px rgba(79,163,255,0.08);
  backdrop-filter: blur(10px);
  z-index: 200;
}

/* Show instantly on hover OR .open class */
.lang-drop:hover .lang-drop__menu,
.lang-drop.open  .lang-drop__menu {
  display: flex;
}

/* Each item = same size as the trigger button */
.lang-drop__item {
  display: block;
  padding: 10px 16px;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background 0.1s, color 0.1s;
}
.lang-drop__item:hover { background: var(--accent-dim); color: var(--accent); }
.lang-drop__item--active { color: var(--accent); background: rgba(79,163,255,0.10); }

/* Mobile: hide dropdown trigger, lang stays in mobile-nav */
@media (max-width: 768px) { .lang-drop { display: none; } }

/* ================================================
   MOBILE NAV — CONTACT BUTTONS
   ================================================ */
.mobile-nav__contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0 4px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 4px 0;
}
.mobile-nav__contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 11px 4px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.12s, background 0.12s;
}
.mobile-nav__contact-btn:hover {
  color: var(--accent);
  background: var(--accent-dim);
  padding-left: 10px;
}

/* ================================================
   CANVAS PERFORMANCE — fewer nodes on mobile
   ================================================ */
@media (max-width: 768px) {
  /* Slightly dim canvas on mobile to reduce GPU load */
  .hero__neural { opacity: 0.4 !important; }
}

/* ================================================
   FOOTER — phone + WA + TG
   ================================================ */
.footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.footer__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.12s;
}
.footer__contact-link:hover { color: var(--accent); }
.footer__contact-link span { font-size: 15px; }

@media (max-width: 480px) {
  .footer__contacts { gap: 12px 16px; }
  .footer__contact-link { font-size: 12px; }
}

/* ================================================
   CONTACT ICON — SVG logos fit in square
   ================================================ */
.contact__info-icon--svg {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.contact__info-icon--svg svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

/* Footer SVG icons */
.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.footer-icon svg { width: 100%; height: 100%; }

/* Mobile nav SVG icons */
.mob-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.mob-icon svg { width: 100%; height: 100%; }


/* ================================================
   FAST HEADER CONTACTS + QUICK LANGUAGE UX
   ================================================ */
.header__contacts {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.header__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(79,163,255,0.22);
  background: rgba(79,163,255,0.055);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition:
    color .08s ease-out,
    background-color .08s ease-out,
    border-color .08s ease-out,
    box-shadow .08s ease-out,
    transform .06s ease-out;
  -webkit-tap-highlight-color: transparent;
}

.header__contact:hover {
  color: var(--text-primary);
  border-color: rgba(79,163,255,0.48);
  background: rgba(79,163,255,0.12);
  box-shadow: 0 0 0 1px rgba(79,163,255,0.08), 0 0 14px rgba(79,163,255,0.10);
}

.header__contact:active,
.lang-drop__btn:active,
.lang-drop__item:active,
.lang-switcher__btn:active {
  transform: translateY(1px) scale(0.985);
}

.header__contact--wa {
  color: #dff7ea;
  border-color: rgba(37,211,102,0.25);
  background: rgba(37,211,102,0.08);
}

.header__contact--wa:hover {
  color: #ffffff;
  border-color: rgba(37,211,102,0.48);
  background: rgba(37,211,102,0.14);
  box-shadow: 0 0 14px rgba(37,211,102,0.12);
}

/* Faster, more responsive language selector */
.lang-drop__btn,
.lang-drop__item,
.lang-switcher__btn {
  transition:
    color .08s ease-out,
    background-color .08s ease-out,
    border-color .08s ease-out,
    box-shadow .08s ease-out,
    transform .06s ease-out !important;
  -webkit-tap-highlight-color: transparent;
}

.lang-drop__btn:hover,
.lang-drop.open .lang-drop__btn {
  box-shadow: 0 0 0 1px rgba(79,163,255,0.10), 0 0 16px rgba(79,163,255,0.12);
}

.lang-drop__menu {
  top: calc(100% + 4px);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  will-change: auto;
}

.lang-drop__item:hover {
  transform: translateX(2px);
  box-shadow: inset 2px 0 0 rgba(79,163,255,0.85);
}

.lang-drop__item--active,
.lang-switcher__btn--active {
  box-shadow: inset 0 0 0 1px rgba(79,163,255,0.20);
}

/* Header spacing on smaller laptops */
@media (max-width: 1180px) {
  .header__contacts { display: none; }
}

/* Keep mobile fast and clean */
@media (max-width: 768px) {
  .header__contacts { display: none; }
  .mobile-nav__contact-btn {
    transition:
      color .08s ease-out,
      background-color .08s ease-out,
      border-color .08s ease-out,
      transform .06s ease-out !important;
  }
  .mobile-nav__contact-btn:active {
    transform: translateY(1px) scale(0.985);
  }
}

/* Performance guard */
.hero__neural {
  contain: layout paint;
}

/* ================================================
   LOGO BRAND — size fix (logo__brand-img had no rules)
   ================================================ */
.logo__brand-img {
  display: block;
  height: 44px;          /* fixed height — keeps proportions */
  width: auto;
  max-width: 240px;
  object-fit: contain;
  mix-blend-mode: lighten;
  filter: brightness(1.05) contrast(1.02);
}

.logo__brand-img--sm {
  height: 32px;
  max-width: 190px;
  opacity: 0.65;
  filter: brightness(0.88) saturate(0.8);
}

/* Tighter header so hero has more room */
.header__inner { padding: 10px 24px; }

/* Hero: reduce padding-top and min-height so title is visible immediately */
.hero {
  min-height: 94vh;
  padding-top: 68px;
}

/* Mobile */
@media (max-width: 768px) {
  .logo__brand-img    { height: 34px; max-width: 180px; }
  .logo__brand-img--sm{ height: 26px; }
  .header__inner      { padding: 8px 16px; }
  .hero               { min-height: 100svh; padding-top: 60px; }
}
@media (max-width: 400px) {
  .logo__brand-img { height: 30px; max-width: 150px; }
}

/* ================================================
   FOOTER — new grid layout
   ================================================ */

/* Remove old footer rules conflict */
.footer__top, .footer__contacts, .footer__company,
.footer__privacy, .footer__bottom { all: unset; display: block; }

.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

/* Main grid: left column (nav+info) | right column (contacts) */
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  align-items: start;
}

/* ── LEFT side ── */
.footer__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Nav links — one centered row */
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
}
.footer__nav a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.14s;
  white-space: nowrap;
}
.footer__nav a:hover { color: var(--accent); }

/* Company row — one line, centered */
.footer__company-row {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  max-width: 600px;
}

/* Privacy note — small, centered, with lock */
.footer__privacy-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: rgba(130,150,190,0.7);
  text-align: center;
  max-width: 560px;
  line-height: 1.6;
}
.footer__lock { font-size: 13px; flex-shrink: 0; margin-top: 1px; }

/* Copyright */
.footer__copy {
  font-size: 11px;
  color: rgba(100,120,160,0.55);
  text-align: center;
}

/* ── RIGHT side: animated contacts ── */
.footer__contacts-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Icon circle */
.footer__contact-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  cursor: pointer;
}
.footer__contact-icon svg {
  width: 20px;
  height: 20px;
}

/* Phone — red neon */
.footer__contact-icon--phone {
  background: rgba(255, 50, 60, 0.12);
  border: 1px solid rgba(255, 60, 70, 0.30);
  animation: phoneNeon 2.8s ease-in-out infinite;
}
.footer__contact-icon--phone svg { stroke: #ff3c46; }

@keyframes phoneNeon {
  0%,100% { box-shadow: 0 0 6px rgba(255,60,70,0.3); }
  50%     { box-shadow: 0 0 14px rgba(255,60,70,0.7), 0 0 28px rgba(255,60,70,0.3); }
}
.footer__contact-icon--phone:hover {
  transform: scale(1.12);
  box-shadow: 0 0 20px rgba(255,60,70,0.8) !important;
  filter: brightness(1.3);
}

/* WhatsApp — green pulse */
.footer__contact-icon--wa {
  background: rgba(37,211,102,0.10);
  border: 1px solid rgba(37,211,102,0.25);
  animation: waNeon 3.2s ease-in-out infinite;
  animation-delay: 0.6s;
}
@keyframes waNeon {
  0%,100% { box-shadow: 0 0 5px rgba(37,211,102,0.2); }
  50%     { box-shadow: 0 0 12px rgba(37,211,102,0.6), 0 0 24px rgba(37,211,102,0.25); }
}
.footer__contact-icon--wa:hover {
  transform: scale(1.12);
  box-shadow: 0 0 20px rgba(37,211,102,0.7) !important;
}

/* Telegram — blue pulse */
.footer__contact-icon--tg {
  background: rgba(42,171,238,0.10);
  border: 1px solid rgba(42,171,238,0.25);
  animation: tgNeon 3.6s ease-in-out infinite;
  animation-delay: 1.2s;
}
@keyframes tgNeon {
  0%,100% { box-shadow: 0 0 5px rgba(42,171,238,0.2); }
  50%     { box-shadow: 0 0 12px rgba(42,171,238,0.6), 0 0 24px rgba(42,171,238,0.25); }
}
.footer__contact-icon--tg:hover {
  transform: scale(1.12);
  box-shadow: 0 0 20px rgba(42,171,238,0.7) !important;
}

/* Lightning — gold, no link */
.footer__contact-icon--resp {
  background: rgba(245,166,35,0.10);
  border: 1px solid rgba(245,166,35,0.22);
  cursor: default;
}
.footer__contact-icon--resp svg { width: 18px; height: 18px; }

/* Contact text */
.footer__contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer__contact-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer__contact-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.14s;
}
a.footer__contact-val:hover { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer__contacts-right {
    border-top: 1px solid var(--border);
    padding-top: 24px;
  }
  .footer__company-row { font-size: 11px; }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .footer__contact-icon { animation: none !important; }
}

/* ================================================
   CONTACT BLOCK — animated icons
   ================================================ */

/* Icon circle in contact block */
.contact__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  cursor: pointer;
  flex-shrink: 0;
}
.contact__icon svg { width: 22px; height: 22px; }

/* Phone — red neon */
.contact__icon--phone {
  background: rgba(255,50,60,0.12);
  border: 1px solid rgba(255,60,70,0.30);
  animation: cPhoneNeon 2.8s ease-in-out infinite;
}
.contact__icon--phone svg { stroke: #ff3c46; }
@keyframes cPhoneNeon {
  0%,100% { box-shadow: 0 0 6px rgba(255,60,70,0.25); }
  50%      { box-shadow: 0 0 16px rgba(255,60,70,0.65), 0 0 30px rgba(255,60,70,0.25); }
}
.contact__icon--phone:hover {
  transform: scale(1.12);
  box-shadow: 0 0 24px rgba(255,60,70,0.8) !important;
  filter: brightness(1.25);
}

/* WhatsApp — green pulse */
.contact__icon--wa {
  background: rgba(37,211,102,0.10);
  border: 1px solid rgba(37,211,102,0.28);
  animation: cWaNeon 3.2s ease-in-out infinite;
  animation-delay: 0.7s;
}
@keyframes cWaNeon {
  0%,100% { box-shadow: 0 0 5px rgba(37,211,102,0.18); }
  50%      { box-shadow: 0 0 14px rgba(37,211,102,0.55), 0 0 26px rgba(37,211,102,0.22); }
}
.contact__icon--wa:hover {
  transform: scale(1.12);
  box-shadow: 0 0 22px rgba(37,211,102,0.75) !important;
}

/* Telegram — blue pulse */
.contact__icon--tg {
  background: rgba(42,171,238,0.10);
  border: 1px solid rgba(42,171,238,0.28);
  animation: cTgNeon 3.6s ease-in-out infinite;
  animation-delay: 1.4s;
}
@keyframes cTgNeon {
  0%,100% { box-shadow: 0 0 5px rgba(42,171,238,0.18); }
  50%      { box-shadow: 0 0 14px rgba(42,171,238,0.55), 0 0 26px rgba(42,171,238,0.22); }
}
.contact__icon--tg:hover {
  transform: scale(1.12);
  box-shadow: 0 0 22px rgba(42,171,238,0.75) !important;
}

/* Lightning — gold, static */
.contact__icon--resp {
  background: rgba(245,166,35,0.10);
  border: 1px solid rgba(245,166,35,0.22);
  cursor: default;
  animation: cRespNeon 4s ease-in-out infinite;
  animation-delay: 2.1s;
}
.contact__icon--resp svg { width: 20px; height: 20px; }
@keyframes cRespNeon {
  0%,100% { box-shadow: 0 0 4px rgba(245,166,35,0.15); }
  50%      { box-shadow: 0 0 12px rgba(245,166,35,0.45); }
}

/* Contact info text */
.contact__info-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.contact__info-value a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.14s;
}
.contact__info-value a:hover { color: var(--accent); }
.contact__info-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Footer single column */
.footer__grid--single {
  grid-template-columns: 1fr !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .contact__icon { animation: none !important; }
}

/* ================================================
   FOOTER — clean centered, no logo
   ================================================ */
.footer__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 0 28px;
  text-align: center;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
}
.footer__nav a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.14s;
}
.footer__nav a:hover { color: var(--accent); }

.footer__company-row {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer__privacy-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(130,150,190,0.65);
  max-width: 600px;
  line-height: 1.65;
}
.footer__lock { flex-shrink: 0; font-size: 13px; margin-top: 1px; }

.footer__copy {
  font-size: 11px;
  color: rgba(100,120,160,0.5);
}

@media (max-width: 600px) {
  .footer__company-row { font-size: 11px; }
  .footer__nav { gap: 6px 14px; }
}

/* ================================================
   FOOTER — stretch nav, company, privacy full width
   ================================================ */
.footer__center {
  align-items: stretch !important;  /* растягиваем дочерние на всю ширину */
}

/* Nav — stretch across full width, space-between */
.footer__nav {
  justify-content: space-between !important;
  gap: 6px !important;
  width: 100%;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}
.footer__nav a {
  flex: 1;
  text-align: center;
}

/* Company row — full width, space-between */
.footer__company-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 6px 0;
  padding: 2px 0;
}

/* Privacy row — full width */
.footer__privacy-row {
  max-width: 100% !important;
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

/* Copyright — still centered */
.footer__copy { text-align: center; width: 100%; }

/* Mobile: revert to wrap/center */
@media (max-width: 640px) {
  .footer__nav { justify-content: center !important; }
  .footer__nav a { flex: unset; }
  .footer__company-row { justify-content: center; text-align: center; }
  .footer__privacy-row { justify-content: center; text-align: center; }
}

/* ================================================
   CONTACT BLOCK — company details
   ================================================ */
.contact__company {
  margin-top: 8px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.contact__company-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.contact__company-detail {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ================================================
   FOOTER — Contact dropdown button
   ================================================ */
.footer__contact-toggle {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.footer__contact-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.14s;
  white-space: nowrap;
}
.footer__contact-btn:hover { color: var(--accent); }
.footer__contact-btn[aria-expanded="true"] { color: var(--accent); }

/* Dropdown card */
.footer__contact-drop {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,14,30,0.97);
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  padding: 14px 18px;
  white-space: nowrap;
  z-index: 50;
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
  backdrop-filter: blur(12px);
  animation: fadeDropIn 0.15s ease;
}
.footer__contact-drop[hidden] { display: none; }

@keyframes fadeDropIn {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Small arrow pointing down */
.footer__contact-drop::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  background: rgba(10,14,30,0.97);
  border-right: 1px solid var(--border-accent);
  border-bottom: 1px solid var(--border-accent);
  rotate: 45deg;
}

.footer__company-popup {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.footer__company-popup br { display: block; }

@media (max-width: 600px) {
  .footer__contact-drop {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    white-space: normal;
  }
  .footer__contact-drop::after { display: none; }
}

/* ================================================
   SAFETY: fade-in blocks visible without JS
   If IntersectionObserver fails, content stays visible
   ================================================ */
.fade-in {
  opacity: 1;
  transform: translateY(0);
}
/* JS adds .visible class — same result, animation handled by transition */
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Only hide initially if JS is running (class added by JS to <html>) */
.js-ready .fade-in:not(.visible) {
  opacity: 0;
  transform: translateY(22px);
}

/* ================================================
   STAGE 2.4: Sequential card reveal after block fade-in
   Applies to: .audit__card, .benefits__item, .trust__card
   Only opacity + translateY, triggers after parent .fade-in.visible
   ================================================ */
@keyframes cardRiseIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.audit__cards.fade-in.visible .audit__card,
.benefits__left.fade-in.visible .benefits__item,
.trust__cards.fade-in.visible .trust__card {
  animation: cardRiseIn 0.45s ease both;
}

.audit__cards.fade-in.visible .audit__card:nth-child(1) { animation-delay: 0s; }
.audit__cards.fade-in.visible .audit__card:nth-child(2) { animation-delay: 0.08s; }
.audit__cards.fade-in.visible .audit__card:nth-child(3) { animation-delay: 0.16s; }
.audit__cards.fade-in.visible .audit__card:nth-child(4) { animation-delay: 0.24s; }

.benefits__left.fade-in.visible .benefits__item:nth-child(1) { animation-delay: 0s; }
.benefits__left.fade-in.visible .benefits__item:nth-child(2) { animation-delay: 0.07s; }
.benefits__left.fade-in.visible .benefits__item:nth-child(3) { animation-delay: 0.14s; }
.benefits__left.fade-in.visible .benefits__item:nth-child(4) { animation-delay: 0.21s; }
.benefits__left.fade-in.visible .benefits__item:nth-child(5) { animation-delay: 0.28s; }
.benefits__left.fade-in.visible .benefits__item:nth-child(6) { animation-delay: 0.35s; }
.benefits__left.fade-in.visible .benefits__item:nth-child(7) { animation-delay: 0.42s; }

.trust__cards.fade-in.visible .trust__card:nth-child(1) { animation-delay: 0s; }
.trust__cards.fade-in.visible .trust__card:nth-child(2) { animation-delay: 0.08s; }
.trust__cards.fade-in.visible .trust__card:nth-child(3) { animation-delay: 0.16s; }
.trust__cards.fade-in.visible .trust__card:nth-child(4) { animation-delay: 0.24s; }
.trust__cards.fade-in.visible .trust__card:nth-child(5) { animation-delay: 0.32s; }
.trust__cards.fade-in.visible .trust__card:nth-child(6) { animation-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .audit__cards.fade-in.visible .audit__card,
  .benefits__left.fade-in.visible .benefits__item,
  .trust__cards.fade-in.visible .trust__card {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ================================================
   STAGE 2.6: Mobile fixes — hero stats grid + overflow-wrap
   ================================================ */
@media (max-width: 380px) {
  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .hero__stat {
    align-items: center;
    text-align: center;
  }
  .hero__stat-label {
    font-size: 10px;
    line-height: 1.25;
  }
}

.faq__question-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact__info-value,
.contact__info-value a {
  overflow-wrap: anywhere;
}

.footer__contact-link,
.footer__contact-item {
  overflow-wrap: anywhere;
}

/* ================================================
   STAGE 2.7: Hero stat labels — more visible on desktop only
   Mobile (<=380px) compact rule from Stage 2.6 stays untouched
   ================================================ */
@media (min-width: 381px) {
  .hero__stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
  }
}

/* ================================================
   STAGE 2.8: Active nav link state (scroll-spy highlight)
   ================================================ */
.nav a.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.08);
}

/* Stagger delay for the 4 new grid cards (9-12), consistent with existing pattern */
.who__grid .fade-in:nth-child(9)  { transition-delay: 0.48s; }
.who__grid .fade-in:nth-child(10) { transition-delay: 0.54s; }
.who__grid .fade-in:nth-child(11) { transition-delay: 0.60s; }
.who__grid .fade-in:nth-child(12) { transition-delay: 0.66s; }

/* ================================================
   STAGE 2.13: Demo — "Что происходит в бизнесе" flow block + summary
   Compact, sits under the existing chat widget, same visual language
   ================================================ */
.demo__flow {
  margin-top: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.demo__flow-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}
.demo__flow-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.45;
  border-top: 1px solid var(--border);
}
.demo__flow-row:first-of-type { border-top: none; }
.demo__flow-trigger {
  color: var(--text-secondary);
  flex-shrink: 0;
}
.demo__flow-arrow {
  color: var(--accent);
  flex-shrink: 0;
}
.demo__flow-result {
  color: var(--text-primary);
}
.demo__flow-summary {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .demo__flow-row {
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }
  .demo__flow-arrow { display: none; }
}

/* ================================================
   STAGE 3.0: Demo — scenario picker + result card
   Visual-only demonstration, no network activity
   ================================================ */
.demo__scenarios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.demo__scenario-btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.demo__scenario-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  background: rgba(255,255,255,0.07);
}
.demo__scenario-btn.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(79,163,255,0.30);
}

.demo__result {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.demo__result.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.demo__result-icon { font-size: 20px; line-height: 1.2; flex-shrink: 0; }
.demo__result-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.demo__result-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

@media (max-width: 768px) {
  .demo__scenarios { gap: 6px; }
  .demo__scenario-btn { font-size: 11px; padding: 6px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .demo__result {
    transition: none;
  }
  .demo__scenario-btn {
    transition: none;
  }
}

/* ================================================
   STAGE 3.2: Fixed-height scrollable chat body
   Prevents the chat widget from growing with 20 messages.
   Mobile gets a slightly smaller fixed height.
   ================================================ */
@media (max-width: 768px) {
  .demo__chat-body {
    height: 340px;
  }
}

/* ================================================
   STAGE 3.7: Demo block alignment — desktop only
   Align left text column to the top of the right column
   ================================================ */
@media (min-width: 769px) {
  .demo__inner {
    align-items: start;
  }
}

/* ================================================
   STAGE 3.8 / 3.8.1: "Оптимизация бизнеса" — 8-card grid
   Now in the LEFT column, under the CTA button.
   Reveal uses the existing .fade-in / .fade-in.visible system
   (opacity + translateY + scale), triggered once, no looping.
   ================================================ */
.demo__optimize {
  margin-top: 24px;
}
.demo__optimize-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}
.demo__optimize-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.demo__optimize-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  height: 100%;
  box-sizing: border-box;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
/* Reveal animation: opacity + translateY + scale, driven by the existing .fade-in.visible trigger */
.demo__optimize-card.fade-in {
  transform: translateY(18px) scale(0.97);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.demo__optimize-card.fade-in.visible {
  transform: translateY(0) scale(1);
}
.demo__optimize-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: 0 0 0 1px rgba(79,163,255,0.25), 0 8px 20px rgba(79,163,255,0.14);
}
.demo__optimize-num {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
  transition: text-shadow 0.22s ease;
}
.demo__optimize-card:hover .demo__optimize-num {
  text-shadow: 0 0 8px rgba(79,163,255,0.55);
}
.demo__optimize-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}
.demo__optimize-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Staggered bottom-up reveal, consistent with existing .fade-in stagger patterns */
.demo__optimize-grid .fade-in:nth-child(2) { transition-delay: 0.06s; }
.demo__optimize-grid .fade-in:nth-child(3) { transition-delay: 0.12s; }
.demo__optimize-grid .fade-in:nth-child(4) { transition-delay: 0.18s; }
.demo__optimize-grid .fade-in:nth-child(5) { transition-delay: 0.24s; }
.demo__optimize-grid .fade-in:nth-child(6) { transition-delay: 0.30s; }
.demo__optimize-grid .fade-in:nth-child(7) { transition-delay: 0.36s; }
.demo__optimize-grid .fade-in:nth-child(8) { transition-delay: 0.42s; }

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

@media (prefers-reduced-motion: reduce) {
  .demo__optimize-card,
  .demo__optimize-card.fade-in,
  .demo__optimize-num {
    transition: none;
  }
  .demo__optimize-card.fade-in,
  .demo__optimize-card.fade-in.visible {
    transform: none;
  }
  .demo__optimize-card:hover {
    transform: none;
  }
}

/* ================================================
   STAGE 3.10A: Form funnel — channel button-style
   checkboxes/radios (incoming channels + preferred channel)
   ================================================ */
.form__channel-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.form__channel-option {
  position: relative;
  cursor: pointer;
}
.form__channel-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.form__channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  transition: all 0.18s ease;
  user-select: none;
}
.form__channel-option:hover .form__channel-btn {
  border-color: var(--border-accent);
  color: var(--text-primary);
}
.form__channel-input:checked + .form__channel-btn {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(79,163,255,0.30);
}
.form__channel-input:checked + .form__channel-btn::before {
  content: '✓';
  font-weight: 700;
}
.form__channel-input:focus-visible + .form__channel-btn {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Preferred continuation channel: two large side-by-side radio buttons */
.form__channel-options--radio {
  gap: 10px;
}
.form__channel-option--large {
  flex: 1;
}
.form__channel-btn--large {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
}

@media (max-width: 480px) {
  .form__channel-options--radio {
    flex-direction: column;
  }
}

/* Success block: plain-text channel indicator, no link, no auto-navigation */
.form__success-channel {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* ================================================
   STAGE 3.10B: WhatsApp — green selected state
   Applies to both incoming-channels checkbox and the
   preferred-channel radio. Telegram and other options
   keep the existing blue selected style.
   ================================================ */
.form__channel-input[value="whatsapp"]:checked + .form__channel-btn {
  color: #fff;
  background: #25D366;
  border-color: #25D366;
  box-shadow: 0 0 12px rgba(37,211,102,0.35);
}
.form__channel-input[value="whatsapp"]:checked + .form__channel-btn::before {
  content: '✓';
  font-weight: 700;
}

/* Incoming-channel picker: compact trigger with a multi-select dropdown. */
.form__incoming { position: relative; }
.form__incoming-trigger {
  width: 100%; min-height: 46px; padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--text-secondary); font: inherit; text-align: left;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.form__incoming-trigger:hover,
.form__incoming.open .form__incoming-trigger {
  color: var(--text-primary); border-color: var(--border-accent); background: var(--accent-dim);
}
.form__incoming-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__incoming-arrow { width: 12px; height: 8px; flex: 0 0 auto; opacity: .7; transition: transform .18s ease; }
.form__incoming.open .form__incoming-arrow { transform: rotate(180deg); }
.form__incoming-menu {
  display: none; position: static; z-index: 50;
  max-height: none; overflow: visible; margin-top: 6px; padding: 8px;
  background: rgba(8,11,26,.98); border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm); box-shadow: 0 16px 32px rgba(0,0,0,.32);
}
.form__incoming.open .form__incoming-menu { display: flex; flex-direction: column; gap: 5px; }
.form__incoming-menu .form__channel-option { width: 100%; }
.form__incoming-menu .form__channel-btn { width: 100%; border-radius: 8px; }
.form__incoming-other { padding: 8px 4px 4px; }
.form__incoming-other label { display: block; margin: 0 0 6px; color: var(--text-muted); font-size: 12px; font-weight: 600; }
.form__incoming-other input { width: 100%; min-height: 38px; padding: 9px 10px; color: var(--text-primary); font: inherit; font-size: 13px; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 7px; }
.form__incoming-other input:focus { outline: none; border-color: var(--accent); }

/* ================================================
   STAGE 3.11: Hero — CRM card + status badge overlays
   Decorative only (aria-hidden), placed left of the figure,
   in the free dark part of .hero__visual.
   ================================================ */
.hero__crm-overlay {
  position: absolute;
  z-index: 4;
  top: 38%;
  left: -18px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(7,10,26,0.82);
  border: 1px solid rgba(79,163,255,0.35);
  border-radius: 12px;
  padding: 10px 14px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 16px rgba(79,163,255,0.16);
  animation: heroOverlayFloat1 9s 0.5s ease-in-out infinite, heroOverlayGlow 5s ease-in-out infinite;
  max-width: 168px;
}
.hero__crm-overlay-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
}
.hero__crm-overlay-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.hero__crm-overlay-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
  white-space: nowrap;
}

.hero__status-overlay {
  position: absolute;
  z-index: 4;
  top: 58%;
  left: -8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(7,10,26,0.82);
  border: 1px solid rgba(79,163,255,0.30);
  border-radius: 30px;
  padding: 6px 12px 6px 8px;
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 10px rgba(79,163,255,0.12);
  animation: heroOverlayFloat2 12s 2.5s ease-in-out infinite;
}
.hero__status-overlay-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  flex-shrink: 0;
}
.hero__status-overlay-check {
  width: 12px;
  height: 12px;
  color: var(--success);
  flex-shrink: 0;
}

@keyframes heroOverlayFloat1 {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}
@keyframes heroOverlayFloat2 {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-5px); }
}
@keyframes heroOverlayGlow {
  0%,100% { box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 16px rgba(79,163,255,0.16); }
  50%     { box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 22px rgba(79,163,255,0.30); }
}

@media (max-width: 1100px) {
  .hero__crm-overlay { padding: 8px 11px; max-width: 140px; }
  .hero__crm-overlay-icon { width: 18px; height: 18px; }
  .hero__crm-overlay-title { font-size: 11px; }
  .hero__crm-overlay-desc { font-size: 10px; }
  .hero__status-overlay { padding: 5px 10px 5px 7px; font-size: 10px; }
}

@media (max-width: 900px) {
  .hero__crm-overlay { top: 34%; left: -10px; padding: 7px 10px; max-width: 120px; }
  .hero__crm-overlay-icon { width: 16px; height: 16px; }
  .hero__status-overlay { top: 54%; left: -4px; padding: 4px 9px 4px 6px; }
}

@media (max-width: 768px) {
  .hero__crm-overlay,
  .hero__status-overlay {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__crm-overlay,
  .hero__status-overlay {
    animation: none;
  }
}

/* ================================================
   Solution card — "Интеграция": compact SVG integration
   diagram (AI+CRM center + 6 channel icons) replacing the
   old "Telegram + WhatsApp" text. Inline SVG only, no CDN.
   ================================================ */
.solution__card--integration {
  display: flex;
  flex-direction: column;
}
.integration-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin: 2px 0 4px;
}
.integration-icons {
  display: flex;
  gap: 12px;
}
.integration-icon-float {
  display: inline-flex;
}
.integration-icon {
  width: 31px;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}
.integration-icon svg { width: 18px; height: 18px; }
.integration-icon-float:hover .integration-icon {
  transform: scale(1.18);
  filter: brightness(1.3);
  border-color: var(--border-accent);
}

.integration-icon-float--telegram  .integration-icon { color: #2AABEE; }
.integration-icon-float--whatsapp  .integration-icon { color: #25D366; }
.integration-icon-float--instagram .integration-icon { color: #d47bb0; }
.integration-icon-float--messenger .integration-icon { color: #7c93ff; }
.integration-icon-float--webchat   .integration-icon { color: var(--accent); }
.integration-icon-float--email     .integration-icon { color: #9aa3c4; }

.integration-center {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(79,163,255,0.08);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 6px 14px;
  white-space: nowrap;
  animation: integrationPulse 4.5s ease-in-out infinite;
}

.integration-caption {
  text-align: center;
  color: var(--text-secondary);
  font-weight: 500;
}

@keyframes integrationPulse {
  0%,100% { box-shadow: 0 0 8px rgba(79,163,255,0.22); transform: scale(1); }
  50%     { box-shadow: 0 0 16px rgba(79,163,255,0.42); transform: scale(1.035); }
}

@keyframes integrationFloatA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes integrationFloatB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes integrationFloatC { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.integration-icon-float--telegram  { animation: integrationFloatA 5.2s 0.2s ease-in-out infinite; }
.integration-icon-float--whatsapp  { animation: integrationFloatB 6.0s 1.0s ease-in-out infinite; }
.integration-icon-float--instagram { animation: integrationFloatC 5.6s 0.6s ease-in-out infinite; }
.integration-icon-float--messenger { animation: integrationFloatB 6.4s 1.4s ease-in-out infinite; }
.integration-icon-float--webchat   { animation: integrationFloatA 5.4s 2.0s ease-in-out infinite; }
.integration-icon-float--email     { animation: integrationFloatC 6.2s 0.8s ease-in-out infinite; }

/* Tablet: shrink the whole diagram proportionally */
@media (max-width: 1024px) {
  .integration-icon { width: 26px; height: 26px; }
  .integration-icon svg { width: 15px; height: 15px; }
  .integration-center { font-size: 14px; padding: 5px 11px; }
  .integration-icons { gap: 9px; }
}

/* Mobile: 3x2 icon grid with the center label above it */
@media (max-width: 480px) {
  .integration-diagram {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
      "center center center"
      "t1 t2 t3"
      "b1 b2 b3";
    gap: 8px;
    align-items: center;
    justify-items: center;
    margin: 2px 0 10px;
  }
  .integration-icons--top,
  .integration-icons--bottom {
    display: contents;
  }
  .integration-center { grid-area: center; }
  .integration-icon-float--telegram  { grid-area: t1; }
  .integration-icon-float--whatsapp  { grid-area: t2; }
  .integration-icon-float--instagram { grid-area: t3; }
  .integration-icon-float--messenger { grid-area: b1; }
  .integration-icon-float--webchat   { grid-area: b2; }
  .integration-icon-float--email     { grid-area: b3; }
}

@media (prefers-reduced-motion: reduce) {
  .integration-icon-float,
  .integration-center {
    animation: none;
  }
}

/* Keep legal and navigation text readable against the dark footer. */
.footer__nav a,
.footer__privacy-row,
.footer__copy,
.footer__company-row {
  color: #aeb8d2;
}
