/* LeadCore — премиальный B2B SaaS лендинг */

:root {
  --blue: #0051a4;
  --light-blue: #00bbf2;
  --violet: #6e2c91;
  --light-violet: #7e62ab;
  --black: #000001;
  --gray: #b2bade;
  --white: #ffffff;

  --bg-dark: #0a0c12;
  --bg-section: #11141f;
  --bg-card: rgba(178, 186, 222, 0.06);
  --border: rgba(178, 186, 222, 0.2);
  --text: #e8eaef;
  --text-muted: #8a8fa8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--light-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Контейнер */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Секции */
section {
  padding: 4rem 0;
}

section:nth-of-type(even) {
  background: var(--bg-section);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  max-width: 42rem;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--light-blue);
  color: var(--black);
}

.btn-primary:hover {
  background: #00a8e0;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(0, 187, 242, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--gray);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--light-violet);
  color: var(--white);
  text-decoration: none;
}

/* Карточки */
.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(0, 187, 242, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 0.35rem;
}

.card-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

/* ——— Hero ——— */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 0;
  background: var(--bg-dark) url("../img/background_2.jpg") center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background: linear-gradient(165deg, rgba(10, 12, 18, 0.88) 0%, rgba(13, 16, 32, 0.85) 50%, rgba(0, 81, 164, 0.25) 100%);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(0, 81, 164, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 81, 164, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-logo {
  margin-bottom: 2rem;
  height: 40px;
  width: auto;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--gray);
  margin: 0 0 0.5rem;
  max-width: 32rem;
}

.hero-lead + .hero-lead {
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-visual {
  min-height: 200px;
  margin-top: 2rem;
  background: linear-gradient(180deg, rgba(0, 81, 164, 0.12) 0%, rgba(110, 44, 145, 0.06) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ——— Проблема (боли) ——— */
#problem .cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ——— Архитектура ——— */
.architecture {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.arch-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

.arch-column:first-child .arch-item,
.arch-column:last-child .arch-item {
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  font-size: 0.9375rem;
  color: var(--gray);
}

.arch-core {
  padding: 1.25rem 1.75rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
  border-radius: 10px;
  font-weight: 700;
  color: var(--white);
  font-size: 1.125rem;
}

.arch-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.arch-footer span {
  padding: 0.35rem 0.75rem;
  background: rgba(178, 186, 222, 0.08);
  border-radius: 4px;
}

/* ——— Управление лидами (4 карточки с иконками) ——— */
.lead-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.lead-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s;
}

.lead-card:hover {
  border-color: rgba(0, 187, 242, 0.25);
}

.lead-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--light-blue), var(--light-violet));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
}

.lead-card-title {
  font-weight: 600;
  color: var(--white);
  margin: 0 0 0.25rem;
}

.lead-card-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* ——— AI-анализ (визуал + список) ——— */
.analysis-visual {
  min-height: 220px;
  margin-bottom: 2rem;
  background: linear-gradient(180deg, rgba(110, 44, 145, 0.1) 0%, rgba(0, 81, 164, 0.06) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.analysis-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.analysis-list li {
  padding: 0.5rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: var(--gray);
  font-size: 0.9375rem;
}

.analysis-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  background: var(--light-blue);
  border-radius: 50%;
}

/* ——— Голосовой ассистент ——— */
.voice-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.voice-features .card-title {
  margin-bottom: 0.25rem;
}

/* ——— AI-почта (схема + подпункты) ——— */
.email-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.email-flow-step {
  padding: 0.75rem 1.25rem;
  background: rgba(0, 81, 164, 0.15);
  border-radius: 6px;
  font-weight: 600;
  color: var(--light-blue);
}

.email-flow-arrow {
  color: var(--text-muted);
  font-size: 1.25rem;
}

.email-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}

.email-list li {
  color: var(--gray);
  font-size: 0.9375rem;
  padding-left: 1.25rem;
  position: relative;
}

.email-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--light-blue);
  font-weight: 700;
}

/* ——— KPI ——— */
.kpi-elements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

/* ——— Тарифы ——— */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
  border-color: rgba(0, 187, 242, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.pricing-card.featured {
  border-color: var(--light-blue);
  box-shadow: 0 0 0 1px var(--light-blue), 0 8px 32px rgba(0, 187, 242, 0.15);
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.5rem;
}

.pricing-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  flex: 1;
}

.pricing-cta {
  margin-top: auto;
  width: 100%;
}

/* ——— Header (навигация по якорям) ——— */
.page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 12, 18, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.page-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.header-logo {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--gray);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--white);
  text-decoration: none;
}

/* Отступ под фиксированный header */
body {
  padding-top: 56px;
}

/* ——— Адаптив ——— */
@media (max-width: 900px) {
  .architecture {
    grid-template-columns: 1fr;
  }

  .arch-column:nth-child(2) {
    order: -1;
  }

  .lead-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing {
    grid-template-columns: 1fr;
  }
}

/* ——— Footer ——— */
.page-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-tagline {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.footer-link {
  color: var(--light-blue);
  font-size: 0.9375rem;
}

.footer-link:hover {
  text-decoration: none;
  color: var(--white);
}

.footer-city {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

@media (max-width: 600px) {
  section {
    padding: 3rem 0;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .lead-cards {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .email-flow {
    flex-direction: column;
  }

  .email-flow-arrow {
    transform: rotate(90deg);
  }
}
