/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Colors */
  --bg-primary: #F7F7F8;
  --bg-secondary: #ffffff;
  
  --text-main: #000000;
  --text-muted: #6B6B70;
  --text-light: #85858A;
  
  --color-primary: #000000;
  --color-primary-rgb: 0, 0, 0;
  --color-primary-hover: #222222;
  
  --color-secondary: #000000;
  --color-secondary-rgb: 0, 0, 0;
  --color-secondary-hover: #222222;

  --color-accent: #22C55E;
  --color-accent-rgb: 34, 197, 94;
  
  --gradient-primary: linear-gradient(135deg, #000000 0%, #333333 100%);
  --gradient-secondary: linear-gradient(135deg, #111111 0%, #444444 100%);
  --gradient-accent: linear-gradient(135deg, #22C55E 0%, #10B981 100%);
  --gradient-glow: linear-gradient(135deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.01) 100%);
  --gradient-text: linear-gradient(135deg, #000000 30%, #333333 100%);
  
  /* Glassmorphism overrides to Yandex */
  --glass-bg: #F2F3F5;
  --glass-bg-hover: #EBECEF;
  --glass-border: transparent;
  --glass-border-hover: transparent;
  --glass-shadow: none;
  --glass-shadow-hover: none;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Border Radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  outline: none;
  border: none;
}

ul {
  list-style: none;
}

/* Background Glowing Elements */
.bg-glow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bg-glow {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(120px);
  opacity: 0.45;
  mix-blend-mode: multiply;
  animation: float-glow 20s infinite alternate ease-in-out;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(79,70,229,0.3) 0%, rgba(59,130,246,0) 70%);
  top: -100px;
  right: -50px;
}

.bg-glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14,165,233,0.25) 0%, rgba(6,182,212,0) 70%);
  top: 600px;
  left: -200px;
  animation-delay: -5s;
}

.bg-glow-3 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(236,72,153,0.18) 0%, rgba(244,63,94,0) 70%);
  top: 1800px;
  right: -100px;
  animation-delay: -10s;
}

.bg-glow-4 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(79,70,229,0.15) 0%, rgba(16,185,129,0) 70%);
  bottom: 500px;
  left: -150px;
  animation-delay: -15s;
}

.bg-glow-5 {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(120px);
  opacity: 0.45;
  mix-blend-mode: multiply;
  animation: float-glow 20s infinite alternate ease-in-out;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(99, 102, 241, 0) 70%);
  top: 3900px;
  right: -100px;
  animation-delay: -3s;
}

.bg-glow-6 {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(120px);
  opacity: 0.45;
  mix-blend-mode: multiply;
  animation: float-glow 20s infinite alternate ease-in-out;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, rgba(14, 165, 233, 0) 70%);
  top: 5100px;
  left: -150px;
  animation-delay: -7s;
}

.bg-glow-7 {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(120px);
  opacity: 0.45;
  mix-blend-mode: multiply;
  animation: float-glow 20s infinite alternate ease-in-out;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.18) 0%, rgba(79, 70, 229, 0) 70%);
  top: 6300px;
  right: -200px;
  animation-delay: -11s;
}

/* Custom Grid Background Overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center;
  pointer-events: none;
  z-index: -2;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 70px auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: #EBECEF;
  border: none;
  color: #000000;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.5vw, 56px);
  color: #000000;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.section-subtitle {
  font-family: var(--font-primary);
  font-size: clamp(15px, 1.8vw, 18px);
  color: #6B6B70;
  line-height: 1.5;
}

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

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-normal);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header.scrolled {
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: none;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-normal);
  border-radius: var(--radius-full);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-burger {
  display: none;
  background: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.btn-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  position: absolute;
  left: 0;
  transition: var(--transition-fast);
}

.btn-burger span:nth-child(1) { top: 4px; }
.btn-burger span:nth-child(2) { top: 11px; }
.btn-burger span:nth-child(3) { top: 18px; }

.btn-burger.active span:nth-child(1) { transform: rotate(45deg); top: 11px; }
.btn-burger.active span:nth-child(2) { opacity: 0; }
.btn-burger.active span:nth-child(3) { transform: rotate(-45deg); top: 11px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: #000000;
  color: #fff;
  box-shadow: none;
}

.btn-primary:hover {
  background: #222222;
  transform: translateY(-2px);
  box-shadow: none;
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #000000;
  box-shadow: none;
}

.btn-secondary:hover {
  background: #F2F3F5;
  border-color: rgba(0, 0, 0, 0.15);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: none;
}

.btn-icon {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* Hero Section */
.hero {
  --color-primary: #4f46e5;
  --color-primary-rgb: 79, 70, 229;
  --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  --bg-primary: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #475569;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-bg-hover: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-border-hover: rgba(79, 70, 229, 0.2);
  --glass-shadow: 0 8px 30px 0 rgba(31, 38, 135, 0.04);
  --glass-shadow-hover: 0 12px 40px 0 rgba(79, 70, 229, 0.08);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
}

.hero .btn {
  border-radius: var(--radius-md);
}

.hero .btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.25);
}

.hero .btn-primary:hover {
  background: var(--gradient-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(79, 70, 229, 0.35);
}

.hero .btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  box-shadow: var(--glass-shadow);
}

.hero .btn-secondary:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow-hover);
}

.hero .badge {
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.15);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 650px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
  color: var(--text-main);
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 30px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 5px;
  white-space: nowrap;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Premium Visual Mockup (Right Hero) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-3d-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-3d-img {
  width: 110%;
  max-width: 580px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.15));
  animation: float 6s infinite ease-in-out;
  transform-origin: center;
  z-index: 1;
}

.hero-canvas {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 480px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
}

.dashboard-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  padding: 16px;
  pointer-events: none;
  transition: transform var(--transition-slow);
}

.card-main {
  width: 80%;
  height: 60%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.card-glass-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.chart-placeholder {
  flex-grow: 1;
  margin-top: 15px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 100px;
}

.chart-bar {
  width: 12%;
  background: var(--gradient-primary);
  border-radius: 4px 4px 0 0;
  animation: height-anim 2s infinite alternate ease-in-out;
}

.chart-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.chart-bar:nth-child(2) { height: 75%; animation-delay: 0.3s; }
.chart-bar:nth-child(3) { height: 50%; animation-delay: 0.5s; }
.chart-bar:nth-child(4) { height: 90%; animation-delay: 0.2s; }
.chart-bar:nth-child(5) { height: 60%; animation-delay: 0.7s; }
.chart-bar:nth-child(6) { height: 80%; animation-delay: 0.4s; }

.card-floating-1 {
  top: -20px;
  left: -20px;
  width: 160px;
  animation: float 6s infinite ease-in-out;
}

.card-floating-2 {
  bottom: 20px;
  right: -30px;
  width: 180px;
  animation: float 6s infinite ease-in-out;
  animation-delay: -3s;
}

.card-floating-3 {
  top: 40%;
  right: -50px;
  width: 140px;
  animation: float 8s infinite ease-in-out;
  animation-delay: -1.5s;
}

.card-ai-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
}

.card-ai-badge svg {
  width: 16px;
  height: 16px;
  animation: rotate 4s infinite linear;
}

