.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* accounts for mobile browser chrome */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
  will-change: transform;
}
.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--orb-1-color);
  top: -15%;
  left: 20%;
  animation: float-orb-1 14s ease-in-out infinite;
}
.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: var(--orb-2-color);
  bottom: 0;
  right: 10%;
  animation: float-orb-2 18s ease-in-out infinite;
}

/* Legacy glow kept for pages that still use it */
.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.18) 0%, rgba(124, 58, 237, 0.04) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3xl);
  text-align: center;
  padding-block: var(--space-xl) var(--space-4xl);
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  max-width: 720px;
}

.hero-text h1 {
  font-size: var(--text-6xl);
  font-weight: var(--weight-black);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* Glow on gradient text in the hero */
.hero-text h1 .gradient-text {
  filter: drop-shadow(0 0 28px rgba(168, 85, 247, 0.55));
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-muted);
  max-width: 520px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-sm);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  padding: var(--space-lg) var(--space-2xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.stat-num {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: 1;
  color: var(--color-white);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-muted);
  z-index: 1;
  animation: bounce 2s ease-in-out infinite;
  transition: color var(--transition-fast);
}
.scroll-indicator:hover { color: var(--color-purple-light); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* Inner-page hero (reviews, media, products) */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.page-hero h1 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  letter-spacing: -0.03em;
}
.page-hero p {
  font-size: var(--text-lg);
  color: var(--color-muted);
  max-width: 560px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-muted-2);
}
.breadcrumb a {
  color: var(--color-muted-2);
  transition: color var(--transition-fast);
}
.breadcrumb a:hover { color: var(--color-purple-light); }
.breadcrumb span[aria-current] { color: var(--color-muted); }

/* Feature nav cards on homepage */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-4xl);
}
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-2xl);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
  transform-style: preserve-3d;
  will-change: transform;
  cursor: pointer;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(124,58,237,0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: inherit;
  pointer-events: none;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: var(--shadow-purple);
  transform: translateY(-6px);
}
.feature-card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-purple-glow-sm);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--radius-xl);
  color: var(--color-purple-light);
  flex-shrink: 0;
}
.feature-card-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-white);
}
.feature-card-desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.65;
  flex: 1;
}
.feature-card-cta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-purple-light);
  transition: gap var(--transition-fast);
}
.feature-card:hover .feature-card-cta { gap: var(--space-md); }

@media (max-width: 900px) {
  .feature-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-hero h1 { font-size: var(--text-3xl); }
}

@media (max-width: 768px) {
  .hero-text h1 { font-size: var(--text-4xl); }
  .hero-stats {
    gap: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    flex-wrap: wrap;
    justify-content: center;
  }
  .stat-divider { display: none; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  /* Tighten hero layout on mobile */
  .hero-content {
    gap: var(--space-xl);
    padding-block: var(--space-md) var(--space-2xl);
    padding-inline: var(--space-xl);
  }
  /* Shrink orbs so they don't overflow the viewport */
  .hero-orb-1 { width: 320px; height: 320px; }
  .hero-orb-2 { width: 260px; height: 260px; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: var(--text-3xl); }
  .hero-sub { font-size: var(--text-base); }
  .hero-stats { padding: var(--space-sm) var(--space-md); gap: var(--space-md); }
  .hero-content { padding-inline: var(--space-md); }
}
