/* Go4Sales — базові стилі */

:root {
  --dark: #101827;
  --dark-card: #161F30;
  --light-bg: #F5F7F7;
  --white: #FFFFFF;
  --accent: #19D3AE;
  --accent-dark: #12B091;
  --line: #DCE2E3;
  --text-muted: #64748B;
  --radius: 16px;
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: var(--light-bg);
  color: var(--dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
}

.logo-mark svg { width: 100%; height: 100%; display: block; }

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.main-nav a:hover { opacity: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #06231C;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.28);
}

.btn-ghost:hover { border-color: rgba(255,255,255,0.6); }

.header-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
}

/* Hero */

.hero {
  background: var(--dark);
  color: var(--white);
  padding: 96px 0 80px;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  position: relative;
  overflow: hidden;
}

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

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(27, 212, 168, 0.35);
  background: rgba(27, 212, 168, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 700;
}

.hero h1 span { color: var(--accent); }

.hero p.lead {
  font-size: 18px;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  margin: 0 0 32px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-scheme {
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px;
}

.scheme-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.scheme-row:last-child { margin-bottom: 0; }

.scheme-node {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 10px;
}

.scheme-node .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.scheme-arrow {
  text-align: center;
  color: var(--accent);
  font-size: 16px;
  margin: -4px 0;
}

/* Sections generic */

section { padding: 88px 0; }

.section-light { background: var(--light-bg); }

.section-white { background: var(--white); }

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head .eyebrow-dark {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  display: block;
}

.section-head h2 {
  font-size: 32px;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0;
}

.section-dark .section-head p { color: rgba(255,255,255,0.68); }

/* Approach */

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.approach-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.approach-card h3 {
  font-size: 17px;
  margin: 0 0 10px;
}

.approach-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.diagnosis-quote {
  margin-top: 32px;
  background: var(--dark-card);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  font-size: 19px;
  line-height: 1.5;
  border-left: 4px solid var(--accent);
}

.diagnosis-quote strong { color: var(--accent); }

/* What we do */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.what-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.what-card .num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 12px;
  display: block;
}

.what-card h3 {
  font-size: 18px;
  margin: 0 0 10px;
}

.what-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
}

/* Ecosystem */

.eco-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.eco-group {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.eco-group h4 {
  margin: 0 0 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--light-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}

.eco-note {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Process */

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 22px;
}

.process-step .step-num {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: #06231C;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.process-step h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.process-step p {
  margin: 0;
  font-size: 13.5px;
  color: rgba(255,255,255,0.66);
}

/* Case Tuti */

.case-wrap {
  background: var(--dark-card);
  border-radius: 24px;
  padding: 48px;
  border: 1px solid rgba(255,255,255,0.08);
}

.case-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.case-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.case-top h3 { font-size: 26px; margin: 0; color: var(--white); }

.case-logo-badge {
  flex-shrink: 0;
  background: #fff;
  border-radius: 14px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.case-logo-badge img {
  display: block;
  height: 40px;
  width: auto;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.case-gallery-item {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  aspect-ratio: 1 / 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.3);
}

.case-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px;
}

.stat-card .stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

.case-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.case-body p {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  margin: 0 0 14px;
}

.mistake-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mistake-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14.5px;
  color: rgba(255,255,255,0.78);
}

.mistake-list li:last-child { border-bottom: none; }

.mistake-list .amount {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.mistake-total {
  margin-top: 14px;
  font-size: 14.5px;
  color: rgba(255,255,255,0.9);
}

/* Team */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #06231C;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
}

.avatar-photo {
  background: var(--line);
}

.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card h3 {
  font-size: 16px;
  margin: 0 0 2px;
}

.team-card .role {
  font-size: 13px;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 10px;
}

.team-card p.bio {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

.team-note {
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Lead form */

.form-section {
  background: var(--dark);
  color: var(--white);
}

.form-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.form-side h2 { font-size: 30px; margin: 0 0 16px; }

.form-side p { color: rgba(255,255,255,0.7); font-size: 15.5px; margin: 0 0 20px; }

.form-perks { list-style: none; padding: 0; margin: 0; }

.form-perks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 12px;
}

.form-perks li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}

.lead-form {
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 32px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--white);
  font-family: inherit;
  font-size: 14.5px;
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,0.35); }