/* Glassmorphism Cards general style */
.glass-card {
  background: #F2F3F5;
  border: none;
  border-radius: 24px;
  padding: 32px;
  box-shadow: none;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  display: none !important;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
  border-color: transparent;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 !important;
  overflow: hidden;
  justify-content: space-between;
  background: #F2F3F5;
  border-radius: 24px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.service-card-content {
  padding: 40px 40px 24px 40px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-image {
  width: 100%;
  height: 200px;
  margin-top: auto;
  padding: 0;
  overflow: hidden;
  margin-bottom: 0;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-image img {
  transform: scale(1.06);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 12px;
}

.service-desc {
  font-family: var(--font-primary);
  color: #6B6B70;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  color: #000000;
  transition: color 0.2s;
  margin-top: auto;
}

.service-link:hover {
  color: var(--color-primary);
  opacity: 1;
}

.service-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  transition: transform var(--transition-fast);
}

.service-link:hover svg {
  transform: translateX(4px);
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* SaaS Products Section */
.products-wrapper {
  margin-top: 40px;
}

.products-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.product-tab-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-normal);
}

.product-tab-btn.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: none;
}

.product-tab-btn:not(.active):hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  color: var(--color-primary);
}

.product-content {
  display: none;
  animation: fadeIn 0.6s ease-in-out forwards;
}

.product-content.active {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.product-info {
  max-width: 600px;
}

.product-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.product-tag.amicall {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  color: var(--color-secondary);
}

.product-tag.aismm {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.2);
  color: #f43f5e;
}

.product-title {
  font-size: clamp(1.8rem, 3.5vw, 2.25rem);
  margin-bottom: 20px;
  color: var(--text-main);
}

.product-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.product-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.feat-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feat-icon {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.feat-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feat-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
}

/* SaaS interactive showcase mockups */
.product-showcase {
  background: linear-gradient(160deg, #f5f0ff 0%, #eef4ff 40%, #f0fdf4 100%);
  border: 2px solid rgba(124, 58, 237, 0.08);
  border-radius: 28px;
  padding: 30px;
  height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 16px 40px rgba(124, 58, 237, 0.06),
    inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

/* AmiCall Showcase Specifics */
.phone-mockup {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #eef4ff 0%, #dfe8f7 100%);
  border-radius: 28px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  color: #1e293b;
  border: 5px solid #c8d6e8;
  box-shadow: 
    0 20px 50px rgba(100, 120, 160, 0.18),
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(0, 0, 0, 0.04);
}

.phone-screen {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #475569;
  font-weight: 600;
}

.phone-call-status {
  text-align: center;
  margin-top: 30px;
}

.caller-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gradient-secondary);
  margin: 0 auto 15px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  animation: pulse-avatar 2s infinite;
}

.caller-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.caller-number {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 4px;
}

.phone-transcription {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #e2e8f0;
  text-align: center;
  max-width: 90%;
  margin: 0 auto;
  border-left: 3px solid var(--color-secondary);
  animation: text-typing 8s infinite steps(40);
  white-space: nowrap;
  overflow: hidden;
}

.phone-actions {
  display: flex;
  justify-content: space-around;
  margin-bottom: 10px;
}

.phone-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.phone-btn.decline { background: #ef4444; }
.phone-btn.accept { background: #22c55e; }
.phone-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* AI SMM Showcase Specifics */
.smm-mockup {
  width: 100%;
  height: 100%;
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.smm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.smm-channel-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(244, 63, 94, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: #f43f5e;
}



/* Cases Section - Split Layout with Horizontal Carousel */
.cases-split-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 992px) {
  .cases-split-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.cases-left-panel {
  position: sticky;
  top: 100px;
}

@media (max-width: 992px) {
  .cases-left-panel {
    position: static;
  }
}

.cases-panel-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #000000;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cases-panel-desc {
  font-family: var(--font-primary);
  font-size: 15px;
  color: #6B6B70;
  line-height: 1.5;
  margin-bottom: 24px;
}

.cases-panel-btn {
  display: inline-block;
  margin-bottom: 24px;
}

/* Right carousel styling */
.cases-right-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.cases-carousel-wrapper {
  display: flex;
  gap: 20px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 4px 4px 16px 4px;
}

.cases-carousel-wrapper.dragging {
  cursor: grabbing;
  transition: none;
}

.case-card-carousel-item {
  position: relative;
  scroll-snap-align: start;
  flex: 0 0 300px; /* Fixed width so cards peek out on the right */
  background: #F2F3F5;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.6;
}

@media (max-width: 480px) {
  .case-card-carousel-item {
    flex: 0 0 250px;
  }
}

.case-card-carousel-item.is-active {
  opacity: 1;
  z-index: 2;
}

.case-card-carousel-item.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #4f46e5;
  border-radius: 24px;
  pointer-events: none;
  z-index: 3;
}

.case-card-carousel-item.is-active:hover {
  transform: translateY(-4px);
}

.case-card-carousel-item:not(.is-active):hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.case-carousel-image {
  width: 100%;
  aspect-ratio: 3 / 4; /* Portrait ratio (3:4) */
  position: relative;
  overflow: hidden;
  background: #EBECEF;
}

.case-carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform 0.5s ease;
}

.case-card-carousel-item:hover .case-carousel-image img {
  transform: scale(1.05);
}

.case-carousel-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #ffffff;
  color: #000000;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.case-carousel-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.case-carousel-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #000000;
  margin: 0;
  line-height: 1.3;
}

.case-carousel-desc {
  font-family: var(--font-primary);
  font-size: 13.5px;
  color: #6B6B70;
  line-height: 1.45;
  margin: 0;
}

/* Arrow controls (Yandex-style absolute overlay) */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #212121;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s;
  outline: none;
  opacity: 1;
}

.carousel-arrow.prev {
  left: 16px;
}

.carousel-arrow.next {
  right: 16px;
}

.carousel-arrow:hover {
  background: #f5f5f7;
  color: #0055ff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

/* arrows always visible for infinite carousel */

/* Hide on mobile devices where swipe is native */
@media (max-width: 768px) {
  .carousel-arrow {
    display: none !important;
  }
}

/* Why Us Section */
.why-us-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 45px;
}

.why-us-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(79, 70, 229, 0.08);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
}

.why-us-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
  background: rgba(255, 255, 255, 0.85);
}

.why-us-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-us-card-icon.icon-accent {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--color-accent);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.why-us-card-icon.icon-secondary {
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: var(--color-secondary);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.15);
}

.why-us-card-icon.icon-rose {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #f43f5e;
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.15);
}

.why-us-card-icon.icon-primary {
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.35);
  color: var(--color-primary);
  box-shadow: 0 0 15px rgba(79, 70, 229, 0.15);
}

.why-us-card:hover .why-us-card-icon {
  transform: scale(1.1);
}

.why-us-card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-us-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
  line-height: 1.35;
}

.why-us-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 1024px) {
  .why-us-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .why-us-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .why-us-card {
    padding: 24px;
  }
}

/* Process Section */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}

.process-timeline::before {
  display: none !important;
}

