/* ==========================================================================
   ELSYNQ Technologies — Enterprise Design System & Core Stylesheet
   Brand: ELSYNQ Technologies (elsynq.tech)
   Theme: High-Tech Enterprise Dark Cybernetic / Deep Obsidian & Neon Violet
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-space: #06060c;
  --bg-primary: #0a0b14;
  --bg-secondary: #0f1021;
  --bg-card: rgba(18, 19, 36, 0.72);
  --bg-card-hover: rgba(28, 30, 58, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-active: rgba(168, 85, 247, 0.08);

  /* Accents */
  --accent-purple: #a855f7;
  --accent-violet: #8b5cf6;
  --accent-indigo: #6366f1;
  --accent-magenta: #d946ef;
  --accent-cyan: #06b6d4;
  --accent-cyan-bright: #22d3ee;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  --grad-text: linear-gradient(135deg, #ffffff 20%, #cbd5e1 50%, #c084fc 100%);
  --grad-neon: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #06b6d4 100%);
  --grad-dark-card: linear-gradient(180deg, rgba(24, 25, 48, 0.7) 0%, rgba(12, 13, 26, 0.8) 100%);
  --grad-hero-glow: radial-gradient(circle at 50% 30%, rgba(168, 85, 247, 0.18) 0%, rgba(99, 102, 241, 0.08) 35%, transparent 70%);

  /* Borders & Shadows */
  --border-subtle: rgba(168, 85, 247, 0.15);
  --border-highlight: rgba(168, 85, 247, 0.35);
  --border-glow: rgba(192, 132, 252, 0.5);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow-purple: 0 0 35px rgba(168, 85, 247, 0.25);
  --shadow-glow-cyan: 0 0 35px rgba(6, 182, 212, 0.2);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-tech: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-bright: #ffffff;

  /* Layout */
  --container-max: 1280px;
  --header-height: 68px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-spring);
  --transition-normal: 0.35s var(--ease-spring);
  --transition-slow: 0.6s var(--ease-spring);
}

/* ==========================================================================
   CSS Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-space);
  color: var(--text-primary);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-space);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: rgba(168, 85, 247, 0.3);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-space);
}
::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.5);
}

/* Background Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

/* Background Gradients */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}
.glow-orb-1 {
  top: 10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
}
.glow-orb-2 {
  top: 40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  opacity: 0.2;
}
.glow-orb-3 {
  bottom: 5%;
  left: 20%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
  opacity: 0.25;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Section Header Utility */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px auto;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: #c084fc;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}
.section-tag span.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple);
  display: inline-block;
}
.section-title {
  font-family: var(--font-tech);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-bright);
  margin-bottom: 20px;
}
.section-title .gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: var(--transition-normal);
  background: rgba(7, 8, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.12);
}
.site-header.scrolled {
  background: rgba(8, 9, 18, 0.96);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.45);
  border: 1.5px solid rgba(168, 85, 247, 0.55);
  transition: var(--transition-fast);
  background: #05050a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.logo:hover .logo-icon-wrap {
  transform: scale(1.06);
  box-shadow: 0 0 26px rgba(168, 85, 247, 0.8), 0 0 10px rgba(216, 180, 254, 0.5);
  border-color: var(--accent-purple);
}
.logo-text-block {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}
.logo-brand {
  font-family: var(--font-tech);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-bright);
  white-space: nowrap;
}
.logo-brand span {
  color: var(--accent-purple);
}
.logo-tagline {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Navigation Menu: Sleek Glass Pill */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 30px;
  backdrop-filter: blur(12px);
  margin: 0 10px;
}
.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap !important;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}
.nav-link:hover {
  color: var(--text-bright);
  background: rgba(168, 85, 247, 0.14);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}
