/* ===========================================
   NEXACOM THEME — hero.css
=========================================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 120px 6vw 40px;
  position: relative;
  overflow: hidden;
}

/* ── BACKGROUNDS ── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 65% 55% at 85% 35%, var(--v-blob) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 10% 80%, var(--r-blob) 0%, transparent 55%),
    linear-gradient(160deg, var(--hero-from) 0%, var(--hero-to) 100%);
  transition: background var(--tr);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-c) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-c) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── TAG ── */
.hero-tag {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(91,33,245,0.1);
  border: 1px solid rgba(91,33,245,0.28);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-mid);
  margin-bottom: 28px;
  animation: fadeUp .8s ease both;
}
.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--violet-mid);
  border-radius: 50%;
  animation: blink 2s infinite;
}

/* ── HEADLINE ── */
.hero h1 {
  position: relative;
  z-index: 1;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(3.4rem, 8.5vw, 6rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -.02em;
  max-width: 920px;
  color: var(--text);
  animation: fadeUp .8s .1s ease both;
}

/* ── SUB ── */
.hero-sub {
  position: relative;
  z-index: 1;
  max-width: 520px;
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--text-m);
  margin: 24px 0 40px;
  font-weight: 300;
  animation: fadeUp .8s .2s ease both;
}

/* ── CTA ROW ── */
.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp .8s .3s ease both;
}

/* ── STATS ── */
.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0;
  margin-top: 48px;
  animation: fadeUp .8s .4s ease both;
  border: 1px solid var(--stat-b);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
}

.stat-item {
  padding: 20px 32px;
  border-right: 1px solid var(--stat-b);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.stat-num span { color: var(--accent); }

.stat-label {
  font-size: .72rem;
  color: var(--text-f);
  letter-spacing: .05em;
  margin-top: 4px;
  font-weight: 400;
}

/* ── ROCKET ── */
.hero-rocket-wrap {
  position: absolute;
  right: 5vw;
  bottom: 20%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rocket-emoji {
  font-size: clamp(90px, 16vw, 210px);
  display: block;
  animation: rocketFloat 4s ease-in-out infinite;
  filter:
    drop-shadow(0 0 60px rgba(255,100,50,.5))
    drop-shadow(0 0 20px rgba(255,200,50,.4));
}

@keyframes rocketFloat {
  0%   { transform: translateY(0)    rotate(-15deg) scale(1); }
  25%  { transform: translateY(-28px) rotate(-12deg) scale(1.04); }
  50%  { transform: translateY(-14px) rotate(-17deg) scale(1.02); }
  75%  { transform: translateY(-32px) rotate(-11deg) scale(1.05); }
  100% { transform: translateY(0)    rotate(-15deg) scale(1); }
}

.rocket-trail {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-15deg);
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  pointer-events: none;
}

.trail-particle {
  width: 4px;
  border-radius: 100px;
  background: linear-gradient(to bottom, rgba(255,160,50,0.9), transparent);
  animation: trailPulse 0.6s ease-in-out infinite alternate;
}
.trail-particle:nth-child(1) { height: 22px; width: 6px;  animation-delay: 0s; }
.trail-particle:nth-child(2) { height: 16px; width: 4px;  animation-delay: .1s; }
.trail-particle:nth-child(3) { height: 10px; width: 3px;  animation-delay: .2s; }
.trail-particle:nth-child(4) { height: 6px;  width: 2px;  animation-delay: .3s; }

@keyframes trailPulse {
  0%   { opacity: 1;   transform: scaleY(1.1) translateX(-1px); }
  100% { opacity: 0.3; transform: scaleY(0.7) translateX(1px); }
}

.spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: sparkFly 1.2s ease-out infinite;
  pointer-events: none;
}
.spark:nth-child(1) { bottom: 0;  left: 50%; animation-delay: 0s;  background: #ff6b35; --dx: -15px; --dy: 40px; }
.spark:nth-child(2) { bottom: 5px; left: 45%; animation-delay: .2s; background: #f5c842; --dx: 5px;  --dy: 50px; }
.spark:nth-child(3) { bottom: 2px; left: 55%; animation-delay: .4s; background: #ff3c2e; --dx: 20px; --dy: 35px; }
.spark:nth-child(4) { bottom: 8px; left: 40%; animation-delay: .6s; background: #ffa500; --dx: -8px; --dy: 60px; }
.spark:nth-child(5) { bottom: 1px; left: 60%; animation-delay: .8s; background: #ff6b35; --dx: 12px; --dy: 45px; }

@keyframes sparkFly {
  0%   { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx,10px), var(--dy,30px)) scale(0.2); }
}

/* ── MARQUEE ── */
.marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  overflow: hidden;
  background: var(--mq-bg);
  margin-top: 48px;
}

.marquee-track {
  display: flex;
  animation: marq 22s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-f);
}

.marquee-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

@keyframes marq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-rocket-wrap { display: none; }
  .hero-stats       { flex-direction: column; }
  .stat-item        { border-right: none; border-bottom: 1px solid var(--stat-b); }
  .stat-item:last-child { border-bottom: none; }
}

@media (max-width: 540px) {
  .hero h1 { font-size: 2.6rem; }
}
