/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0e17 0%, #141b2b 40%, #1a1145 70%, #0d1117 100%);
}

[data-theme="light"] .hero {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 40%, #ede9fe 70%, #f0f2f5 100%);
}

[data-theme="light"] .hero h1 {
  background: linear-gradient(135deg, #1f2328 0%, #1f6feb 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 30%, rgba(31, 111, 235, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 80% 70%, rgba(139, 87, 229, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 300px 300px at 50% 50%, rgba(236, 72, 153, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(48, 54, 61, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 54, 61, 0.15) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 30%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  animation: fadeIn 0.8s ease;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  border: 1px solid rgba(88, 166, 255, 0.3);
  background: rgba(31, 111, 235, 0.1);
  color: #58a6ff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #f0f6fc 0%, #58a6ff 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #8b949e;
  max-width: 650px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

[data-theme="light"] .hero p {
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #1f6feb, #8957e5);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(31, 111, 235, 0.3);
  white-space: nowrap;
  min-width: 140px;
  justify-content: center;
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(31, 111, 235, 0.5);
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: #e6edf3;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #30363d;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
  min-width: 140px;
  justify-content: center;
}

[data-theme="light"] .hero-btn-secondary {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border);
}

.hero-btn-secondary:hover {
  border-color: #58a6ff;
  background: rgba(31, 111, 235, 0.1);
}

/* ─── Hero Stats Row ──────────────────────────────────────────── */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  background: rgba(22, 27, 34, 0.8);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

[data-theme="light"] .hero-stats {
  background: rgba(246, 248, 250, 0.9);
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #e6edf3;
  line-height: 1;
}

[data-theme="light"] .hero-stat-number {
  color: var(--text);
}

.hero-stat-number.green  { color: #3fb950; }
.hero-stat-number.blue   { color: #58a6ff; }
.hero-stat-number.purple { color: #c084fc; }
.hero-stat-number.pink   { color: #ec4899; }

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.hero-stat-sep {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { min-height: auto; padding: 4rem 2rem; }
  .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding: 3rem 1.5rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .hero-stats { gap: 1rem; padding: 1rem 1.5rem; flex-wrap: wrap; backdrop-filter: none; }
  .hero-stat { flex: 1 1 40%; min-width: 80px; }
  .hero-stat-sep { display: none; }
  .hero-stat-number { font-size: 1.4rem; }
  .hero-actions { gap: 0.75rem; }
  .hero-btn-primary, .hero-btn-secondary { padding: 0.7rem 1.5rem; font-size: 0.9rem; min-width: auto; }
}

@media (max-width: 480px) {
  .hero { padding: 2.5rem 1rem; }
  .hero h1 { font-size: 1.75rem; word-break: break-word; overflow-wrap: break-word; }
  .hero p { font-size: 0.9rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-btn-primary, .hero-btn-secondary { width: 100%; justify-content: center; }
  .hero-stats { gap: 0.6rem; padding: 0.85rem 1rem; backdrop-filter: none; }
  .hero-stat { flex: 1 1 40%; }
  .hero-stat-number { font-size: 1.2rem; }
  .hero-stat-label { font-size: 0.7rem; }
  .hero-badge { padding: 0.3rem 0.9rem; font-size: 0.75rem; max-width: 100%; }
}
