/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; }

/* Header navigation */
.header-nav {
  display: none;
  align-items: center;
  gap: 24px;
}
.nav-link {
  color: #94A3B8;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: #F8FAFC; }
.header-cta { display: none; }
.header-phone { display: none; color: #ffffff !important; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color 0.2s; }
.header-phone:hover { color: #06B6D4 !important; }
.hamburger-btn { display: flex; }

@media (min-width: 768px) {
  .header-nav { display: flex; }
  .header-cta { display: flex; }
  .header-phone { display: inline; }
  .hamburger-btn { display: none; }
}

/* Background patterns */
.dark-grid-bg {
  background-color: #0B1220;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-glow {
  position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Metric cards (glass morphism) */
.metric-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 28px 32px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.4);
}
.metric-value {
  font-size: 40px; font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #06B6D4 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.metric-label { font-size: 14px; color: #94A3B8; margin-top: 6px; font-weight: 500; }

/* Scroll reveal animation */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Card hover lift */
.card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-hover:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12); }

/* Service cards */
.service-card { border-top: 3px solid transparent; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; }
.service-card:hover { border-top-color: #2563EB; transform: translateY(-6px); box-shadow: 0 20px 40px rgba(37,99,235,0.1); }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #2563EB; color: #fff;
  padding: 16px 32px; border-radius: 12px;
  font-weight: 700; font-size: 16px;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #F8FAFC;
  padding: 15px 32px; border-radius: 12px;
  font-weight: 600; font-size: 16px;
  border: 1.5px solid rgba(248, 250, 252, 0.3); cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  text-decoration: none;
}
.btn-secondary:hover { background: rgba(248, 250, 252, 0.08); border-color: rgba(248, 250, 252, 0.6); transform: translateY(-2px); }

/* Forms */
.form-group { position: relative; margin-bottom: 14px; }
.form-group input, .form-group select {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid #E2E8F0; border-radius: 12px;
  font-family: 'Inter', sans-serif; font-size: 15px;
  background: #fff; color: #0F172A;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; appearance: none;
}
.form-group input:focus, .form-group select:focus {
  border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-group.has-error input, .form-group.has-error select { border-color: #EF4444; }
.field-error { display: none; color: #EF4444; font-size: 12px; margin-top: 4px; }
.form-group.has-error .field-error { display: block; }
.hidden-field { position: absolute; left: -9999px; }

.consent-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.consent-row input[type=checkbox] { margin-top: 3px; flex-shrink: 0; accent-color: #2563EB; width: 16px; height: 16px; }
.consent-row label { font-size: 13px; color: #94A3B8; line-height: 1.5; }
.consent-row label a { color: #2563EB; text-decoration: underline; }

/* Dark form fields */
.dark-form .form-group input,
.dark-form .form-group select {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  color: #F8FAFC;
}
.dark-form .form-group input::placeholder { color: #94A3B8; }
.dark-form .form-group input:focus,
.dark-form .form-group select:focus {
  border-color: #2563EB; background: rgba(255,255,255,0.1);
}
.dark-form .form-group select option { background: #111827; color: #F8FAFC; }
.dark-form .consent-row label { color: #64748B; }

/* Success message */
.success-message { text-align: center; padding: 32px 16px; }
.success-icon { width: 64px; height: 64px; background: rgba(37,99,235,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #2563EB; margin: 0 auto 16px; }
.success-message h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.success-message p { color: #64748B; font-size: 15px; }

/* Submit button loading state */
.submit-btn { width: 100%; position: relative; }
.submit-btn.loading { pointer-events: none; }
.submit-btn.loading::after {
  content: ''; position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* Popup / Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-card {
  background: #fff; border-radius: 24px;
  max-width: 480px; width: 100%;
  padding: 40px; position: relative;
  max-height: 90vh; overflow-y: auto;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity:0; transform:scale(0.95) translateY(16px); } to { opacity:1; transform:scale(1) translateY(0); } }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: #F1F5F9; border: none; border-radius: 50%;
  cursor: pointer; font-size: 20px; color: #64748B;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: #E2E8F0; }

/* FAQ Accordion */
.faq-item { border-bottom: 1px solid #E2E8F0; }
.faq-btn {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; padding: 22px 0;
  background: none; border: none; cursor: pointer;
  text-align: left; font-family: 'Inter', sans-serif;
  font-size: 17px; font-weight: 600; color: #0F172A;
}
.faq-icon { flex-shrink: 0; width: 28px; height: 28px; background: #F1F5F9; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #2563EB; transition: transform 0.3s, background 0.2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: rgba(37,99,235,0.1); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-body-inner { padding: 0 0 20px; color: #64748B; font-size: 15px; line-height: 1.7; }
.faq-item.open .faq-body { max-height: 300px; }

/* Sticky header */
#header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background 0.3s, box-shadow 0.3s; }
#header.scrolled { background: rgba(11, 18, 32, 0.95); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,0.06); }

/* Mobile sticky CTA */
#mobile-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 99; padding: 12px 16px; background: rgba(11,18,32,0.96); backdrop-filter: blur(8px); border-top: 1px solid rgba(255,255,255,0.08); display: none; }

/* Process step connector */
.process-connector { flex: 1; height: 2px; background: linear-gradient(90deg, #2563EB, #06B6D4); margin: 0 -1px; position: relative; top: -20px; }

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th { padding: 16px 20px; text-align: left; font-size: 14px; font-weight: 600; color: #94A3B8; text-transform: uppercase; letter-spacing: 0.05em; }
.compare-table td { padding: 16px 20px; font-size: 15px; border-top: 1px solid #F1F5F9; }
.compare-table tr:hover td { background: #F8FAFC; }
.compare-table .col-us { background: rgba(37, 99, 235, 0.04); }
.compare-table .col-us-header { color: #2563EB; font-weight: 700; }
.check-yes { color: #2563EB; font-weight: 600; }
.check-no { color: #94A3B8; }
.check-partial { color: #F59E0B; }

/* Counter animation */
.counter { display: inline-block; }

/* Section labels */
.section-label { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #2563EB; margin-bottom: 12px; }

/* Growth bars */
.growth-bar-track { background: #E2E8F0; border-radius: 99px; height: 8px; overflow: hidden; }
.growth-bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2563EB, #06B6D4); width: 0; transition: width 1.2s ease; }

/* Case cards */
.case-before-after { display: flex; align-items: center; gap: 12px; }
.case-metric { font-size: 22px; font-weight: 800; }
.case-metric.before { color: #94A3B8; text-decoration: line-through; }
.case-metric.after { color: #2563EB; }
.case-growth { font-size: 32px; font-weight: 900; color: #10B981; }

/* Form hint */
.form-hint { text-align: center; font-size: 13px; color: #94A3B8; margin-top: 10px; }

/* Team section */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.team-card {
  background: #F8FAFC; border-radius: 20px; padding: 32px 24px;
  border: 1px solid #E2E8F0; text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.team-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(37,99,235,0.1); border-color: #2563EB; }
.team-avatar-wrap { display: flex; justify-content: center; margin-bottom: 16px; }
.team-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; box-shadow: 0 8px 24px rgba(37,99,235,0.2); border: 3px solid #fff; }
.team-name { font-size: 16px; font-weight: 800; color: #0F172A; margin-bottom: 10px; }
.team-desc { font-size: 13px; color: #64748B; line-height: 1.7; }

/* Case chart infographic */
.case-chart { background: #F8FAFC; border-radius: 12px; padding: 12px 16px 8px; }
.case-chart-label { display: flex; justify-content: space-around; font-size: 11px; color: #94A3B8; font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.case-chart-bars { display: flex; justify-content: space-around; align-items: flex-end; height: 72px; gap: 20px; }
.case-bar-wrap { flex: 1; display: flex; align-items: flex-end; justify-content: center; height: 100%; }
.case-bar {
  width: 40px; border-radius: 6px 6px 0 0;
  height: var(--h, 50%);
  animation: barGrow 0.9s cubic-bezier(.22,.68,0,1.2) both;
}
@keyframes barGrow { from { height: 0; } to { height: var(--h, 50%); } }
.before-bar { background: #E2E8F0; }
.after-bar { background: linear-gradient(180deg, #2563EB, #06B6D4); }
.case-chart-vals { display: flex; justify-content: space-around; font-size: 11px; color: #64748B; font-weight: 700; margin-top: 6px; }

/* Pricing icons */
.pricing-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }

/* Review card stars */
.stars { color: #F59E0B; font-size: 16px; letter-spacing: 2px; }

/* Tag chips */
.tag { display: inline-block; padding: 4px 12px; background: rgba(37,99,235,0.08); color: #2563EB; border-radius: 99px; font-size: 12px; font-weight: 600; }

/* Pricing */
.pricing-card { border-radius: 20px; transition: transform 0.3s, box-shadow 0.3s; }
.pricing-card:hover { transform: translateY(-6px); }
.pricing-card.recommended { border: 2px solid #2563EB; box-shadow: 0 16px 48px rgba(37,99,235,0.18); }
.pricing-badge { background: linear-gradient(135deg, #2563EB, #06B6D4); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.08em; }
.pricing-feature { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 14px; color: #374151; }
.pricing-feature::before { content: '✓'; color: #2563EB; font-weight: 700; flex-shrink: 0; }

/* Divider with gradient */
.gradient-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(37,99,235,0.3), transparent); }

/* Trust line */
.trust-line { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.trust-line-item { display: flex; align-items: center; gap: 8px; color: #94A3B8; font-size: 14px; font-weight: 500; }
.trust-dot { width: 4px; height: 4px; background: #2563EB; border-radius: 50%; }

/* Number highlight */
.number-highlight { font-size: 56px; font-weight: 900; line-height: 1; background: linear-gradient(135deg, #2563EB, #06B6D4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Gradient text */
.gradient-text { background: linear-gradient(135deg, #2563EB, #06B6D4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Telegram button */

/* Scroll to top button */
#scroll-top {
  position: fixed;
  bottom: 172px;
  right: 42px;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2563EB;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.45);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
}
#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#scroll-top:hover { background: #1d4ed8; transform: translateY(-2px); }
#scroll-top:active { transform: translateY(0); }
@media (max-width: 768px) {
  #scroll-top { bottom: 172px; right: 16px; width: 44px; height: 44px; }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 300;
  width: calc(100% - 48px);
  max-width: 720px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(17, 24, 39, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.cookie-banner.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.cookie-banner.hiding {
  opacity: 0;
  transform: translateX(-50%) translateY(120px);
}
.cookie-text {
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.6;
  flex: 1;
  margin: 0;
}
.cookie-link {
  color: #06B6D4;
  text-decoration: none;
  white-space: nowrap;
  margin-left: 4px;
}
.cookie-link:hover { text-decoration: underline; }
.cookie-btn {
  flex-shrink: 0;
  background: #2563EB;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, transform 0.15s;
}
.cookie-btn:hover { background: #1d4ed8; transform: scale(1.03); }

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    bottom: 80px;
    padding: 16px 18px;
  }
  .cookie-btn { width: 100%; text-align: center; padding: 12px; }
}

/* Hidden */
.hidden { display: none !important; }

/* Mobile menu */
.mobile-menu { display: none; }
.mobile-menu.open { display: block; }

/* For whom cards */
.for-whom-card {
  border-top: 3px solid #2563EB;
  border-radius: 20px;
  background: #fff;
  padding: 32px 28px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.for-whom-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(37,99,235,0.12); }

/* Problem list */
.problem-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid #F1F5F9; }
.problem-item:last-child { border-bottom: none; }
.problem-x { width: 22px; height: 22px; background: rgba(239,68,68,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #EF4444; font-size: 12px; font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* Process steps grid */
.process-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .process-steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process-steps-grid { grid-template-columns: repeat(5, 1fr); } }

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

/* Process card */
.process-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  border: 1px solid #E2E8F0;
  animation: cardIn 0.5s ease both;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.process-card[data-step="1"] { animation-delay: 0.1s; }
.process-card[data-step="2"] { animation-delay: 0.2s; }
.process-card[data-step="3"] { animation-delay: 0.3s; }
.process-card[data-step="4"] { animation-delay: 0.4s; }
.process-card[data-step="5"] { animation-delay: 0.5s; }
.process-card:hover {
  box-shadow: 0 16px 40px rgba(37,99,235,0.12);
  border-color: #2563EB;
}

/* Big faded step number in background */
.process-card-num {
  position: absolute;
  top: -10px;
  right: 12px;
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #2563EB, #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.12;
  user-select: none;
  pointer-events: none;
}

/* Icon */
.process-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563EB, #06B6D4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}

.process-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
  line-height: 1.3;
}
.process-card-text {
  font-size: 13px;
  color: #64748B;
  line-height: 1.7;
}

/* Solution pillars */
.solution-pillar { border-left: 4px solid #2563EB; padding: 28px 28px 28px 28px; border-radius: 0 20px 20px 0; background: #fff; box-shadow: 0 4px 24px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; }
.solution-pillar:hover { transform: translateX(4px); box-shadow: 0 12px 32px rgba(37,99,235,0.1); }

/* Month chart bars */
.month-bar-container { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.month-bar { width: 36px; background: linear-gradient(180deg, #06B6D4 0%, #2563EB 100%); border-radius: 6px 6px 0 0; transition: height 1.2s ease; height: 0; }
.month-label { font-size: 11px; color: #94A3B8; font-weight: 500; }

/* Avatar placeholders */
.avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #2563EB, #06B6D4); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 18px; flex-shrink: 0; }

/* Responsive */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .metric-cards-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
  .metric-value { font-size: 28px; }
  .metric-card { padding: 16px 20px; }
  .process-connector { display: none; }
  #mobile-cta { display: block; }
  .compare-table th, .compare-table td { padding: 10px 12px; font-size: 13px; }
}
@media (min-width: 769px) {
  #mobile-cta { display: none !important; }
}

/* Hamburger icon */
.hamburger { width: 24px; height: 18px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; }
.hamburger span { display: block; height: 2px; background: #F8FAFC; border-radius: 2px; transition: all 0.3s; }