.process-step {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(79, 70, 229, 0.08);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
  overflow: hidden;
  z-index: 1;
  min-height: 220px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, background-color 0.25s;
  border-left: 4px solid transparent;
}

.process-step:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 70, 229, 0.3);
  border-left-color: var(--color-primary, #4f46e5);
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.06);
  background: rgba(255, 255, 255, 0.85);
}

.step-num {
  position: absolute;
  right: 16px;
  bottom: -24px;
  font-size: 7.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(79, 70, 229, 0.08);
  font-family: var(--font-primary);
  pointer-events: none;
  z-index: 0;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  transition: color 0.25s ease;
}

.process-step:hover .step-num {
  color: rgba(79, 70, 229, 0.15);
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
  position: relative;
  z-index: 1;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

/* Contact Form Section */
.contact-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.contact-info {
  max-width: 450px;
}

.contact-3d-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 15px 0 25px 0;
  width: 100%;
}

.contact-3d-img {
  max-width: 200px;
  height: auto;
  animation: float-contact 6s infinite ease-in-out;
}

@keyframes float-contact {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1.5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.contact-info-title {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-info-desc {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.contact-detail-text {
  display: flex;
  flex-direction: column;
}

.contact-detail-label {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
}

.contact-detail-val {
  font-weight: 600;
  color: var(--text-main);
}

.contact-detail-val a {
  transition: color var(--transition-fast);
}

.contact-detail-val a:hover {
  color: var(--color-primary);
}

/* Form Styles */
.contact-form-wrapper {
  position: relative;
  z-index: 5;
}

.contact-form-wrapper .glass-card {
  position: relative;
  overflow: hidden;
}

.contact-form-bg-img {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 95%;
  width: auto;
  opacity: 0.12;
  z-index: 1;
  pointer-events: none;
}

#amisoft-contact-form {
  position: relative;
  z-index: 2;
}

.success-card-premium {
  position: relative;
  z-index: 2;
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 16px 24px;
  min-height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #000000;
  font-size: 0.98rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-sizing: border-box;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  background: rgba(255, 255, 255, 0.85);
  border-color: #8B5CF6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), 0 8px 24px rgba(139, 92, 246, 0.1);
  outline: none;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 10px;
}

.form-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(79, 70, 229, 0.2);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 2px;
  flex-shrink: 0;
  outline: none;
}

.form-checkbox:hover {
  border-color: rgba(79, 70, 229, 0.5);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.05);
}

.form-checkbox:checked {
  background: #4f46e5;
  border-color: #4f46e5;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.form-checkbox:checked::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid #ffffff;
  border-left: 0;
  border-top: 0;
  transform: rotate(45deg) translate(-0.5px, -1px);
  position: absolute;
}

.form-checkbox-label {
  font-size: 0.8rem;
  color: #6B6B70;
  line-height: 1.4;
}

.form-checkbox-label a {
  color: #4f46e5;
  font-weight: 600;
}

/* Form Success & Error states styling */
.form-message {
  display: none;
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-message.success {
  align-items: center;
  gap: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #065f46;
}

.form-message.error {
  align-items: center;
  gap: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #991b1b;
}

.form-message.is-visible {
  display: flex;
}

/* Footer styling */
.footer {
  background: #fff;
  border-top: 1px solid var(--bg-secondary);
  padding: 80px 0 40px 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--gradient-primary);
  color: #fff;
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--bg-secondary);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

