.hero-container {
    .hero-img {
        left: 0;
    }
}

@media(min-width: 768px) {
    .hero-container {
        .hero-img {
            left: 50%;
            transform: translateX(-50%);
            max-width: 80%;

            .gradient {
                background: var(--bg-1); background: linear-gradient(90deg,var(--bg-1) 5%, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 0) 90%, var(--bg-1) 95%);
            }
        }

    }
}

.section-label {
    color: var(--brand-1);
    font-weight: bold;
    text-transform: uppercase;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
}

.countdown-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: blink 1.4s ease-in-out infinite;
}
.dot:nth-child(1) {
    background: var(--brand-1);
    animation-delay: 0s;
}
.dot:nth-child(2) {
    background: var(--brand-2);
    animation-delay: 0.2s;
}
.dot:nth-child(3) {
    background: var(--brand-3);
    animation-delay: 0.4s;
}
@keyframes blink {
    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.stack-scene {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .stack-scene {
        height: 420px;
    }
}

.stack-card {
    position: absolute;
    width: 100%;
    max-width: 400px;
    background: rgba(15, 24, 51, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 20px;
    padding: 1.5rem 1.75rem;
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}
.stack-card-3 {
    transform: rotate(-8deg) translateY(64px) translateX(-32px);
    opacity: 0.7;
    background: rgba(26, 37, 69, 0.7);
    z-index: 1;
}
.stack-card-2 {
    transform: rotate(4deg) translateY(32px) translateX(24px);
    opacity: 0.85;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.stack-card-1 {
    transform: rotate(-1.5deg);
    z-index: 3;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(56, 189, 248, 0.2);
}
.stack-scene:hover .stack-card-3 {
    transform: rotate(-9deg) translateY(72px) translateX(-40px);
}
.stack-scene:hover .stack-card-2 {
    transform: rotate(5deg) translateY(38px) translateX(30px);
}
.stack-scene:hover .stack-card-1 {
    transform: rotate(-1.5deg) translateY(-8px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(56, 189, 248, 0.3);
}

.stack-card-type {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-1);
    margin-bottom: 0.5rem;
}
.stack-card-name {
    font-family: "Syne", sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}
.stack-card-meta {
    font-size: 0.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.stack-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.stack-pill {
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid;
    border-radius: 100px;
    padding: 0.2rem 0.7rem;
}
.stack-going,
.stack-open,
.stack-members {
    font-size: 0.75rem;
    font-weight: 600;
}
.stack-going {
    color: var(--brand-green);
}
.stack-open {
    color: var(--brand-green);
}
.stack-members {
    color: var(--brand-purple);
}

.stack-card-connections {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(56, 189, 248, 0.05);
    border: 1px solid rgba(56, 189, 248, 0.12);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    margin-bottom: 1rem;
}
.stack-connection-avatars {
    display: flex;
}
.stack-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--bg-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.45rem;
    font-weight: 800;
    font-family: "Syne", sans-serif;
    color: #fff;
    margin-right: -8px;
    flex-shrink: 0;
}
.stack-avatar:last-child {
    margin-right: 0;
}
.stack-connections-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding-left: 0.4rem;
    line-height: 1.3;
}
.stack-connections-label strong {
    color: var(--brand-1);
}

/* ── Mobile ── */
@media (max-width: 767px) {
    .stack-scene {
        height: 260px;
    }

    .stack-card {
        max-width: 280px;
        padding: 1rem 1.25rem;
    }

    .stack-card-3 {
        transform: rotate(-6deg) translateY(50px) translateX(-20px);
    }

    .stack-card-2 {
        transform: rotate(3deg) translateY(25px) translateX(16px);
    }

    .stack-card-1 {
        transform: rotate(-1deg);
    }

    .stack-scene:hover .stack-card-3 {
        transform: rotate(-7deg) translateY(55px) translateX(-24px);
    }

    .stack-scene:hover .stack-card-2 {
        transform: rotate(4deg) translateY(30px) translateX(20px);
    }

    .stack-card-name {
        font-size: 1.05rem;
    }
}
