/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-light: #f6f9fe;
  --bg-white: #ffffff;
  --primary: #1A4CFF;
  --primary-dark: #0e34b5;
  --accent: #7F68FF;
  --dark: #0C1729;
  --gray: #5b6f88;
  --border-light: #e2eaf5;
  --shadow-sm: 0 20px 35px -15px rgba(0,20,50,0.1);
  --shadow-hover: 0 30px 50px -20px rgba(26,76,255,0.25);
  --glass-bg: rgba(255,255,255,0.7);
  --glass-border: rgba(255,255,255,0.5);
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-light);
  color: var(--dark);
  line-height: 1.5;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

#matrixCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  display: block;
  pointer-events: none;
  opacity: 0.4;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.subhead {
  font-size: 1.3rem;
  color: var(--gray);
  max-width: 720px;
  margin-bottom: 3.5rem;
  font-weight: 400;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-weight: 600;
  padding: 1rem 2.5rem;
  border-radius: 60px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px -8px var(--primary);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 35px -10px var(--primary);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid rgba(26,76,255,0.08);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}

@supports (backdrop-filter: blur(1px)) {
  @media (min-width: 769px) {
    .header {
      background: rgba(255,255,255,0.82);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }
  }
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.8rem;
}

.nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.2s;
  font-size: 1.1rem;
  position: relative;
  outline: none;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

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

.nav a:focus,
.nav a:focus-visible,
.nav a:active {
  outline: none !important;
  box-shadow: none !important;
  color: var(--primary);
  -webkit-tap-highlight-color: transparent;
}

.nav a:focus::after,
.nav a:focus-visible::after,
.nav a:active::after {
  width: 100%;
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
}

.lang-switch button {
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 30px;
  padding: 0.3rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--dark);
}

.lang-switch button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: scale(1.05);
}