.nav-link.active {
  color: var(--text-bright);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(99, 102, 241, 0.25) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
}
.nav-ai-pill {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
  color: #fff;
  padding: 2px 5px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

/* Nav Actions & Compact Header Buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-header-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap !important;
  text-decoration: none;
  transition: all 0.2s;
  flex-shrink: 0;
  line-height: 1;
}
.btn-header-outline:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: var(--accent-purple);
  color: #fff;
}

.btn-header-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 2px 12px rgba(168, 85, 247, 0.35);
  white-space: nowrap !important;
  text-decoration: none;
  transition: all 0.2s;
  flex-shrink: 0;
  line-height: 1;
}
.btn-header-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.55);
  border-color: rgba(192, 132, 252, 0.8);
}

/* General Buttons for Sections (Hero, Calculator, Form) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  font-family: var(--font-main);
  white-space: nowrap;
  line-height: 1.2;
}
.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.55);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-highlight);
  color: var(--text-bright);
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: var(--accent-purple);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.2);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.mobile-toggle.active span:nth-child(1),
.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2),
.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-toggle.active span:nth-child(3),
.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 90px;
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
}
.hero-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(168, 85, 247, 0.09);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: #d8b4fe;
  margin-bottom: 24px;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.15);
}
.hero-badge .pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-title {
  font-family: var(--font-tech);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  color: var(--text-bright);
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #c084fc 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero-description {
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 600px;
}
.hero-description strong {
  color: var(--text-bright);
  font-weight: 600;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.hero-tag-item {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}
.hero-tag-item:hover {
  border-color: var(--accent-purple);
  color: #fff;
  background: rgba(168, 85, 247, 0.1);
  transform: translateY(-2px);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

/* Trust Bar */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.trust-item {
  display: flex;
  flex-direction: column;
}
.trust-number {
  font-family: var(--font-tech);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.2;
}
.trust-number span {
  color: var(--accent-purple);
}
.trust-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 4px;
}

/* Hero Visual Box */
.hero-visual {
  position: relative;
}
.visual-frame {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 6px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.5) 0%, rgba(99, 102, 241, 0.2) 50%, rgba(6, 182, 212, 0.4) 100%);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(168, 85, 247, 0.25);
  overflow: hidden;
}
.visual-inner {
  border-radius: calc(var(--radius-xl) - 4px);
  overflow: hidden;
  background: var(--bg-primary);
  position: relative;
}
.visual-inner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s var(--ease-spring);
}
.visual-frame:hover .visual-inner img {
  transform: scale(1.03);
}
.visual-badge-floating {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 14px 18px;
  background: rgba(10, 11, 20, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.floating-status {
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 12px #06b6d4;
  animation: pulseLed 2s infinite;
}
@keyframes pulseLed {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; box-shadow: 0 0 16px #06b6d4; }
}
.floating-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #e2e8f0;
}
.floating-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #a855f7;
}

/* ==========================================================================
   Section: Services & Solutions (Решения)
   ========================================================================== */
.section-services {
  padding: 100px 0;
  position: relative;
}
.services-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}
.tab-btn:hover {
  background: rgba(168, 85, 247, 0.1);
  color: #fff;
  border-color: rgba(168, 85, 247, 0.4);
}
.tab-btn.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(99, 102, 241, 0.25) 100%);
  border-color: var(--accent-purple);
  color: #fff;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
}
.tab-btn svg {
  width: 18px;
  height: 18px;
}

/* Services Grid & Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  backdrop-filter: blur(16px);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(168, 85, 247, 0.2);
  background: var(--bg-card-hover);
}
.service-card:hover::before {
  opacity: 1;
}
.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  margin-bottom: 24px;
  transition: var(--transition-fast);
}
.service-card:hover .service-icon-box {
  background: var(--accent-purple);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-purple);
  transform: scale(1.08);
}
.service-card-title {
  font-family: var(--font-tech);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 12px;
}
.service-card-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}
.service-features-list {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-features-list li {
  font-size: 0.88rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.service-features-list li svg {
  width: 16px;
  height: 16px;
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 3px;
}
.service-card-footer {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.service-stack-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  color: var(--text-muted);
}
.service-btn-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-purple);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: gap 0.2s, color 0.2s;
  cursor: pointer;
}
.service-btn-link:hover {
  color: #d8b4fe;
  gap: 10px;
}

/* ==========================================================================
   Section: ROI & Savings Calculator (Калькулятор экономии)
   ========================================================================== */
.section-calculator {
  padding: 100px 0;
  position: relative;
}
.calc-wrapper {
  background: linear-gradient(145deg, rgba(17, 18, 35, 0.85) 0%, rgba(10, 11, 22, 0.95) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 50px rgba(168, 85, 247, 0.15);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.calc-header {
  margin-bottom: 36px;
}
.calc-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.calc-headline {
  font-family: var(--font-tech);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.2;
}
.calc-headline span.highlight {
  color: #f43f5e;
  text-decoration: underline;
  text-decoration-color: rgba(244, 63, 94, 0.4);
}
.currency-selector {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-top: 14px;
}
.curr-btn {
  padding: 6px 14px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition-fast);
}
.curr-btn.active {
  background: var(--accent-purple);
  color: #fff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

/* Sliders */
.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.calc-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calc-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
}
.calc-value-display {
  font-family: var(--font-tech);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-cyan);
}
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  transition: background 0.2s;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-purple);
  box-shadow: 0 0 15px var(--accent-purple);
  cursor: pointer;
  border: 2px solid #fff;
  transition: transform 0.1s, box-shadow 0.2s;
}
.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 20px #c084fc;
}

