/* ===================================
   HOMEPAGE STYLES
   =================================== */

/* Hero Section */
.hero {
    padding: var(--space-3xl) 0;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 91, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), var(--color-primary-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: 100px;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    box-shadow: 0 4px 12px rgba(99, 91, 255, 0.1);
    position: relative;
    z-index: 1;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
    color: var(--color-text-primary);
}

.hero-description {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-2xl);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-3xl);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    padding: var(--space-2xl) 0 0;
    border-top: 1px solid var(--color-border);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tools Preview Section */
.tools-preview {
    padding: var(--space-3xl) 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.tool-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(50, 50, 93, 0.06);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 12px 32px rgba(99, 91, 255, 0.15), 0 2px 8px rgba(50, 50, 93, 0.08);
    transform: translateY(-6px);
}

.tool-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    box-shadow: 0 4px 12px rgba(99, 91, 255, 0.2);
}

.tool-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* Alternate icon colors */
.tool-card:nth-child(2) .tool-icon {
    background: var(--color-success-gradient);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.2);
}

.tool-card:nth-child(3) .tool-icon {
    background: var(--gradient-warm);
    box-shadow: 0 4px 12px rgba(255, 159, 67, 0.2);
}

.tool-card:nth-child(3) .tool-icon svg {
    color: var(--color-orange);
}

.tool-card:nth-child(4) .tool-icon {
    background: linear-gradient(135deg, #4d9fff 0%, #6eb3ff 100%);
    box-shadow: 0 4px 12px rgba(77, 159, 255, 0.2);
}

.tool-card:nth-child(5) .tool-icon {
    background: var(--color-accent-gradient);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.tool-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
}

.tool-card p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    flex-grow: 1;
    margin-bottom: var(--space-md);
}

.tool-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tool-arrow {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    transition: transform var(--transition-base);
}

.tool-card:hover .tool-arrow {
    transform: translateX(4px);
}

.tool-card-more {
    border-style: dashed;
}

.tool-card-more:hover {
    background: var(--color-surface);
}

/* Features Section */
.features {
    padding: var(--space-3xl) 0;
    background: var(--gradient-warm);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1.5" fill="%23635bff" opacity="0.1"/></svg>');
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-2xl);
}

.feature {
    text-align: center;
    position: relative;
    z-index: 1;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 16px rgba(99, 91, 255, 0.1);
}

.feature h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.feature p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

/* Social Proof Section */
.social-proof {
    padding: var(--space-3xl) 0;
}

.social-proof-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-2xl);
}

.testimonial {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.testimonial-quote {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    color: var(--color-text-primary);
    margin-bottom: var(--space-lg);
}

.testimonial-quote::before {
    content: '"';
    font-size: 2em;
    color: var(--color-primary);
    line-height: 0;
}

.author-name {
    font-weight: 600;
    color: var(--color-text-primary);
}

.author-title {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
}

/* CTA Section */
.cta-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, #f0efff 0%, #e0f9f4 50%, #fff4e8 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 91, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -25%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-description {
        font-size: var(--font-size-lg);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .social-proof-content {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}