        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        .serif-font {
            font-family: 'Instrument Serif', serif;
        }

        .mono-font {
            font-family: 'JetBrains Mono', monospace;
        }

        /* Premium Grid & Gradient Graphics */
        .grid-backdrop {
            background-image:
                linear-gradient(rgba(30, 27, 75, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(30, 27, 75, 0.03) 1px, transparent 1px);
            background-size: 40px 40px;
        }

        .dark .grid-backdrop {
            background-image:
                linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
        }

        .glow-sphere {
            filter: blur(80px);
            pointer-events: none;
        }

        /* Dynamic Nav Transitions (Apple Style) */
        #main-nav {
            transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                max-width 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.4s ease,
                box-shadow 0.4s ease,
                opacity 0.4s ease;
            transform: translate(-50%, 0);
            will-change: transform, max-width, opacity;
        }

        .nav-scrolled {
            max-width: 900px !important;
            border-radius: 9999px !important;
            background-color: rgba(255, 255, 255, 0.7) !important;
            backdrop-filter: blur(24px) saturate(200%);
            box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
        }

        .dark .nav-scrolled {
            background-color: rgba(18, 22, 34, 0.7) !important;
            border-color: rgba(255, 255, 255, 0.08);
            box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
        }

        .nav-scrolled .nav-logo-text,
        .nav-scrolled .nav-links-container {
            transform: scale(0.95);
            transition: transform 0.4s ease;
        }

        .nav-hidden {
            transform: translate(-50%, -200%) !important;
            opacity: 0 !important;
            pointer-events: none;
        }

        /* Nav Link Pill Style */
        .nav-link {
            position: relative;
            padding: 0.5rem 0.75rem;
            border-radius: 9999px;
            transition: all 0.3s ease;
        }

        .nav-link:hover {
            background-color: rgba(13, 148, 136, 0.1);
        }

        .dark .nav-link:hover {
            background-color: rgba(255, 255, 255, 0.05);
        }

        /* Continuous Rolling Marquee Animation (Ultra Smooth) */
        @keyframes marquee {
            0% {
                transform: translateX(0%);
            }

            100% {
                transform: translateX(-50%);
            }
        }

        .animate-marquee {
            animation: marquee 40s linear infinite;
        }

        .marquee-container:hover .animate-marquee {
            animation-play-state: paused;
        }

        /* Custom Scrollbar for App Feel */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }

        ::-webkit-scrollbar-track {
            background: #FAF9F5;
        }

        .dark ::-webkit-scrollbar-track {
            background: #0A0D14;
        }

        ::-webkit-scrollbar-thumb {
            background: #CBD5E1;
            border-radius: 10px;
        }

        .dark ::-webkit-scrollbar-thumb {
            background: #334155;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #94A3B8;
        }

        /* Micro-Animations */
        @keyframes pulseGlow {

            0%,
            100% {
                opacity: 0.15;
                transform: scale(1);
            }

            50% {
                opacity: 0.25;
                transform: scale(1.05);
            }
        }

        .animate-pulse-glow {
            animation: pulseGlow 8s infinite ease-in-out;
        }

        @keyframes drawLine {
            to {
                stroke-dashoffset: 0;
            }
        }

        .animated-chart-line {
            stroke-dasharray: 1000;
            stroke-dashoffset: 1000;
            animation: drawLine 3s cubic-bezier(0.4, 0, 0.2, 1) forwards infinite;
        }

        /* Mobile Smooth Drawer Animation */
        .drawer-transition {
            transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
            will-change: transform;
        }

        @keyframes scanline {
            0% {
                transform: translateY(-100%);
                opacity: 0;
            }

            50% {
                opacity: 0.5;
            }

            100% {
                transform: translateY(200%);
                opacity: 0;
            }
        }

        .animate-scanline {
            animation: scanline 3s linear infinite;
        }

        @keyframes dataRipples {
            0% {
                box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4), inset 0 0 0 0 rgba(13, 148, 136, 0.4);
            }

            100% {
                box-shadow: 0 0 0 20px rgba(13, 148, 136, 0), inset 0 0 20px 20px rgba(13, 148, 136, 0);
            }
        }

        .animate-ripples {
            animation: dataRipples 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
        }

        /* Hex Grid Background */
        .hex-bg {
            background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0l20 11.547v23.094L20 40 0 28.641V11.547zM10 17.32v11.547L20 34.64l10-5.774V17.32L20 11.547z' fill='rgba(13,148,136,0.03)' fill-rule='evenodd'/%3E%3C/svg%3E");
        }

        @keyframes rotate-gradient {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .revolving-glow-btn {
            position: relative;
            border-radius: 0.75rem;
            padding: 2px;
            overflow: hidden;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            z-index: 1;
            box-shadow: 0 0 20px rgba(13, 148, 136, 0.3), 0 0 40px rgba(13, 148, 136, 0.1);
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
            text-decoration: none;
            cursor: pointer;
            border: none;
            background: transparent;
        }

        .revolving-glow-btn:hover {
            transform: translateY(-2px) scale(1.03);
            box-shadow: 0 0 30px rgba(0, 245, 212, 0.5), 0 0 50px rgba(13, 148, 136, 0.3);
        }

        .revolving-glow-btn:active {
            transform: scale(0.98);
        }

        .revolving-glow-btn::before {
            content: '';
            position: absolute;
            width: 300%;
            height: 300%;
            background: conic-gradient(from 0deg, transparent 0%, transparent 25%, #00F5D4 35%, #0D9488 50%, #818CF8 65%, transparent 75%);
            top: -100%;
            left: -100%;
            animation: rotate-gradient 2s linear infinite;
            z-index: -1;
        }

        .revolving-glow-btn-inner {
            background-color: #ffffff;
            border-radius: calc(0.75rem - 2px);
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2;
            transition: background-color 0.3s ease, color 0.3s ease;
            box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.8);
        }

        .dark .revolving-glow-btn-inner {
            background-color: #0A0D14;
            box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.05);
        }

        .revolving-glow-btn:hover .revolving-glow-btn-inner {
            background-color: #0D9488;
            color: #ffffff !important;
        }

        .dark .revolving-glow-btn:hover .revolving-glow-btn-inner {
            background-color: #0D9488;
            color: #ffffff !important;
        }

        .premium-solid-btn {
            position: relative;
            background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 10px 20px -5px rgba(13, 148, 136, 0.4), inset 0 2px 0px rgba(255, 255, 255, 0.2);
            transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
            overflow: hidden;
            z-index: 1;
        }

        .premium-solid-btn::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 50%;
            height: 100%;
            background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
            transform: skewX(-20deg);
            transition: all 0.5s ease;
            z-index: -1;
        }

        .premium-solid-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 30px -5px rgba(13, 148, 136, 0.6), inset 0 2px 0px rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .premium-solid-btn:hover::after {
            left: 200%;
        }

        .premium-solid-btn:active {
            transform: translateY(1px);
            box-shadow: 0 5px 10px -5px rgba(13, 148, 136, 0.4);
        }

        .premium-glass-btn {
            background: rgba(255, 255, 255, 0.6);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(13, 148, 136, 0.2);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        }

        .dark .premium-glass-btn {
            background: rgba(18, 22, 34, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .premium-glass-btn:hover {
            background: #ffffff;
            border-color: #0D9488;
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(13, 148, 136, 0.15);
        }

        .dark .premium-glass-btn:hover {
            background: rgba(30, 35, 51, 0.8);
            border-color: #0D9488;
        }

        /* Premium Card Sweep Animation */
        @keyframes sweep-light {
            0% {
                transform: translateX(-100%) skewX(-15deg);
            }

            100% {
                transform: translateX(200%) skewX(-15deg);
            }
        }

        .premium-card-sweep::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 50%;
            height: 100%;
            background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
            transform: translateX(-100%) skewX(-15deg);
            animation: sweep-light 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
        }

        .advanced-slider {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 6px;
            background: #1E2333;
            border-radius: 10px;
            outline: none;
            transition: background 0.3s ease;
        }

        .advanced-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: #00F5D4;
            border: 3px solid #0A0D14;
            cursor: pointer;
            box-shadow: 0 0 15px rgba(0, 245, 212, 0.8);
            transition: transform 0.1s;
        }

        .advanced-slider::-webkit-slider-thumb:hover {
            transform: scale(1.2);
        }

        .visualizer-bar {
            transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, background-color 0.3s ease;
            will-change: height;
        }

        /* Drawer Typography Styling */
        #drawer-content h4 {
            color: white;
            font-size: 1.1rem;
            font-weight: 800;
            margin-top: 2.5rem;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            letter-spacing: 0.05em;
            text-transform: uppercase;
        }

        #drawer-content h4::before {
            content: '';
            display: inline-block;
            width: 12px;
            height: 2px;
            background-color: #0D9488;
            box-shadow: 0 0 8px #0D9488;
        }

        #drawer-content p {
            color: #94A3B8;
            margin-bottom: 1.5rem;
            font-size: 0.85rem;
            line-height: 1.8;
        }

        #drawer-content ul {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-left: 2px solid #0D9488;
            border-radius: 0 12px 12px 0;
            padding: 1.5rem 1.5rem 0.5rem 2rem;
            margin: 2rem 0;
            box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.2);
        }

        #drawer-content li {
            color: #CBD5E1;
            margin-bottom: 1rem;
            font-size: 0.85rem;
            line-height: 1.7;
        }

        #drawer-content li strong {
            color: white;
            font-weight: 700;
        }

        #drawer-content em {
            color: #14B8A6;
            font-style: italic;
            font-family: 'Instrument Serif', serif;
            font-size: 1.1rem;
        }

        .drawer-in-anim {
            animation: drawerSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.1s;
        }

        @keyframes drawerSlideUp {
            0% {
                opacity: 0;
                transform: translateY(40px) scale(0.98);
            }

            100% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }