/* ============================================================
   INFOXNEX — Hero Section
   ============================================================ */

.hero {
  position: relative;
  min-height: min(860px, 92svh);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 104px 0 76px;
}

/* Particle network canvas */
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
}

/* Animated mesh gradient background */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 80%;
  height: 80%;
  background: linear-gradient(115deg, transparent 10%, rgba(129, 140, 248, 0.26) 42%, rgba(34, 211, 238, 0.12) 64%, transparent 92%);
  animation: heroFloat 12s ease-in-out infinite;
  filter: blur(80px);
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 70%;
  height: 70%;
  background: linear-gradient(135deg, transparent 6%, rgba(34, 211, 238, 0.18) 38%, rgba(168, 85, 247, 0.14) 72%, transparent 95%);
  animation: heroFloat 14s ease-in-out infinite reverse;
  filter: blur(80px);
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(5%, -5%) scale(1.05); }
  66% { transform: translate(-3%, 3%) scale(0.97); }
}

/* Grid overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-bright);
  margin-bottom: 24px;
  padding: 6px 18px;
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-full);
  background: var(--color-accent-dim);
  
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-bright);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__title {
  font-size: clamp(2.75rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
  color: var(--color-text);
  margin-bottom: 26px;
}

.hero__title-gradient {
  background: linear-gradient(100deg, var(--color-cyan), var(--color-accent-bright) 48%, #f0f9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__line {
  display: block;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto 36px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 860px;
  margin: 38px auto 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-border);
}

.hero__proof span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 14px;
  color: var(--color-text-secondary);
  background: rgba(10, 10, 15, 0.74);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--color-accent-bright), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 120px 0 72px;
  }
  .hero__title { font-size: clamp(2.1rem, 10vw, 3.2rem); }
  .hero__subtitle { font-size: 1rem; }
  .hero__proof {
    grid-template-columns: 1fr 1fr;
    margin-top: 30px;
  }
  .hero__scroll { display: none; }
}

@media (max-width: 480px) {
  .hero__proof { grid-template-columns: 1fr; }
  .hero__proof span { min-height: 48px; }
}

/* ---- LIGHT MODE OVERRIDES ---- */
[data-theme="light"] .hero__grid {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.055) 1px, transparent 1px);
}

[data-theme="light"] .hero__bg::before {
  background: linear-gradient(115deg, transparent 10%, rgba(129, 140, 248, 0.16) 42%, rgba(34, 211, 238, 0.1) 64%, transparent 92%);
}

[data-theme="light"] .hero__bg::after {
  background: linear-gradient(135deg, transparent 6%, rgba(34, 211, 238, 0.1) 38%, rgba(168, 85, 247, 0.09) 72%, transparent 95%);
}

[data-theme="light"] .hero__proof span {
  background: rgba(255, 255, 255, 0.78);
}