/* Results Box */
.calc-results-box {
  background: rgba(10, 11, 22, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.result-stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.result-stat-item:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}
.result-stat-label {
  font-size: 0.84rem;
  color: var(--text-muted);
}
.result-stat-val {
  font-family: var(--font-tech);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-bright);
}
.result-stat-val.loss {
  color: #fb7185;
}
.result-stat-val.gain {
  color: #34d399;
  font-size: 2.1rem;
  text-shadow: 0 0 20px rgba(52, 211, 153, 0.3);
}
.result-stat-val.time {
  color: var(--accent-cyan-bright);
}
.calc-action-btn {
  width: 100%;
  margin-top: 10px;
}

/* ==========================================================================
   Section: BI Analytics & Executive Cockpit ("Руководителю нужны ответы")
   ========================================================================== */
.section-bi {
  padding: 100px 0;
  position: relative;
}
.bi-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: 46px;
}
.bi-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bi-quote {
  font-family: var(--font-tech);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-bright);
}
.bi-quote span {
  color: var(--accent-purple);
}
.bi-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.bi-benefits {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 8px 0 16px 0;
}
.bi-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: all 0.25s ease;
  cursor: pointer;
}
.bi-benefit-item:hover,
.bi-benefit-item.active {
  background: rgba(168, 85, 247, 0.07);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.12);
  transform: translateX(4px);
}
.bi-benefit-content {
  flex-grow: 1;
}
.bi-benefit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.bi-stat-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan-bright);
  border: 1px solid rgba(6, 182, 212, 0.3);
  white-space: nowrap;
}
.bi-stat-badge.safe {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
}
.bi-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.bi-benefit-item:hover .bi-icon,
.bi-benefit-item.active .bi-icon {
  transform: scale(1.08);
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.45);
  color: var(--accent-purple);
}
.bi-text-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-bright);
}
.bi-text-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.bi-action-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.bi-sync-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Executive BI Cockpit Card & Controls
   ========================================================================== */
