/* --- Hero Section Main Container --- */
.recilens-hero-main-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin-top: -10%;
    padding: 120px 5% 60px;
    overflow: hidden;
}

.recilens-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns for desktop */
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
}

/* --- Content Area (Left on Desktop) --- */
.recilens-hero-content-area {
    grid-column: 1; /* Explicitly place in the first column */
    grid-row: 1;
    opacity: 0;
    transform: translateY(30px);
}

.recilens-hero-headline {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--recilens-text-light, #e0e0ff);
    margin-bottom: 20px;
    /* UPDATED: Prevent text selection */
    user-select: none;
    cursor: default;
}

.recilens-hero-subheadline {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--recilens-text-medium, #a0a0c0);
    max-width: 500px;
    margin-bottom: 30px;
    /* UPDATED: Prevent text selection */
    user-select: none;
    cursor: default;
}

.recilens-hero-cta-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.recilens-hero-cta-primary {
    padding: 14px 28px;
    background-image: linear-gradient(90deg, #4a69ff, #6a82ff);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--recilens-glow-color, rgba(74, 105, 255, 0.5));
    
    user-select: none;
    cursor: default;
}
.recilens-hero-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--recilens-glow-color, rgba(168, 107, 0, 0.986));
    
    user-select: none;
    cursor: default;
}

.recilens-hero-cta-secondary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border: 2px solid #ff4d4d;
    border-radius: 8px;
    color: var(--recilens-text-light, #e0e0ff);
    font-weight: 500;
    
    user-select: none;
    cursor: default;
}

.recilens-hero-star-rating-widget {
    display: flex;
    gap: 4px;
}
.recilens-hero-star-rating-widget svg {
    width: 20px;
    height: 20px;
}
.recilens-hero-star-rating-widget .star-filled { color: #ffc107; }
.recilens-hero-star-rating-widget .star-half { color: #ffc107; }

/* --- Animation Area (Right on Desktop) --- */
.recilens-hero-animation-area {
    grid-column: 2; /* Explicitly place in the second column */
    grid-row: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    
    user-select: none;
    cursor: default;
}

.recilens-shield-animation-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    transition: max-width 0.3s ease; /* Smooth transition for resizing */
}

.recilens-hero-shield {
    width: 100%;
    height: auto;
    transition: filter 0.5s ease;
    
    user-select: none;
    cursor: default;
}
.recilens-hero-shield.unlocked {
    filter: drop-shadow(0 0 25px var(--recilens-glow-color, rgba(74, 105, 255, 0.7)));
}

.recilens-hero-key {
    position: absolute;
    width: 45%; /* UPDATED: Increased key size for desktop */
    top: 45%;
    left: -45%; /* Adjusted start position for bigger key */
    transform: translateY(-50%) rotate(0deg);
    
    user-select: none;
    cursor: default;
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .recilens-hero-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        text-align: center;
    }
    
    /* Reset grid placement for mobile to follow source order */
    .recilens-hero-animation-area,
    .recilens-hero-content-area {
        grid-column: 1;
    }
    
    .recilens-hero-animation-area {
        grid-row: 1; /* Animation on top */
        margin-bottom: 40px;
    }
    
    .recilens-hero-content-area {
        grid-row: 2; /* Content below */
    }

    .recilens-hero-subheadline {
        margin-left: auto;
        margin-right: auto;
    }
    .recilens-hero-cta-group {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .recilens-hero-headline {
        font-size: 2.2rem;
    }
    .recilens-hero-cta-group {
        flex-direction: column;
    }
    /* NEW: Reduce size of the entire animation container on small screens */
    .recilens-shield-animation-container {
        max-width: 200px;
        margin-bottom: -12%;
    }
}
