.hero-section {
    position: relative;
    min-height: calc(100dvh - var(--header-height));
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(18, 18, 18, 0.9) 0%,
        rgba(18, 18, 18, 0.4) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-block: 4rem;
    pointer-events: auto;
}
.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .hero-title {
        max-width: 550px;
    }
    .hero-subtitle {
        max-width: 593px;
    }
}
@media (min-width: 1920px) {
    .hero-title {
        max-width: 800px;
        font-size: clamp(2.5rem, 5vw, 4.5rem);
    }
}

.hero-fg-wrapper {
    display: none;
}

@media (min-width: 1280px) {
    .hero-section {
        min-height: auto;
        height: calc(100dvh - var(--header-height));
        max-height: calc(100vw / 1.6);
    }
    .hero-fg-wrapper {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 20;
        pointer-events: none;
    }
    .hero-img-fg {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .hero-sync-svg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 30;
        pointer-events: none;
    }

    .laptop-screen-container {
        position: absolute;
        top: 50px;
        left: 50px;
        width: 376px;
        height: 280px;
        overflow: hidden;
        border-radius: 8px 8px 0 0;
        transform-origin: top left;
        transform: perspective(1000px) rotateX(-0.1deg) rotateY(-21.9deg)
            rotateZ(0.4deg) skewX(-1deg) skewY(-3.3deg);
    }

    .screen-layer {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition:
            opacity 0.5s ease-in-out,
            transform 0.5s ease-in-out;
        will-change: opacity, transform;
    }
    .screen-layer.active {
        opacity: 1;
        transform: translateY(0);
    }
    .screen-layer.slide-up {
        opacity: 0;
        transform: translateY(-20px);
    }

    #terminal-layer {
        color: #00ff41;
        padding: 20px;
        font-family: "Courier New", monospace;
        font-size: 14px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
    .success-text {
        color: #ffffff;
        font-weight: bold;
    }
    .cursor-blink {
        animation: blink 1s step-end infinite;
    }
    @keyframes blink {
        50% {
            opacity: 0;
        }
    }

    #dashboard-layer {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: #fff;
        padding: 20px;
    }
    .dash-title {
        font-size: 16px;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 30px;
        color: #888;
    }
    .metrics-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        width: 100%;
        text-align: center;
    }
    .metric-box .value {
        font-size: 32px;
        font-weight: 700;
        color: #10b981;
        display: inline-block;
        min-width: 100px;
        text-align: center;
        font-variant-numeric: tabular-nums;
    }
    .metric-box .label {
        font-size: 12px;
        color: #ccc;
        margin-top: 5px;
        display: block;
    }
}