@keyframes float-glow {
  0% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(40px, -60px) scale(1.1); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes height-anim {
  0% { transform: scaleY(0.7); }
  100% { transform: scaleY(1.1); }
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-avatar {
  0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(14, 165, 233, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

/* Intersection Observer Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Responsive Media Queries */
@media (max-width: 1024px) {
  :root {
    --header-height: 70px;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    width: 100%;
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .product-content.active {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .product-showcase {
    order: -1;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    height: 340px;
  }
  

  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .contact-info {
    max-width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .contact-details {
    align-items: flex-start;
    width: 100%;
  }
  
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .process-step {
    padding: 24px;
    min-height: auto;
  }
  
  .step-num {
    font-size: 5rem;
    bottom: -10px;
    right: 10px;
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 999;
  }
  
  .nav.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .btn-burger {
    display: block;
  }
  
  .header-actions .btn {
    display: none; /* Hide primary header button on small screen if menu is complex */
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 600px) {
  .hero-visual {
    order: 1;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  .hero-canvas {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }
  
  .hero-title {
    font-size: 2rem;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  
  .card-floating-1 {
    width: 100px;
    top: -10px;
    left: -10px;
  }
  
  .card-floating-2 {
    width: 110px;
    bottom: 10px;
    right: -10px;
  }
  
  .card-floating-3 {
    width: 90px;
    right: -15px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  
  .product-features {
    grid-template-columns: 1fr;
  }
  

}

/* ==========================================
   NEW PREMIUM WIDGETS & ANIMATIONS
   ========================================== */

/* --- Technology Marquee CSS --- */
.tech-marquee-section {
  padding: 40px 0;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  width: 100%;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 25s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 40px;
  padding-right: 40px;
}

.tech-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition-fast);
  cursor: default;
}

.tech-item:hover {
  transform: translateY(-2px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
}

.tech-icon {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}



/* --- FAQ Section CSS --- */
.faq-wrapper {
  max-width: 960px;
  margin: 40px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.faq-item.active {
  border-color: #000000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  background: #ffffff;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: #000000;
  transition: var(--transition-fast);
}

.faq-question:hover {
  color: #000000;
}

.faq-icon-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: #85858A;
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
  color: #000000;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  min-height: 0;
  padding: 0 32px;
  font-size: 0.98rem;
  color: #6B6B70;
  line-height: 1.6;
  opacity: 0;
  padding-bottom: 0;
  transition: padding-bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-answer-inner {
  padding-bottom: 24px;
  opacity: 1;
}

/* --- Detailed SaaS Demo blocks --- */
.amicall-showcase, .aismm-showcase {
  height: auto;
  min-height: 480px;
}

/* Call Control Screen style */
.phone-mockup {
  border: 5px solid #c8d6e8;
}

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

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot-anim 1.5s infinite;
}

.call-timer {
  font-family: monospace;
  font-size: 0.8rem;
  color: #64748b;
}

@keyframes pulse-dot-anim {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.phone-chat-feed {
  flex-grow: 1;
  height: 240px;
  overflow-y: auto;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 15px 0;
  scroll-behavior: smooth;
}

/* Custom scrollbar for chat feed */
.phone-chat-feed::-webkit-scrollbar {
  width: 4px;
}
.phone-chat-feed::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.02);
}
.phone-chat-feed::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.15);
  border-radius: 2px;
}

.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.4;
  position: relative;
  animation: bubble-appear 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes bubble-appear {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-bubble.client {
  background: #ffffff;
  color: #334155;
  align-self: flex-start;
  border-bottom-left-radius: 3px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.chat-bubble.ai {
  background: var(--gradient-primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.2);
}

.bubble-meta {
  display: block;
  font-size: 0.65rem;
  color: #94a3b8;
  margin-top: 4px;
  text-align: right;
}

.chat-bubble.client .bubble-meta {
  text-align: left;
}

.phone-audio-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 30px;
  margin-bottom: 15px;
}

.wave-bar {
  width: 3px;
  height: 4px;
  background: rgba(124, 58, 237, 0.3);
  border-radius: 1.5px;
}

.phone-mockup.active-ai .wave-bar {
  background: #7C3AED;
  animation: soundwave-pulse 1.2s infinite ease-in-out;
}

.phone-mockup.active-client .wave-bar {
  background: #a78bfa;
  animation: soundwave-pulse 1s infinite ease-in-out;
}

.phone-mockup.active-ai .wave-bar:nth-child(even) { animation-delay: 0.2s; }
.phone-mockup.active-ai .wave-bar:nth-child(3n) { animation-delay: 0.4s; }
.phone-mockup.active-client .wave-bar:nth-child(even) { animation-delay: 0.15s; }
.phone-mockup.active-client .wave-bar:nth-child(3n) { animation-delay: 0.3s; }

@keyframes soundwave-pulse {
  0% { height: 4px; }
  50% { height: 26px; }
  100% { height: 4px; }
}

.phone-call-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 12px;
}

.call-client-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.client-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.client-name-small {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
}

.client-phone-small {
  font-size: 0.65rem;
  color: #64748b;
}

.call-control-btns .phone-btn.small {
  width: 36px;
  height: 36px;
}

.call-control-btns .phone-btn svg {
  width: 16px;
  height: 16px;
}

/* SMM Publications Calendar style */
/* SMM Publications Calendar style */
.aismm-showcase {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.6);
  padding: 6px;
  border-radius: 18px;
  border: 2px solid rgba(124, 58, 237, 0.06);
  width: 100%;
  box-sizing: border-box;
  height: 74px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.03);
}

.calendar-day-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 2px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  height: 60px; /* Fixed height for day elements */
  box-sizing: border-box;
}

.calendar-day-col:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.calendar-day-col.active {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: none;
}

.day-name {
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
}

.calendar-day-col.active .day-name {
  color: rgba(255, 255, 255, 0.75);
}

.day-date {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 2px;
}

.post-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
  position: absolute;
  bottom: 8px;
}

.post-indicator.has-post {
  background: var(--color-primary);
}

.calendar-day-col.active .post-indicator.has-post {
  background: #fff;
}

.smm-cards-container {
  display: grid;
  grid-template-columns: 1fr auto; /* Desktop row layout: wider post, narrow stories */
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  align-items: start;
}

.smm-post-card {
  background: #fff;
  border: 2px solid rgba(124, 58, 237, 0.06);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.smm-post-card:hover {
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.08);
  transform: translateY(-2px);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.post-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.post-time {
  font-size: 0.7rem;
  color: var(--text-light);
}

.post-body {
  margin-top: 14px;
  margin-bottom: 14px;
  overflow: hidden;
}

.post-content-preview {
  font-size: 0.85rem;
  line-height: 1.45;
  height: 4.35rem; /* Exactly 3 lines (1.45 * 3) to prevent jumpiness on state switch */
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-image-container {
  width: 100%;
  aspect-ratio: 4 / 3; /* Fixed 4:3 aspect ratio */
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.post-image-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.post-social-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 5px;
}

.post-social-icon svg {
  width: 100%;
  height: 100%;
}

.post-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(124, 58, 237, 0.15);
}

.smm-stories-card {
  width: 130px; /* Narrow fixed width (120-140px) */
  aspect-ratio: 9 / 16; /* Fixed 9:16 aspect ratio */
  align-self: start;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 8px 24px rgba(220, 39, 67, 0.08);
  flex-shrink: 0;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.smm-stories-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(220, 39, 67, 0.15);
}

.stories-inner {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #111;
}

.stories-image-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stories-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.65) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  color: #fff;
  z-index: 2;
  box-sizing: border-box;
}

.stories-ring-container {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  padding: 2.5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
}

.stories-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.stories-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.45);
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.smm-analytics-widget {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(124, 58, 237, 0.06);
  border-radius: 18px;
  padding: 14px;
  box-sizing: border-box;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.02);
}

.analytics-metric {
  background: #fff;
  border: 1.5px solid rgba(124, 58, 237, 0.05);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 86px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.01);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.analytics-metric:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.02);
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
}

.metric-trend {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.metric-trend.positive {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-accent);
}

.metric-trend.negative {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
}

.metric-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 6px;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.sparkline-container {
  width: 60px;
  height: 24px;
}

.sparkline-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

@media (max-width: 768px) {
  .aismm-showcase {
    padding: 16px;
    gap: 16px;
    height: auto;
    max-width: 100%;
  }
  .calendar-grid {
    height: auto;
    padding: 4px;
    gap: 4px;
  }
  .calendar-day-col {
    min-height: 48px;
    height: auto;
    padding: 4px 2px;
  }
  .day-name {
    font-size: 0.6rem;
  }
  .day-date {
    font-size: 0.8rem;
  }
  .post-indicator {
    bottom: 4px;
    width: 4px;
    height: 4px;
  }
  .smm-cards-container {
    grid-template-columns: 1fr; /* All zones stack in one vertical column */
    gap: 16px;
  }
  .smm-post-card {
    width: 100%;
    height: auto;
  }
  .smm-stories-card {
    display: none; /* Hide Stories on mobile to avoid overflow and respect choice */
  }
  .smm-analytics-widget {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    gap: 10px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .smm-analytics-widget {
    grid-template-columns: 1fr; /* 1 column on small phones */
  }
}



/* AI Chat Modal */
/* ============================================
   AI Chat Button
   ============================================ */
.ai-chat-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, #7C3AED 0%, #a78bfa 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  box-shadow:
    0 8px 24px rgba(124, 58, 237, 0.35),
    0 0 0 0 rgba(124, 58, 237, 0.3);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: chat-btn-pulse 2.5s infinite;
}

@keyframes chat-btn-pulse {
  0% { box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35), 0 0 0 0 rgba(124, 58, 237, 0.25); }
  50% { box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35), 0 0 0 12px rgba(124, 58, 237, 0); }
  100% { box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35), 0 0 0 0 rgba(124, 58, 237, 0); }
}

.ai-chat-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.45);
  animation: none;
}

/* ============================================
   AI Chat Modal
   ============================================ */
