/* MineCloud — Home */

.home-hero {
    position: relative;
    padding: 5rem 0 4.5rem;
    overflow: hidden;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(83, 82, 237, 0.18), transparent 55%),
        radial-gradient(ellipse 50% 40% at 10% 80%, rgba(83, 82, 237, 0.08), transparent 50%);
    pointer-events: none;
}

.home-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

.home-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    margin-bottom: 1.25rem;
    border-radius: 999px;
    background: rgba(83, 82, 237, 0.12);
    border: 1px solid rgba(83, 82, 237, 0.28);
    color: #c8c7ff;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.home-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #f4f6fb;
    margin: 0 0 1.25rem;
    max-width: 14ch;
}

.home-hero__title span {
    background: linear-gradient(135deg, #8b8aff 0%, #5352ed 55%, #7c9cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-hero__lead {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #9aa8c0;
    max-width: 46ch;
    margin-bottom: 2rem;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    align-items: center;
}

.home-hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-hero__visual img {
    width: min(100%, 420px);
    height: auto;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.35));
}

.home-stats {
    padding: 0 0 4rem;
}

.home-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.home-stat {
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    background: rgba(21, 31, 54, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.home-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #f4f6fb;
    line-height: 1.2;
}

.home-stat span {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: #8b98ad;
}

.home-section {
    padding: 4.5rem 0;
}

.home-section--alt {
    background: linear-gradient(180deg, rgba(12, 19, 34, 0.4) 0%, rgba(12, 19, 34, 0.85) 100%);
}

.home-section__head {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 3rem;
}

.home-section__eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7b7aff;
}

.home-section__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #f4f6fb;
    margin: 0 0 0.875rem;
}

.home-section__desc {
    font-size: 1rem;
    line-height: 1.65;
    color: #8b98ad;
    margin: 0;
}

.home-services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.home-service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
    border-radius: 18px;
    background: rgba(21, 31, 54, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.home-service-card:hover {
    border-color: rgba(83, 82, 237, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.home-service-card__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(83, 82, 237, 0.15);
    color: #8b8aff;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.home-service-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: #f4f6fb;
    margin: 0 0 0.75rem;
}

.home-service-card p {
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #8b98ad;
    margin: 0 0 1.5rem;
}

.home-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.home-feature {
    padding: 1.75rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.home-feature:hover {
    background: rgba(83, 82, 237, 0.06);
}

.home-feature__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(83, 82, 237, 0.18);
    color: #a5a4ff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.home-feature h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #eef1f7;
    margin: 0 0 0.5rem;
}

.home-feature p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #8b98ad;
    margin: 0;
}

.home-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.home-testimonial {
    padding: 1.75rem;
    border-radius: 16px;
    background: rgba(21, 31, 54, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.home-testimonial__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.home-testimonial__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5352ed, #7c72dc);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
}

.home-testimonial__name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #eef1f7;
    margin: 0;
}

.home-testimonial blockquote {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #9aa8c0;
    font-style: normal;
}

.home-cta {
    padding: 4rem 0 5rem;
}

.home-cta__box {
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(83, 82, 237, 0.2) 0%, rgba(21, 31, 54, 0.95) 60%);
    border: 1px solid rgba(83, 82, 237, 0.3);
}

.home-cta__box h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #f4f6fb !important;
    margin: 0 0 0.75rem !important;
}

.home-cta__box p {
    color: #9aa8c0;
    max-width: 36rem;
    margin: 0 auto 1.75rem;
    line-height: 1.6;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-home--primary {
    background: linear-gradient(135deg, #6362ff 0%, #5352ed 100%);
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(83, 82, 237, 0.35);
}

.btn-home--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(83, 82, 237, 0.45);
    opacity: 1;
    text-decoration: none;
}

.btn-home--ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #eef1f7 !important;
}

.btn-home--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: #fff !important;
}

@media (max-width: 991px) {
    .home-hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home-hero__title,
    .home-hero__lead {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero__actions {
        justify-content: center;
    }

    .home-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-services__grid,
    .home-features__grid,
    .home-testimonials__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .home-hero {
        padding-top: 3.5rem;
    }

    .home-stats__grid {
        grid-template-columns: 1fr;
    }

    .home-hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .home-hero__actions .btn-home {
        width: 100%;
    }
}
