// Hero section styles
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  
  // Background gradient mesh
  background: 
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  
  @media (max-width: 768px) {
    font-size: 2.5rem;
  }
  
  @media (max-width: 480px) {
    font-size: 2rem;
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  
  @media (max-width: 768px) {
    font-size: 1.25rem;
  }
  
  @media (max-width: 480px) {
    font-size: 1.125rem;
  }
}

.hero-cta-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  
  @media (max-width: 480px) {
    flex-direction: column;
    width: 100%;
    
    .btn-primary,
    .btn-ghost {
      width: 100%;
      justify-content: center;
    }
  }
}

.hero-visual {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  
  .mockup-container {
    position: relative;
    perspective: 1000px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    
    .editor-mockup {
      background: 
        linear-gradient(135deg, 
          rgba(255, 255, 255, 0.15) 0%, 
          rgba(255, 255, 255, 0.08) 50%,
          rgba(255, 255, 255, 0.03) 100%),
        radial-gradient(
          ellipse at top left,
          rgba(139, 92, 246, 0.1) 0%,
          transparent 40%
        );
      backdrop-filter: blur(40px) saturate(150%);
      -webkit-backdrop-filter: blur(40px) saturate(150%);
      border: 1px solid rgba(255, 255, 255, 0.25);
      border-radius: 20px;
      padding: 2rem;
      box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 12px 32px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
      transform: rotateX(5deg) rotateY(-5deg);
      transition: all 0.3s ease-out;
      position: relative;
      max-height: 90%;
      width: 90%;
      max-width: 500px;
      display: flex;
      flex-direction: column;
      
      &:hover {
        transform: rotateX(2deg) rotateY(-2deg) scale(1.02);
        backdrop-filter: blur(48px) saturate(160%);
        -webkit-backdrop-filter: blur(48px) saturate(160%);
        box-shadow: 
          0 0 0 1px rgba(255, 255, 255, 0.25),
          0 0 0 2px rgba(139, 92, 246, 0.3),
          0 40px 100px rgba(0, 0, 0, 0.7),
          0 20px 40px rgba(139, 92, 246, 0.2),
          inset 0 3px 0 rgba(255, 255, 255, 0.4),
          inset 0 -3px 0 rgba(0, 0, 0, 0.15);
      }
      
      .mockup-header {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
        
        .traffic-lights {
          display: flex;
          gap: 0.25rem;
          
          .light {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            
            &.red { background: #ff5f57; }
            &.yellow { background: #ffbd2e; }
            &.green { background: #28ca42; }
          }
        }
        
        .window-title {
          color: var(--text-secondary);
          font-size: 0.875rem;
          font-weight: 500;
        }
      }
      
      .mockup-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        
        .code-line {
          display: flex;
          align-items: center;
          padding: 0.75rem 0;
          font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
          font-size: 1.125rem;
          
          .line-number {
            color: var(--text-tertiary);
            margin-right: 1rem;
            min-width: 20px;
          }
          
          .code-text {
            color: var(--text-primary);
            
            .keyword { color: #ff79c6; }
            .string { color: #50fa7b; }
            .comment { color: var(--text-tertiary); }
            .function { color: #8be9fd; }
          }
        }
        
        .ai-suggestion {
          background: rgba(139, 92, 246, 0.1);
          border: 1px solid rgba(139, 92, 246, 0.2);
          border-radius: 12px;
          padding: 1.5rem;
          margin: 2rem 0;
          
          .suggestion-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
            
            .ai-icon {
              width: 16px;
              height: 16px;
              background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
              border-radius: 4px;
              display: flex;
              align-items: center;
              justify-content: center;
              
              svg {
                width: 10px;
                height: 10px;
                color: white;
              }
            }
            
            .suggestion-label {
              color: var(--accent-purple);
              font-weight: 500;
              font-size: 0.75rem;
              text-transform: uppercase;
              letter-spacing: 0.05em;
            }
          }
          
          .suggestion-text {
            color: var(--text-secondary);
            font-size: 1rem;
            line-height: 1.5;
          }
        }
      }
    }
  }
  
  // Floating elements
  .floating-element {
    position: absolute;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    
    &.element-1 {
      top: 20%;
      left: -10%;
      width: 120px;
      height: 120px;
      background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
      border-radius: 50%;
      animation-delay: 0s;
      animation-duration: 8s;
    }
    
    &.element-2 {
      top: 60%;
      right: -5%;
      width: 80px;
      height: 80px;
      background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
      border-radius: 50%;
      animation-delay: 2s;
      animation-duration: 10s;
    }
    
    &.element-3 {
      bottom: 20%;
      left: -8%;
      width: 100px;
      height: 100px;
      background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
      border-radius: 50%;
      animation-delay: 4s;
      animation-duration: 12s;
    }
  }
}

// Animation delays for staggered entrance
.hero-content > * {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  
  &:nth-child(1) { animation-delay: 0.1s; }
  &:nth-child(2) { animation-delay: 0.2s; }
  &:nth-child(3) { animation-delay: 0.3s; }
  &:nth-child(4) { animation-delay: 0.4s; }
}

.hero-visual {
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.5s forwards;
}