/* Home page styles */
:root {
    --home-accent-color: #6E65C6;
}

.home-hero {
    text-align: center;
    margin: 3rem 0;
    margin-top: 1.5rem;
}

.home-hero-title {
    user-select: none;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #7a57d1 50%, #5e8cff 100%);
    background-size: 220% 220%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: hero-gradient-shift 5s ease infinite, home-hero-text-glow 2.2s ease-in-out infinite;
}

.home-hero-description {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.home-features {
    margin: 3rem 0;
}

.home-features-title {
    background: linear-gradient(135deg, #667eea 0%, #7a57d1 50%, #5e8cff 100%);
    background-size: 220% 220%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 2rem;
    animation: hero-gradient-shift 5s ease infinite, hero-text-glow 2.2s ease-in-out infinite;
}

.home-features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.home-feature-card {
    text-align: center;
    border: 1px solid rgba(110, 101, 198, 0.14);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.6s ease,
        border-color 0.6s ease;
}

.home-feature-card:hover,
.home-feature-card:focus-within {
    transform: translateY(-10px);
    border-color: rgba(110, 101, 198, 0.45);
    box-shadow: 0 14px 34px rgba(102, 126, 234, 0.28),
        0 0 22px rgba(118, 75, 162, 0.25);
}

.home-feature-heading {
    background: linear-gradient(135deg, #667eea 0%, #7a57d1 50%, #5e8cff 100%);
    background-size: 220% 220%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: hero-gradient-shift 4.2s ease infinite, card-header-text-glow 1.8s ease-in-out infinite;
}

.home-section-title {
    background: linear-gradient(135deg, #667eea 0%, #7a57d1 50%, #5e8cff 100%);
    background-size: 220% 220%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: hero-gradient-shift 4.8s ease infinite, hero-text-glow 1.9s ease-in-out infinite;
}

.home-feature-card:hover .home-feature-heading,
.home-feature-card:focus-within .home-feature-heading {
    filter: drop-shadow(0 0 10px rgba(122, 87, 209, 0.8))
        drop-shadow(0 0 18px rgba(102, 126, 234, 0.45));
}

.home-feature-icon {
    height: 1.1rem;
    width: 1.1rem;
    vertical-align: -2px;
    margin-right: 0.4rem;
    filter: brightness(0) saturate(100%) invert(46%) sepia(22%) saturate(1343%) hue-rotate(208deg) brightness(87%) contrast(88%);
}

.home-feature-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    border-radius: 12px;
    box-shadow: 0 0 14px rgba(102, 126, 234, 0.4),
        0 0 24px rgba(118, 75, 162, 0.28);
    transform: translateY(0);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.38s ease,
        filter 0.38s ease;
    animation: home-btn-passive-glow 2.8s ease-in-out infinite;
}

.home-feature-btn:hover,
.home-feature-btn:focus-visible {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.62),
        0 0 26px rgba(118, 75, 162, 0.48);
    filter: brightness(1.13);
}

.home-feature-btn:active {
    transform: translateY(-2px) scale(1.01);
}

.home-feature-btn-icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.45rem;
    vertical-align: middle;
}

@keyframes hero-gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes hero-text-glow {
    0%,
    100% {
        filter: drop-shadow(0 0 0 rgba(122, 87, 209, 0));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(122, 87, 209, 0.8))
            drop-shadow(0 0 28px rgba(102, 126, 234, 0.42));
    }
}

@keyframes card-header-text-glow {
    0%,
    100% {
        filter: drop-shadow(0 0 2px rgba(122, 87, 209, 0.28))
            drop-shadow(0 0 6px rgba(102, 126, 234, 0.2));
    }
    50% {
        filter: drop-shadow(0 0 14px rgba(122, 87, 209, 0.9))
            drop-shadow(0 0 24px rgba(102, 126, 234, 0.5));
    }
}

@keyframes home-hero-text-glow {
    0%,
    100% {
        filter: drop-shadow(0 0 0 rgba(122, 87, 209, 0));
    }
    50% {
        filter: drop-shadow(0 0 5px rgba(122, 87, 209, 0.22));
    }
}

@keyframes hero-letter-hop {
    0%,
    100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-2px);
    }
    50% {
        transform: translateY(0);
    }
}

@keyframes home-btn-passive-glow {
    0%,
    100% {
        box-shadow: 0 0 12px rgba(102, 126, 234, 0.34),
            0 0 18px rgba(118, 75, 162, 0.24);
    }
    50% {
        box-shadow: 0 0 18px rgba(102, 126, 234, 0.56),
            0 0 30px rgba(118, 75, 162, 0.4);
    }
}

.hero-letter {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #7a57d1 50%, #5e8cff 100%);
    background-size: 220% 220%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: hero-gradient-shift 5s ease infinite, home-hero-text-glow 2.2s ease-in-out infinite, hero-letter-hop 1.2s ease-in-out infinite;
    animation-delay: 0s, 0s, calc(var(--letter-index, 0) * 0.06s);
}

.hero-title-text {
    display: inline-flex;
    white-space: nowrap;
}

.hero-letter-space {
    display: inline-block;
}

.hero-title-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(111, 123, 236, 0.52));
    animation: rocket-bob 1.9s ease-in-out infinite;
}

@keyframes rocket-bob {
    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
        filter: drop-shadow(0 0 8px rgba(111, 123, 236, 0.42));
    }
    50% {
        transform: translateY(-5px) rotate(2deg);
        filter: drop-shadow(0 0 18px rgba(111, 123, 236, 0.75));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem 2rem;
    }

    .home-hero {
        margin: 0;
    }

    .home-hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
        gap: 0.5rem;
    }

    .hero-title-icon {
        width: 38px;
        height: 38px;
    }

    .home-hero-description {
        font-size: 0.98rem;
        line-height: 1.45;
        margin-bottom: 1rem;
    }

    .home-features {
        margin: 1.4rem 0;
    }

    .home-features-title,
    .home-section-title {
        margin-bottom: 1rem;
    }

    .home-features-title {
        font-size: 1.4rem;
    }

    .home-section-title {
        font-size: 1.3rem;
    }

    .home-features-grid,
    .grid {
        gap: 0.9rem;
        margin: 1rem 0;
    }

    .home-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .card {
        padding: 1rem;
        border-radius: 10px;
    }

    .card h3 {
        margin-bottom: 0.35rem;
    }

    .card p {
        font-size: 0.95rem;
        line-height: 1.45;
        margin-bottom: 0.6rem;
    }

    .home-feature-heading {
        margin-bottom: 0.65rem;
        font-size: 1.1rem;
    }

    .home-feature-icon {
        width: 1rem;
        height: 1rem;
        margin-right: 0.3rem;
    }

    .home-feature-btn {
        margin-top: 0.6rem;
        padding: 0.62rem 1rem;
        border-radius: 10px;
        font-size: 0.9rem;
    }

    .home-feature-btn-icon {
        width: 0.9rem;
        height: 0.9rem;
        margin-right: 0.35rem;
    }
}