.hero-layout {
    position: relative;
    min-height: 95vh;
    background: #EEF1F6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 24px;
}

/* 1:1 Background Re-creation */
.h-bg-system {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.h-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(93, 138, 254, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(93, 138, 254, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.h-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    filter: blur(160px);
    opacity: 0.2;
    border-radius: 50%;
}

.h-glow-1 {
    top: -200px;
    right: -100px;
    background: var(--h-glow-primary);
}

.h-glow-2 {
    bottom: -200px;
    left: -100px;
    background: var(--h-glow-secondary);
}

.h-streak {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(93, 138, 254, 0.45), transparent);
    transform: rotate(-15deg);
    width: 150%;
    z-index: 2;
}

.streak-top {
    top: 25%;
    left: -25%;
}

.streak-bot {
    bottom: 35%;
    left: -25%;
    opacity: 0.5;
}

/* Content Container */
.h-inner {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 40px;
}

/* Left Side: Typography */
.h-text-col {
    max-width: 620px;
}

.h-title {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(48px, 6vw, 76px);
    line-height: 1.05;
    font-weight: 800;
    color: var(--h-dark);
    margin-bottom: 24px;
    letter-spacing: -3px;
}

.h-sub {
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.6;
    color: var(--h-muted);
    margin-bottom: 48px;
    font-weight: 400;
}

.h-cta {
    display: flex;
    gap: 20px;
}

.h-btn {
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
}

.h-btn-blue {
    background: var(--h-blue);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(93, 138, 254, 0.4);
}

.h-btn-white {
    background: white;
    color: var(--h-dark);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.h-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

/* Right Side: Precise 3D Card Stack */
.h-visual-col {
    position: relative;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 2000px;
}

.visual-composition {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateY(-20deg) rotateX(10deg);
    animation: floatComp 8s ease-in-out infinite;
}

/* Generic Card Style */
.ui-card-v3 {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    transition: var(--transition);
}

/* Main Video Player Card */
.card-main-v3 {
    width: 580px;
    z-index: 100;
    padding: 0;
    overflow: hidden;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%) translateZ(100px);
    border-radius: 20px;
}

.v-top {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 13px;
    font-weight: 700;
    color: var(--h-dark);
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
}

.v-content {
    background: #111;
    height: 320px;
    position: relative;
    color: white;
    padding: 40px;
    overflow: hidden;
}

.v-code-preview {
    opacity: 0.8;
}

.v-code-preview h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.v-code-preview pre {
    font-family: monospace;
    color: #5D8AFE;
    font-size: 14px;
}

.v-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: var(--h-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 0 40px rgba(93, 138, 254, 0.4);
}

.v-controls {
    padding: 20px;
    background: white;
}

.p-track {
    height: 4px;
    background: #EEE;
    border-radius: 2px;
    margin-bottom: 12px;
}

.p-fill {
    height: 100%;
    background: var(--h-blue);
    width: 45%;
    border-radius: 2px;
}

.v-timer {
    font-size: 12px;
    color: var(--h-muted);
    font-weight: 500;
}

/* Progress Card */
.card-progress-v3 {
    width: 240px;
    top: 15%;
    right: -5%;
    transform: translateZ(180px) rotateY(-5deg);
    z-index: 110;
}

.c-head {
    font-size: 11px;
    font-weight: 700;
    color: var(--h-muted);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.progress-circle-mock {
    width: 100px;
    height: 100px;
    border: 8px solid #F0F4FF;
    border-top-color: var(--h-blue);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--h-dark);
}

/* Study Plan Card */
.card-plan-v3 {
    width: 280px;
    bottom: 10%;
    left: -10%;
    transform: translateZ(50px) rotateY(10deg);
    z-index: 90;
}

.p-item {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: white;
    font-size: 14px;
    font-weight: 500;
    color: var(--h-dark);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 12px;
}

.p-item.active {
    border-color: var(--h-blue);
    color: var(--h-blue);
}

.p-item::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #DDD;
    border-radius: 50%;
}

.p-item.active::before {
    background: var(--h-blue);
}

@keyframes floatComp {

    0%,
    100% {
        transform: rotateY(-20deg) rotateX(10deg) translateY(0);
    }

    50% {
        transform: rotateY(-20deg) rotateX(10deg) translateY(-25px);
    }
}

/* Responsive Optimization */
@media (max-width: 1150px) {
    .h-inner {
        grid-template-columns: 1fr;
        gap: 80px;
        padding-top: 60px;
        text-align: center;
    }

    .h-text-col {
        margin: 0 auto;
    }

    .h-cta {
        justify-content: center;
    }

    .h-visual-col {
        height: 500px;
    }

    .visual-composition {
        transform: scale(0.7) rotateY(-10deg) rotateX(5deg);
        perspective: 1000px;
    }

    .card-main-v3 {
        left: 50%;
        width: 100%;
        max-width: 500px;
    }

    .card-progress-v3 {
        right: 0;
    }

    .card-plan-v3 {
        left: 0;
    }
}

@media (max-width: 600px) {
    .hero-layout {
        padding: 150px 20px 80px;
        min-height: auto;
        display: block;
    }

    .h-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 80px;
        width: 100%;
    }

    .h-title {
        font-size: 38px;
        line-height: 1.1;
        margin-bottom: 16px;
    }

    .h-sub {
        font-size: 16px;
        margin-bottom: 32px;
        max-width: 100%;
    }

    .h-visual-col {
        width: 100%;
        height: 480px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .visual-composition {
        position: relative;
        width: 280px;
        height: 320px;
        left: auto;
        top: auto;
        transform: scale(0.95);
        perspective: none;
    }

    .card-main-v3 {
        width: 280px;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
    }

    .card-progress-v3 {
        width: 140px;
        top: -100px;
        left: 230px;
        right: auto;
        transform: none;
        z-index: 15;
    }

    .card-plan-v3 {
        width: 210px;
        bottom: -120px;
        right: 170px;
        left: auto;
        transform: none;
        z-index: -10;
    }

    .h-btn {
        width: 100%;
    }

    .h-cta {
        flex-direction: column;
        gap: 12px;
    }
}