.ai-chat-modal {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 380px;
  background: linear-gradient(180deg, #f8f5ff 0%, #ffffff 30%);
  border-radius: 28px;
  border: 2px solid rgba(124, 58, 237, 0.1);
  display: none;
  flex-direction: column;
  box-shadow:
    0 30px 70px rgba(124, 58, 237, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.06);
  z-index: 999;
  overflow: hidden;
  animation: chat-modal-appear 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes chat-modal-appear {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-chat-modal.active { display: flex; }

/* Header */
.ai-chat-header {
  padding: 18px 22px;
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: none;
}

.ai-chat-header button {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-chat-header button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.25);
}

/* Body */
.ai-chat-body {
  height: 340px;
  padding: 20px;
  background: linear-gradient(180deg, #f5f0ff 0%, #ffffff 100%);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Scrollbar */
.ai-chat-body::-webkit-scrollbar { width: 4px; }
.ai-chat-body::-webkit-scrollbar-track { background: transparent; }
.ai-chat-body::-webkit-scrollbar-thumb { background: rgba(124, 58, 237, 0.15); border-radius: 4px; }

/* Message bubbles */
.ai-msg, .user-msg {
  padding: 12px 16px;
  border-radius: 20px;
  max-width: 82%;
  font-size: 0.9rem;
  line-height: 1.5;
}

.ai-msg {
  background: #ffffff;
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  color: #1e293b;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.06);
}

.user-msg {
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
}

/* Input area */
.ai-chat-input {
  display: flex;
  padding: 16px 18px;
  background: #ffffff;
  border-top: 1px solid rgba(124, 58, 237, 0.06);
  gap: 10px;
}

.ai-chat-input input {
  flex: 1;
  background: #f5f0ff;
  border: 2px solid rgba(124, 58, 237, 0.08);
  padding: 12px 18px;
  border-radius: 24px;
  color: #1e293b;
  outline: none;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ai-chat-input input::placeholder { color: #a3a3b5; }

.ai-chat-input input:focus {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.06);
}

.ai-chat-input button {
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-chat-input button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

/* Typing Indicator */
.typing-indicator-msg {
  background: #ffffff;
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  color: #7C3AED;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 12px 16px;
  border-radius: 20px;
  max-width: 80%;
  font-size: 0.9rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.06);
}

.typing-indicator-msg .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7C3AED;
  animation: blink 1.4s infinite both;
}

.typing-indicator-msg .dot:nth-child(2) {
  animation-delay: .2s;
}

.typing-indicator-msg .dot:nth-child(3) {
  animation-delay: .4s;
}

@keyframes blink {
  0% { opacity: .2; }
  20% { opacity: 1; }
  100% { opacity: .2; }
}

/* Mobile AI Chat responsive */
@media (max-width: 768px) {
  .ai-chat-modal {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100dvh;
    height: 100vh;
    border-radius: 0;
    border: none;
    z-index: 10000;
  }
  .ai-chat-body {
    flex: 1;
    height: auto;
    overflow-y: auto;
  }
  .ai-chat-input {
    padding-bottom: env(safe-area-inset-bottom, 15px);
  }
}


/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(250px);
  width: calc(100% - 32px);
  max-width: 600px;
  background: #fdfcff;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  z-index: 10000;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), bottom 0.5s ease;
  border-radius: 24px;
  border: 3px solid #e9d5ff; /* soft purple clay border */
  box-shadow: 
    0 15px 35px rgba(124, 58, 237, 0.15),
    inset 4px 4px 0px #ffffff,
    inset -4px -4px 0px rgba(124, 58, 237, 0.05);
  color: #1e1b4b;
}
.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
}
.cookie-banner p { 
  margin: 0; 
  font-size: 0.88rem; 
  line-height: 1.4;
  color: #4c1d95;
  font-weight: 600;
}
.cookie-banner a { 
  color: #7C3AED; 
  text-decoration: none; 
  font-weight: 700;
  border-bottom: 2px solid rgba(124, 58, 237, 0.2);
  transition: all 0.2s ease;
}
.cookie-banner a:hover {
  border-bottom-color: #7C3AED;
}
.cookie-banner .btn {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  color: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 
    0 6px 16px rgba(124, 58, 237, 0.25),
    inset 2px 2px 0px rgba(255, 255, 255, 0.3),
    inset -2px -2px 0px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}
.cookie-banner .btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 20px rgba(124, 58, 237, 0.35),
    inset 2px 2px 0px rgba(255, 255, 255, 0.3),
    inset -2px -2px 0px rgba(0, 0, 0, 0.1);
}
.cookie-banner .btn:active {
  transform: translateY(0);
}

/* SVG Dividers */
.svg-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

/* Case Modal */
.case-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.case-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.case-modal-content {
  width: 90%;
  max-width: 600px;
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.case-modal-overlay.active .case-modal-content {
  transform: translateY(0) scale(1);
}

.case-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--text-main);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: var(--transition-fast);
}

.case-modal-close:hover {
  background: #fff;
  transform: scale(1.1);
}

.case-modal-img {
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--glass-border);
}

.case-modal-body {
  padding: 30px;
}

.case-modal-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.case-modal-title {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 15px;
}

.case-modal-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 25px;
  line-height: 1.6;
}

.case-modal-features {
  margin-bottom: 30px;
}

.case-modal-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.case-modal-features li svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.case-modal-btn {
  width: 100%;
}

@media (max-width: 768px) {
  .case-modal-content {
    width: 95%;
  }
  .case-modal-img {
    height: 180px;
  }
}

/* --- Added custom styles for Amisoft landing updates --- */

/* "What We Do" Services Grid Section */
.what-we-do-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.what-we-do-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.what-we-do-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.15);
}

.what-we-do-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.what-we-do-icon svg {
  width: 24px;
  height: 24px;
}

.card-title-new {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.card-desc-new {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}


/* CTA Bar Section & Premium Card */
.cta-bar-section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  z-index: 5;
  background: transparent;
}

.cta-bar-card {
  background: linear-gradient(135deg, #110e23 0%, #080514 100%);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.22);
  box-shadow: 
    0 24px 60px rgba(124, 58, 237, 0.1),
    inset 0 0 30px rgba(124, 58, 237, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
}

.cta-bar-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 75% 30%, rgba(14, 165, 233, 0.22) 0%, transparent 50%),
    radial-gradient(circle at 25% 70%, rgba(124, 58, 237, 0.18) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.cta-bar-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.cta-bar-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}

.cta-bar-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0;
}

.cta-bar-btn {
  background: #ffffff !important;
  color: var(--color-primary) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), background var(--transition-fast) !important;
  border: none;
}

.cta-bar-btn:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  transform: translateY(-2px);
}

/* Mobile Performance Budget Overrides (Screens <= 768px) */
@media (max-width: 768px) {
  .glass-card,
  .hero-canvas,
  .header,
  .header.scrolled,
  .form-input,
  .form-select,
  .form-textarea {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.95) !important;
  }

  .nav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.98) !important;
  }

  .cookie-banner {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #fdfcff !important;
  }

  .case-modal-overlay {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(15, 23, 42, 0.8) !important;
  }

  .bg-glow,
  .bg-glow-container {
    display: none !important;
    animation: none !important;
    will-change: auto !important;
  }
}

/* Custom Validation & Enhancement Styles */
.form-input.is-valid, .form-select.is-valid, .form-textarea.is-valid {
  border-color: #22C55E !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.05) !important;
}

.form-input.is-invalid, .form-select.is-invalid, .form-textarea.is-invalid {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.05) !important;
}

.form-field-error {
  color: #EF4444;
  font-size: 0.75rem;
  margin-top: 4px;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.form-group.shake {
  animation: shake-error 0.4s ease-in-out;
}

@keyframes shake-error {
  0%, 100% { transform: translateX(0); }
  15%, 55%, 95% { transform: translateX(-6px); }
  35%, 75% { transform: translateX(6px); }
}

/* Custom Select Styles */
.custom-select-wrapper {
  position: relative;
  width: 100%;
  display: none;
}

.custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 16px 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #000000;
  font-size: 0.98rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-sizing: border-box;
}

