/* ============================================================
   HOME PAGE — Hero, Stats, Tools, Pricing, CTA
   ============================================================ */

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-20) 0 var(--space-16);
  background: var(--bg-base);
}
/* Radial gradient glow */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(16,185,129,0.07) 0%, rgba(16,185,129,0.02) 45%, transparent 70%);
  pointer-events: none;
}
/* Grid dots */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 80%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-badge { margin-bottom: var(--space-6); }
.hero-title {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 40%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto var(--space-10);
  line-height: var(--leading-relaxed);
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

/* Hero search */
.hero-search {
  max-width: 680px;
  margin: 0 auto var(--space-8);
}
.hero-search-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
  justify-content: center;
}
.hero-search-tab {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
  border: 1px solid transparent;
}
.hero-search-tab:hover { color: var(--text-secondary); background: var(--bg-surface); border-color: var(--border); }
.hero-search-tab.active {
  color: var(--accent-light);
  background: var(--accent-dim);
  border-color: rgba(16,185,129,0.25);
}
.hero-search-tab-icon { font-size: 11px; }

.hero-search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.03);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.hero-search-bar:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 0 3px var(--accent-glow-sm);
}
.hero-search-input {
  flex: 1;
  height: 60px;
  padding: 0 var(--space-6);
  background: transparent;
  border: none;
  outline: none;
  font-size: var(--text-lg);
  font-family: var(--font-sans);
  color: var(--text-primary);
  font-weight: var(--weight-medium);
  letter-spacing: -0.01em;
}
.hero-search-input::placeholder { color: var(--text-disabled); font-weight: var(--weight-regular); }
.hero-search-submit {
  margin: var(--space-2);
  height: 44px;
  padding: 0 var(--space-5);
  background: var(--accent);
  color: #052e16;
  border: none;
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  flex-shrink: 0;
}
.hero-search-submit:hover {
  background: var(--accent-light);
  box-shadow: 0 0 12px rgba(16,185,129,0.3);
}
.hero-search-submit:active { transform: scale(0.98); }

.hero-hints {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}
.hero-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.hero-hint-sep { color: var(--border-light); }

/* ── STATS BENTO ─────────────────────────────────────────── */
.stats-section {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.stat-item {
  background: var(--bg-raised);
  padding: var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  align-items: center;
  text-align: center;
  transition: background var(--transition-fast);
}
.stat-item:hover { background: var(--bg-surface); }
.stat-value {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: var(--weight-medium);
}

/* ── TOOLS SECTION ───────────────────────────────────────── */
.tools-section { padding: var(--space-24) 0; }
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}
.section-badge { margin-bottom: var(--space-4); }
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  line-height: var(--leading-snug);
}
.section-subtitle {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

.tools-categories {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}
.tools-category {}
.tools-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.tools-category-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}
.tools-category-icon {
  width: 32px; height: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.tools-category-count {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  background: var(--bg-overlay);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-2);
}

/* ── HOW IT WORKS ────────────────────────────────────────── */
.how-section {
  padding: var(--space-24) 0;
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}
.how-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(16.66% + 16px);
  right: calc(16.66% + 16px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent-dim), var(--border), var(--accent-dim));
}
.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  position: relative;
}
.how-step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--accent);
  position: relative;
  z-index: 1;
}
.how-step-icon {
  font-size: 2rem;
  line-height: 1;
}
.how-step-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}
.how-step-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

/* ── PRICING ─────────────────────────────────────────────── */
.pricing-section { padding: var(--space-24) 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  align-items: start;
}

/* ── TESTIMONIALS ────────────────────────────────────────── */
.testimonials-section {
  padding: var(--space-24) 0;
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--transition), transform var(--transition);
}
.testimonial-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.testimonial-stars { color: #f59e0b; font-size: var(--text-sm); letter-spacing: 2px; }
.testimonial-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  flex: 1;
}
.testimonial-author { display: flex; align-items: center; gap: var(--space-3); }
.testimonial-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dim), rgba(6,182,212,0.15));
  border: 1px solid rgba(16,185,129,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--accent-light);
  flex-shrink: 0;
}
.testimonial-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}
.testimonial-role { font-size: var(--text-xs); color: var(--text-muted); }

/* ── CTA SECTION ─────────────────────────────────────────── */
.cta-section {
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(16,185,129,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-16) var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16,185,129,0.4), transparent);
}
.cta-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  line-height: var(--leading-snug);
}
.cta-subtitle {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--leading-relaxed);
}
.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}
.cta-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.cta-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.cta-trust-item svg { color: var(--accent); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps::before { display: none; }
}
@media (max-width: 768px) {
  .hero { padding: var(--space-16) 0 var(--space-12); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: 1fr; gap: var(--space-6); }
  .pricing-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cta-card { padding: var(--space-10) var(--space-5); }
  .tools-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-search-input { font-size: var(--text-base); height: 52px; }
  .hero-search-submit { display: none; }
  .hero-search-bar::after {
    content: 'Проверить →';
    display: flex;
    align-items: center;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    pointer-events: none;
  }
}
