.home-page {
    background: #f8fafc;
    color: #1e293b;
    font-family: Cairo, sans-serif;
}

.home-hero {
    box-sizing: border-box;
    width: 100%;
    padding: 8.5rem 0.5rem 5.5rem;
    background: linear-gradient(to bottom, #f8fafc, #fff);
}

.home-hero__grid {
    box-sizing: border-box;
    display: grid;
    grid-template-areas: "copy" "model";
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
    width: min(100%, 80rem);
    margin-inline: auto;
    direction: rtl;
}

.home-hero__copy {
    display: flex;
    grid-area: copy;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    text-align: center;
}

.home-hero__title {
    margin: 0;
    color: #0b2545;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.55;
}

.home-hero__title > .home-hero__title {
    display: block;
    margin-top: 1rem;
    color: #0077b6;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.65;
}

.home-hero__subtitle {
    display: block;
    margin-top: 1rem;
    color: #0077b6;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.65;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.home-hero__cta {
    box-sizing: border-box;
    display: inline-flex;
    min-height: 3.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 1rem;
    padding: 0.875rem 1.75rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.home-hero__cta:hover {
    transform: translateY(-2px);
}

.home-hero__cta--primary {
    background: #059669;
    color: #fff;
    box-shadow: 0 10px 24px rgba(5, 150, 105, 0.2);
}

.home-hero__cta--primary:hover {
    background: #047857;
}

.home-hero__cta--secondary {
    border-color: #e2e8f0;
    background: #fff;
    color: #0b2545;
}

.home-hero__cta--secondary:hover {
    border-color: #0077b6;
    color: #0077b6;
}

.home-hero__model-wrap {
    display: flex;
    grid-area: model;
    width: 100%;
    min-width: 0;
    height: 23rem;
    min-height: 23rem;
    align-items: center;
    justify-content: center;
    cursor: grab;
}

.home-hero__model-wrap:active {
    cursor: grabbing;
}

#hero-3d-model {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 23rem;
    outline: none;
}

#hero-3d-model::part(default-progress-bar),
#hero-3d-model::part(default-progress-mask) {
    display: none !important;
}

.home-footer {
    font-family: Cairo, sans-serif;
}

.footer-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 2.5rem;
}

.footer-columns > * {
    min-width: 0;
    align-self: start;
}

.footer-logo {
    display: block;
    width: min(100%, 15rem);
    height: 5.5rem;
    margin: 0 0 1rem;
    object-fit: cover;
    object-position: center 62%;
}

.footer-column > h4 {
    margin: 0 0 1.25rem;
}

.footer-column ul {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column .space-y-3\.5 {
    display: grid;
    gap: 0.875rem;
}

@media (min-width: 640px) {
    .home-hero {
        padding-inline: 1.5rem;
    }

    .home-hero__title {
        font-size: 2.25rem;
    }

    .home-hero__model-wrap,
    #hero-3d-model {
        height: 25rem;
        min-height: 25rem;
    }

    .footer-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .home-hero {
        padding: 9rem 2rem 6rem;
    }

    .home-hero__grid {
        grid-template-areas: "copy model";
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 3.5rem;
    }

    .home-hero__copy {
        align-items: flex-start;
        text-align: right;
    }

    .home-hero__title {
        font-size: 2.75rem;
    }

    .home-hero__actions {
        justify-content: flex-start;
    }

    .home-hero__model-wrap,
    #hero-3d-model {
        height: 29rem;
        min-height: 26rem;
    }

    .footer-columns {
        grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
        gap: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__cta {
        transition: none;
    }
}