.lang-switch button:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 4rem 0 5rem;
  background: radial-gradient(circle at 80% 30%, rgba(26,76,255,0.08) 0%, transparent 40%),
              linear-gradient(145deg, #ffffff 0%, #f2f7ff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.1;
  animation: float 8s ease-in-out infinite;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ===== HERO TEXT ANIMATION ===== */
.hero h1 {
  font-size: 3.8rem;
  line-height: 1.2;
  background: linear-gradient(to right, #0C1729, #1A4CFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.hero h1::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.5s ease;
}

.hero h1.animating::after {
  width: 100%;
}

.hero p {
  font-size: 1.3rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: rgba(255,255,255,0.5);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-item h3 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.stat-item p {
  font-size: 1rem;
  margin: 0;
  color: var(--gray);
}

.hero-image {
  height: 450px;
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
  border-radius: 40px;
  box-shadow: 0 25px 45px -15px var(--primary);
  border: 1px solid rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: 
    linear-gradient(30deg, var(--primary) 0%, transparent 30%),
    radial-gradient(circle at 70% 20%, var(--accent) 0%, transparent 50%);
  animation: float 6s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--primary), transparent);
  animation: rotate 10s linear infinite;
  opacity: 0.1;
}

.cube-container {
  perspective: 1000px;
  width: 300px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.cube {
  width: 200px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(30deg) rotateY(30deg);
  animation: spinCube 8s infinite linear;
}

.cube-face {
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(26, 76, 255, 0.15);
  border: 2px solid var(--primary);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  box-shadow: 0 0 40px rgba(26, 76, 255, 0.4);
  border-radius: 15px;
}

.cube-face.front { transform: translateZ(100px); }
.cube-face.back { transform: rotateY(180deg) translateZ(100px); }
.cube-face.left { transform: rotateY(-90deg) translateZ(100px); }
.cube-face.right { transform: rotateY(90deg) translateZ(100px); }
.cube-face.top { transform: rotateX(90deg) translateZ(100px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes spinCube {
  0% { transform: rotateX(30deg) rotateY(0deg); }
  100% { transform: rotateX(30deg) rotateY(360deg); }
}

.hero-image i {
  font-size: 8rem;
  color: white;
  text-shadow: 0 10px 20px rgba(0,0,0,0.2);
  z-index: 1;
  position: relative;
  display: none; /* Hide by default, show as fallback */
}

@supports not (transform-style: preserve-3d) {
  .hero-image i {
    display: block;
  }
  .cube-container {
    display: none;
  }
}

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

@keyframes rotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

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

/* ===== MARQUEE SECTION ===== */
.marquee-section {
  background: white;
  padding: 2rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.marquee {
  display: flex;
  gap: 4rem;
  animation: scroll 20s linear infinite;
  white-space: nowrap;
}

.marquee span {
  font-size: 1.2rem;
  font-weight: 600;
  color: #8b9ab5;
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

/* ===== SECTIONS ===== */
.section {
  padding: 6rem 0;
}

.section-white {
  background: white;
}

/* ===== SERVICE CARDS ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.2,0,0,1);
  transform-style: preserve-3d;
  perspective: 1000px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-12px) rotateX(2deg) rotateY(1deg);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
  background: rgba(255,255,255,0.9);
}

.service-icon {
  font-size: 3rem;
  background: linear-gradient(145deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--primary);
}

.service-card p {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.feature-tags span {
  background: rgba(26,76,255,0.08);
  border-radius: 40px;
  padding: 0.4rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  border: 1px solid rgba(26,76,255,0.2);
  transition: all 0.3s ease;
}

.feature-tags span:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

/* ===== SERVICE DETAILS ===== */
.service-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), margin 0.3s ease, padding 0.3s ease;
  background: rgba(26,76,255,0.05);
  border-radius: 24px;
  margin-top: 0.5rem;
  padding: 0 1rem;
}

.service-details.show {
  max-height: 400px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.service-details ul {
  list-style: none;
}

.service-details li {
  margin-bottom: 0.7rem;
  display: flex;
  gap: 0.8rem;
  color: var(--dark);
  align-items: flex-start;
  transition: transform 0.2s ease;
}

.service-details li:hover {
  transform: translateX(5px);
}

.service-details i {
  color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.case-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s ease;
  gap: 0.5rem;
}

.case-link i {
  transition: transform 0.2s ease;
}

.case-link:hover {
  gap: 1rem;
}

.case-link:hover i {
  transform: translateX(5px);
}

/* ===== TECH STACK ===== */
.stack-wall {
  background: var(--dark);
  border-radius: 3rem;
  padding: 4rem 2rem;
  color: white;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.stack-wall::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.1;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.1; }
  50% { transform: scale(1.1); opacity: 0.2; }
}

.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.stack-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 60px;
  padding: 0.8rem 2rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
}

.stack-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.stack-item:hover::before {
  left: 100%;
}

.stack-item i {
  color: var(--primary);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.stack-item:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(26,76,255,0.4);
}

.stack-item:hover i {
  transform: rotate(360deg);
}

/* ===== PROCESS TRACK ===== */
.process-track {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 4rem 0;
  position: relative;
}

.process-step {
  flex: 1;
  min-width: 140px;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
}

.process-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -0.8rem;
  top: 30px;
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.process-step:hover:not(:last-child)::after {
  opacity: 1;
  transform: translateX(5px);
}

.step-number {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 auto 1.5rem;
  box-shadow: 0 15px 25px -10px var(--primary);
  border: 3px solid white;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  position: relative;
  overflow: hidden;
}

.step-number::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.process-step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 20px 35px -10px var(--primary);
}

.process-step:hover .step-number::before {
  width: 100%;
  height: 100%;
}

.process-step:hover .step-number {
  color: white;
}

.process-step h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.process-step:hover h4 {
  color: var(--primary);
}

.process-step p {
  color: var(--gray);
  transition: color 0.3s ease;
}

.process-step:hover p {
  color: var(--dark);
}

/* ===== INTEGRATIONS ===== */
.integrations-show {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}

.integrations-show span {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 40px;
  padding: 0.6rem 1.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  position: relative;
  overflow: hidden;
}

.integrations-show span::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(26,76,255,0.1), transparent);
  transition: left 0.5s ease;
}

.integrations-show span:hover::before {
  left: 100%;
}

.integrations-show span i {
  color: var(--primary);
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.integrations-show span:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(26,76,255,0.3);
}

.integrations-show span:hover i {
  color: white;
  transform: rotate(360deg);
}