.custom-select-trigger:hover {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(0, 0, 0, 0.12);
}

.custom-select-wrapper.open .custom-select-trigger {
  background: rgba(255, 255, 255, 0.85);
  border-color: #8B5CF6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), 0 8px 24px rgba(139, 92, 246, 0.1);
}

.custom-select-trigger span {
  pointer-events: none;
}

.custom-select-trigger .arrow {
  width: 8px;
  height: 8px;
  border-left: 2px solid #6B6B70;
  border-bottom: 2px solid #6B6B70;
  transform: rotate(-45deg);
  margin-top: -3px;
  transition: transform var(--transition-normal);
  pointer-events: none;
}

.custom-select-wrapper.open .custom-select-trigger .arrow {
  transform: rotate(135deg);
  margin-top: 3px;
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
  overflow: hidden;
}

.custom-select-wrapper.open .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-option {
  padding: 12px 20px;
  font-size: 0.95rem;
  color: #000000;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.custom-select-option:hover {
  background: #F2F3F5;
  color: #000000;
}

.custom-select-option.selected {
  background: #E5E7EB;
  color: #000000;
  font-weight: 600;
}

/* Hide/Show select depending on device width */
@media (min-width: 769px) {
  #client-service.form-select {
    display: none !important;
  }
  .custom-select-wrapper {
    display: block;
  }
}

@media (max-width: 768px) {
  #client-service.form-select {
    display: block !important;
  }
  .custom-select-wrapper {
    display: none !important;
  }
}

/* Form Collapse & Premium Success Card */
#amisoft-contact-form {
  transition: opacity 0.4s ease, max-height 0.4s ease, padding 0.4s ease, margin 0.4s ease;
  max-height: 1200px;
  opacity: 1;
  overflow: hidden;
}

#amisoft-contact-form.collapsed {
  opacity: 0;
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  pointer-events: none;
}

.success-card-premium {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-card-premium.is-visible {
  display: flex !important;
  opacity: 1;
  transform: translateY(0);
}

.success-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #10b981;
  animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.success-card-premium h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.success-card-premium p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 320px;
}

.telegram-alt-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.telegram-alt-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 136, 204, 0.2);
}

button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: #E5E7EB !important;
  border-color: transparent !important;
  color: #9CA3AF !important;
}

/* Pricing Section (Тарифы) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.pricing-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Simple image-based pricing cards */
.pricing-card-simple {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  padding: 24px;
  border-radius: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card-simple:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.pricing-card-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
  transition: transform 0.3s ease;
}

.pricing-card-simple:hover .pricing-card-img {
  transform: translateY(-4px);
}

.pricing-card-simple .pricing-btn {
  position: static;
  width: 100%;
  text-align: center;
  padding: 18px 24px;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  background: #111111;
  color: #ffffff;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s;
}

.pricing-card-simple.dark .pricing-btn {
  background: #111111;
  color: #ffffff;
}

.pricing-card-simple .pricing-btn:hover {
  transform: scale(1.02);
}

.pricing-card:hover {
  transform: translateY(-6px);
}

.pricing-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.4s ease;
  pointer-events: none;
}

.pricing-card:hover .pricing-card-bg {
  transform: scale(1.03);
}

.pricing-card-overlay-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 40px 32px 36px 32px;
  box-sizing: border-box;
}

.pricing-card-header {
  margin-bottom: 24px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: auto; /* Push button to the bottom */
}

/* Highlight style for the featured middle card */
.pricing-card.featured {
  color: #ffffff;
}

.pricing-card.featured:hover {
  box-shadow: none;
}

/* Border glow running animation for AI tariff */
.pricing-card.border-glow {
  position: relative;
  z-index: 1;
}

.pricing-card.border-glow::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(90deg, #7c3aed, #0ea5e9, #10b981, #7c3aed);
  background-size: 400% 400%;
  border-radius: 26px;
  z-index: -2;
  animation: border-glow-anim 8s linear infinite;
  opacity: 1;
}

.pricing-card.border-glow::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  background: transparent;
  border-radius: 23px;
  z-index: -1;
  transition: background 0.3s ease;
}

.pricing-card.border-glow:hover::before {
  filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.4));
}

@keyframes border-glow-anim {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.pricing-card-header {
  margin-bottom: 30px;
}

.pricing-image {
  width: 100%;
  height: 140px;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
}

.pricing-card.featured .pricing-image {
  background: transparent;
  box-shadow: none;
}

.pricing-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.pricing-card:hover .pricing-image img {
  transform: scale(1.08) rotate(1deg);
}

.pricing-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: none !important;
}

.pricing-tag.sites {
  background: #ffffff;
  color: #000000;
}

.pricing-tag.automation {
  background: #E5E7EB;
  color: #000000;
}

.pricing-card.featured .pricing-tag.automation {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.pricing-tag.ai {
  background: #ffffff;
  color: #000000;
}

.pricing-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.pricing-card.featured .pricing-title {
  color: #ffffff;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 800;
  color: #000000;
  display: inline-block;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
}

.pricing-card.featured .pricing-price {
  color: #ffffff;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: auto;
}

.pricing-feat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #6B6B70;
}

.pricing-card.featured .pricing-feat-item {
  color: #E2E8F0;
}

.pricing-feat-item svg {
  width: 18px;
  height: 18px;
  color: #22C55E;
  flex-shrink: 0;
}

.pricing-btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 0.95rem;
  border-radius: 9999px !important;
  text-align: center;
}

.pricing-card.featured .pricing-btn {
  background: #ffffff;
  color: #000000;
}

.pricing-card.featured .pricing-btn:hover {
  background: #EBECEF;
}

.pricing-disclaimer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 30px;
  font-style: italic;
}

/* Trust Section (Блок доверия) */
/* Trust Section (Блок доверия) */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.trust-stat-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.trust-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, var(--card-accent, #7C3AED), var(--card-accent-end, #a78bfa));
  opacity: 0.8;
  transition: height 0.3s ease, opacity 0.3s ease;
}