.bi-cockpit-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 2px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.4) 0%, rgba(6, 182, 212, 0.4) 50%, rgba(99, 102, 241, 0.2) 100%);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 50px rgba(168, 85, 247, 0.2);
}
.bi-dashboard-cockpit {
  background: #080914;
  border-radius: calc(var(--radius-xl) - 2px);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  position: relative;
}
.bi-cockpit-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
}
.cockpit-window-dots {
  display: flex;
  gap: 6px;
}
.cockpit-window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.cockpit-window-dots .dot-red { background: #ef4444; }
.cockpit-window-dots .dot-yellow { background: #f59e0b; }
.cockpit-window-dots .dot-green { background: #22c55e; }

.bi-role-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}
.bi-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-tech);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bi-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.bi-tab-btn.active {
  color: #fff;
  background: var(--grad-primary);
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.35);
}
.bi-tab-btn .tab-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.bi-live-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #34d399;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 4px 8px;
  border-radius: var(--radius-full);
}
.live-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulseBeacon 1.8s infinite;
}
@keyframes pulseBeacon {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.bi-cockpit-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bi-role-title {
  font-family: var(--font-tech);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.bi-role-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.bi-date-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* 4 KPI Grid */
.bi-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.bi-kpi-chip {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.bi-kpi-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(255, 255, 255, 0.04);
}
.bi-kpi-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bi-kpi-val {
  font-family: var(--font-tech);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.bi-kpi-change {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
}
.bi-kpi-change.pos {
  color: #34d399;
}
.bi-kpi-change.neg {
  color: #f87171;
}

/* Visual SVG Chart Card */
.bi-chart-card {
  background: rgba(14, 15, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bi-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 8px;
}
.bi-chart-title {
  font-weight: 600;
  color: #e2e8f0;
  font-family: var(--font-tech);
}
.bi-chart-legend {
  display: flex;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.legend-dot.actual {
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
}
.legend-dot.plan {
  background: #06b6d4;
  box-shadow: 0 0 8px #06b6d4;
}
.bi-svg-chart-wrap {
  width: 100%;
  height: 155px;
  position: relative;
}
.bi-svg-chart-wrap svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Telegram Director Alert Bar */
.bi-telegram-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(30, 58, 138, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.8rem;
  line-height: 1.4;
}
.bi-tg-icon {
  color: #60a5fa;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.bi-tg-text {
  color: #cbd5e1;
  flex-grow: 1;
}
.bi-tg-text strong {
  color: #93c5fd;
  margin-right: 4px;
}
.bi-tg-time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .bi-wrapper {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .bi-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .bi-kpi-grid {
    grid-template-columns: 1fr;
  }
  .bi-role-tabs {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Section: Сайт или Веб-система? (Comparison)
   ========================================================================== */
.section-comparison {
  padding: 100px 0;
  background: rgba(11, 12, 24, 0.4);
}
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.comp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
}
.comp-card.recommended {
  border-color: var(--border-glow);
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.25);
  background: linear-gradient(180deg, rgba(25, 22, 50, 0.8) 0%, rgba(12, 13, 26, 0.9) 100%);
}
.comp-badge {
  position: absolute;
  top: 24px;
  right: 28px;
  padding: 4px 12px;
  background: var(--accent-purple);
  color: #fff;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.comp-header {
  margin-bottom: 24px;
}
.comp-type {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 6px;
}
.comp-title {
  font-family: var(--font-tech);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-bright);
}
.comp-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 10px;
}
.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex-grow: 1;
}
.comp-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: #cbd5e1;
}
.comp-list li svg.check {
  color: #10b981;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.comp-list li svg.cross {
  color: #ef4444;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.comp-verdict {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.comp-verdict strong {
  color: var(--text-bright);
}

/* ==========================================================================
   Section: ELSA — Digital Ambassador & AI Consultation Widget
   ========================================================================== */
.section-elsa {
  padding: 100px 0;
  position: relative;
}
.elsa-container {
  background: linear-gradient(135deg, rgba(20, 21, 42, 0.85) 0%, rgba(10, 11, 24, 0.95) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(168, 85, 247, 0.25);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}
.elsa-profile-col {
  padding: 48px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 60%);
}
.elsa-avatar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.elsa-avatar-ring {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, #a855f7, #06b6d4, #d946ef);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.5);
  position: relative;
  margin-bottom: 24px;
}
.elsa-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.elsa-online-badge {
  position: absolute;
  bottom: 8px;
  right: 18px;
  padding: 5px 12px;
  background: rgba(10, 11, 24, 0.9);
  border: 1px solid #22c55e;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #86efac;
}
.elsa-online-badge span.ping {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}
.elsa-name {
  font-family: var(--font-tech);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: 0.04em;
}
.elsa-role {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 4px;
  margin-bottom: 18px;
}
.elsa-quote-box {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--accent-purple);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
}

/* Chat Interactive Box */
.elsa-chat-col {
  display: flex;
  flex-direction: column;
  height: 580px;
  background: rgba(8, 9, 18, 0.8);
}
.chat-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-bright);
}
.chat-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #22c55e;
}
.chat-messages-area {
  flex-grow: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-bubble {
  max-width: 85%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  line-height: 1.55;
  animation: fadeInBubble 0.3s ease;
}
@keyframes fadeInBubble {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-bubble.bot {
  align-self: flex-start;
  background: rgba(26, 28, 54, 0.9);
  border: 1px solid var(--border-subtle);
  color: #e2e8f0;
  border-bottom-left-radius: 4px;
}
.chat-bubble.user {
  align-self: flex-end;
  background: var(--grad-primary);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}
.quick-questions-tray {
  padding: 10px 20px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.quick-questions-tray::-webkit-scrollbar {
  display: none;
}
.quick-q-btn {
  white-space: nowrap;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: var(--transition-fast);
}
.quick-q-btn:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--accent-purple);
  color: #fff;
}
.chat-input-row {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 12px;
}
.chat-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-family: var(--font-main);
  font-size: 0.92rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.chat-input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}
.chat-send-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--grad-primary);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
.chat-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

/* ==========================================================================
   Section: Process Timeline ("Как мы работаем")
   ========================================================================== */
