/* =========================================================
   Tech Marquee — Infinite ticker (Magic UI / shadcn pattern)
   Divisória entre Hero e a próxima seção
   Tipografia: Space Grotesk · estética Linear / SaaS premium
   ========================================================= */

@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../assets/fonts/space-grotesk-600.woff2") format("woff2");
}

.tech-marquee {
    --tm-duration: 40s;
    --tm-gap: 2.25rem; /* 36px */
    --tm-bg: #0b0a12;
    --tm-text: #B7B5C1;
    --tm-text-hover: #F5F2FB;
    --tm-dot: #8448E8;

    position: relative;
    z-index: 40;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--tm-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.035);
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
    font-family: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
    font-synthesis: none;
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 8%,
        #000 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 8%,
        #000 92%,
        transparent 100%
    );
}

.tech-marquee__track {
    display: flex;
    width: max-content;
    align-items: center;
    animation: tech-marquee-scroll var(--tm-duration) linear infinite;
    will-change: transform;
}

.tech-marquee:hover .tech-marquee__track,
.tech-marquee:focus-within .tech-marquee__track {
    animation-play-state: paused;
}

.tech-marquee__group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: var(--tm-gap);
    margin: 0;
    padding: 0 var(--tm-gap) 0 0;
    list-style: none;
}

.tech-marquee__item {
    display: inline-flex;
    align-items: center;
    gap: var(--tm-gap);
    white-space: nowrap;
    font-family: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 1.125rem; /* 18px mobile */
    font-weight: 600;
    letter-spacing: -0.035em;
    color: var(--tm-text);
    line-height: 1.2;
    transition: color 0.2s ease;
}

@media (min-width: 768px) {
    .tech-marquee__item {
        font-size: 1.25rem; /* 20px desktop */
    }
}

.tech-marquee__item:hover {
    color: var(--tm-text-hover);
}

.tech-marquee__item::after {
    content: "";
    width: 4px;
    height: 4px;
    flex: none;
    border-radius: 50%;
    background: var(--tm-dot);
    box-shadow: 0 0 6px rgba(132, 72, 232, 0.35);
}

@keyframes tech-marquee-scroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .tech-marquee__track {
        animation: none;
        transform: none;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 0.65rem;
        padding: 0.75rem 1.25rem;
    }

    .tech-marquee__group[aria-hidden="true"] {
        display: none;
    }

    .tech-marquee__group {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
        gap: 0.85rem 1.5rem;
    }

    .tech-marquee__item::after {
        display: none;
    }

    .tech-marquee {
        height: auto;
        min-height: 80px;
        -webkit-mask-image: none;
        mask-image: none;
    }
}