/* ===== CASES ===== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.cases-grid.cases-collapsed .case-card[data-extra-case="true"] {
  display: none;
}

.cases-toggle-wrap {
  margin-top: 2.5rem;
  text-align: center;
}

.cases-toggle {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  padding: 0.85rem 2.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid rgba(26,76,255,0.25);
  color: var(--primary);
  transition: all 0.35s ease;
  backdrop-filter: blur(6px);
}

.cases-toggle::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(26,76,255,0.15), rgba(127,104,255,0.15));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.cases-toggle span {
  position: relative;
  z-index: 1;
}

.cases-toggle:hover,
.cases-toggle:focus-visible {
  color: white;
  border-color: transparent;
  box-shadow: 0 15px 30px -10px rgba(26,76,255,0.5);
}

.cases-toggle:hover::after,
.cases-toggle:focus-visible::after {
  opacity: 1;
}

.case-card {
  background: white;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  position: relative;
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.case-card:hover::before {
  transform: scaleX(1);
}

.case-card:hover {
  transform: scale(1.02) translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.case-img {
  height: 200px;
  background: linear-gradient(130deg, #1a2e4a, #2b4170);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 3rem;
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  text-align: center;
}

.case-img::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 15s linear infinite;
  z-index: 0;
}

.case-img > i {
  position: relative;
  z-index: 1;
}

.case-img .case-icons {
  position: relative;
  z-index: 1;
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
}

.case-img .case-icons span {
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

.case-img .case-icons i {
  font-size: 0.85rem;
}

.case-content {
  padding: 2rem;
}

.case-content h4 {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.case-card:hover .case-content h4 {
  color: var(--primary);
}

.case-content p {
  color: var(--gray);
  margin: 0.7rem 0 1rem;
}

.case-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.2rem;
}

.case-social a {
  background: rgba(26,76,255,0.08);
  border-radius: 40px;
  padding: 0.5rem 1.2rem;
  font-size: 0.95rem;
  color: var(--primary);
  text-decoration: none;
  border: 1px solid rgba(26,76,255,0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.case-social a i {
  transition: transform 0.3s ease;
}

.case-social a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px -5px rgba(26,76,255,0.4);
}

.case-social a:hover i {
  transform: translateX(3px);
}

/* ===== TELEGRAM BANNER ===== */
.telegram-banner {
  background: linear-gradient(145deg, #1A4CFF, #7F68FF);
  border-radius: 3rem;
  padding: 3rem 2.5rem;
  color: white;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.telegram-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.tg-banner-info {
  width: 100%;
  max-width: 780px;
}

.tg-banner-info i {
  font-size: 3.2rem;
  margin: 0 auto 1rem;
  animation: pulse 2s ease-in-out infinite;
}

.tg-banner-info h3 {
  font-size: 2.1rem;
  margin-bottom: 1rem;
}

.tg-banner-intro,
.tg-banner-sub {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 0.8rem;
}

.tg-banner-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.tg-banner-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  text-transform: none;
  font-size: 1rem;
  letter-spacing: 0.01em;
  background: rgba(255,255,255,0.1);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.tg-banner-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  opacity: 0.7;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.tg-banner-list li::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.tg-banner-list li:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(255,255,255,0.2);
  box-shadow: 0 12px 24px -10px rgba(0,0,0,0.35);
}

.tg-banner-list li:hover::before {
  transform: scale(1.4);
  opacity: 1;
}

.tg-banner-list li:hover::after {
  opacity: 1;
}

.tg-banner-highlight {
  background: rgba(255,255,255,0.12);
  border-radius: 1.8rem;
  padding: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  width: 100%;
  max-width: 780px;
}

.tg-highlight-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 0.8rem;
}

.tg-banner-highlight p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
  font-style: italic;
}

.telegram-banner .btn {
  background: white;
  color: var(--primary);
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}

.telegram-banner .btn:hover {
  box-shadow: 0 15px 35px -10px rgba(255,255,255,0.4);
}

/* ===== TESTIMONIAL ===== */
.testimonial {
  background: var(--primary);
  color: white;
  border-radius: 3rem;
  padding: 3rem 4rem;
  text-align: center;
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
}

.testimonial::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: float 10s ease-in-out infinite;
}

.testimonial i {
  font-size: 4rem;
  opacity: 0.3;
  margin-bottom: 1rem;
}

.testimonial p {
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.4;
  max-width: 800px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}

.testimonial h5 {
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.9;
}

