/* =============================================================================
   Welcome Modal — NormaCode Onboarding v2.0
   Single-screen, action-oriented. Zero friction.
   ============================================================================= */

/* Overlay */
.wm-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wm-overlay.wm-visible {
    opacity: 1;
}

.wm-overlay.wm-closing {
    opacity: 0;
    pointer-events: none;
}

/* Card */
.wm-card {
    width: 90%;
    max-width: 460px;
    background: #0d1117;
    border: 1px solid rgba(74, 222, 128, 0.25);
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}

.wm-visible .wm-card {
    transform: translateY(0) scale(1);
}

/* Gradient accent bar at top */
.wm-accent {
    height: 4px;
    background: linear-gradient(90deg, #22d3ee, #4ade80);
    border-radius: 0;
}

/* Content area */
.wm-content {
    padding: 28px 28px 20px;
}

/* Greeting line */
.wm-greeting {
    font-size: 0.92rem;
    color: #9ca3af;
    margin: 0 0 6px;
    font-family: 'Inter', sans-serif;
}

.wm-greeting strong {
    color: #e5e7eb;
}

/* Title */
.wm-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.3;
    font-family: 'Inter', sans-serif;
}

/* Subtitle / description */
.wm-subtitle {
    font-size: 0.9rem;
    color: #d1d5db;
    line-height: 1.6;
    margin: 0 0 20px;
}

/* Features list */
.wm-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 4px;
}

.wm-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #e5e7eb;
    padding: 8px 12px;
    background: rgba(74, 222, 128, 0.06);
    border-radius: 8px;
    border: 1px solid rgba(74, 222, 128, 0.12);
}

.wm-feat-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    line-height: 1;
}

/* Actions footer */
.wm-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 28px 28px;
    gap: 10px;
}

/* Base button */
.wm-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    text-align: center;
    width: 100%;
}

/* Primary CTA — gradient green */
.wm-btn-primary {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(5, 150, 105, 0.35);
    font-size: 0.95rem;
    padding: 14px 20px;
}

.wm-btn-primary:hover {
    background: linear-gradient(135deg, #047857, #059669);
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.5);
    transform: translateY(-1px);
}

/* Secondary — subtle border */
.wm-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wm-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
}

/* Ghost — minimal dismiss */
.wm-btn-ghost {
    background: transparent;
    color: #6b7280;
    padding: 8px 20px;
    font-weight: 500;
    font-size: 0.82rem;
}

.wm-btn-ghost:hover {
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 480px) {
    .wm-card {
        width: 95%;
        max-width: none;
    }

    .wm-content {
        padding: 24px 20px 16px;
    }

    .wm-actions {
        padding: 12px 20px 24px;
    }

    .wm-title {
        font-size: 1.25rem;
    }
}
