/* ============================================================
   HERO.CSS — cinematic hero, neon grid, blobs, floating cards
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7rem clamp(1.25rem, 5vw, 3rem) 4rem;
  overflow: hidden;
}

/* Neon perspective grid */
.hero-grid {
  position: absolute;
  inset: -20% -20% 30% -20%;
  background-image:
    linear-gradient(to right, rgba(124, 58, 237, 0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 229, 255, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(700px) rotateX(58deg) scale(1.6);
  transform-origin: center bottom;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
  animation: gridSlide 18s linear infinite;
}
@keyframes gridSlide {
  to { background-position: 0 64px, 64px 0; }
}

/* Animated background blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  z-index: 0;
  animation: floatBlob 16s ease-in-out infinite;
}
.blob-1 { width: 460px; height: 460px; background: var(--glow); top: -120px; left: -80px; }
.blob-2 { width: 380px; height: 380px; background: var(--neon); bottom: -100px; right: 8%; animation-delay: -4s; }
.blob-3 { width: 300px; height: 300px; background: var(--pink); top: 35%; right: 30%; animation-delay: -8s; opacity: 0.35; }
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 25px) scale(0.95); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

/* Left content */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--glass-brd);
  border-radius: 100px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(0, 229, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

.hero-title {
  font-size: clamp(2.6rem, 6.6vw, 5.4rem);
  margin: 1.6rem 0 1.4rem;
  letter-spacing: -0.03em;
}
.hero-title .line { display: block; }

.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  max-width: 46ch;
  margin-bottom: 2.2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.8rem; }

/* Trusted-by mini marquee */
.hero-marquee { display: flex; flex-direction: column; gap: 0.8rem; }
.hero-marquee > span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.45);
}
.logo-strip span { transition: color 0.3s var(--ease); }
.logo-strip span:hover { color: var(--white); }

/* Right floating dashboard */
.hero-visual {
  position: relative;
  height: 480px;
}
.float-card {
  position: absolute;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  will-change: transform;
  animation: cardFloat 7s ease-in-out infinite;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.card-main {
  top: 30px; left: 4%;
  width: 280px;
  padding: 1.4rem;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.2rem;
}
.dot-row { display: flex; gap: 6px; }
.dot-row i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.dot-row i:first-child { background: var(--pink); }
.dot-row i:nth-child(2) { background: var(--neon); }
.card-tag {
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.12em; color: var(--neon);
  padding: 0.25rem 0.55rem; border: 1px solid rgba(0,229,255,0.3);
  border-radius: 100px;
}
.card-metric { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 1rem; }
.card-metric .big {
  font-family: var(--font-display); font-size: 2.8rem; font-weight: 600;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric-label { font-size: 0.82rem; color: var(--muted); }
.spark svg { width: 100%; height: 52px; }
.spark polyline {
  fill: none; stroke: url(#g); stroke-width: 2.4;
  stroke: var(--neon); filter: drop-shadow(0 0 6px rgba(0,229,255,0.7));
  stroke-linecap: round; stroke-linejoin: round;
}

.card-mini { padding: 1.1rem 1.2rem; width: 184px; display: flex; flex-direction: column; gap: 0.35rem; }
.card-mini-a { top: 0; right: 0; animation-delay: -2s; }
.card-mini-b { bottom: 40px; right: 8%; animation-delay: -4s; }
.mini-label { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.04em; }
.mini-value { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; }
.mini-trend { font-family: var(--font-mono); font-size: 0.72rem; }
.mini-trend.up { color: #4ade80; }

.ring-progress {
  width: 46px; height: 46px; border-radius: 50%; margin-top: 0.3rem;
  background:
    radial-gradient(closest-side, var(--bg-2) 70%, transparent 71%),
    conic-gradient(var(--neon) calc(var(--p) * 1%), rgba(255,255,255,0.08) 0);
}

.card-pill {
  bottom: 6px; left: 10%;
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.7rem 1.1rem; font-size: 0.82rem; color: var(--white);
  border-radius: 100px; animation-delay: -3s;
}
.pill-glow {
  width: 9px; height: 9px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 12px #4ade80;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 1.8rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  z-index: 3;
}
.mouse {
  width: 24px; height: 38px;
  border: 1.6px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  display: flex; justify-content: center;
  padding-top: 7px;
}
.wheel {
  width: 4px; height: 8px; border-radius: 4px;
  background: var(--neon);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}
.scroll-text {
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
