/* ============================================================
   PlugNest v7 — 3D Floating Hero
   ============================================================ */

/* ── Hero wrapper ────────────────────────────────────────── */
.hero-v2 {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0 60px;
}

/* Mesh gradient background */
.hero-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(124,58,237,0.13) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(236,72,153,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 30%, rgba(59,130,246,0.06) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}

/* ── 3D scene container ──────────────────────────────────── */
.hero-3d-scene {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* ── Left: text content ──────────────────────────────────── */
.hero-text-col {
  position: relative;
  z-index: 5;
  max-width: 560px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.28);
  color: #c4b5fd;
  font-size: 12px; font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
  letter-spacing: 0.3px;
  animation: fade-up 0.6s ease both;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: #a78bfa;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Big title */
.hero-v2-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 22px;
  animation: fade-up 0.7s ease 0.1s both;
}
.hero-v2-title .line-muted {
  color: rgba(255,255,255,0.38);
  font-size: 0.72em;
  display: block;
  letter-spacing: -0.5px;
}
.hero-v2-title .line-grad {
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 50%, #f59e0b 100%);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: grad-shift 5s ease infinite;
  display: block;
}
.hero-v2-title .line-white {
  display: block;
}

.hero-v2-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.58);
  line-height: 1.75;
  margin-bottom: 34px;
  animation: fade-up 0.7s ease 0.2s both;
}

.hero-v2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
  animation: fade-up 0.7s ease 0.3s both;
}

/* Pill CTA primary (hero) */
.hero-cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-size: 15px; font-weight: 700;
  padding: 13px 26px;
  border-radius: 14px;
  border: none; cursor: pointer;
  text-decoration: none;
  position: relative; overflow: hidden;
  box-shadow: 0 6px 28px rgba(124,58,237,0.45);
  transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
}
.hero-cta-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.hero-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(124,58,237,0.6);
  color: #fff;
}
.hero-cta-primary:hover::after { transform: translateX(100%); }

.hero-cta-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  font-size: 15px; font-weight: 600;
  padding: 12px 24px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}
.hero-cta-ghost:hover {
  border-color: rgba(124,58,237,0.5);
  color: #fff;
  background: rgba(124,58,237,0.1);
  transform: translateY(-2px);
}

/* Stats */
.hero-v2-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  animation: fade-up 0.7s ease 0.4s both;
}
.hero-stat { }
.hero-stat-num {
  font-size: 24px; font-weight: 800;
  color: #fff; line-height: 1.1;
}
.hero-stat-label {
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.42);
  text-transform: uppercase; letter-spacing: 0.6px;
  margin-top: 2px;
}

/* ── Floating plugin cards ───────────────────────────────── */
/* Float-wrapper handles vertical float animation */
.float-wrapper {
  position: absolute;
  animation: hero-float var(--ft, 7s) ease-in-out infinite;
  animation-delay: var(--fd, 0s);
  will-change: transform;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0px) rotate(var(--fr, 0deg)); }
  33%       { transform: translateY(var(--fa, -14px)) rotate(calc(var(--fr, 0deg) + 1deg)); }
  66%       { transform: translateY(calc(var(--fa, -14px) * 0.5)) rotate(calc(var(--fr, 0deg) - 0.5deg)); }
}

/* Plugin card itself — mouse parallax applied via JS */
.hero-plugin-card {
  background: rgba(10,10,26,0.85);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  will-change: transform;
  cursor: default;
}

/* Colored top-line glow */
.hero-plugin-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--card-top-grad);
  box-shadow: 0 0 24px var(--card-top-glow), 0 0 48px var(--card-top-glow);
}

/* Inner shine shimmer on hover */
.hero-plugin-card::after {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 40%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transform: skewX(-15deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.hero-plugin-card:hover::after { left: 150%; }

.hero-plugin-card:hover {
  box-shadow: 0 20px 60px var(--card-shadow, rgba(124,58,237,0.25));
}

/* Card variants */
.hpc-sap {
  --card-top-grad: linear-gradient(90deg, #7c3aed, #a855f7, #ec4899);
  --card-top-glow: rgba(124,58,237,0.6);
  --card-shadow: rgba(124,58,237,0.3);
  width: 258px;
}
.hpc-opsf {
  --card-top-grad: linear-gradient(90deg, #10b981, #34d399);
  --card-top-glow: rgba(16,185,129,0.6);
  --card-shadow: rgba(16,185,129,0.25);
  width: 220px;
}
.hpc-agi {
  --card-top-grad: linear-gradient(90deg, #3b82f6, #60a5fa);
  --card-top-glow: rgba(59,130,246,0.6);
  --card-shadow: rgba(59,130,246,0.25);
  width: 208px;
}
.hpc-ssp {
  --card-top-grad: linear-gradient(90deg, #ec4899, #f472b6);
  --card-top-glow: rgba(236,72,153,0.5);
  --card-shadow: rgba(236,72,153,0.2);
  width: 185px;
}
.hpc-stat {
  --card-top-grad: linear-gradient(90deg, #f59e0b, #f97316);
  --card-top-glow: rgba(245,158,11,0.5);
  --card-shadow: rgba(245,158,11,0.2);
  width: 168px;
}

/* Card inner layout */
.hpc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}
.hpc-icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--icon-bg, rgba(124,58,237,0.2));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px var(--icon-glow, rgba(124,58,237,0.3));
}
.hpc-name {
  font-size: 13px; font-weight: 700; color: #fff;
  line-height: 1.25;
}
.hpc-cat {
  font-size: 10.5px; color: rgba(255,255,255,0.42);
  font-weight: 500;
}

.hpc-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9.5px; font-weight: 800;
  letter-spacing: 0.5px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 6px;
  margin-bottom: 10px;
}
.hpc-badge.gold {
  background: linear-gradient(135deg, rgba(245,158,11,0.25), rgba(249,115,22,0.15));
  border: 1px solid rgba(245,158,11,0.35);
  color: #fbbf24;
}
.hpc-badge.green {
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  color: #34d399;
}
.hpc-badge.blue {
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  color: #60a5fa;
}
.hpc-badge.pink {
  background: rgba(236,72,153,0.15);
  border: 1px solid rgba(236,72,153,0.3);
  color: #f472b6;
}

.hpc-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 11px 0;
}

.hpc-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hpc-rating { font-size: 11px; color: #fbbf24; font-weight: 700; }
.hpc-price  { font-size: 15px; font-weight: 800; color: #fff; }
.hpc-price small { font-size: 10px; color: rgba(255,255,255,0.4); font-weight: 400; }
.hpc-feat-row {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-top: 10px;
}
.hpc-feat-tag {
  font-size: 9.5px; font-weight: 600;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 2px 7px; border-radius: 5px;
}

/* Pulsing online indicator */
.hpc-live {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; color: #34d399; font-weight: 600;
}
.hpc-live-dot {
  width: 6px; height: 6px; background: #10b981; border-radius: 50%;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

/* ── Blurred/dim far cards (depth effect) ─────────────────── */
.depth-far {
  filter: blur(0.6px);
  opacity: 0.7;
}

/* ── Background "ghost title" text ───────────────────────── */
.hero-ghost-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(6rem, 14vw, 14rem);
  font-weight: 800;
  color: rgba(255,255,255,0.022);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -4px;
  line-height: 1;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .float-wrapper { display: none; }
  .hero-v2 { min-height: auto; padding: 60px 0; }
}
@media (max-width: 640px) {
  .hero-v2-title { font-size: 2.4rem; }
}