.section-process {
  padding: 100px 0;
  position: relative;
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}
.timeline-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
}
.timeline-item:hover {
  transform: translateY(-8px);
  border-color: var(--border-highlight);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(168, 85, 247, 0.2);
}
.timeline-step-num {
  font-family: var(--font-tech);
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(168, 85, 247, 0.35);
  margin-bottom: 12px;
  line-height: 1;
}
.timeline-item:hover .timeline-step-num {
  color: var(--accent-purple);
  text-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
}
.timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 10px;
}
.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   Section: B2B Partnership & Referral ("У вас клиенты — у нас команда")
   ========================================================================== */
.section-partnership {
  padding: 100px 0;
  position: relative;
}
.partnership-card {
  background: linear-gradient(135deg, rgba(24, 25, 52, 0.8) 0%, rgba(12, 13, 28, 0.95) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(168, 85, 247, 0.15);
}
.part-title {
  font-family: var(--font-tech);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-bright);
  margin-bottom: 16px;
}
.part-title span {
  color: var(--accent-purple);
}
.part-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px;
}
.part-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.part-feature-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.part-feature-box h4 {
  font-size: 0.96rem;
  color: var(--text-bright);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.part-feature-box p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Section: Contact & Project Brief Form
   ========================================================================== */
.section-contact {
  padding: 100px 0 120px 0;
  position: relative;
}
.contact-wrapper {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 50px;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 45px rgba(168, 85, 247, 0.2);
}
.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contact-info h3 {
  font-family: var(--font-tech);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.2;
  margin-bottom: 16px;
}
.contact-info p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}
.contact-channel-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-channel-item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: #cbd5e1;
  transition: var(--transition-fast);
}
.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  flex-shrink: 0;
}
.contact-channel-item:hover .channel-icon {
  background: var(--accent-purple);
  color: #fff;
  box-shadow: 0 0 15px var(--accent-purple);
}
.contact-channel-item:hover {
  color: #fff;
}
.channel-text-wrap {
  display: flex;
  flex-direction: column;
}
.channel-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.channel-val {
  font-size: 0.98rem;
  font-weight: 600;
}

/* Form */
.brief-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
}
.form-input, .form-textarea {
  background: rgba(10, 11, 24, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 13px 18px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
}
.form-textarea {
  min-height: 100px;
  resize: vertical;
}
.form-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: var(--transition-fast);
}
.chip-btn.active {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: #fff;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #040409;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 70px 0 30px 0;
  position: relative;
  z-index: 1;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand-info p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 14px;
  max-width: 320px;
}
.footer-col-title {
  font-family: var(--font-tech);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 18px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}
.footer-links a:hover {
  color: var(--accent-purple);
  transform: translateX(3px);
}
.footer-bottom {
  padding-top: 26px;
  padding-bottom: 75px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-badge-uptime {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #94a3b8;
}
.uptime-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-window {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 50px rgba(168, 85, 247, 0.3);
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.3s var(--ease-spring);
}
.modal-overlay.active .modal-window {
  transform: scale(1);
}
.modal-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid #22c55e;
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.3);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-description, .hero-tags, .hero-cta {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
  .trust-grid {
    max-width: 600px;
    margin: 0 auto;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-wrapper {
    grid-template-columns: 1fr;
  }
  .bi-wrapper {
    grid-template-columns: 1fr;
  }
  .timeline-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .partnership-card {
    grid-template-columns: 1fr;
  }
  .elsa-container {
    grid-template-columns: 1fr;
  }
  .elsa-profile-col {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1240px) {
  .btn-header-outline {
    display: none;
  }
  .nav-menu {
    margin: 0 6px;
    gap: 1px;
  }
  .nav-link {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 1080px) {
  :root {
    --header-height: 64px;
  }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: #070810;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(168, 85, 247, 0.35);
    flex-direction: column;
    padding: 24px 20px 60px;
    gap: 10px;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    transform: translateY(-150%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    margin: 0;
    overflow-y: auto;
    z-index: 1000;
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.96rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
  }
  .mobile-toggle {
    display: flex;
  }
  .nav-actions .btn,
  .nav-actions .btn-header-primary,
  .nav-actions .btn-header-outline {
    display: none;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .timeline-grid {
    grid-template-columns: 1fr;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }
  .part-features {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .calc-wrapper {
    padding: 24px;
  }
}

/* ==========================================================================
   Spotlight Cursor Effect (Linear / Stripe inspired)
   ========================================================================== */
.spotlight-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  transition: border-color 0.3s ease, transform 0.3s var(--ease-spring);
}
.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(400px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(168, 85, 247, 0.22), transparent 75%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.spotlight-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-4px);
}
.spotlight-card:hover::before {
  opacity: 1;
}

/* ==========================================================================
   Section: Tech Stack & Integration Hub
   ========================================================================== */
.section-stack {
  padding: 100px 0;
  position: relative;
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}
.stack-card {
  background: rgba(18, 19, 36, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(12px);
}
.stack-card:hover, .stack-card.active {
  background: rgba(28, 30, 60, 0.85);
  border-color: var(--accent-purple);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.2);
}
.stack-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  flex-shrink: 0;
  transition: all 0.25s;
}
.stack-card:hover .stack-icon, .stack-card.active .stack-icon {
  background: var(--accent-purple);
  color: #fff;
  box-shadow: 0 0 15px var(--accent-purple);
}
.stack-info-meta {
  display: flex;
  flex-direction: column;
}
.stack-name {
  font-family: var(--font-tech);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-bright);
}
.stack-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Stack Detail Showcase Box */
.stack-showcase-box {
  background: linear-gradient(135deg, rgba(22, 23, 46, 0.85) 0%, rgba(12, 13, 28, 0.95) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 36px 42px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(168, 85, 247, 0.15);
}
.showcase-title {
  font-family: var(--font-tech);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 12px;
}
.showcase-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}
.showcase-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.spec-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.spec-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
}
.spec-val {
  font-family: var(--font-tech);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-top: 4px;
}

