/* ============================================================
   TOP ARTE 3D — Hero Banner
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-primary);
}

/* ---- PARTICLES BG ---- */
#particles-js {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ---- HERO BG GRADIENT ---- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(0,174,239,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(0,132,181,0.05) 0%, transparent 60%),
    var(--gradient-bg);
}

/* Grid pattern overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,174,239,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,174,239,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* ---- HERO CONTENT ---- */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 140px 0 80px;
}

.hero-content {
  max-width: 680px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-main);
  background: rgba(0, 174, 239, 0.08);
  border: 1px solid rgba(0, 174, 239, 0.2);
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--blue-main);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title .line-accent {
  display: block;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--gray-light);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 540px;
  opacity: 0.85;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- HERO STATS ---- */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: nowrap;
  width: 100%;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.hero-stat-value {
  font-family: var(--font-primary);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
  white-space: nowrap;
}

.hero-stat-value span {
  color: var(--blue-main);
}

.hero-stat-label {
  font-size: clamp(0.6rem, 1vw, 0.75rem);
  color: var(--gray-mid);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  min-width: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0 20px;
  flex-shrink: 0;
}

/* ---- HERO IMAGE / 3D VISUAL ---- */
.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  max-width: 640px;
  z-index: 2;
  pointer-events: none;
}

.hero-visual-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-canvas-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.hero-canvas-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--blue-main) 0%, transparent 30%, transparent 70%, var(--blue-main) 100%);
  animation: rotate-ring 8s linear infinite;
  z-index: -1;
}

@keyframes rotate-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Floating elements */
.hero-float {
  position: absolute;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,174,239,0.2);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  animation: float 4s ease-in-out infinite;
  pointer-events: none;
}

.hero-float-icon {
  width: 30px;
  height: 30px;
  background: var(--gradient-blue);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.hero-float-1 {
  top: 15%;
  left: -30px;
  animation-delay: 0s;
}

.hero-float-2 {
  bottom: 20%;
  left: -20px;
  animation-delay: 1.5s;
}

.hero-float-3 {
  top: 40%;
  right: -20px;
  animation-delay: 0.8s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* ---- HERO 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;
  cursor: pointer;
}

.hero-scroll-text {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--blue-main), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1023px) {
  .hero-visual {
    display: none;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .hero-stat {
    flex: 0 0 auto;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .hero-inner {
    padding: 120px 0 60px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px 0;
  }

  .hero-stat {
    flex: 0 0 50%;
    padding: 0 8px;
  }

  .hero-stat-divider {
    display: none;
  }

  .hero-stat-value {
    font-size: 1.5rem;
  }

  .hero-stat-label {
    font-size: 0.65rem;
  }
}
