﻿@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

#topBar {
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease, height 0.35s ease, padding 0.35s ease, margin 0.35s ease;
}

#topBar.is-hidden {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
}

#mainHeader {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

#mainHeader.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.swiper-pagination-bullet {
    background: rgba(157, 50, 251, 0.35);
    opacity: 1;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    background: #9d32fb;
    width: 24px;
    border-radius: 999px;
}

.brand-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.brand-logo::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 2.5px;
    background: #9d32fb;
    border-radius: 999px;
}

.product-toggle,
.product-dropdown {
    transition: all 0.2s ease;
}

.product-toggle:hover,
.product-toggle:focus-visible {
    color: #9d32fb;
}

.product-menu-wrapper:focus-within .product-dropdown,
.product-menu-wrapper .product-dropdown:not(.hidden) {
    display: block;
}

@media (max-width: 1023.98px) {
    #mototechNavOverlay {
        z-index: 40;
    }

    #mototechNav {
        pointer-events: auto;
    }

    #mototechNav .group > div {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0.5rem;
        padding: 0.5rem 0;
        background: transparent;
    }

    .quality-swiper {
        overflow: hidden;
    }

    .quality-swiper .swiper-wrapper {
        display: flex;
    }

    .quality-swiper .swiper-slide {
        width: 100% !important;
        max-width: 100% !important;
        display: flex;
        justify-content: center;
    }
}

:root {
    --font-sans: 'Montserrat', sans-serif;
    --font-display-weight: 400;
    --font-body-weight: 400;
    --font-label-weight: 600;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
.font-sans {
    font-family: var(--font-sans);
    font-weight: var(--font-body-weight);
    letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-sans);
    font-weight: var(--font-display-weight);
    letter-spacing: 0;
}

/* Tailwind's display weights are too heavy for the reference style. */
.font-black,
.font-extrabold {
    font-weight: var(--font-label-weight) !important;
}

.text-2xl.font-black,
.text-3xl.font-black,
.text-4xl.font-black,
.text-5xl.font-black,
.text-2xl.font-extrabold,
.text-3xl.font-extrabold,
.text-4xl.font-extrabold,
.text-5xl.font-extrabold {
    font-weight: 500 !important;
}

html {
    scroll-behavior: smooth;
}

@keyframes rotatingDottedRing {
    0% {
        transform: rotate(0deg) scale(1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.feature-card {
    transform: translateY(8px);
    box-shadow: 0 12px 28px rgba(157, 50, 251, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature-card:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 16px 26px rgba(157, 50, 251, 0.12);
}

.feature-card .rotating-border {
    inset: -8px;
    border-radius: 9999px;
    border: 1.5px dashed rgba(157, 50, 251, 0.9);
    animation: rotatingDottedRing 14s linear infinite;
    transition: all 0.35s ease;
    opacity: 0.8;
}

.feature-card .solid-border {
    inset: -8px;
    border-radius: 9999px;
    border: 1.5px solid rgba(157, 50, 251, 0.9);
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.feature-card:hover .rotating-border {
    animation-play-state: paused;
    border-style: solid;
    border-width: 2px;
    opacity: 1;
    transform: scale(1.01);
}

.feature-card:hover .solid-border {
    opacity: 1;
    transform: scale(1.0);
}

.feature-card:hover .icon-badge {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(157, 50, 251, 0.14);
}

.feature-card .icon-badge {
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.feature-card:hover .icon-badge {
    border-color: #9d32fb;
    transform: translateY(-50%) translateX(-2px);
}