/* ==========================================================================
   Section: Enterprise Case Studies (Кейсы)
   ========================================================================== */
.section-cases {
  padding: 100px 0;
  position: relative;
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.case-card {
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
}
.case-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.case-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.case-roi-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
}
.case-title {
  font-family: var(--font-tech);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.3;
  margin-bottom: 12px;
}
.case-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}
.case-metrics-box {
  background: rgba(10, 11, 24, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}
.case-metric-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.case-metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.case-metric-val {
  font-family: var(--font-tech);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-cyan);
}
.case-metric-val.green {
  color: #34d399;
}

/* ==========================================================================
   Section: Client Reviews / Testimonials (Отзывы)
   ========================================================================== */
.section-reviews {
  padding: 100px 0;
  background: rgba(8, 9, 18, 0.4);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.review-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.review-stars {
  display: flex;
  gap: 4px;
  color: #f59e0b;
  margin-bottom: 18px;
}
.review-quote {
  font-size: 0.96rem;
  color: #cbd5e1;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 24px;
}
.review-author-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 18px;
}
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-tech);
  font-size: 1.1rem;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}
.review-author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-bright);
}
.review-author-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.review-company-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  margin-top: 2px;
}

/* ==========================================================================
   Section: FAQ Accordion
   ========================================================================== */
.section-faq {
  padding: 100px 0;
  position: relative;
}
.faq-accordion-wrap {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq-item.open {
  border-color: var(--border-highlight);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.15);
}
.faq-question-btn {
  width: 100%;
  padding: 22px 26px;
  background: transparent;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  color: var(--text-bright);
  font-family: var(--font-tech);
  font-size: 1.12rem;
  font-weight: 700;
}
.faq-icon-chevron {
  width: 22px;
  height: 22px;
  color: var(--accent-purple);
  transition: transform 0.3s var(--ease-spring);
  flex-shrink: 0;
}
.faq-item.open .faq-icon-chevron {
  transform: rotate(180deg);
}
.faq-answer-pane {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(10, 11, 24, 0.4);
}
.faq-answer-inner {
  padding: 0 26px 24px 26px;
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   Floating Quick-Connect Bar & ELSA AI Dock
   ========================================================================== */
.floating-connect-bar {
  position: fixed;
  bottom: 24px;
  right: 216px;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(12, 13, 28, 0.88);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-full);
  padding: 6px 8px 6px 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(168, 85, 247, 0.25);
  transition: transform 0.3s var(--ease-spring), opacity 0.3s;
}
.floating-connect-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.floating-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.floating-icon-btn.tg {
  background: #0088cc;
  box-shadow: 0 0 10px rgba(0, 136, 204, 0.4);
}
.floating-icon-btn.wa {
  background: #25d366;
  box-shadow: 0 0 10px rgba(37, 211, 102, 0.4);
}
.floating-icon-btn.top {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid var(--border-subtle);
  color: #c084fc;
  cursor: pointer;
}
.floating-icon-btn:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   Floating ELSA AI Interactive Widget (Slide-in Right Chat)
   ========================================================================== */
