/* ===== HOME PAGE SPECIFIC ===== */

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 100px 0 60px;
    position: relative;
    overflow: visible;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: 
        radial-gradient(circle at 30% 40%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(244, 114, 182, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: bg-pulse 6s ease-in-out infinite alternate;
}

/* Floating orbs */
.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 5s ease-in-out infinite;
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, var(--primary-light), var(--accent), var(--secondary));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    line-height: 1.15;
    animation: gradient-shift 6s ease infinite, slide-up 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
    animation: slide-up 1s ease;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
    animation: slide-up 1.2s ease;
}

.hero-stat {
    text-align: center;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
    min-width: 120px;
}

.hero-stat:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.hero-stat .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ===== TOOLS GRID ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 32px 0 56px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
    display: block;
    position: relative;
    overflow: hidden;
    animation: scale-in 0.5s ease backwards;
}

/* Stagger animation */
.tool-card:nth-child(1) { animation-delay: 0.05s; }
.tool-card:nth-child(2) { animation-delay: 0.1s; }
.tool-card:nth-child(3) { animation-delay: 0.15s; }
.tool-card:nth-child(4) { animation-delay: 0.2s; }
.tool-card:nth-child(5) { animation-delay: 0.25s; }
.tool-card:nth-child(6) { animation-delay: 0.3s; }
.tool-card:nth-child(7) { animation-delay: 0.35s; }
.tool-card:nth-child(8) { animation-delay: 0.4s; }
.tool-card:nth-child(9) { animation-delay: 0.45s; }
.tool-card:nth-child(10) { animation-delay: 0.5s; }
.tool-card:nth-child(11) { animation-delay: 0.55s; }
.tool-card:nth-child(12) { animation-delay: 0.6s; }

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity var(--transition);
    animation: gradient-shift 3s ease infinite;
}

.tool-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99, 102, 241, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(99, 102, 241, 0.3);
    background: var(--bg-card-hover);
}

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

.tool-card:hover::after {
    opacity: 1;
}

.tool-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
    transition: transform var(--transition-bounce);
}

.tool-card:hover .tool-icon {
    transform: scale(1.15) rotate(-5deg);
}

.tool-card h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    transition: color var(--transition-fast);
}

.tool-card:hover h2 {
    color: var(--primary-light);
}

.tool-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.tool-card .tool-arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-muted);
    transition: all var(--transition);
}

.tool-card:hover .tool-arrow {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.features-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 48px;
    color: var(--text);
    letter-spacing: -0.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-item {
    padding: 32px 24px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.feature-item:hover {
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(244, 114, 182, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 20px;
    transition: all var(--transition);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.feature-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 40px;
    }

    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-stats {
        gap: 12px;
        flex-wrap: wrap;
    }

    .hero-stat {
        min-width: 100px;
        padding: 16px;
    }

    .hero-stat .stat-number {
        font-size: 1.5rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tool-card {
        padding: 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
