/* ============================================================
   HERO — Dark Cinematic Aurora + Flowing Gradient Canvas
   ============================================================ */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  background: #06060A;
}

/* Remove section divider line on hero */
#hero::after { display: none; }

/* Canvas fills entire hero */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Subtle noise overlay on top of canvas */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  mix-blend-mode: overlay;
}

/* Bottom gradient fade to light theme */
.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 2;
  pointer-events: none;
}

/* ══════════════════════════════════════
   HERO ORB — Disabled (canvas replaces it)
   ══════════════════════════════════════ */
.hero-orb { display: none; }

/* ══════════════════════════════════════
   HERO CONTENT — White on Dark
   ══════════════════════════════════════ */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 880px;
  padding: 0 28px;
}

/* ── TAG (dark mode) ── */
#hero .tag {
  color: rgba(165, 160, 255, 1);
  background: rgba(79, 70, 229, 0.12);
  border-color: rgba(79, 70, 229, 0.2);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
  animation: heroFadeIn 0.8s var(--ease-expo) 0.1s forwards;
}
#hero .tag::before {
  background: rgba(165, 160, 255, 1);
}

/* ── HEADLINE (white on dark) ── */
.hero-headline {
  font-size: clamp(3rem, 6.5vw, 5.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 28px;
  color: #FFFFFF;
}

.hero-headline .line2 {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
}

/* Accent word — animated gradient */
.hero-accent {
  background: linear-gradient(135deg, #818CF8 0%, #A78BFA 20%, #C4B5FD 40%, #E0E7FF 55%, #A78BFA 70%, #818CF8 85%, #6366F1 100%);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroGradient 6s ease-in-out infinite;
  font-weight: 800;
  position: relative;
}
.hero-accent::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 3%;
  right: 3%;
  height: 5px;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.4), rgba(167, 139, 250, 0.3), transparent);
  border-radius: 3px;
  filter: blur(4px);
  animation: accentUnderlineGlow 3s ease-in-out infinite;
}

@keyframes accentUnderlineGlow {
  0%, 100% { opacity: 0.6; transform: scaleX(0.9); }
  50% { opacity: 1; transform: scaleX(1.05); }
}

@keyframes heroGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── SUBHEADLINE ── */
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: rgba(255, 255, 255, 0.45);
  max-width: 540px;
  margin: 0 auto 44px;
  line-height: 1.8;
}

/* ── ACTIONS (dark mode buttons) ── */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
  animation: heroFadeIn 0.9s var(--ease-expo) 0.45s forwards;
}

#hero .btn-outline {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}
#hero .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ══════════════════════════════════════
   HERO METRICS — Inline Strip (dark mode)
   ══════════════════════════════════════ */
.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 72px;
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
  animation: heroFadeIn 0.9s var(--ease-expo) 0.6s forwards;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-2xl);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-metric {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 32px;
}

.hero-metric-num {
  font-family: var(--font);
  font-size: 2.4rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-metric-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
  font-weight: 500;
  text-align: left;
}

.hero-metric-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(129, 140, 248, 0.15), rgba(255, 255, 255, 0.08), transparent);
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   SCROLL HINT (dark mode)
   ══════════════════════════════════════ */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: scrollHintEnter 1.2s ease 1.8s forwards;
}
.hero-scroll span {
  font-size: 0.56rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  font-weight: 500;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(129, 140, 248, 0.5), transparent);
  position: relative;
}
.scroll-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: -1px;
  width: 3px;
  height: 8px;
  background: rgba(129, 140, 248, 0.7);
  border-radius: 2px;
  animation: scrollDotFall 2s ease-in-out infinite;
}

@keyframes scrollHintEnter { to { opacity: 0.5; } }
@keyframes scrollDotFall {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(32px); opacity: 0; }
}

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */
@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes heroEntrance {
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ══════════════════════════════════════
   NAV DARK MODE (while on hero)
   ══════════════════════════════════════ */
#navbar:not(.scrolled) {
  background: rgba(6, 6, 10, 0.4);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}
#navbar:not(.scrolled) .nav-links a {
  color: rgba(255, 255, 255, 0.55);
}
#navbar:not(.scrolled) .nav-links a:hover {
  color: #fff;
}
#navbar:not(.scrolled) .nav-links a.active {
  color: rgba(165, 160, 255, 1);
}
#navbar:not(.scrolled) .logo-text {
  color: #fff;
}
#navbar:not(.scrolled) .logo-text span {
  color: rgba(165, 160, 255, 1);
}
#navbar:not(.scrolled) .nav-login {
  color: rgba(255, 255, 255, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
#navbar:not(.scrolled) .nav-login:hover {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}
#navbar:not(.scrolled) .hamburger {
  border-color: rgba(255, 255, 255, 0.12);
}
#navbar:not(.scrolled) .hamburger span {
  background: #fff;
}

/* ══════════════════════════════════════
   HIDDEN LEGACY
   ══════════════════════════════════════ */
.hero-logo-wrap, .hero-logo-ring, .hero-stats, .stat-item,
.hero-gradient-top, .hero-gradient-bottom, .hero-glow,
.aqueous-rings, .aqueous-ring { display: none; }
#typed-text { display: none; }

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-metrics {
    flex-wrap: wrap;
    gap: 20px;
  }
  .hero-metric { padding: 0 16px; }
  .hero-metric-divider { display: none; }
  .hero-metric-num { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .hero-metrics {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .hero-metric { padding: 0; }
}