/* ══════════════════════════════════════════════════════════════
   HERO СЕКЦИЯ
   ══════════════════════════════════════════════════════════════ */

.hero {
  min-height: 100vh; 
  display: flex; 
  align-items: center; 
  position: relative;
  padding-top: 80px; 
  overflow: hidden;
}

.hero-bg {
  position: absolute; 
  inset: 0; 
  pointer-events: none;
}

.hero-bg::before {
  content: '';
  position: absolute; 
  top: -200px; 
  left: 50%; 
  transform: translateX(-50%);
  width: 900px; 
  height: 900px; 
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), 0.18) 0%, transparent 65%);
}

.hero-bg::after {
  content: '';
  position: absolute; 
  bottom: -100px; 
  right: -200px;
  width: 600px; 
  height: 600px; 
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(var(--accent2-rgb),  0.12) 0%, transparent 65%);
}

.grid-overlay {
  position: absolute; 
  inset: 0;
  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: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-inner {
  position: relative; 
  z-index: 1; 
  display: grid; 
  grid-template-columns: 1fr 1fr;
  gap: 60px; 
  align-items: center; 
  width: 100%;
}

.hero-badge {
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  padding: 6px 14px; 
  border-radius: 50px;
  background: rgba(var(--accent-rgb), 0.12); 
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  font-size: 13px; 
  font-weight: 500; 
  color: var(--accent-soft); 
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 7px; 
  height: 7px; 
  border-radius: 50%; 
  background: var(--accent);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(38px, 5vw, 64px); 
  font-weight: 900; 
  line-height: 1.1;
  color: var(--white); 
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px; 
  color: var(--muted); 
  line-height: 1.7;
  margin-bottom: 40px; 
  max-width: 520px;
}

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

.hero-stats { 
  display: flex; 
  gap: 32px; 
  margin-top: 52px; 
}

.stat-item { 
  text-align: left; 
}

.stat-num { 
  font-size: 28px; 
  font-weight: 800; 
  color: var(--white); 
}

.stat-label { 
  font-size: 13px; 
  color: var(--muted); 
  margin-top: 2px; 
}

/* ── HERO VISUAL ── */
.hero-visual { 
  position: relative; 
}

.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
  position: relative; 
  overflow: hidden;
}

.dashboard-card::before {
  content: ''; 
  position: absolute; 
  top: -1px; 
  left: 20%; 
  right: 20%; 
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.6), transparent);
}

.db-header {
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  margin-bottom: 20px;
}

.db-dots { 
  display: flex; 
  gap: 6px; 
}

.db-dot {
  width: 10px; 
  height: 10px; 
  border-radius: 50%;
}

.db-dot:nth-child(1) { background: #ff5f57; }
.db-dot:nth-child(2) { background: #febc2e; }
.db-dot:nth-child(3) { background: #28c840; }

.db-title { 
  font-size: 13px; 
  font-weight: 600; 
  color: var(--muted); 
}

.db-metrics { 
  display: grid; 
  grid-template-columns: 1fr 1fr 1fr; 
  gap: 12px; 
  margin-bottom: 20px; 
}

.metric-card {
  background: var(--surface2); 
  border-radius: 12px; 
  padding: 14px;
  border: 1px solid var(--border);
}

.metric-label { 
  font-size: 11px; 
  color: var(--muted); 
  margin-bottom: 4px; 
  font-weight: 500; 
}

.metric-val { 
  font-size: 20px; 
  font-weight: 800; 
  color: var(--white); 
}

.metric-change { 
  font-size: 11px; 
  color: var(--accent3); 
  margin-top: 2px; 
}

.db-chart { 
  margin-bottom: 20px; 
}

.chart-bars {
  display: flex; 
  align-items: flex-end; 
  gap: 6px; 
  height: 70px;
}

.bar {
  flex: 1; 
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, rgba(var(--accent-rgb), 0.5), rgba(var(--accent-rgb), 0.1));
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  animation: barGrow .8s ease forwards;
}

.db-table { 
  width: 100%; 
  border-collapse: collapse; 
}

.db-table th { 
  font-size: 10px; 
  color: var(--muted); 
  text-transform: uppercase; 
  letter-spacing: 1px;
  padding: 0 0 8px; 
  text-align: left; 
  font-weight: 600; 
}

.db-table td { 
  font-size: 12px; 
  color: var(--text); 
  padding: 6px 0;
  border-top: 1px solid rgba(255,255,255,0.04); 
}

/* ── FLOATING BADGES ── */
.float-badge {
  position: absolute; 
  border-radius: 12px; 
  padding: 10px 14px;
  background: var(--surface2); 
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  display: flex; 
  align-items: center; 
  gap: 10px; 
  white-space: nowrap;
  animation: float 3s ease-in-out infinite;
  z-index: 2;
}

.float-badge.fb1 { 
  top: -30px; 
  right: -30px; 
  animation-delay: 0s; 
}

.float-badge.fb2 { 
  bottom: 30px; 
  left: -40px; 
  animation-delay: 1.5s; 
}

.fb-icon { 
  width: 32px; 
  height: 32px; 
  border-radius: 8px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 16px; 
}

.fb-icon-tg { 
  background: rgba(var(--accent-rgb), 0.2); 
}

.fb-icon-pay { 
  background: rgba(var(--accent3-rgb), 0.15); 
}

.fb-text { 
  line-height: 1; 
}

.fb-label { 
  font-size: 11px; 
  color: var(--muted); 
}

.fb-val { 
  font-size: 14px; 
  font-weight: 700; 
  color: var(--white); 
}

/* ── LOGOS SECTION ── */
.logos-section { 
  padding: 48px 0; 
  border-top: 1px solid var(--border); 
  border-bottom: 1px solid var(--border); 
}

.logos-label { 
  text-align: center; 
  font-size: 13px; 
  color: var(--muted); 
  margin-bottom: 32px; 
  letter-spacing: 1px; 
  text-transform: uppercase; 
}

.logos-track { 
  display: flex; 
  gap: 20px; 
  align-items: center; 
  justify-content: center; 
  flex-wrap: wrap; 
}

.logo-brand { 
  font-size: 13px; 
  font-weight: 700; 
  color: rgba(255,255,255,0.25); 
  letter-spacing: 1.5px; 
  text-transform: uppercase; 
  transition: color .2s; 
}

.logo-brand:hover { 
  color: rgba(255,255,255,0.6); 
}

.logo-img-wrap { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding: 12px 20px; 
  border-radius: 12px; 
  transition: all .3s; 
}

.logo-img-wrap:hover { 
  transform: translateY(-2px); 
}

.logo-img { 
  height: 44px; 
  width: auto; 
  max-width: 180px; 
  filter: grayscale(100%) brightness(0.7); 
  transition: filter .3s; 
  object-fit: contain; 
}

.logo-img-wrap:hover .logo-img { 
  filter: grayscale(0%) brightness(1); 
}

/* ══════════════════════════════════════════════════════════════
   СВЕТЛАЯ ТЕМА
   ══════════════════════════════════════════════════════════════ */

html.light .hero-badge {
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.2);
  color: #ea580c;
}

html.light .metric-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

html.light .db-metrics {
  gap: 10px;
}
