.how-immersive {
    padding: 100px 0 200px;
    background: transparent;
    position: relative;
}

.how-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 100px;
    align-items: start;
}

/* Left side steps */
.how-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 300px; /* Space to scroll */
}

.step-item {
    opacity: 0.2;
    transform: translateX(-20px);
    transition: all 0.8s var(--ease-silk);
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-subtle);
    padding: 40px;
    border-radius: 32px;
    cursor: default;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.step-item.active {
    opacity: 1;
    transform: translateX(0);
    border-color: var(--accent-gold-glow);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.step-item:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px) translateX(0);
}

.step-num {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-gold);
    display: inline-block;
    margin-bottom: 16px;
    letter-spacing: 4px;
    padding: 4px 12px;
    background: rgba(196, 164, 108, 0.1);
    border-radius: 100px;
}

.step-heading {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.step-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 100%;
}

/* Right side sticky phone */
.how-sticky-visual {
    position: sticky;
    top: 15vh;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-stage {
    position: relative;
    width: 285px; /* Refined width for 0.46 ratio */
    height: 620px; 
}

.phone-mockup-elite {
    position: relative;
    width: 100%;
    height: 100%;
    /* The metallic frame - very thin */
    padding: 3px;
    border-radius: 56px;
    background: #2a2a2a; /* Dark titanium by default */
    box-shadow: 
        inset 0 0 10px rgba(255,255,255,0.1),
        0 40px 80px rgba(0,0,0,0.4);
    z-index: 10;
    transition: all 0.6s var(--ease-silk);
    box-sizing: border-box;
}

/* Light mode specific phone body (Dark Titanium) */
:root .phone-mockup-elite {
    background: linear-gradient(145deg, #3a3a3a, #1a1a1a);
}

/* Specific Dark Mode Glow for the Hardware */
[data-theme="dark"] .phone-mockup-elite {
    background: linear-gradient(145deg, #f5f5f7, #d1d1d6);
    box-shadow: 
        inset 0 0 8px rgba(255,255,255,0.9),
        inset 0 0 20px rgba(0,0,0,0.15),
        0 0 0 1px rgba(255,255,255,0.4),
        0 40px 100px rgba(0,0,0,0.8),
        0 0 80px var(--accent-gold-glow); /* Outer Golden Glow */
}

/* Hardware Buttons */
.phone-mockup-elite::before, .phone-mockup-elite::after {
    content: '';
    position: absolute;
    width: 4px;
    background: inherit;
    border-radius: 2px;
    z-index: -1;
}

/* Power Button */
.phone-mockup-elite::before {
    height: 64px;
    right: -2px;
    top: 180px;
    box-shadow: inset 1px 0 2px rgba(0,0,0,0.3);
}

/* Volume Buttons */
.phone-mockup-elite::after {
    height: 120px;
    left: -2px;
    top: 130px;
    background: transparent;
    box-shadow: 
        inset -1px 0 2px rgba(0,0,0,0.3),
        -2px 0 0 0 var(--phone-button, #888),
        -2px 50px 0 0 var(--phone-button, #888),
        -2px 100px 0 0 var(--phone-button, #888);
}

[data-theme="dark"] .phone-mockup-elite::after {
    box-shadow: 
        inset -1px 0 2px rgba(0,0,0,0.1),
        -2px 0 0 0 #d1d1d6,
        -2px 50px 0 0 #d1d1d6,
        -2px 100px 0 0 #d1d1d6;
}

.phone-screen-content {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 53px;
    border: 10px solid #000000; /* Increased black glass bezel */
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    padding: 6px 10px 0; /* Added safe area for status bar icons */
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}

.screen-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.6s var(--ease-silk);
}

.screen-layer.active {
    opacity: 1;
}

.screen-layer img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Ensure full visibility of UI elements */
    border-radius: inherit;
}

/* Ambient glow behind phone */
.phone-ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, var(--accent-gold-glow) 0%, transparent 70%);
    z-index: -1;
    opacity: 0.8; /* Increased for better visibility */
}

[data-theme="dark"] .phone-mockup-elite {
    background: linear-gradient(145deg, #f5f5f7, #c1c1c6);
    box-shadow: 
        inset 0 0 6px rgba(255,255,255,1),
        inset 0 0 15px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.2),
        0 50px 100px rgba(0,0,0,0.7),
        0 0 80px var(--accent-gold-glow);
}

[data-theme="dark"] .phone-screen-content {
    background: #000;
}

@media (max-width: 1024px) {
    .how-immersive {
        padding: 80px 0 80px;
    }
    .how-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .how-sticky-visual {
        display: none;
    }
    .how-steps {
        gap: 0;
        padding-bottom: 0;
        position: relative;
    }
    /* Vertical timeline line */
    .how-steps::before {
        content: '';
        position: absolute;
        left: 28px;
        top: 0;
        bottom: 0;
        width: 1px;
        background: linear-gradient(to bottom, transparent, var(--accent-gold), transparent);
        opacity: 0.3;
    }
    .step-item {
        opacity: 1;
        transform: none;
        padding: 40px 0 40px 72px;
        border-bottom: 1px solid var(--border-subtle);
        position: relative;
    }
    .step-item:last-child {
        border-bottom: none;
    }
    /* Circle step indicator */
    .step-item::before {
        content: attr(data-step);
        position: absolute;
        left: 0;
        top: 40px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: var(--bg-secondary);
        border: 2px solid var(--accent-gold);
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: var(--font-display);
        font-size: 20px;
        font-weight: 800;
        color: var(--accent-gold);
        box-shadow: 0 0 20px var(--accent-gold-glow);
    }
    .step-num {
        display: none;
    }
    .step-heading {
        font-size: 28px;
        margin-bottom: 16px;
    }
    .step-text {
        font-size: 16px;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .step-item {
        padding: 32px 0 32px 60px;
    }
    .step-item::before {
        width: 44px;
        height: 44px;
        font-size: 16px;
        top: 32px;
    }
    .step-heading {
        font-size: 22px;
    }
}
