/* Laptop mockup — screenshot do Cadu */
.cadu-device {
    position: relative;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

.cadu-device__lid {
    padding: 0.65rem 0.65rem 0;
    background: linear-gradient(165deg, #353835 0%, #1e201d 55%, #141614 100%);
    border-radius: 14px 14px 0 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 28px 56px rgba(0, 0, 0, 0.48);
}

.cadu-device__chrome {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
    padding: 0 0.15rem;
}

.cadu-device__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cadu-device__dot:nth-child(1) { background: #ff5f57; }
.cadu-device__dot:nth-child(2) { background: #febc2e; }
.cadu-device__dot:nth-child(3) { background: #28c840; }

.cadu-device__url {
    flex: 1;
    margin-left: 0.35rem;
    padding: 0.2rem 0.55rem;
    font-family: var(--body);
    font-size: 0.625rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.42);
    text-align: center;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 999px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cadu-device__screen {
    overflow: hidden;
    line-height: 0;
    background: #f4f4f4;
    border-radius: 4px 4px 0 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.cadu-device__screen img {
    display: block;
    width: 100%;
    height: auto;
}

.cadu-device__hinge {
    height: 4px;
    background: linear-gradient(90deg, transparent, #3d403d 12%, #525652 50%, #3d403d 88%, transparent);
}

.cadu-device__base {
    height: 12px;
    width: 78%;
    margin: 0 auto;
    background: linear-gradient(180deg, #2b2e2b 0%, #121412 100%);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.cadu-device--compact {
    max-width: 100%;
}

.cadu-device--compact .cadu-device__lid {
    padding: 0.45rem 0.45rem 0;
    border-radius: 10px 10px 0 0;
}

.cadu-device--compact .cadu-device__chrome {
    margin-bottom: 0.4rem;
}

.cadu-device--compact .cadu-device__dot {
    width: 6px;
    height: 6px;
}

.cadu-device--compact .cadu-device__url {
    font-size: 0.5rem;
    padding: 0.15rem 0.4rem;
}

.cadu-device--compact .cadu-device__hinge {
    height: 3px;
}

.cadu-device--compact .cadu-device__base {
    height: 8px;
    width: 82%;
}

.home-hero__visual .cadu-device {
    max-width: none;
}

.home-hero__visual .cadu-device__lid {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 32px 64px rgba(0, 0, 0, 0.55);
}

.mega-visual-frame .cadu-device {
    max-width: none;
}

.mega-visual-frame .cadu-device__lid {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 12px 28px rgba(0, 0, 0, 0.35);
}

.mega-visual-frame .cadu-device__base {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

/* Home hero mobile — mockup inclinado */
.cadu-device--hero-mobile {
    max-width: none;
    margin: 0;
    transform: perspective(900px) rotateX(14deg);
    transform-origin: center top;
}

.cadu-device--hero-mobile .cadu-device__lid {
    padding: 0.5rem 0.5rem 0;
    border-radius: 12px 12px 0 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(74, 255, 107, 0.12),
        0 24px 48px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(74, 255, 107, 0.06);
}

.cadu-device--hero-mobile .cadu-device__url {
    font-size: 0.5625rem;
}

.cadu-device--hero-mobile .cadu-device__screen img {
    max-height: 240px;
    object-fit: cover;
    object-position: top center;
}

.cadu-device--hero-mobile .cadu-device__base {
    width: 84%;
    height: 10px;
}

@media (prefers-reduced-motion: reduce) {
    .cadu-device--hero-mobile {
        transform: none;
    }
}