.elsa-widget-root {
  position: relative;
  z-index: 1000;
}

/* Floating Launcher Button */
.elsa-launcher-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1002;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px 6px 8px;
  background: linear-gradient(135deg, rgba(28, 29, 60, 0.95) 0%, rgba(13, 14, 30, 0.98) 100%);
  border: 1.5px solid rgba(168, 85, 247, 0.6);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 30px rgba(168, 85, 247, 0.5);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: #fff;
  outline: none;
}
.elsa-launcher-btn:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: #c084fc;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.85), 0 0 38px rgba(168, 85, 247, 0.7);
}
.elsa-launcher-btn.is-active {
  background: rgba(22, 23, 48, 0.98);
  border-color: rgba(168, 85, 247, 0.8);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8), 0 0 25px rgba(168, 85, 247, 0.4);
}
.elsa-launcher-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}
.elsa-launcher-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1.5px solid rgba(168, 85, 247, 0.7);
}
.elsa-launcher-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px dashed rgba(168, 85, 247, 0.5);
  animation: rotateLauncherRing 18s linear infinite;
  pointer-events: none;
}
@keyframes rotateLauncherRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.elsa-launcher-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0c0d1e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseLed 2s infinite;
}
@keyframes pulseLed {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.75; }
}
.elsa-launcher-label {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}
.launcher-title {
  font-family: var(--font-tech);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 5px;
}
.launcher-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #c084fc;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.elsa-launcher-close-icon {
  display: none;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  color: #c084fc;
}
.elsa-launcher-btn.is-active .elsa-launcher-close-icon {
  display: flex;
}
.elsa-launcher-btn.is-active .elsa-launcher-label {
  display: none;
}

/* Floating Teaser Prompt Bubble */
.elsa-teaser-bubble {
  position: fixed;
  bottom: 86px;
  right: 24px;
  max-width: 330px;
  background: rgba(18, 19, 42, 0.96);
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(168, 85, 247, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1001;
  transform: translateY(12px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.elsa-teaser-bubble.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.elsa-teaser-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.2s;
}
.elsa-teaser-close:hover {
  color: #fff;
}
.elsa-teaser-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.elsa-teaser-avatar {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
}
.elsa-teaser-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #a855f7;
}
.teaser-pulse {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 1.5px solid #111229;
  box-shadow: 0 0 8px #22c55e;
}
.elsa-teaser-content {
  flex-grow: 1;
  padding-right: 12px;
}
.elsa-teaser-name {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.teaser-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  padding: 1px 5px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
  border-radius: var(--radius-full);
}
.elsa-teaser-text {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.35;
}

/* ==========================================================================
   Slide-in Right Chat Window
   ========================================================================== */
.elsa-chat-window {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 440px;
  max-width: calc(100vw - 32px);
  height: 650px;
  max-height: calc(100vh - 110px);
  background: linear-gradient(180deg, rgba(19, 20, 44, 0.98) 0%, rgba(9, 10, 24, 0.99) 100%);
  border: 1.5px solid rgba(168, 85, 247, 0.55);
  border-radius: 24px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 50px rgba(168, 85, 247, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1001;
  transform: translateX(40px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.elsa-chat-window.is-open {
  transform: translateX(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* Chat Header */
.elsa-chat-head {
  padding: 14px 18px;
  background: rgba(28, 29, 62, 0.85);
  border-bottom: 1px solid rgba(168, 85, 247, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.elsa-head-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.elsa-head-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}
.elsa-head-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #a855f7;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}
.elsa-head-status-led {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #11122a;
  box-shadow: 0 0 8px #22c55e;
}
.elsa-head-text {
  display: flex;
  flex-direction: column;
}
.elsa-head-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.elsa-head-name {
  font-family: var(--font-tech);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}
.elsa-head-badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  padding: 2px 6px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}
.elsa-head-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #86efac;
}
.elsa-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.elsa-head-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.elsa-head-btn:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.5);
  color: #fff;
  transform: scale(1.06);
}
.elsa-head-btn.elsa-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

/* Status Strip */
.elsa-chat-status-strip {
  padding: 6px 16px;
  background: rgba(10, 11, 26, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 6px #06b6d4;
}
.status-strip-text {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-uptime {
  color: #a855f7;
  font-weight: 600;
}

/* Chat Body */
.elsa-chat-body {
  flex-grow: 1;
  padding: 18px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}
.elsa-chat-body::-webkit-scrollbar {
  width: 5px;
}
.elsa-chat-body::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 10px;
}

/* Welcome Card with Photo */
.elsa-welcome-card {
  background: linear-gradient(135deg, rgba(28, 29, 62, 0.8) 0%, rgba(16, 17, 36, 0.9) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  margin-bottom: 6px;
}
.elsa-welcome-photo-wrap {
  position: relative;
  width: 72px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}
.elsa-welcome-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.elsa-welcome-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2px 0;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 700;
  text-align: center;
  background: rgba(168, 85, 247, 0.85);
  color: #fff;
  letter-spacing: 0.06em;
}
.elsa-welcome-info {
  flex-grow: 1;
}
.elsa-welcome-info h4 {
  font-family: var(--font-tech);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.elsa-welcome-info p {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin: 0;
}

/* Chat Messages */
.chat-msg {
  display: flex;
  gap: 10px;
  max-width: 90%;
  animation: fadeInMsg 0.3s ease;
}
@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot {
  align-self: flex-start;
}
.chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}
.msg-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #a855f7;
}
.msg-avatar.mini {
  width: 26px;
  height: 26px;
}
.msg-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #e2e8f0;
}
.chat-msg.bot .msg-bubble {
  background: rgba(26, 28, 56, 0.9);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-top-left-radius: 4px;
}
.chat-msg.user .msg-bubble {
  background: linear-gradient(135deg, #9333ea 0%, #6366f1 100%);
  color: #fff;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 18px rgba(147, 51, 234, 0.35);
}
.chat-msg.bot .msg-bubble strong {
  color: #c084fc;
}

/* Quick Chips */
.elsa-quick-chips {
  padding: 8px 14px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(14, 15, 32, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}
.elsa-quick-chips::-webkit-scrollbar {
  display: none;
}
.elsa-chip-btn {
  white-space: nowrap;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #d8b4fe;
  cursor: pointer;
  transition: all 0.2s;
}
.elsa-chip-btn:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: #c084fc;
  color: #fff;
  transform: translateY(-1px);
}

/* Typing Indicator */
.elsa-typing-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 8px 16px;
}
.typing-bubble {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(26, 28, 56, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 14px;
  padding: 8px 14px;
}
.t-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c084fc;
  animation: typingBounce 1.2s infinite;
}
.t-dot:nth-child(2) { animation-delay: 0.2s; }
.t-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}
.typing-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-left: 4px;
}

