/* HERO SECTION */
.hero-section {
  position: relative;
  background: var(--gradient-hero);
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: var(--gradient-glow);
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* 3D Rotating CSS Cluster */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  height: 350px;
}

.icon-cluster-3d {
  position: relative;
  width: 200px;
  height: 200px;
  transform-style: preserve-3d;
  animation: rotateCluster 12s infinite linear;
}

.cluster-card {
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--color-surface);
  border: 1px solid var(--color-primary);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  backface-visibility: visible;
  transition: transform 0.3s;
}

/* Position cards in 3D Space */
.card-pdf {
  transform: rotateY(0deg) translateZ(100px);
  color: #DC2626;
}
.card-img {
  transform: rotateY(90deg) translateZ(100px);
  color: #16A34A;
}
.card-code {
  transform: rotateY(180deg) translateZ(100px);
  color: #0EA5E9;
}
.card-term {
  transform: rotateY(270deg) translateZ(100px);
  color: #F97316;
}

@keyframes rotateCluster {
  0% {
    transform: rotateY(0deg) rotateX(10deg);
  }
  100% {
    transform: rotateY(360deg) rotateX(10deg);
  }
}

/* Trust Bar */
.trust-bar {
  margin-top: 48px;
  padding: 16px 32px;
  background: var(--color-dark-bg);
  color: #FFFFFF;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  align-self: flex-start;
  font-weight: 500;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  flex-wrap: wrap;
}
[data-theme="dark"] .trust-bar {
  background: var(--color-surface-raised);
}
.trust-bar span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-bar .dot {
  color: var(--color-primary);
}

/* CATEGORY SHOWCASE */
.cat-card-grid {
  margin-top: 24px;
}
.cat-card {
  text-align: left;
}
.cat-card .badge-count {
  background: var(--gradient-primary);
  color: #000;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
}

/* Entrance Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.appear {
  opacity: 1;
  transform: translateY(0);
}

/* HOW IT WORKS */
.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}
.step-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 2;
}
.step-num {
  font-size: 80px;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.step-title {
  font-size: 20px;
  font-weight: 700;
}
.step-desc {
  color: var(--color-text-secondary);
}
.steps-connector {
  position: absolute;
  top: 50px;
  left: 10%;
  right: 10%;
  height: 2px;
  border-top: 2px dashed var(--color-primary);
  opacity: 0.5;
  z-index: 1;
}

/* STATS BAR */
.stats-bar {
  background: #0A0A0A !important;
  color: #FFFFFF !important;
  padding: 64px 24px;
  text-align: center;
}
.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-number {
  font-size: 48px;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  color: var(--color-dark-text-muted);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* TESTIMONIALS */
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
}
.stars {
  color: var(--color-primary);
  font-size: 20px;
}
.testimonial-text {
  font-style: italic;
  color: var(--color-text-secondary);
}
.testimonial-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--gradient-primary);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.user-info {
  display: flex;
  flex-direction: column;
}
.user-name {
  font-weight: 700;
  color: var(--color-text);
}
.user-title {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-visual {
    height: 250px;
  }
  .trust-bar {
    align-self: center;
  }
  .steps-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .steps-connector {
    display: none;
  }
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
