/* Enhanced home page styles for modern brilliance */

/* Hero enhancements */
.hero {
  position: relative;
  padding: 120px 0 100px;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.15), transparent 50%),
              radial-gradient(ellipse at bottom, rgba(168, 85, 247, 0.1), transparent 50%);
}

/* Animated gradient mesh overlay */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(168, 85, 247, 0.15), transparent 25%),
    radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.15), transparent 25%),
    radial-gradient(circle at 40% 20%, rgba(6, 182, 212, 0.1), transparent 25%);
  animation: meshMove 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes meshMove {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(5%, 10%) rotate(5deg); }
  66% { transform: translate(-5%, 5%) rotate(-5deg); }
}

#particles {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.6;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

/* Enhanced tag with pulse animation */
.hero .tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.12), rgba(99, 102, 241, 0.08));
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 32px;
  animation: float 3s ease-in-out infinite;
}

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

.hero .tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  box-shadow: 0 0 16px var(--grad-1), 0 0 32px var(--grad-2);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Spectacular hero heading */
.hero h1 {
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  margin: 0 0 24px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, 
    #ffffff 0%, 
    #e6eaff 25%, 
    var(--grad-1) 50%, 
    var(--grad-2) 75%, 
    var(--grad-3) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite;
  text-shadow: none;
  filter: drop-shadow(0 4px 24px rgba(168, 85, 247, 0.3));
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* Enhanced hero description */
.hero p {
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 21px);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.7;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* Button enhancements with glow effects */
.hero .btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero .btn-primary {
  position: relative;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  border: none;
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.4), 
              0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transform-origin: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero .btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 56px rgba(168, 85, 247, 0.6),
              0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.hero .btn-secondary {
  background: rgba(15, 26, 46, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(168, 85, 247, 0.3);
  transition: all 0.3s ease;
}

.hero .btn-secondary:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.3);
}

/* Features section enhancements */
#features {
  position: relative;
  padding: 80px 0 100px;
}

#features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(168, 85, 247, 0.3) 20%, 
    rgba(99, 102, 241, 0.3) 50%, 
    rgba(6, 182, 212, 0.3) 80%, 
    transparent);
}

#features h2 {
  text-align: center;
  font-family: Orbitron, Inter, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 60px;
  background: linear-gradient(135deg, var(--text) 30%, var(--grad-1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced feature cards with glassmorphism */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  position: relative;
  padding: 36px 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, 
    rgba(15, 26, 46, 0.8), 
    rgba(12, 22, 38, 0.6));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

/* Radial gradient overlay on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 0%, 
    rgba(168, 85, 247, 0.15), 
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 20px 60px rgba(168, 85, 247, 0.25),
              0 0 0 1px rgba(168, 85, 247, 0.2) inset;
}

/* Enhanced icon container */
.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: 
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.25), transparent 60%),
    radial-gradient(circle at bottom right, rgba(6, 182, 212, 0.25), transparent 60%),
    linear-gradient(180deg, rgba(23, 32, 56, 0.9), rgba(18, 26, 48, 0.7));
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.2),
              0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.card:hover .icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.4);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
  position: relative;
  z-index: 1;
}

/* Get Started section with CTA glow */
#get-started {
  padding: 80px 0 120px;
  text-align: center;
  position: relative;
}

#get-started::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1), transparent 70%);
  pointer-events: none;
}

#get-started h2 {
  font-family: Orbitron, Inter, sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text), var(--grad-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#get-started p {
  max-width: 680px;
  margin: 0 auto 32px;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero {
    padding: 100px 0 80px;
  }
  
  .grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  
  #features, #get-started {
    padding: 60px 0;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 80px 0 60px;
  }
  
  .hero .tag {
    font-size: 12px;
    padding: 8px 14px;
  }
  
  .hero .btns {
    flex-direction: column;
    gap: 12px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero .btn {
    width: 100%;
  }
  
  .card {
    padding: 28px 22px;
  }
}