.trust-stat-card:nth-child(1) { --card-accent: #22C55E; --card-accent-end: #4ade80; }
.trust-stat-card:nth-child(2) { --card-accent: #3B82F6; --card-accent-end: #60a5fa; }
.trust-stat-card:nth-child(3) { --card-accent: #F59E0B; --card-accent-end: #fbbf24; }
.trust-stat-card:nth-child(4) { --card-accent: #8B5CF6; --card-accent-end: #a78bfa; }

.trust-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.trust-stat-card:hover::before {
  height: 6px;
  opacity: 1;
}

.trust-stat-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.trust-stat-num {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--card-accent, #000000);
  line-height: 1;
}

.trust-sparkline {
  display: flex;
  align-items: center;
}

.trust-checkbox-widget {
  display: flex;
  align-items: center;
}

.yandex-checkbox {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--card-accent, #3B82F6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
}

.yandex-checkbox.checked svg {
  display: block;
}

.yandex-status-badge {
  background: linear-gradient(135deg, var(--card-accent, #F59E0B), var(--card-accent-end, #fbbf24));
  border: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
}

.trust-check-badge {
  background: linear-gradient(135deg, var(--card-accent, #8B5CF6), var(--card-accent-end, #a78bfa));
  border: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.3);
}

.trust-stat-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #000000;
  margin: 0 0 10px 0;
}

.trust-stat-desc {
  font-family: var(--font-primary);
  font-size: 14px;
  color: #6B6B70;
  line-height: 1.5;
  margin: 0;
}

/* Social Wide Card Section */
.social-wide-card {
  position: relative;
  background: rgba(18, 14, 31, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 32px 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 20px 50px rgba(139, 92, 246, 0.15), inset 0 0 30px rgba(139, 92, 246, 0.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
  overflow: visible;
  z-index: 1;
}

/* Desktop blurred color blobs */
@media (min-width: 769px) {
  .social-wide-card::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(139, 92, 246, 0) 70%);
    top: -80px;
    left: -80px;
    filter: blur(50px);
    z-index: -1;
    pointer-events: none;
  }
  .social-wide-card::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, rgba(14, 165, 233, 0) 70%);
    bottom: -80px;
    right: -80px;
    filter: blur(50px);
    z-index: -1;
    pointer-events: none;
  }
}

.social-wide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(139, 92, 246, 0.25), inset 0 0 40px rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.5);
}

@media (max-width: 768px) {
  .social-wide-card {
    background: rgba(18, 14, 31, 0.9);
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 32px;
    text-align: center;
  }
}

.social-card-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

@media (max-width: 768px) {
  .social-card-left {
    align-items: center;
  }
}

.social-card-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.social-card-text {
  font-family: var(--font-primary);
  font-size: clamp(14px, 1.8vw, 16px);
  color: #d1d5db;
  line-height: 1.6;
  margin: 0;
}

.social-actions-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

@media (max-width: 768px) {
  .social-actions-group {
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }
}

.social-card-btn {
  display: inline-block;
  background: linear-gradient(135deg, #7c3aed 0%, #0ea5e9 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.social-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(124, 58, 237, 0.6);
}

.social-icons-inline {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.3s ease;
  flex-shrink: 0;
  text-decoration: none;
}

.social-icon-circle.vk {
  background: #0077FF;
  box-shadow: 0 4px 15px rgba(0, 119, 255, 0.2);
}
.social-icon-circle.vk:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 119, 255, 0.4);
}

.social-icon-circle.tg {
  background: #2AABEE;
  box-shadow: 0 4px 15px rgba(42, 171, 238, 0.2);
}
.social-icon-circle.tg:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 8px 25px rgba(42, 171, 238, 0.4);
}

