 :root {
            --primary-50: #f5f3ff;
            --primary-100: #ede9fe;
            --primary-200: #ddd6fe;
            --primary-300: #c4b5fd;
            --primary-400: #a78bfa;
            --primary-500: #8b5cf6;
            --primary-600: #7c3aed;
            --primary-700: #6d28d9;
            --primary-800: #5b21b6;
            --primary-900: #4c1d95;

            --secondary-50: #ecfdf5;
            --secondary-100: #d1fae5;
            --secondary-200: #a7f3d0;
            --secondary-300: #6ee7b7;
            --secondary-400: #34d399;
            --secondary-500: #10b981;
            --secondary-600: #059669;
            --secondary-700: #047857;
            --secondary-800: #065f46;
            --secondary-900: #064e3b;

            --gray-50: #FFFFFF;
            --gray-100: #f3f4f6;
            --gray-200: #e5e7eb;
            --gray-300: #d1d5db;
            --gray-400: #9ca3af;
            --gray-500: #6b7280;
            --gray-600: #4b5563;
            --gray-700: #374151;
            --gray-800: #1f2937;
            --gray-900: #111827;

            --red-500: #ef4444;
            --amber-500: #f59e0b;
            --emerald-500: #10b981;
            --indigo-500: #6366f1;
            --violet-500: #8b5cf6;

            --text-primary: var(--gray-900);
            --text-secondary: var(--gray-600);
            --text-tertiary: var(--gray-400);
            --background: var(--gray-50);
            --surface: #ffffff;
            --error: var(--red-500);
            --success: var(--emerald-500);
            --warning: var(--amber-500);
            --border-radius: 12px;
            --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --elevation-1: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --elevation-2: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --elevation-3: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --glass-opacity: 0.7;
            --glass-blur: 12px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
            background-color: var(--background);
            color: var(--text-primary);
            overflow-x: hidden;
            height: 100vh;
            touch-action: pan-y;
        }

        .onboarding-container {
            position: relative;
            width: 100%;
            height: 100vh;
            overflow: hidden;
        }

        .onboarding-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            padding: 24px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            opacity: 0;
            transform: translateX(100%);
            transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
            will-change: transform, opacity;
            z-index: 1;
        }

        .onboarding-slide.active {
            opacity: 1;
            transform: translateX(0);
            z-index: 2;
        }

        .onboarding-slide.previous {
            transform: translateX(-100%);
        }

        .slide-header {
            width: 100%;
            text-align: center;
            margin-top: 40px;
        }

        .slide-title {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 16px;
            line-height: 1.3;
            background: linear-gradient(90deg, var(--primary-600), var(--primary-400));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-fill-color: transparent;
        }

        .slide-subtitle {
            font-size: 16px;
            font-weight: 400;
            color: var(--text-secondary);
            max-width: 320px;
            margin: 0 auto;
            line-height: 1.5;
        }

        .slide-content {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            flex-grow: 1;
            justify-content: center;
            padding: 20px 0;
        }

        .illustration-container {
            position: relative;
            width: 100%;
            max-width: 300px;
            height: 220px;
            margin-bottom: 40px;
            perspective: 1000px;
        }

        .illustration {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transform-style: preserve-3d;
            transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .slide-features {
            width: 100%;
            max-width: 320px;
            margin-top: 20px;
        }

        .feature-item {
            display: flex;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .feature-icon {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background-color: var(--primary-100);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 16px;
            color: var(--primary-600);
            flex-shrink: 0;
        }

        .feature-text {
            font-size: 14px;
            color: var(--text-secondary);
        }

        .slide-footer {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 40px;
        }

        .progress-indicator {
            display: flex;
            margin-bottom: 24px;
        }

        .progress-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: var(--gray-300);
            margin: 0 4px;
            transition: all 0.3s ease;
        }

        .progress-dot.active {
            width: 20px;
            border-radius: 4px;
            background-color: var(--primary-600);
        }

        .btn {
            width: 100%;
            max-width: 280px;
            height: 52px;
            border-radius: 23px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            border: none;
            outline: none;
            position: relative;
            overflow: hidden;
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.4),
                /* subtle top inner light */
                0 2px 4px rgba(0, 0, 0, 0.1);
            /* outer soft shadow */
        }


        .btn-primary {
            background-color: var(--primary-600);
            color: white;
        }

        .btn-primary:hover {
            background-color: var(--primary-700);
            transform: translateY(-1px);
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.4),
                /* subtle top inner light */
                0 2px 4px rgba(0, 0, 0, 0.1);
            /* outer soft shadow */
        }
        }

        .btn-primary:active {
            transform: translateY(0);
            box-shadow: var(--elevation-1);
        }

        .btn-outline {
            background-color: transparent;
            color: var(--primary-600);
            border: 1px solid var(--primary-300);
            margin-top: 12px;
        }

        .btn-outline:hover {
            background-color: var(--primary-50);
            transform: translateY(-1px);
            box-shadow: var(--elevation-1);
        }

        .btn-outline:active {
            transform: translateY(0);
            box-shadow: none;
        }

        .ripple {
            position: absolute;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.7);
            transform: scale(0);
            animation: ripple 0.6s linear;
            pointer-events: none;
        }

        @keyframes ripple {
            to {
                transform: scale(4);
                opacity: 0;
            }
        }

        .fade-in {
            animation: fadeIn 0.6s ease-out forwards;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .bounce {
            animation: bounce 2s infinite;
        }

        @keyframes bounce {

            0%,
            20%,
            50%,
            80%,
            100% {
                transform: translateY(0);
            }

            40% {
                transform: translateY(-20px);
            }

            60% {
                transform: translateY(-10px);
            }
        }

        .floating {
            animation: floating 6s ease-in-out infinite;
        }

        @keyframes floating {
            0% {
                transform: translateY(0px);
            }

            50% {
                transform: translateY(-15px);
            }

            100% {
                transform: translateY(0px);
            }
        }

        /* Custom illustrations */
        .analytics-illustration {
            background-size: contain;
            width: 100%;
            height: 100%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            margin: auto;
        }

        .writing-illustration {
            background-size: contain;
            width: 100%;
            height: 100%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            margin: auto;
        }

        .voice-illustration {
            background-size: contain;
        }

        .ready-illustration {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            margin: auto;
        }

        /* Responsive adjustments */
        @media (min-width: 768px) {
            .slide-title {
                font-size: 32px;
            }

            .slide-subtitle {
                font-size: 18px;
                max-width: 400px;
            }

            .illustration-container {
                max-width: 400px;
                height: 280px;
            }

            .slide-features {
                max-width: 400px;
            }

            .feature-text {
                font-size: 16px;
            }
        }

        @media (max-height: 600px) {
            .slide-header {
                margin-top: 20px;
            }

            .illustration-container {
                height: 180px;
                margin-bottom: 20px;
            }

            .slide-footer {
                margin-bottom: 20px;
            }
        }
