/* Scoped styles for Hero Animation */
#hero-demo-wrapper {
    /* Variables */
    --bg-color: #121212;
    --desktop-bg: linear-gradient(135deg, #1c1c1c 0%, #2d2d2d 100%);
    --window-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    --accent-blue: #3B82F6;
    --accent-purple: #8B5CF6;
    --success-green: #10B981;
    --danger-red: #EF4444;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --saas-bg: #F3F4F6;

    width: 100%;
    height: 100%;
    position: relative;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px; /* Reset base font size if needed */

    /* --- Monitor Screen --- */
    .screen {
        width: 100%;
        height: 100%;
        background: url('https://images.unsplash.com/photo-1614850523060-8da1d56ae167?q=80&w=2670&auto=format&fit=crop');
        background-size: cover;
        background-position: center;
        position: relative;
        overflow: hidden;
    }

    /* --- Status Bar --- */
    .status-pill {
        position: absolute;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        color: white;
        padding: 12px 28px;
        border-radius: 50px;
        font-size: 15px;
        font-weight: 500;
        letter-spacing: 0.5px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 10000;
        display: flex;
        align-items: center;
        gap: 12px;
        transition: all 0.3s ease;
        opacity: 0;
        animation: fadeInUp 1s 0.5s forwards;
    }

    .status-dot {
        width: 8px;
        height: 8px;
        background: var(--success-green);
        border-radius: 50%;
        box-shadow: 0 0 10px var(--success-green);
        animation: pulse 1.5s infinite;
    }

    @keyframes pulse {
        0% { opacity: 0.5; transform: scale(0.9); }
        50% { opacity: 1; transform: scale(1.2); }
        100% { opacity: 0.5; transform: scale(0.9); }
    }

    @keyframes fadeInUp {
        from { opacity: 0; transform: translate(-50%, 20px); }
        to { opacity: 1; transform: translate(-50%, 0); }
    }

    /* --- Windows --- */
    .window {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        width: 92%;
        height: 90%;
        background: white;
        border-radius: 10px;
        box-shadow: var(--window-shadow);
        display: flex;
        flex-direction: column;
        opacity: 0;
        pointer-events: none;
        transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        overflow: hidden;
    }

    .window.show {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        pointer-events: auto;
    }

    .mac-header {
        height: 32px;
        background: #E5E7EB;
        border-bottom: 1px solid #D1D5DB;
        display: flex;
        align-items: center;
        padding: 0 16px;
        flex-shrink: 0;
    }

    .dots {
        display: flex;
        gap: 8px;
    }

    .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
    }

    .dot.red { background: #EF4444; border: 1px solid #DC2626; }
    .dot.yellow { background: #F59E0B; border: 1px solid #D97706; }
    .dot.green { background: #10B981; border: 1px solid #059669; }

    .win-title {
        flex-grow: 1;
        text-align: center;
        font-size: 13px;
        color: #6B7280;
        font-weight: 500;
        margin-right: 52px;
    }

    /* --- Excel Styles --- */
    .excel-toolbar {
        height: 45px;
        background: #15803d;
        display: flex;
        align-items: center;
        padding: 0 20px;
        color: white;
        font-weight: 500;
        font-size: 14px;
        gap: 20px;
    }

    .excel-grid {
        display: grid;
        grid-template-columns: 50px repeat(5, 1fr);
        font-size: 14px;
        background: #fff;
        height: 100%;
    }

    .cell {
        border-right: 1px solid #E5E7EB;
        border-bottom: 1px solid #E5E7EB;
        padding: 12px;
        display: flex;
        align-items: center;
        color: #374151;
    }

    .cell.head {
        background: #F9FAFB;
        font-weight: 600;
        justify-content: center;
        color: #6B7280;
    }

    .cell-highlight {
        background: rgba(21, 128, 61, 0.1);
        box-shadow: inset 0 0 0 2px #15803d;
        transition: all 0.2s;
    }

    /* --- Platform Styles --- */
    .saas-layout {
        display: flex;
        height: 100%;
        background: var(--saas-bg);
    }

    .sidebar {
        width: 260px;
        background: #111827;
        color: white;
        padding: 24px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex-shrink: 0;
    }

    .nav-item {
        padding: 12px 16px;
        border-radius: 8px;
        color: #9CA3AF;
        font-size: 14px;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .nav-item.active {
        background: #1F2937;
        color: white;
    }

    .main-content {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .topbar {
        height: 64px;
        background: white;
        border-bottom: 1px solid #E5E7EB;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 32px;
    }

    .steps-canvas {
        padding: 40px;
        position: relative;
        flex-grow: 1;
    }

    .step-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        border: 1px solid #E5E7EB;
        position: absolute;
        top: 40px;
        left: 40px;
        right: 40px;
        bottom: 40px;
        padding: 40px;
        display: flex;
        flex-direction: column;
        opacity: 0;
        pointer-events: none;
        transform: translateX(30px);
        transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .step-card.active {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }

    /* Form Elements */
    .form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        margin-top: 30px;
    }

    .form-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .label {
        font-size: 12px;
        font-weight: 600;
        color: #6B7280;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .input {
        height: 42px;
        border: 1px solid #D1D5DB;
        border-radius: 6px;
        padding: 0 16px;
        background: #F9FAFB;
        color: #9CA3AF;
        display: flex;
        align-items: center;
        font-style: italic;
        transition: 0.2s;
    }

    .input.filled {
        background: white;
        color: #111827;
        border-color: var(--accent-blue);
        font-style: normal;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    .btn {
        margin-top: auto;
        align-self: flex-end;
        background: var(--accent-blue);
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        transition: transform 0.1s;
        display: inline-flex; /* Align with standard btn */
        justify-content: center;
        align-items: center;
    }

    .btn.clicked {
        transform: scale(0.96);
    }

    /* Animation Step 2 */
    .file-zone {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 80px;
        flex-grow: 1;
    }

    .file {
        width: 90px;
        height: 120px;
        border-radius: 8px;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transform: scale(0.8);
        transition: 0.4s;
    }

    .file.visible {
        opacity: 1;
        transform: scale(1);
    }

    .file-icon {
        font-size: 40px;
        margin-bottom: 10px;
    }

    .scanner {
        position: absolute;
        top: 0;
        width: 100%;
        height: 4px;
        background: #fff;
        box-shadow: 0 0 15px white;
        opacity: 0;
    }

    @keyframes scanAnim {
        0% { top: 0; opacity: 1; }
        100% { top: 100%; opacity: 1; }
    }

    /* Animation Step 3 */
    .upload-area {
        border: 2px dashed #D1D5DB;
        border-radius: 12px;
        flex-grow: 1;
        margin: 20px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #9CA3AF;
        transition: 0.3s;
    }

    .upload-area.active {
        border-color: var(--success-green);
        background: #ECFDF5;
        color: var(--success-green);
        transform: scale(1.02);
    }

    /* --- Cursor --- */
    #cursor {
        position: absolute;
        z-index: 9999;
        top: 0;
        left: 0;
        pointer-events: none;
        transform: translate(110vw, 110vh); /* Off screen default */
        transition: transform 0.7s cubic-bezier(0.2, 0, 0.2, 1);
        filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    }

    .cursor-tag {
        position: absolute;
        top: 18px;
        left: 18px;
        background: var(--accent-blue);
        color: white;
        font-size: 11px;
        padding: 3px 8px;
        border-radius: 4px;
        font-weight: 700;
    }
}

