/* Non-specification cleanup and visual polish */

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

.mobile-menu {
    border: 0;
}

.mobile-menu:focus-visible,
.btn-primary:focus-visible,
.btn-outline:focus-visible,
.faq-title:focus-visible,
.product-info a:focus-visible,
.special-product-body a:focus-visible,
.social a:focus-visible,
.floating-call:focus-visible,
.floating-zalo:focus-visible,
.back-top:focus-visible {
    outline: 3px solid rgba(10, 107, 255, .28);
    outline-offset: 3px;
}

.hero-content {
    max-width: 650px;
}

.hero-image img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.feature-grid,
.application-grid,
.product-grid {
    align-items: stretch;
}

.feature-box,
.app-card,
.product-card {
    height: 100%;
}

.feature-box,
.app-card,
.product-card,
.cta-box {
    transition: transform .25s ease, box-shadow .25s ease;
}

.app-card,
.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-card img,
.product-card img {
    width: 100%;
    object-position: center;
}

.app-content,
.product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.app-content p,
.product-info p {
    flex: 1;
}

.product-info a {
    margin-top: auto;
}

.footer-logo {
    display: block;
    max-width: 180px;
    height: auto;
}

.footer-grid > div:first-child {
    min-width: 0;
}

/* Special product showcase */
.special-products {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 10%, rgba(10, 107, 255, .10), transparent 28%),
        radial-gradient(circle at 90% 90%, rgba(73, 162, 255, .10), transparent 30%),
        linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%);
}

.special-products::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    top: -240px;
    right: -160px;
    border: 70px solid rgba(10, 107, 255, .04);
    border-radius: 50%;
    pointer-events: none;
}

.special-products .container {
    position: relative;
    z-index: 1;
}

.special-products-title p {
    max-width: 800px;
    margin-inline: auto;
}

.special-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.special-product-card {
    position: relative;
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(18, 72, 135, .09);
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 50px rgba(20, 54, 92, .09);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.special-product-card-featured {
    border-color: rgba(10, 107, 255, .28);
    box-shadow: 0 24px 60px rgba(10, 107, 255, .14);
}

.special-product-media {
    position: relative;
    display: grid;
    min-height: 235px;
    place-items: center;
    overflow: hidden;
    padding: 28px;
    background: linear-gradient(145deg, #edf6ff, #ffffff);
}

.special-product-media img {
    width: 100%;
    height: 185px;
    object-fit: contain;
    transition: transform .35s ease;
}

.special-product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 22px rgba(20, 54, 92, .10);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
}

.special-product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px;
}

.special-product-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-top: -49px;
    margin-bottom: 18px;
    border: 5px solid #fff;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #49a2ff);
    box-shadow: 0 10px 28px rgba(10, 107, 255, .23);
    font-size: 18px;
    z-index: 1;
}

.special-product-body h3 {
    margin-bottom: 11px;
    color: #152c49;
    font-size: 23px;
    line-height: 1.3;
}

.special-product-body > p {
    margin-bottom: 18px;
    color: #637288;
    font-size: 15px;
    line-height: 1.7;
}

.special-product-body ul {
    display: grid;
    gap: 9px;
    margin-bottom: 22px;
}

.special-product-body li {
    position: relative;
    padding-left: 22px;
    color: #334b68;
    font-size: 14px;
    line-height: 1.5;
}

.special-product-body li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: 900;
}

.special-product-body a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    margin-top: auto;
    color: var(--primary);
    font-weight: 800;
}

.special-product-body a i {
    font-size: 13px;
    transition: transform .2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .feature-box:hover,
    .app-card:hover,
    .product-card:hover,
    .special-product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 22px 50px rgba(20, 54, 92, .12);
    }

    .special-product-card:hover {
        border-color: rgba(10, 107, 255, .24);
    }

    .special-product-card:hover .special-product-media img {
        transform: scale(1.05);
    }

    .special-product-body a:hover i {
        transform: translateX(4px);
    }
}

@media (max-width: 992px) {
    .special-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .special-product-card:last-child {
        grid-column: 1 / -1;
        width: min(100%, 560px);
        justify-self: center;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: clamp(30px, 8.5vw, 45px) !important;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image {
        width: min(92%, 520px);
        margin-inline: auto;
    }

    .hero-image img {
        aspect-ratio: 1 / 1;
        object-fit: contain;
        background: rgba(255, 255, 255, .72);
    }

    .application-grid {
        grid-template-columns: 1fr !important;
    }

    .app-card img {
        height: 180px !important;
        object-fit: cover;
    }

    .app-content,
    .product-info {
        min-height: 0;
    }

    .special-products {
        padding: 52px 0 !important;
    }

    .special-products .section-title {
        margin-bottom: 28px !important;
    }

    .special-product-grid {
        display: flex;
        gap: 14px;
        margin-inline: -16px;
        padding: 4px 16px 18px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .special-product-grid::-webkit-scrollbar {
        display: none;
    }

    .special-product-card,
    .special-product-card:last-child {
        flex: 0 0 86%;
        width: auto;
        max-width: 340px;
        min-height: 100%;
        grid-column: auto;
        justify-self: auto;
        scroll-snap-align: center;
        border-radius: 19px;
    }

    .special-product-media {
        min-height: 190px;
        padding: 20px;
    }

    .special-product-media img {
        height: 145px;
    }

    .special-product-body {
        padding: 22px 20px;
    }

    .special-product-icon {
        width: 42px;
        height: 42px;
        margin-top: -43px;
        margin-bottom: 15px;
        border-width: 4px;
        border-radius: 13px;
    }

    .special-product-body h3 {
        font-size: 20px;
    }

    .special-product-body > p {
        font-size: 14px;
        line-height: 1.62;
    }

    .special-product-body li {
        font-size: 13px;
    }

    .cta-box .btn-primary {
        width: 100%;
    }

    footer .footer-grid > div:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        max-width: 150px;
        margin-inline: auto;
    }

    .mobile-menu {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .hero-number {
        gap: 8px !important;
    }

    .hero-number > div {
        min-width: 0;
    }

    .hero-number h2 {
        font-size: 22px !important;
    }

    .feature-box,
    .app-card,
    .product-card {
        border-radius: 15px !important;
    }

    .special-product-card,
    .special-product-card:last-child {
        flex-basis: 88%;
    }

    .cta-box {
        text-align: left !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .feature-box,
    .app-card,
    .product-card,
    .special-product-card,
    .special-product-media img,
    .special-product-body a i,
    .cta-box {
        transition: none;
    }
}