/* Input Bar */
.elsa-chat-input-bar {
  padding: 10px 14px;
  background: rgba(20, 21, 46, 0.95);
  border-top: 1px solid rgba(168, 85, 247, 0.25);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.elsa-input-field {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: var(--font-main);
  font-size: 0.88rem;
  color: #fff;
  outline: none;
  transition: all 0.2s;
}
.elsa-input-field:focus {
  border-color: #a855f7;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
}
.elsa-send-action-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.elsa-send-action-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

/* Bottom Info */
.elsa-chat-bottom-info {
  padding: 5px 14px;
  background: rgba(10, 11, 24, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Mobile backdrop */
.elsa-chat-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.elsa-chat-backdrop.is-open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1024px) {
  .floating-connect-bar {
    right: 195px;
  }
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stack-showcase-box {
    grid-template-columns: 1fr;
  }
  .cases-grid {
    grid-template-columns: 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .floating-connect-bar {
    right: auto;
    left: 16px;
    bottom: 16px;
    padding: 6px;
  }
  .floating-connect-label {
    display: none;
  }
  .elsa-launcher-btn {
    bottom: 16px;
    right: 16px;
    padding: 6px;
  }
  .elsa-launcher-label {
    display: none;
  }
  .elsa-teaser-bubble {
    right: 16px;
    bottom: 80px;
    max-width: calc(100vw - 32px);
  }
  .elsa-chat-window {
    right: 16px;
    bottom: 78px;
    width: calc(100vw - 32px);
    height: min(600px, calc(100vh - 100px));
  }
}

@media (max-width: 580px) {
  .elsa-chat-window {
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    border: none;
    transform: translateX(100%);
  }
  .elsa-chat-window.is-open {
    transform: translateX(0);
  }
}

@media (max-width: 1024px) {
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stack-showcase-box {
    grid-template-columns: 1fr;
  }
  .cases-grid {
    grid-template-columns: 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .floating-connect-label {
    display: none;
  }
}