.field textarea { resize: vertical; min-height: 90px; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-msg {
  margin-top: 14px;
  font-size: 14px;
  display: none;
}

.form-msg.show { display: block; }

.form-msg.success { color: var(--accent); }

.form-msg.error { color: #FF8A8A; }

.form-fallback {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* Footer */

.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13.5px;
}

.footer-inner a { color: var(--accent); }

/* Responsive */

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .eco-groups { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .case-body { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .form-wrap { grid-template-columns: 1fr; }
}

/* ===== Живі елементи: анімації, hover, sticky CTA ===== */

/* Навмисно НЕ ховаємо контент нижче першого екрана через opacity:0
   до появи в полі зору (типовий "scroll reveal" підхід). У тестах цей
   прийом іноді призводив до того, що блок так і лишався невидимим
   (браузер не перемальовував елемент після transition/IntersectionObserver
   у певних умовах) — для сайту, головна мета якого зібрати заявку,
   такий ризик неприйнятний. Увесь контент завжди видимий одразу;
   "живість" сайту дають лічильники, hover-ефекти, пульсація CTA та
   sticky-панель нижче — жодна з них не ховає інформацію за замовчуванням.

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(25, 211, 174, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(25, 211, 174, 0); }
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(25, 211, 174, 0.4); }
  70% { box-shadow: 0 0 0 14px rgba(25, 211, 174, 0); }
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -22px) scale(1.06); }
}

@keyframes drawArrow {
  from { stroke-dashoffset: var(--dash, 300); }
  to { stroke-dashoffset: 0; }
}

/* Кнопки: жвавіший primary CTA */

.btn-primary {
  position: relative;
}

.btn-primary.btn-cta {
  animation: ctaPulse 2.6s ease-in-out infinite;
}

.btn-primary.btn-cta:hover { animation: none; }

.btn svg { transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }

/* Live-індикатор у hero */

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(25, 211, 174, 0.35);
  background: rgba(25, 211, 174, 0.08);
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* Довіра-чіпи під hero CTA */

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
}

.trust-row span {
  font-size: 13.5px;
  color: rgba(255,255,255,0.62);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-row span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Hero: декоративні плями й стрілка на фоні */

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-blob-1 {
  width: 320px;
  height: 320px;
  background: rgba(25, 211, 174, 0.16);
  top: -80px;
  right: -60px;
  animation: floatBlob 9s ease-in-out infinite;
}

.hero-blob-2 {
  width: 240px;
  height: 240px;
  background: rgba(25, 211, 174, 0.1);
  bottom: -60px;
  left: 10%;
  animation: floatBlob 11s ease-in-out infinite reverse;
}

.hero .container { position: relative; z-index: 1; }

.hero-arrow-deco {
  position: absolute;
  right: 4%;
  top: 12%;
  width: 120px;
  height: 120px;
  opacity: 0.16;
  z-index: 0;
  animation: floatBlob 8s ease-in-out infinite;
}

/* Hover-жвавість карток */

.approach-card,
.what-card,
.eco-group,
.team-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.approach-card:hover,
.what-card:hover,
.eco-group:hover,
.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(16, 24, 39, 0.09);
  border-color: rgba(25, 211, 174, 0.45);
}

.process-step,
.stat-card {
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.process-step:hover,
.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(25, 211, 174, 0.4);
}

.tag { transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease; }

.tag:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-2px);
}

/* Sticky мобільний CTA-бар */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 16px;
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.25);
}

.sticky-cta.show { transform: translateY(0); }

.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: var(--container);
  margin: 0 auto;
}

.sticky-cta-inner span {
  color: var(--white);
  font-size: 13.5px;
  font-weight: 500;
  display: none;
}

.sticky-cta .btn { width: 100%; justify-content: center; }

@media (min-width: 480px) {
  .sticky-cta-inner span { display: block; }
  .sticky-cta .btn { width: auto; }
}

@media (min-width: 900px) {
  .sticky-cta { display: none; }
}

/* Анімований лічильник у кейсі */

.stat-card .stat-value { font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 32px; }
  section { padding: 64px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .case-wrap { padding: 28px 20px; }
  .section-head h2 { font-size: 26px; }
}
