/* ============================================
   Home Page — Hero, Tools Preview, Stats HUD
   ============================================ */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-6) var(--space-3);
  overflow: hidden;
}

.hero-bg-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.hero-ring {
  position: absolute;
  border: 1px solid rgba(59, 130, 246, 0.08);
  border-radius: 50%;
  animation: ringPulse 4s ease-in-out infinite;
}

.hero-ring:nth-child(1) { width: 300px; height: 300px; animation-delay: 0s; }
.hero-ring:nth-child(2) { width: 500px; height: 500px; animation-delay: 0.5s; }
.hero-ring:nth-child(3) { width: 700px; height: 700px; animation-delay: 1s; }
.hero-ring:nth-child(4) { width: 900px; height: 900px; animation-delay: 1.5s; }

@keyframes ringPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.03); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--blue-faint);
  border: 1px solid var(--blue-border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--blue);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.hero-tag .badge-dot { animation: dotBlink 1.5s ease-in-out infinite; }

@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: var(--space-3);
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 .accent {
  display: block;
  font-size: 0.5em;
  color: var(--blue);
  -webkit-text-fill-color: var(--blue);
  letter-spacing: 0.3em;
  margin-top: var(--space-1);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-4);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0.2;
  animation: scanline 6s linear infinite;
  z-index: 1;
}

@keyframes scanline {
  0% { top: 0%; }
  100% { top: 100%; }
}

/* ---------- Tools Preview Grid ---------- */
.tool-preview-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  cursor: pointer;
}

.tool-preview-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--blue-faint);
  border: 1px solid var(--blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: var(--space-1);
  transition: all var(--transition);
}

.tool-preview-card:hover .tool-preview-icon {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
  transform: scale(1.05);
}

.tool-preview-icon svg { width: 28px; height: 28px; }

.tool-preview-card h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
}

.tool-preview-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

.tool-preview-card .badge { align-self: flex-start; }

/* ---------- Stats HUD ---------- */
.stats-hud {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-3);
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.stats-hud::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  border-radius: 2px;
}

.stats-hud-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.stat-item {
  text-align: center;
  padding: var(--space-2);
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: var(--space-1);
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .stat-item { border-right: none; }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none !important; border-bottom: 1px solid var(--border); padding-bottom: var(--space-2); }
  .stat-item:last-child { border-bottom: none; }
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  text-align: center;
  padding: var(--space-5) var(--space-3);
}

.cta-banner h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.cta-banner p {
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
  font-size: 1.05rem;
}