/* ===== LIVE COUNTER ===== */
.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.stat-item h3 span {
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item h3.counting span {
  animation: countUp 0.5s ease-out;
}

@keyframes countUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== SOCIAL PROOF BAR ===== */
.social-proof-bar {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: white;
  padding: 0.8rem 0;
  overflow: hidden;
  position: relative;
}

.social-proof-content {
  display: flex;
  align-items: center;
  animation: scrollProof 20s linear infinite;
  white-space: nowrap;
}

.social-proof-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 2rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.social-proof-item i {
  color: #FFD700;
  font-size: 1.1rem;
}

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

/* ===== PROJECT CALCULATOR ===== */
.calculator-section {
  background: linear-gradient(135deg, #f8faff 0%, #e8f0ff 100%);
  padding: 5rem 0;
  margin: 3rem 0;
}

.calculator-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 2rem;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border: 1px solid rgba(26,76,255,0.1);
}

.calculator-header {
  text-align: center;
  margin-bottom: 3rem;
}

.calculator-header h3 {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

.calculator-header p {
  color: var(--gray);
  font-size: 1.1rem;
}

.calculator-form {
  display: grid;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group select,
.form-group input {
  padding: 1rem;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,76,255,0.1);
}

.calculator-result {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 2rem;
  border-radius: 1.5rem;
  text-align: center;
  margin-top: 2rem;
  transform: scale(0);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.calculator-result.show {
  transform: scale(1);
  opacity: 1;
}

.result-price {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.result-time {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.calculator-cta {
  background: white;
  color: var(--primary);
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.calculator-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ===== VIDEO TESTIMONIALS ===== */
.video-testimonials {
  padding: 5rem 0;
  background: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.video-testimonial {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-light);
}

.video-testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.video-placeholder {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, filter;
}

.video-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-placeholder:hover img {
  transform: scale(1.05);
}

.yt-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 2;
}

.yt-play-btn:hover {
  transform: scale(1.12);
  background: white;
}

.video-placeholder iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-testimonial:hover .video-placeholder {
  transform: translateY(-2px) scale(1.04);
  filter: drop-shadow(0 18px 25px rgba(26,76,255,0.25));
}



.testimonial-content {
  padding: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
}

.author-info h5 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.author-info p {
  font-size: 0.9rem;
  color: var(--gray);
}

.testimonial-text {
  color: var(--dark);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.testimonial-metrics {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.metric-tag {
  background: rgba(26,76,255,0.1);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== MULTI-STEP CTA ===== */
.multi-step-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.cta-bubble {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(26,76,255,0.3);
  transition: all 0.3s ease;
  position: relative;
}

.cta-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(26,76,255,0.4);
}

.cta-bubble.pulse {
  animation: pulseCTA 2s ease-in-out infinite;
}

@keyframes pulseCTA {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(26,76,255,0.3);
  }
  50% {
    box-shadow: 0 10px 50px rgba(26,76,255,0.6);
  }
}

.cta-popup {
  position: absolute;
  bottom: 80px;
  right: 0;
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  width: 350px;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.cta-popup.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.cta-step {
  display: none;
}

.cta-step.active {
  display: block;
}

.cta-step h4 {
  color: var(--dark);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.cta-step p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
}

.cta-btn {
  flex: 1;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
}

.cta-btn-secondary {
  background: var(--border-light);
  color: var(--dark);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.footer {
  background: var(--dark);
  color: #afc1db;
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.05;
  animation: pulse 8s ease-in-out infinite;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.footer h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-links {
  margin-top: 1.5rem;
  display: inline-flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-social-title {
  margin-top: 1.5rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.footer-socials {
  margin-top: 1.2rem;
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.handle-chip {
  --chip-hover-bg: rgba(47,124,255,0.18);
  --chip-hover-border: rgba(47,124,255,0.5);
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: white;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.handle-chip:hover {
  transform: translateY(-2px);
  background: var(--chip-hover-bg);
  border-color: var(--chip-hover-border);
  box-shadow: 0 16px 34px rgba(0,0,0,0.4);
}

.contact-handle {
  margin-bottom: 0.4rem;
}

.social-handle {
  --chip-hover-bg: rgba(255,255,255,0.15);
  --chip-hover-border: rgba(255,255,255,0.45);
  padding: 0.6rem 1.15rem;
  font-size: 0.95rem;
}

.social-handle.telegram {
  --chip-hover-bg: rgba(55,174,226,0.28);
  --chip-hover-border: rgba(55,174,226,0.65);
}

.social-handle.instagram {
  --chip-hover-bg: rgba(247,92,122,0.28);
  --chip-hover-border: rgba(247,92,122,0.6);
}

.footer-link {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid rgba(255,255,255,0.4);
  padding-bottom: 0.15rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.footer-link:hover {
  color: white;
  border-color: white;
}

.footer a {
  color: #afc1db;
  text-decoration: none;
  display: block;
  margin-bottom: 0.7rem;
  transition: all 0.3s ease;
  position: relative;
}

.footer a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.footer a:hover {
  color: white;
  transform: translateX(5px);
}

.footer a:hover::before {
  width: 100%;
}

.footer .contact {
  background: rgba(255,255,255,0.05);
  padding: 1.5rem;
  border-radius: 2rem;
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer .contact:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
}

.contact-handle {
  margin-bottom: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255,255,255,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.contact-handle:hover {
  transform: translateY(-2px);
  background: rgba(47,124,255,0.18);
  border-color: rgba(47,124,255,0.55);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.handle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #37aee2, #1e96c8);
  color: white;
  font-size: 1rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.handle-icon.phone {
  background: linear-gradient(135deg, #34d399, #059669);
}

.handle-text {
  font-size: 1.05rem;
  font-weight: 600;
}

.global-presence {
  margin-top: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  text-align: center;
  font-weight: 600;
}

.copyright {
  text-align: center;
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid #253b54;
  position: relative;
  z-index: 1;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0, 0, 1), transform 0.8s cubic-bezier(0.2, 0, 0, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .container {
    padding: 0 24px;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  .hero h1 {
    font-size: 3.2rem;
  }
}

/* ===== MOBILE CUBE ADAPTATIONS ===== */
@media (max-width: 1000px) {
  .cube-container {
    width: 250px;
    height: 250px;
  }
  
  .cube {
    width: 150px;
    height: 150px;
  }
  
  .cube-face {
    width: 150px;
    height: 150px;
    font-size: 2.5rem;
  }
  
  .cube-face.front { transform: translateZ(75px); }
  .cube-face.back { transform: rotateY(180deg) translateZ(75px); }
  .cube-face.left { transform: rotateY(-90deg) translateZ(75px); }
  .cube-face.right { transform: rotateY(90deg) translateZ(75px); }
  .cube-face.top { transform: rotateX(90deg) translateZ(75px); }
  .cube-face.bottom { transform: rotateX(-90deg) translateZ(75px); }
}

@media (max-width: 700px) {
  .cube-container {
    width: 200px;
    height: 200px;
  }
  
  .cube {
    width: 120px;
    height: 120px;
  }
  
  .cube-face {
    width: 120px;
    height: 120px;
    font-size: 2rem;
    border-radius: 10px;
  }
  
  .cube-face.front { transform: translateZ(60px); }
  .cube-face.back { transform: rotateY(180deg) translateZ(60px); }
  .cube-face.left { transform: rotateY(-90deg) translateZ(60px); }
  .cube-face.right { transform: rotateY(90deg) translateZ(60px); }
  .cube-face.top { transform: rotateX(90deg) translateZ(60px); }
  .cube-face.bottom { transform: rotateX(-90deg) translateZ(60px); }
}

@media (max-width: 480px) {
  .cube-container {
    width: 180px;
    height: 180px;
  }
  
  .cube {
    width: 100px;
    height: 100px;
  }
  
  .cube-face {
    width: 100px;
    height: 100px;
    font-size: 1.5rem;
    border-radius: 8px;
  }
  
  .cube-face.front { transform: translateZ(50px); }
  .cube-face.back { transform: rotateY(180deg) translateZ(50px); }
  .cube-face.left { transform: rotateY(-90deg) translateZ(50px); }
  .cube-face.right { transform: rotateY(90deg) translateZ(50px); }
  .cube-face.top { transform: rotateX(90deg) translateZ(50px); }
  .cube-face.bottom { transform: rotateX(-90deg) translateZ(50px); }
}

@media (max-width: 1000px) {
  .hero-grid { 
    grid-template-columns: 1fr; 
    text-align: center;
    gap: 2rem;
  }
  
  .hero-image {
    height: 300px;
    margin-top: 2rem;
  }
  
  .hero-image i {
    font-size: 6rem;
  }
  
  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .stat-item {
    min-width: 120px;
  }
  
  .cases-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 1.5rem;
  }
  
  .footer-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 2rem;
    text-align: left;
  }
  
  .header-inner { 
    flex-wrap: wrap; 
    height: auto; 
    padding: 1rem 0; 
  }
  
  .nav { 
    flex-wrap: wrap; 
    gap: 1rem; 
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
  }
  
  .nav a {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
  
  .lang-switch { 
    margin-left: 0; 
    margin-top: 0.5rem;
  }
  
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .integrations-show {
    gap: 1rem;
  }
  
  .integrations-show span {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 700px) {
  .container {
    padding: 0 20px;
  }
  
  h2 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .subhead {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .hero {
    padding: 3rem 0 4rem;
  }
  
  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  /* Center buttons on mobile */
  .hero .fade-in > div[style*="display: flex"] {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  /* Move cube before stats on mobile */
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  
  .hero-image {
    order: -1; /* Move cube to top */
    margin-bottom: 1rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .stat-item {
    width: 100%;
    max-width: 200px;
    padding: 1.2rem;
  }
  
  .stat-item h3 {
    font-size: 2rem;
  }
  
  .hero-image {
    height: 250px;
    margin-top: 0;
  }
  
  .hero-image i {
    font-size: 5rem;
  }
  
  .btn {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 1.8rem;
    border-radius: 24px;
  }
  
  .service-card h3 {
    font-size: 1.6rem;
  }
  
  .service-card p {
    font-size: 0.95rem;
  }
  
  .service-icon {
    font-size: 2.5rem;
  }
  
  .feature-tags {
    gap: 0.4rem;
  }
  
  .feature-tags span {
    padding: 0.3rem 1rem;
    font-size: 0.85rem;
  }
  
  .process-track { 
    flex-direction: column; 
    align-items: center;
    gap: 2rem;
  }
  
  .process-step {
    width: 100%;
    max-width: 300px;
  }
  
  .process-step:not(:last-child)::after {
    content: '↓';
    right: auto;
    left: 50%;
    top: auto;
    bottom: -2rem;
    transform: translateX(-50%);
    font-size: 1.5rem;
  }
  
  .step-number {
    width: 70px;
    height: 70px;
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .process-step h4 {
    font-size: 1.3rem;
  }
  
  .process-step p {
    font-size: 0.9rem;
  }
  
  .stack-wall {
    padding: 3rem 1.5rem;
    border-radius: 2rem;
  }
  
  .stack-grid {
    gap: 1rem;
  }
  
  .stack-item {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .stack-item i {
    font-size: 1rem;
  }
  
  .integrations-show {
    gap: 0.8rem;
    justify-content: center;
  }
  
  .integrations-show span {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 30px;
  }
  
  .integrations-show span i {
    font-size: 1.1rem;
  }
  
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .case-card {
    border-radius: 1.5rem;
  }
  
  .case-img {
    height: 180px;
    font-size: 2.5rem;
  }
  
  .case-content {
    padding: 1.5rem;
  }
  
  .case-content h4 {
    font-size: 1.4rem;
  }
  
  .case-content p {
    font-size: 0.9rem;
  }
  
  .case-social {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
  
  .case-social a {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
  
  .testimonial {
    padding: 2.5rem 2rem;
    margin: 3rem 0;
    border-radius: 2rem;
  }
  
  .testimonial i {
    font-size: 3rem;
  }
  
  .testimonial p {
    font-size: 1.3rem;
    line-height: 1.5;
  }
  
  .testimonial h5 {
    font-size: 1.1rem;
  }
  
  .telegram-banner {
    padding: 2.5rem 2rem;
    margin-top: 3rem;
    border-radius: 2rem;
  }
  
  .telegram-banner i {
    font-size: 3rem;
  }
  
  .telegram-banner h3 {
    font-size: 1.6rem;
  }
  
  .telegram-banner p {
    font-size: 1rem;
    margin: 0.8rem auto;
  }
  
  .footer {
    padding: 3rem 0 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .footer a {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .contact {
    padding: 1.2rem;
  }
  
  .contact .telegram {
    font-size: 1.5rem;
  }
  
  .copyright {
    font-size: 0.85rem;
    padding-top: 2rem;
    margin-top: 2rem;
  }
  
  .header {
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  .header-inner {
    padding: 0.8rem 0;
    align-items: center;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .nav {
    display: none !important;
  }
  
  .lang-switch {
    position: relative;
    margin-left: auto;
    top: 0;
    right: 0;
  }
  
  .lang-switch button {
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  h2 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }
  
  .subhead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero {
    padding: 2rem 0 3rem;
  }
  
  .hero h1 {
    font-size: 1.9rem;
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  /* Center buttons on small mobile */
  .hero .fade-in > div[style*="display: flex"] {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
  }
  
  /* Keep cube at top on small mobile */
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .hero-image {
    order: -1;
    margin-bottom: 0.5rem;
  }
  
  .hero-image {
    height: 200px;
  }
  
  .hero-image i {
    font-size: 4rem;
  }
  
  .btn {
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .service-card {
    padding: 1.5rem;
    border-radius: 20px;
  }
  
  .service-card h3 {
    font-size: 1.4rem;
  }
  
  .service-card p {
    font-size: 0.9rem;
  }
  
  .service-icon {
    font-size: 2.2rem;
  }
  
  .feature-tags span {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .step-number {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }
  
  .process-step h4 {
    font-size: 1.2rem;
  }
  
  .process-step p {
    font-size: 0.85rem;
  }
  
  .stack-wall {
    padding: 2rem 1rem;
  }
  
  .stack-item {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .integrations-show span {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }
  
  .case-img {
    height: 150px;
    font-size: 2rem;
  }
  
  .case-content {
    padding: 1.2rem;
  }
  
  .case-content h4 {
    font-size: 1.2rem;
  }
  
  .case-content p {
    font-size: 0.85rem;
  }
  
  .testimonial {
    padding: 2rem 1.5rem;
  }
  
  .testimonial p {
    font-size: 1.1rem;
  }
  
  .telegram-banner {
    padding: 2rem 1.5rem;
  }
  
  .telegram-banner h3 {
    font-size: 1.4rem;
  }
  
  .telegram-banner p {
    font-size: 0.9rem;
  }
  
  .footer {
    padding: 2.5rem 0 1.5rem;
  }
  
  .footer-grid {
    gap: 1.5rem;
  }
  
  .contact {
    padding: 1rem;
  }
  
  .contact .telegram {
    font-size: 1.3rem;
  }
  
  .copyright {
    font-size: 0.8rem;
  }
  
  .logo {
    font-size: 1.3rem;
  }
  
  .lang-switch button {
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== TOUCH OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .service-card {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(26,76,255,0.1);
  }
  
  .nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .lang-switch button {
    min-height: 40px;
    min-width: 40px;
  }
  
  .stack-item {
    min-height: 44px;
  }
  
  .integrations-show span {
    min-height: 40px;
  }
  
  .case-social a {
    min-height: 40px;
  }
}

/* ===== FOCUS STATES ===== */
.btn:focus,
.nav a:focus,
.lang-switch button:focus,
.service-card:focus,
.case-social a:focus,
.mobile-menu-btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===== LEAD FORM SECTION (AIDA) ===== */
.lead-form-section {
  padding: 5rem 0;
}

/* --- Section header --- */
.lead-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.lead-section-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.4rem 1.2rem;
  border-radius: 2rem;
  margin-bottom: 1.2rem;
}

.lead-section-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

.lead-section-header p {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* --- Two-col layout --- */
.lead-form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* --- Left col: pain + benefits + proof --- */
.lead-pain-block {
  margin-bottom: 1.5rem;
}

.lead-pain-block h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.lead-pain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lead-pain-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.5;
}

.lead-pain-list li i {
  color: #ef4444;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.lead-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.4rem 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lead-divider::before,
.lead-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary));
}

.lead-divider::after {
  background: linear-gradient(to left, transparent, var(--primary));
}

.lead-form-info > p {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.lead-form-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.lead-form-benefits li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--dark);
  font-size: 1rem;
}

.lead-form-benefits li i {
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.lead-form-card {
  background: white;
  border-radius: 2rem;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(26,76,255,0.12);
  border: 1px solid rgba(26,76,255,0.08);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.lead-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lead-field input[type="text"],
.lead-field input[type="tel"] {
  padding: 0.9rem 1.2rem;
  border: 2px solid var(--border-light);
  border-radius: 0.8rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--dark);
  background: #fafbff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.lead-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,76,255,0.1);
  background: white;
}

.lead-field input.error {
  border-color: #e53e3e;
}

.lead-messenger-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
}

.messenger-options {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.messenger-option {
  cursor: pointer;
}

.messenger-option input[type="radio"] {
  display: none;
}

.messenger-option span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border: 2px solid var(--border-light);
  border-radius: 2rem;
  font-size: 0.95rem;
  color: var(--gray);
  transition: all 0.2s ease;
  background: #fafbff;
  white-space: nowrap;
}

.messenger-option input:checked + span {
  border-color: var(--primary);
  background: rgba(26,76,255,0.07);
  color: var(--primary);
  font-weight: 600;
}

.messenger-option:hover span {
  border-color: var(--primary);
  color: var(--primary);
}

.lead-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  margin-top: 0.5rem;
  border-radius: 0.8rem;
}

.lead-success {
  text-align: center;
  padding: 1rem 0;
}

.lead-success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.lead-success h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.7rem;
}

.lead-success p {
  color: var(--gray);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.lead-tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.lead-tg-motivation {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 1rem !important;
}

.lead-channel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary);
  border-radius: 2rem;
  transition: all 0.2s ease;
}

.lead-channel-link:hover {
  background: var(--primary);
  color: white;
}

/* Alt Telegram Banner */
.tg-bottom-section {
  padding: 4rem 0;
}

/* --- Lead form card header --- */
.lead-form-card {
  background: white;
  border-radius: 2rem;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(26,76,255,0.12);
  border: 1px solid rgba(26,76,255,0.08);
}

.lead-form-card-header {
  margin-bottom: 1.5rem;
}

.lead-form-urgency {
  background: linear-gradient(135deg, rgba(26,76,255,0.07), rgba(127,104,255,0.07));
  border: 1px solid rgba(26,76,255,0.15);
  border-radius: 0.8rem;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
}

/* --- Privacy note --- */
.lead-privacy {
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray);
  margin-top: 0.5rem !important;
}

/* --- Success hint --- */
.lead-success-hint {
  font-size: 0.88rem;
  color: var(--gray);
  margin-top: 0.8rem !important;
}

/* --- Social proof block --- */
.lead-social-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.8rem;
  padding: 1rem 1.2rem;
  background: rgba(26,76,255,0.04);
  border-radius: 1rem;
  border: 1px solid rgba(26,76,255,0.08);
}

.lead-proof-avatars {
  display: flex;
  align-items: center;
}

.proof-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  margin-left: -8px;
  flex-shrink: 0;
}

.proof-avatar:first-child {
  margin-left: 0;
}

.proof-more {
  background: var(--dark) !important;
  font-size: 0.65rem;
}

.lead-social-proof p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.4;
  margin: 0;
}

/* ===== TG AIDA BANNER ===== */
.tg-aida-wrap {
  max-width: 960px;
  margin: 0 auto;
}

.tg-aida-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.tg-aida-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0088cc, #00b4d8);
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.2rem;
}

.tg-aida-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 0.7rem;
}

.tg-aida-header p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

/* --- Three value cards --- */
.tg-value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.tg-value-card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 1.5rem;
  padding: 1.8rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tg-value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.tg-value-icon {
  font-size: 2.2rem;
  margin-bottom: 0.9rem;
}

.tg-value-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.tg-value-card p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.5;
}

/* --- Bonus row --- */
.tg-bonus-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(135deg, rgba(26,76,255,0.06), rgba(127,104,255,0.06));
  border: 1px solid rgba(26,76,255,0.12);
  border-radius: 1.5rem;
  padding: 2rem 2.5rem;
}

.tg-bonus-content {
  flex: 1;
}

.tg-bonus-label {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.tg-bonus-content p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

.tg-aida-btn {
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .lead-section-header h2 { font-size: 1.8rem; }
  .lead-form-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .messenger-options { gap: 0.6rem; }
  .tg-value-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .tg-bonus-row {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  .tg-aida-btn { width: 100%; justify-content: center; }
  .tg-aida-header h2 { font-size: 1.6rem; }
}

/* ===== PRINT STYLES ===== */
@media print {
  .header,
  .footer,
  .telegram-banner,
  .lang-switch {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .service-card,
  .case-card {
    break-inside: avoid;
  }
}
