/* Platform capability highlights — home marquee + sidebar ticker */

/* ── Horizontal hero marquee (main column) ── */
.feature-marquee-wrap {
    margin: 12px 0 16px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: linear-gradient(
        135deg,
        var(--card-bg) 0%,
        var(--response-bg) 100%
    );
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    position: relative;
}

.feature-marquee-wrap::before,
.feature-marquee-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 32px;
    z-index: 1;
    pointer-events: none;
}

.feature-marquee-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--card-bg), transparent);
}

.feature-marquee-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--response-bg), transparent);
}

.feature-marquee {
    overflow: hidden;
    padding: 10px 0;
}

.feature-marquee-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: max-content;
    padding: 0 12px;
    animation: feature-marquee-scroll 80s linear infinite;
}

.feature-marquee-wrap:hover .feature-marquee-track {
    animation-play-state: paused;
}

@keyframes feature-marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.feature-marquee-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--container-bg);
    color: var(--text-color);
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
}

.feature-marquee-pill i {
    color: var(--primary-color);
    font-size: 11px;
}

.feature-marquee-pill strong {
    color: var(--primary-color);
    font-weight: 700;
}

.feature-marquee-pill--new {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.feature-marquee-sep {
    opacity: 0.45;
}

/* ── Sidebar vertical feature ticker ── */
.feature-ticker {
    width: 160px;
    height: 300px;
    margin-top: 12px;
    background: var(--ad-bg);
    border: 1px solid var(--ad-border);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.feature-ticker-header {
    flex-shrink: 0;
    padding: 10px 8px 8px;
    border-bottom: 1px solid var(--ad-border);
    text-align: center;
}

.feature-ticker-title {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary-color);
    line-height: 1.3;
}

.feature-ticker-subtitle {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    color: var(--text-color);
    opacity: 0.75;
    line-height: 1.25;
}

.feature-ticker-viewport {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        #000 8%,
        #000 92%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        #000 8%,
        #000 92%,
        transparent 100%
    );
}

.feature-ticker-track {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 6px 16px;
    animation: feature-ticker-scroll 100s linear infinite;
}

.feature-ticker:hover .feature-ticker-track {
    animation-play-state: paused;
}

@keyframes feature-ticker-scroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.feature-ticker-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 8px 6px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--container-bg);
    color: var(--text-color);
    text-align: left;
}

.feature-ticker-item-top {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.feature-ticker-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    color: var(--primary-color);
    font-size: 9px;
    flex-shrink: 0;
}

.feature-ticker-tag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-color);
    line-height: 1.2;
}

.feature-ticker-new {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--container-bg);
    background: var(--primary-color);
    padding: 1px 5px;
    border-radius: 3px;
    line-height: 1.4;
}

.feature-ticker-headline {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-color);
    margin: 0;
}

.feature-ticker-detail {
    font-size: 10px;
    line-height: 1.35;
    color: var(--text-color);
    opacity: 0.82;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-sidebar-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

@media (max-width: 767px) {
    .feature-marquee-pill {
        font-size: 11px;
        padding: 5px 10px;
    }

    .feature-ticker {
        width: 100%;
        max-width: 320px;
        height: 240px;
        margin-top: 0;
    }

    .feature-ticker-detail {
        -webkit-line-clamp: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .feature-marquee-track,
    .feature-ticker-track {
        animation: none;
    }

    .feature-marquee {
        overflow-x: auto;
    }

    .feature-ticker-viewport {
        overflow-y: auto;
        mask-image: none;
        -webkit-mask-image: none;
    }
}