.social-icon-circle.max {
  background: linear-gradient(135deg, #0055ff 0%, #8b5cf6 100%);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}
.social-icon-circle.max:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.social-icon-circle svg {
  width: 48px;
  height: 48px;
}

.max-text-badge {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.social-card-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.social-banner-image-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.social-banner-3d-img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  animation: float-phone 6s infinite ease-in-out;
  filter: drop-shadow(0 15px 30px rgba(139, 92, 246, 0.4));
}

@media (min-width: 769px) {
  .social-card-right {
    height: 100%;
    min-height: 250px;
  }
  
  .social-banner-3d-img {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    height: 520px;
    width: auto;
    max-width: none;
    max-height: none;
    z-index: 10;
    animation: float-phone-abs 6s infinite ease-in-out;
  }
}

@keyframes float-phone {
  0%, 100% {
    transform: translateY(0) rotate(2deg);
  }
  50% {
    transform: translateY(-15px) rotate(-2deg);
  }
}

@keyframes float-phone-abs {
  0%, 100% {
    transform: translateY(-50%) rotate(2deg);
  }
  50% {
    transform: translateY(-54%) rotate(-2deg);
  }
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.05);
  z-index: 999;
  display: none; /* Hidden on desktop */
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

@media (max-width: 768px) {
  .mobile-sticky-cta {
    display: flex;
  }
  
  body {
    padding-bottom: 60px;
  }
}

.mobile-sticky-cta-container {
  width: 100%;
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
}

.mobile-cta-btn {
  flex: 1;
  height: 42px;
  padding: 0 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: none;
  border: none;
  cursor: pointer;
  overflow: hidden;
}

.mobile-tg-link {
  width: 42px;
  height: 42px;
  background: #0088cc;
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.25);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.mobile-tg-link:active {
  transform: scale(0.95);
  background-color: #0077b3;
}

.mobile-tg-link svg {
  width: 20px;
  height: 20px;
}



/* ============================================
   Animated Flying Paper Planes
   ============================================ */
.flying-plane {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

/* Trail line behind each plane */
.flying-plane::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 3px;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  background: linear-gradient(to left, currentColor, transparent);
  opacity: 0.4;
  border-radius: 2px;
}

.plane-1::after { color: #589BFF; width: 100px; }
.plane-2::after { color: #FF586A; width: 140px; }
.plane-3::after { color: #FFCF54; width: 80px; }
.plane-4::after { color: #54D489; width: 110px; }

/* Plane 1 — Blue, flies from bottom-left to top-right in a gentle arc */
.plane-1 {
  top: 75%;
  left: -80px;
  animation: fly-curve-1 12s ease-in-out infinite;
}

/* Plane 2 — Red, flies from top-right to bottom-left, swooping down */
.plane-2 {
  top: -80px;
  right: 10%;
  left: auto;
  animation: fly-curve-2 16s ease-in-out infinite 3s;
}

/* Plane 3 — Yellow, flies from left to right across the middle with a wobble */
.plane-3 {
  top: 40%;
  left: -80px;
  animation: fly-curve-3 14s ease-in-out infinite 7s;
}

/* Plane 4 — Green, flies from bottom-right to upper-left in a loop */
.plane-4 {
  bottom: -80px;
  right: -80px;
  left: auto;
  animation: fly-curve-4 18s ease-in-out infinite 10s;
}

/* Blue plane — gentle rising arc from bottom-left to top-right */
@keyframes fly-curve-1 {
  0% {
    transform: translate(0, 0) rotate(-25deg);
    opacity: 0;
  }
  5% { opacity: 0.9; }
  20% {
    transform: translate(20vw, -80px) rotate(-20deg);
  }
  40% {
    transform: translate(40vw, -180px) rotate(-30deg);
  }
  60% {
    transform: translate(60vw, -120px) rotate(-15deg);
  }
  80% {
    transform: translate(80vw, -200px) rotate(-25deg);
  }
  95% { opacity: 0.9; }
  100% {
    transform: translate(110vw, -250px) rotate(-20deg);
    opacity: 0;
  }
}

/* Red plane — swoops down from top-right to bottom-left */
@keyframes fly-curve-2 {
  0% {
    transform: translate(0, 0) rotate(150deg);
    opacity: 0;
  }
  5% { opacity: 0.85; }
  25% {
    transform: translate(-15vw, 120px) rotate(160deg);
  }
  50% {
    transform: translate(-40vw, 80px) rotate(140deg);
  }
  75% {
    transform: translate(-65vw, 200px) rotate(155deg);
  }
  95% { opacity: 0.85; }
  100% {
    transform: translate(-110vw, 150px) rotate(145deg);
    opacity: 0;
  }
}

/* Yellow plane — crosses the middle with up-down wobble */
@keyframes fly-curve-3 {
  0% {
    transform: translate(0, 0) rotate(-15deg);
    opacity: 0;
  }
  5% { opacity: 0.9; }
  15% {
    transform: translate(12vw, -40px) rotate(-25deg);
  }
  30% {
    transform: translate(28vw, 30px) rotate(-5deg);
  }
  45% {
    transform: translate(42vw, -50px) rotate(-30deg);
  }
  60% {
    transform: translate(58vw, 20px) rotate(-10deg);
  }
  75% {
    transform: translate(72vw, -30px) rotate(-20deg);
  }
  90% {
    transform: translate(90vw, 10px) rotate(-12deg);
  }
  95% { opacity: 0.9; }
  100% {
    transform: translate(110vw, -20px) rotate(-18deg);
    opacity: 0;
  }
}

/* Green plane — rises from bottom-right to upper-left with big arc */
@keyframes fly-curve-4 {
  0% {
    transform: translate(0, 0) rotate(200deg);
    opacity: 0;
  }
  5% { opacity: 0.85; }
  20% {
    transform: translate(-18vw, -60px) rotate(195deg);
  }
  40% {
    transform: translate(-35vw, -180px) rotate(210deg);
  }
  60% {
    transform: translate(-55vw, -100px) rotate(190deg);
  }
  80% {
    transform: translate(-75vw, -220px) rotate(205deg);
  }
  95% { opacity: 0.85; }
  100% {
    transform: translate(-110vw, -280px) rotate(195deg);
    opacity: 0;
  }
}

/* ============================================
   Moved Inline Styles → CSS Classes
   ============================================ */

/* Pricing Section (was inline: background: #ffffff; position: relative) */
.section-pricing {
  background: #ffffff;
  position: relative;
}

/* Contact Section (was inline: background, border-radius, margin, padding, etc.) */
.section-contact {
  background: #ffffff;
  border-radius: 32px;
  margin: 40px 20px;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.contact-container-wrap {
  position: relative;
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE FIXES
   ============================================ */

/* --- Tablet (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .section-contact {
    margin: 30px 16px;
    padding: 60px 16px;
    border-radius: 24px;
  }
}

/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {

  /* Section spacing */
  .section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  /* Services grid fix — prevent horizontal overflow */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* What we do grid fix */
  .what-we-do-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .what-we-do-card {
    padding: 24px;
  }

  /* Product tabs — wrap on mobile */
  .products-nav {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
  }

  .product-tab-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
  }

  /* Product showcase */
  .product-showcase {
    min-height: auto;
    height: auto;
  }

  .amicall-showcase,
  .aismm-showcase {
    min-height: auto;
    height: auto;
  }

  /* Hero 3d image — prevent overflow */
  .hero-3d-img {
    width: 100%;
    max-width: 400px;
  }

  /* Social icons — reduce size on mobile */
  .social-icon-circle {
    width: 56px;
    height: 56px;
  }

  .social-icon-circle svg {
    width: 32px;
    height: 32px;
  }

  /* FAQ — reduce padding */
  .faq-question {
    padding: 18px 20px;
    font-size: 1rem;
  }

  .faq-answer-inner {
    padding: 0 20px;
  }

  .faq-item.active .faq-answer-inner {
    padding-bottom: 20px;
  }

  /* CTA bar — responsive title */
  .cta-bar-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  .cta-bar-subtitle {
    font-size: 0.95rem;
  }

  .cta-bar-section {
    padding: 50px 0;
  }

  /* Contact section — mobile adaptation */
  .section-contact {
    margin: 20px 12px;
    padding: 40px 12px;
    border-radius: 20px;
  }

  /* Contact 3d image — hide on mobile and tablet to prevent clipping & overflow */
  .contact-3d-container {
    display: none !important;
  }

  /* AI chat button — above mobile sticky CTA */
  .ai-chat-btn {
    bottom: 80px;
    right: 16px;
    width: 52px;
    height: 52px;
  }

  /* Cookie banner — above mobile sticky CTA */
  .cookie-banner {
    bottom: 84px; /* Float above the 60px sticky CTA + gap */
    width: calc(100% - 24px);
    max-width: 480px;
    flex-direction: column;
    gap: 14px;
    text-align: center;
    padding: 16px 20px;
  }

  /* Pricing section */
  .section-pricing {
    padding: 60px 0;
  }

  .pricing-card-simple {
    padding: 16px;
    border-radius: 28px;
  }

  .pricing-card-img {
    border-radius: 18px;
    margin-bottom: 16px;
  }

  .pricing-card-simple .pricing-btn {
    padding: 14px 20px;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  /* Process timeline — stack on tablets */
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Trust grid */
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .trust-stat-card {
    padding: 24px;
  }

  /* Service card content padding */
  .service-card-content {
    padding: 24px 24px 16px 24px;
  }
}

/* --- Small phones (max-width: 480px) --- */
@media (max-width: 480px) {

  /* Smaller section padding */
  .section {
    padding: 48px 0;
  }

  /* Container padding */
  .container {
    padding: 0 16px;
  }

  /* Section title */
  .section-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  /* Contact section */
  .section-contact {
    margin: 12px 8px;
    padding: 32px 8px;
    border-radius: 16px;
  }



  /* Social wide card */
  .social-wide-card {
    padding: 24px 16px;
  }

  .social-icons-inline {
    gap: 10px;
  }

  .social-icon-circle {
    width: 48px;
    height: 48px;
  }

  .social-icon-circle svg {
    width: 28px;
    height: 28px;
  }

  /* CTA bar */
  .cta-bar-title {
    font-size: 1.35rem;
  }

  .cta-bar-subtitle {
    font-size: 0.85rem;
  }

  /* Pricing */
  .pricing-grid {
    gap: 20px;
  }

  .pricing-disclaimer {
    font-size: 0.75rem;
  }

  /* Footer */
  .footer {
    padding: 40px 0 20px;
  }

  .footer-brand-desc {
    font-size: 0.85rem;
  }

  /* Calendar grid — smaller text */
  .calendar-grid {
    gap: 2px;
    padding: 3px;
    border-radius: 12px;
  }

  .calendar-day-col {
    min-height: 42px;
    padding: 3px 1px;
    border-radius: 8px;
  }

  .day-name {
    font-size: 0.55rem;
  }

  .day-date {
    font-size: 0.75rem;
  }

  /* Analytics widget compact */
  .analytics-metric {
    padding: 10px 12px;
    min-height: 72px;
    border-radius: 10px;
  }

  .metric-value {
    font-size: 1rem;
  }

  .sparkline-container {
    width: 46px;
    height: 18px;
  }

  /* AI chat modal */
  .ai-chat-btn {
    bottom: 74px;
    right: 12px;
    width: 48px;
    height: 48px;
  }

  .ai-chat-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* --- Very small (max-width: 360px) --- */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .stat-num {
    font-size: 1.1rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .product-tab-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .faq-answer-inner {
    padding: 0 16px;
    font-size: 0.88rem;
  }
}

