/* ===== MODERN HERO SECTION ===== */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 6rem 1rem 4rem 1rem;
  position: relative;
  overflow: hidden;
  margin-top: 80px;
}

/* Animated Background */
.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-gradient-1 {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  animation: float1 20s ease-in-out infinite;
}

.bg-gradient-2 {
  position: absolute;
  bottom: -50%;
  left: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  animation: float2 25s ease-in-out infinite;
}

html[data-theme='dark'] .bg-gradient-1 {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
}

html[data-theme='dark'] .bg-gradient-2 {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
}

html[data-theme='dark'] .bg-grid {
  background-image: 
    linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(50px, 50px) rotate(180deg); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-50px, -50px) rotate(-180deg); }
}

/* Hero Container */
.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

/* ===== HERO CONTENT ===== */
.hero-content {
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(99, 102, 241, 0.1));
  border: 2px solid rgba(79, 70, 229, 0.2);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #4f46e5;
  animation: badgeFloat 3s ease-in-out infinite;
}

html[data-theme='dark'] .hero-badge {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
  border-color: rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

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

/* Hero Title */
.hero-title {
  font-size: 4rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -2px;
}

.gradient-text {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  animation: gradientShift 3s ease infinite;
}

html[data-theme='dark'] .gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #818cf8 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes gradientShift {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(10deg); }
}

/* Hero Description */
.hero-description {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 600px;
}

/* Hero Features */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.feature-item svg {
  color: #10b981;
  flex-shrink: 0;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.hero-btn.primary {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}

.hero-btn.primary:hover {
  background: linear-gradient(135deg, #3b82f6, #4f46e5);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(79, 70, 229, 0.4);
  color: white;
  text-decoration: none;
}

.hero-btn.primary svg {
  transition: transform 0.3s ease;
}

.hero-btn.primary:hover svg {
  transform: translateX(3px);
}

.hero-btn.secondary {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hero-btn.secondary:hover {
  background: var(--surface);
  border-color: #4f46e5;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.15);
  color: var(--text);
  text-decoration: none;
}

/* Trust Section */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trust-avatars {
  display: flex;
  margin-left: -8px;
}

.avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--bg);
  margin-left: -8px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.avatar svg {
  color: white;
  width: 20px;
  height: 20px;
}

.avatar:hover {
  transform: translateY(-5px) scale(1.1);
  z-index: 10;
}

.trust-text {
  font-size: 0.95rem;
  color: var(--muted);
}

.trust-text strong {
  color: #4f46e5;
  font-weight: 700;
}

html[data-theme='dark'] .trust-text strong {
  color: #a78bfa;
}

/* ===== HERO VISUAL ===== */
.hero-visual {
  position: relative;
  animation: fadeIn 1.2s ease 0.3s backwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.visual-card {
  position: relative;
  border-radius: 2rem;
  overflow: visible;
}

.card-glow {
  position: absolute;
  inset: -20px;
  background: linear-gradient(135deg, #4f46e5, #6366f1, #8b5cf6);
  border-radius: 2rem;
  filter: blur(40px);
  opacity: 0.3;
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
}

.hero-lottie {
  width: 500px;
  height: 500px;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  display: block;
}

/* Floating Stats */
.floating-stat {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(99, 102, 241, 0.1);
  backdrop-filter: blur(10px);
  animation: floatUpDown 3s ease-in-out infinite;
}

:root .floating-stat {
  background: white;
  border: 2px solid rgba(79, 70, 229, 0.15);
}

html[data-theme='dark'] .floating-stat {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.stat-1 {
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}

.stat-2 {
  bottom: 15%;
  left: -10%;
  animation-delay: 1.5s;
}

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

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border-radius: 12px;
  flex-shrink: 0;
}

.stat-icon svg {
  color: white;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.floating-stat .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

:root .floating-stat .stat-value {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html[data-theme='dark'] .floating-stat .stat-value {
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.floating-stat .stat-label {
  font-size: 0.8rem;
  color: #334155 !important;
  font-weight: 600;
  margin-top: 0.25rem;
}

:root .floating-stat .stat-label {
  color: #1e293b !important;
}

html[data-theme='dark'] .floating-stat .stat-label {
  color: #cbd5e1 !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1024px) {
  .hero-container {
    gap: 3rem;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .floating-stat {
    padding: 0.75rem 1rem;
  }
  
  .stat-value {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 4rem 1rem 3rem 1rem;
    margin-top: 60px;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-description {
    max-width: 100%;
  }

  .hero-features {
    justify-content: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-trust {
    justify-content: center;
  }
  
  .hero-lottie {
    width: 350px;
    height: 350px;
  }
  
  .floating-stat {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
    letter-spacing: -1px;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-features {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .hero-lottie {
    width: 280px;
    height: 280px;
  }
  
  .avatar {
    width: 40px;
    height: 40px;
  }
  
  .avatar svg {
    width: 18px;
    height: 18px;
  }
}

/* ===== REVEAL ANIMATIONS ===== */
[data-reveal="fade"] {
  opacity: 0;
  transition: opacity 0.8s ease;
}

[data-reveal="fade"].is-visible {
  opacity: 1;
}