        /* Complete modern rebrand with glassmorphism and contemporary design */
        :root {
            /* Updated primary colors to use the purple palette */
            --primary: #907ad6;
            --primary-light: #dabfff;
            --primary-dark: #4f518c;
            --secondary: #7fdeff;
            --accent: #dabfff;
            --success: #10b981;
            --warning: #f59e0b;
            --error: #ef4444;

            /* Updated background colors to use darker purples from palette */
            --bg-primary: #2c2a4a;
            --bg-secondary: #4f518c;
            --bg-tertiary: #907ad6;
            --bg-glass: rgba(218, 191, 255, 0.05);
            --bg-glass-strong: rgba(218, 191, 255, 0.1);
            --bg-hamburger: rgba(218, 191, 255, 0.493);

            --text-primary: #ffffff;
            --text-secondary: #dabfff;
            --text-muted: #907ad6;

            /* Updated borders to use light purple tones */
            --border: rgba(218, 191, 255, 0.1);
            --border-strong: rgba(218, 191, 255, 0.2);

            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
            /* Updated glow shadow to use primary purple */
            --shadow-glow: 0 0 20px rgba(144, 122, 214, 0.3);

            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 24px;
            --radius-2xl: 32px;
        }

        [data-theme="light"] {
            /* Updated light theme backgrounds to use lighter palette colors */
            --bg-primary: #ffffff;
            --bg-secondary: #dabfff;
            --bg-tertiary: #907ad6;
            --bg-glass: rgba(144, 122, 214, 0.02);
            --bg-glass-strong: rgba(144, 122, 214, 0.05);

            /* Updated light theme text colors for better contrast */
            --text-primary: #2c2a4a;
            --text-secondary: #4f518c;
            --text-muted: #907ad6;

            /* Updated light theme borders */
            --border: rgba(79, 81, 140, 0.1);
            --border-strong: rgba(79, 81, 140, 0.15);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* Remove blue highlight on tap in mobile browsers */
        button,
        a {
            -webkit-tap-highlight-color: transparent;
            -webkit-user-select: none;
            /* prevent accidental text selection */
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            outline: none;
            /* removes focus outline */
        }


        body {
            font-family: "Inter", sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.6;
            overflow-x: hidden;
            position: relative;
        }

        html,
        body {
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
        }

        /* Modern animated background with floating orbs */
        body::before {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
            pointer-events: none;
            z-index: -1;
        }

        /* Glassmorphism utility classes */
        .glass {
            background: var(--bg-glass);
            backdrop-filter: blur(20px);
            border: 1px solid var(--border);
        }

        .glass-strong {
            background: var(--bg-glass-strong);
            backdrop-filter: blur(30px);
            border: 1px solid var(--border-strong);
        }

        /* Modern container and layout system */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }

        .section {
            padding: 120px 0;
            position: relative;
        }

        .grid {
            display: grid;
            gap: 24px;
        }

        .grid-cols-2 {
            grid-template-columns: repeat(2, 1fr);
        }

        .grid-cols-3 {
            grid-template-columns: repeat(3, 1fr);
        }

        .grid-cols-4 {
            grid-template-columns: repeat(4, 1fr);
        }

        @media (max-width: 768px) {

            .grid-cols-2,
            .grid-cols-3,
            .grid-cols-4 {
                grid-template-columns: 1fr;
            }

            .section {
                padding: 80px 0;
            }
        }

        /* Modern typography system */
        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            font-family: "Playfair Display", serif;
            font-weight: 700;
            line-height: 1.2;
            margin-bottom: 16px;
        }

        .section-title {
            font-size: 3rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 16px;
            text-align: center;
        }

        .section-description {
            font-size: 1.25rem;
            color: var(--text-secondary);
            text-align: center;
            max-width: 600px;
            margin: 0 auto 64px;
        }

        /* Modern navigation with glassmorphism */
        .navbar {
            position: fixed;
            top: 24px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1000;
            width: calc(100% - 48px);
            max-width: 1200px;
        }

        .nav-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 32px;
            background: var(--bg-glass-strong);
            backdrop-filter: blur(30px);
            border: 1px solid var(--border);
            border-radius: var(--radius-2xl);
            box-shadow: var(--shadow-lg);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--text-primary);
            text-decoration: none;
            font-family: "Playfair Display", serif;
        }

        .logo-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 900;
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 32px;
        }

        .nav-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
        }

        .nav-links a:hover {
            color: var(--primary);
        }

        .nav-links a::after {
            content: "";
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .theme-toggle {
            width: 44px;
            height: 44px;
            border: none;
            background: var(--bg-glass);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            transition: all 0.3s ease;
        }

        .theme-toggle:hover {
            background: var(--bg-glass-strong);
            transform: scale(1.05);
        }

        .profile-button {
            width: 44px;
            height: 44px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border: none;
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .user-profile:hover {
            transform: scale(1.05);
            box-shadow: var(--shadow-glow);
        }

        .profile-dropdown {
            position: relative;
            display: inline-block;
        }

        .dropdown-menu {
            display: none;
            position: absolute;
            right: 0;
            top: 50px;
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 6px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            min-width: 150px;
            z-index: 1000;
        }

        .dropdown-item {
            width: 100%;
            padding: 10px 15px;
            background: none;
            border: none;
            text-align: left;
            cursor: pointer;
            font-size: 0.95rem;
        }

        .dropdown-item:hover {
            background: #f0f0f0;
        }

        /* Extraordinary hero section with modern design */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            position: relative;
            padding-top: 120px;
            border: none;
        }

        .hero-container {
            max-width: 800px;
            margin: 0 auto;
            padding: 0 24px;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 24px;
            background: var(--bg-glass-strong);
            border: 1px solid var(--border);
            border-radius: var(--radius-2xl);
            margin-bottom: 32px;
            font-size: 0.875rem;
            font-weight: 500;
            color: var(--text-secondary);
            backdrop-filter: blur(20px);
        }

        .hero-badge-icon {
            font-size: 1rem;
        }

        .hero-title {
            font-size: 4.5rem;
            font-weight: 900;
            margin-bottom: 24px;
            line-height: 1.1;
        }

        .gradient-text {
            background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-description {
            font-size: 1.25rem;
            color: var(--text-secondary);
            margin-bottom: 48px;
            line-height: 1.6;
        }

        .hero-actions {
            display: flex;
            justify-content: center;
            gap: 16px;
        }

        .cta-primary {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            padding: 16px 32px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            border: none;
            border-radius: var(--radius-lg);
            font-size: 1.125rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-lg);
        }

        .cta-primary:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-xl), var(--shadow-glow);
        }

        /* Modern card system with glassmorphism */
        .card {
            background: var(--bg-glass);
            backdrop-filter: blur(20px);
            border: 1px solid var(--border);
            border-radius: var(--radius-xl);
            padding: 32px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--primary), transparent);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .card:hover {
            transform: translateY(-8px);
            border-color: var(--border-strong);
            box-shadow: var(--shadow-xl);
        }

        .card:hover::before {
            opacity: 1;
        }

        .card-icon {
            width: 64px;
            height: 64px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-radius: var(--radius-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            margin-bottom: 24px;
            color: white;
        }

        .card-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 12px;
            color: var(--text-primary);
        }

        .card-description {
            color: var(--text-secondary);
            margin-bottom: 24px;
            line-height: 1.6;
        }

        .card-button {
            width: 100%;
            padding: 12px 24px;
            background: var(--bg-glass-strong);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            color: var(--text-primary);
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .card-button:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        /* Accessibility toolbar with modern design */
        .accessibility-toolbar-toggle {
            position: fixed;
            bottom: 24px;
            right: 24px;
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border: none;
            border-radius: 50%;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            box-shadow: var(--shadow-lg);
            transition: all 0.3s ease;
            z-index: 1000;
        }

        .accessibility-toolbar-toggle:hover {
            transform: scale(1.1);
            box-shadow: var(--shadow-xl), var(--shadow-glow);
        }

        .accessibility-toolbar {
            position: fixed;
            bottom: 100px;
            right: 24px;
            width: 320px;
            background: var(--bg-glass-strong);
            backdrop-filter: blur(30px);
            border: 1px solid var(--border);
            border-radius: var(--radius-xl);
            padding: 24px;
            box-shadow: var(--shadow-xl);
            transform: translateX(400px);
            transition: transform 0.3s ease;
            z-index: 1000;
        }

        .accessibility-toolbar.active {
            transform: translateX(0);
        }

        .toolbar-section {
            margin-bottom: 24px;
        }

        .toolbar-section h3 {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 12px;
            color: var(--text-primary);
        }

        .toolbar-button {
            display: block;
            width: 100%;
            padding: 8px 16px;
            margin-bottom: 8px;
            background: var(--bg-glass);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            color: var(--text-secondary);
            font-size: 0.875rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .toolbar-button:hover,
        .toolbar-button.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        /* Modern footer design */
        .footer {
            background: var(--bg-secondary);
            border-top: 1px solid var(--border);
            padding: 64px 0 32px;
        }

        .footer-content {
            text-align: center;
            margin-bottom: 32px;
        }

        .footer-brand {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            font-size: 1.5rem;
            font-weight: 800;
            margin-bottom: 16px;
            font-family: "Playfair Display", serif;
        }

        .brand-icon {
            font-size: 2rem;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 32px;
            margin-top: 32px;
            flex-wrap: wrap;
        }

        .footer-link {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .footer-link:hover {
            color: var(--primary);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 32px;
            border-top: 1px solid var(--border);
            color: var(--text-muted);
            font-size: 0.875rem;
        }

        /* Modern AI assistant (Uliks) design */
        .uliks-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(10px);
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .uliks-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .uliks-modal {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.9);
            width: 90%;
            max-width: 500px;
            height: 600px;
            background: var(--bg-glass-strong);
            backdrop-filter: blur(30px);
            border: 1px solid var(--border);
            border-radius: var(--radius-2xl);
            z-index: 2001;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
        }

        .uliks-modal.active {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, -50%) scale(1);
        }

        .uliks-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 24px;
            border-bottom: 1px solid var(--border);
        }

        .uliks-brand {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 1.25rem;
        }

        .uliks-avatar {
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
        }

        .uliks-info h3 {
            font-size: 1.25rem;
            font-weight: 700;
            margin: 0;
        }

        .uliks-info p {
            color: var(--text-secondary);
            font-size: 0.875rem;
            margin: 0;
        }

        .uliks-close {
            width: 32px;
            height: 32px;
            border: none;
            background: var(--bg-glass);
            border: 1px solid var(--border);
            border-radius: 50%;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .uliks-close:hover {
            background: var(--error);
            color: white;
            border-color: var(--error);
        }

        .chat-area {
            flex: 1;
            padding: 24px;
            overflow-y: auto;
        }

        .chat-message {
            display: flex;
            gap: 12px;
            margin-bottom: 16px;
        }

        .message-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.875rem;
            flex-shrink: 0;
        }

        .message-avatar.ai {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
        }

        .message-bubble {
            background: var(--bg-glass);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 12px 16px;
            max-width: 80%;
        }

        .voice-input-area {
            padding: 24px;
            border-top: 1px solid var(--border);
        }

        .voice-status {
            text-align: center;
            margin-bottom: 16px;
        }

        .uliks-status {
            color: var(--text-secondary);
            font-size: 0.875rem;
        }

        .waveform-container {
            height: 60px;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        #waveformCanvas {
            border-radius: var(--radius-md);
            background: var(--bg-glass);
        }

        .command-chips {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .command-chip {
            padding: 8px 16px;
            background: var(--bg-glass);
            border: 1px solid var(--border);
            border-radius: var(--radius-2xl);
            font-size: 0.875rem;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .command-chip:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        /* Hamburger button */
        .hamburger {
            display: none;
            flex-direction: column;
            justify-content: center;
            gap: 6px;
            width: 40px;
            height: 40px;
            background: var(--bg-glass);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            cursor: pointer;
            padding: 8px;
        }

        .hamburger span {
            height: 3px;
            width: 100%;
            background: var(--text-primary);
            border-radius: 2px;
            transition: all 0.3s ease;
        }

        /* Hamburger open state animation */
        .hamburger.open span:nth-child(1) {
            transform: rotate(45deg) translate(6px, 6px);
        }

        .hamburger.open span:nth-child(2) {
            opacity: 0;
        }

        .hamburger.open span:nth-child(3) {
            transform: rotate(-45deg) translate(6px, -6px);
        }


        /* Mobile menu styles */
        @media (max-width: 884px) {
            .hamburger {
                display: flex;
            }

            .nav-links {
                position: absolute;
                top: 70px;
                left: 0;
                width: 100%;
                color: var(--text-primary);
                background: var(--bg-primary);
                backdrop-filter: blur(20px);
                border: 1px solid var(--border);
                border-radius: var(--radius-xl);
                flex-direction: column;
                align-items: center;
                gap: 16px;
                padding: 20px;
                display: none;
            }

            .nav-links.active {
                display: flex;
                animation: fadeInUp 0.3s ease forwards;
            }

            .nav-group {
                display: flex;
                align-items: center;
                align-content: center;
                gap: 16px;
            }
        }


        /* Modern animations and interactions */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes pulse {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.05);
            }
        }

        .animate-fade-in-up {
            animation: fadeInUp 0.6s ease forwards;
        }

        .animate-pulse {
            animation: pulse 2s infinite;
        }

        /* Responsive design improvements */
        @media (max-width: 884px) {
            .hero-title {
                font-size: 3rem;
            }

            .section-title {
                font-size: 2.5rem;
            }

            .nav-links {
                display: none;
            }

            .navbar {
                top: 16px;
                width: calc(100% - 32px);
            }

            .nav-container {
                padding: 12px 24px;
            }

            .footer-links {
                gap: 16px;
            }
        }

        /* Quick stats floating elements */
        .quick-stats {
            position: fixed;
            top: 120px;
            right: 24px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            z-index: 100;
        }

        .stat-card {
            background: var(--bg-glass-strong);
            backdrop-filter: blur(20px);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 16px;
            text-align: center;
            min-width: 120px;
            transition: all 0.3s ease;
        }

        .stat-card:hover {
            transform: translateX(-8px);
            box-shadow: var(--shadow-lg);
        }

        .stat-number {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--primary);
            margin-bottom: 4px;
        }

        .stat-label {
            font-size: 0.75rem;
            color: var(--text-secondary);
            font-weight: 500;
        }

        /* Reading progress bar */
        .reading-progress-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: var(--bg-glass);
            z-index: 1001;
        }

        .reading-progress-bar {
            height: 100%;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            width: 0%;
            transition: width 0.1s ease;
        }


        .uliks-btn {
            background: none;
            border: none;
            cursor: pointer;
        }

        .hero-visual {
            position: relative;
            height: 500px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
        }

        @keyframes floatCard {

            0%,
            100% {
                transform: translateY(0px);
            }

            50% {
                transform: translateY(-10px);
            }
        }

        .card-icon {
            font-size: 1.5rem;
        }

        .central-assistant {
            position: relative;
            width: 200px;
            height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .assistant-glow {
            position: absolute;
            width: 100%;
            height: 100%;
            background: var(--gradient-primary);
            border-radius: 50%;
            opacity: 0.2;
            animation: glow 3s ease-in-out infinite;
        }

        @keyframes glow {

            0%,
            100% {
                transform: scale(1);
                opacity: 0.2;
            }

            50% {
                transform: scale(1.1);
                opacity: 0.4;
            }
        }

        .assistant-icon {
            font-size: 4rem;
            z-index: 2;
        }

        .sound-waves {
            position: absolute;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .wave {
            position: absolute;
            width: 100%;
            height: 100%;
            border: 2px solid var(--primary);
            border-radius: 50%;
            opacity: 0;
            animation: wave 2s linear infinite;
        }

        .wave:nth-child(2) {
            animation-delay: 0.5s;
        }

        .wave:nth-child(3) {
            animation-delay: 1s;
        }

        .bookuliks2 {
            width: 100px;
            margin-top: 10px;
        }

        @keyframes wave {
            0% {
                transform: scale(0.5);
                opacity: 1;
            }

            100% {
                transform: scale(1.5);
                opacity: 0;
            }
        }

        @media (max-width: 768px) {
            .quick-stats {
                display: none;
            }
        }

        @media(max-width: 361px) {
            .nav-actions {
                scale: 0.8
            }

            .hamburger {
                scale: 0.8;
            }

            .nav-group {
                gap: 0px;
            }
        }