html {
            scroll-behavior: smooth;
        }

        body {
            overflow-x: hidden;
        }

        /* Hero Section */
        .hero-bg {
            background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
            position: relative;
            overflow: hidden;
        }

        .hero-bg::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background:
                radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
            z-index: 1;
        }

        .hero-content {
            position: relative;
            z-index: 2;
        }

        .glass-effect {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .modern-card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }

        .qr-display {
            perspective: 1000px;
        }

        .qr-card {
            transform-style: preserve-3d;
            transition: transform 0.6s;
        }

        .qr-card:hover {
            transform: rotateY(10deg) rotateX(5deg);
        }

        .floating-shapes {
            position: absolute;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: 0;
        }

        .shape {
            position: absolute;
            opacity: 0.1;
            border-radius: 50%;
            background: linear-gradient(45deg, #3b82f6, #8b5cf6);
        }

        .shape-1 {
            width: 80px;
            height: 80px;
            top: 10%;
            left: 5%;
            animation: float 8s ease-in-out infinite;
        }

        .shape-2 {
            width: 120px;
            height: 120px;
            top: 60%;
            left: 80%;
            animation: float 10s ease-in-out infinite reverse;
        }

        .shape-3 {
            width: 60px;
            height: 60px;
            top: 80%;
            left: 10%;
            animation: float 7s ease-in-out infinite;
        }

        .shape-4 {
            width: 100px;
            height: 100px;
            top: 20%;
            left: 70%;
            animation: float 9s ease-in-out infinite reverse;
        }

        .typewriter-text {
            overflow: hidden;
            border-right: 3px solid white;
            white-space: nowrap;
            margin: 0 auto;
            animation: typewriter 2.5s steps(40) 1s 1 normal both, blink-caret 0.75s step-end infinite;
        }

        .mobile-menu {
            transform: translateX(-100%);
            transition: transform 0.3s ease-in-out;
        }

        .mobile-menu.open {
            transform: translateX(0);
        }

        .dark .shape {
            opacity: 0.15;
        }

        .card-hover {
            transition: all 0.3s ease;
        }

        .card-hover:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }

        .dark .card-hover:hover {
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
        }

        .qr-code {
            background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
            border-radius: 12px;
            padding: 10px;
            display: inline-block;
        }

        .qr-pattern {
            width: 180px;
            height: 180px;
            background:
                linear-gradient(45deg, #000 25%, transparent 25%, transparent 75%, #000 75%, #000 0),
                linear-gradient(45deg, #000 25%, transparent 25%, transparent 75%, #000 75%, #000 0);
            background-size: 20px 20px;
            background-position: 0 0, 10px 10px;
        }

        .dark .qr-pattern {
            background:
                linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff 0),
                linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff 0);
            background-size: 20px 20px;
            background-position: 0 0, 10px 10px;
        }

        /* Perbaikan responsivitas untuk code block */
        .code-container {
            max-width: 100%;
            overflow-x: auto;
            border-radius: 0.5rem;
        }

        .code-block {
            min-width: 0;
            font-size: 0.75rem;
            line-height: 1.25rem;
        }

        @media (min-width: 640px) {
            .code-block {
                font-size: 0.875rem;
                line-height: 1.5rem;
            }
        }

        @media (min-width: 768px) {
            .code-block {
                font-size: 0.875rem;
                line-height: 1.5rem;
            }
        }

        @media (min-width: 1024px) {
            .code-block {
                font-size: 0.875rem;
                line-height: 1.5rem;
            }
        }

        /* Transisi halus untuk semua elemen */
        * {
            transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
        }

        /* Pricing section styles - IMPROVED */
        .pricing-container {
            display: flex;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            scrollbar-width: none;
            -ms-overflow-style: none;
            padding-bottom: 1rem;
            gap: 1.5rem;
            scroll-padding: 0 1rem;
        }

        .pricing-container::-webkit-scrollbar {
            display: none;
        }

        .pricing-card {
            flex: 0 0 auto;
            scroll-snap-align: start;
            width: 85%;
            min-width: 280px;
        }

        @media (min-width: 640px) {
            .pricing-card {
                width: 75%;
                min-width: 320px;
            }
        }

        @media (min-width: 768px) {
            .pricing-container {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 1.5rem;
                overflow-x: visible;
            }

            .pricing-card {
                width: 100%;
                min-width: auto;
            }
        }

        @media (min-width: 1024px) {
            .pricing-container {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (min-width: 1280px) {
            .pricing-container {
                grid-template-columns: repeat(5, 1fr);
            }
        }

        .popular-plan {
            position: relative;
            transform: scale(1.05);
            z-index: 10;
        }

        .popular-badge {
            position: absolute;
            top: -12px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(45deg, #f59e0b, #f97316);
            color: white;
            padding: 0.25rem 1.5rem;
            border-radius: 9999px;
            font-size: 0.75rem;
            font-weight: 600;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }

        .dark .popular-badge {
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
        }

        /* QR Animation */
        .qr-animation {
            position: relative;
            width: 300px;
            height: 300px;
        }

        .qr-background {
            position: absolute;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, #3b82f6, #8b5cf6, #06b6d4);
            border-radius: 20px;
            animation: rotate 10s linear infinite;
        }

        .qr-foreground {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 200px;
            height: 200px;
            background: white;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }

        .qr-lines {
            width: 160px;
            height: 160px;
            position: relative;
        }

        .qr-line {
            position: absolute;
            background: black;
        }

        .qr-line-horizontal {
            width: 100%;
            height: 10px;
        }

        .qr-line-vertical {
            width: 10px;
            height: 100%;
        }

        .qr-corner {
            position: absolute;
            width: 40px;
            height: 40px;
            background: black;
        }

        .qr-corner-tl {
            top: 0;
            left: 0;
            border-radius: 5px 0 0 0;
        }

        .qr-corner-tr {
            top: 0;
            right: 0;
            border-radius: 0 5px 0 0;
        }

        .qr-corner-bl {
            bottom: 0;
            left: 0;
            border-radius: 0 0 0 5px;
        }

        .dark .qr-foreground {
            background: #1e293b;
        }

        .dark .qr-line,
        .dark .qr-corner {
            background: white;
        }

        /* Loading Bar */
        .loading-bar {
            position: fixed;
            top: 0;
            left: 0;
            height: 4px;
            width: 0%;
            background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4, #10b981);
            z-index: 9999;
            transition: width 0.3s ease;
            box-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
        }

        /* Scroll to Top Button */
        .scroll-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
            z-index: 1000;
        }

        .scroll-to-top.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .scroll-to-top:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(59, 130, 246, 0.6);
        }

        /* New Modern Styles */
        .gradient-bg {
            background: linear-gradient(-45deg, #3b82f6, #8b5cf6, #06b6d4, #10b981);
            background-size: 400% 400%;
            animation: gradient-x 15s ease infinite;
        }

        .gradient-text {
            background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
            background-size: 200% auto;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: text-shimmer 3s ease-in-out infinite alternate;
        }

        .gradient-border {
            position: relative;
            background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4, #3b82f6);
            background-size: 300% 100%;
            animation: gradient-border 3s ease infinite;
            padding: 3px;
            border-radius: 20px;
        }

        .gradient-border>div {
            background: white;
            border-radius: 18px;
            padding: 1.5rem;
        }

        .dark .gradient-border>div {
            background: #1e293b;
        }

        .morphing-shape {
            width: 300px;
            height: 300px;
            background: linear-gradient(45deg, #3b82f6, #8b5cf6);
            animation: morph 8s ease-in-out infinite;
            filter: blur(60px);
            opacity: 0.5;
            position: absolute;
            z-index: 0;
        }

        .particle {
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            animation: particle-float 20s linear infinite;
        }

        .scroll-animate {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }

        .scroll-animate.animated {
            opacity: 1;
            transform: translateY(0);
        }

        .stagger-animate>* {
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.6s ease;
        }

        .stagger-animate.animated>* {
            opacity: 1;
            transform: translateY(0);
        }

        .stagger-animate.animated>*:nth-child(1) {
            transition-delay: 0.1s;
        }

        .stagger-animate.animated>*:nth-child(2) {
            transition-delay: 0.2s;
        }

        .stagger-animate.animated>*:nth-child(3) {
            transition-delay: 0.3s;
        }

        .stagger-animate.animated>*:nth-child(4) {
            transition-delay: 0.4s;
        }

        .stagger-animate.animated>*:nth-child(5) {
            transition-delay: 0.5s;
        }

        .stagger-animate.animated>*:nth-child(6) {
            transition-delay: 0.6s;
        }

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

        .floating-card:nth-child(2) {
            animation-delay: 1s;
        }

        .floating-card:nth-child(3) {
            animation-delay: 2s;
        }

        .parallax-bg {
            background-attachment: fixed;
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
        }

        .glow-effect {
            box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
        }

        .glow-effect:hover {
            box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
        }

        .text-gradient {
            background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
            background-size: 200% auto;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: text-shimmer 3s ease-in-out infinite alternate;
        }

        /* Smooth transition for scroll to top button */
        .scroll-to-top {
            transition: all 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        }

        /* NEW: Modern Responsive Pricing Styles */
        .pricing-card-modern {
            background: linear-gradient(145deg, #ffffff, #f5f7ff);
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: 1px solid rgba(59, 130, 246, 0.1);
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .dark .pricing-card-modern {
            background: linear-gradient(145deg, #1e293b, #0f172a);
            border: 1px solid rgba(59, 130, 246, 0.2);
        }

        .pricing-card-modern:hover {
            transform: translateY(-12px);
            box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
        }

        .dark .pricing-card-modern:hover {
            box-shadow: 0 20px 40px rgba(59, 130, 246, 0.25);
        }

        .pricing-header {
            padding: 2rem 1.5rem 1.5rem;
            text-align: center;
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            color: white;
            position: relative;
        }

        .pricing-header.gradient-free {
            background: linear-gradient(135deg, #64748b, #94a3b8);
        }

        .pricing-header.gradient-basic {
            background: linear-gradient(135deg, #3b82f6, #60a5fa);
        }

        .pricing-header.gradient-pro {
            background: linear-gradient(135deg, #8b5cf6, #a855f7);
        }

        .pricing-header.gradient-business {
            background: linear-gradient(135deg, #06b6d4, #0ea5e9);
        }

        .pricing-header.gradient-enterprise {
            background: linear-gradient(135deg, #10b981, #34d399);
        }

        .pricing-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            font-size: 1.5rem;
        }

        .pricing-body {
            padding: 1.5rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .price-amount {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .price-period {
            font-size: 0.9rem;
            opacity: 0.8;
        }

        .feature-list {
            margin: 1.5rem 0;
            flex-grow: 1;
        }

        .feature-item {
            display: flex;
            align-items: center;
            margin-bottom: 0.75rem;
            font-size: 0.9rem;
        }

        .feature-icon {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #10b981;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 0.75rem;
            font-size: 0.7rem;
        }

        .pricing-cta {
            margin-top: auto;
        }

        .pricing-cta-btn {
            width: 100%;
            padding: 0.875rem 1rem;
            border-radius: 12px;
            font-weight: 600;
            text-align: center;
            transition: all 0.3s ease;
            display: block;
        }

        .pricing-cta-btn.primary {
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            color: white;
        }

        .pricing-cta-btn.primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
        }

        .pricing-cta-btn.secondary {
            background: rgba(59, 130, 246, 0.1);
            color: #3b82f6;
        }

        .pricing-cta-btn.secondary:hover {
            background: rgba(59, 130, 246, 0.2);
        }

        .pricing-cta-btn.dark {
            background: rgba(255, 255, 255, 0.1);
            color: white;
        }

        .pricing-cta-btn.dark:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .popular-tag {
            position: absolute;
            top: -10px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(45deg, #f59e0b, #f97316);
            color: white;
            padding: 0.5rem 1.5rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
            z-index: 5;
        }

        /* NEW: Pricing switcher */
        .pricing-switcher {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 2rem;
        }

        .pricing-toggle {
            display: flex;
            background: #e2e8f0;
            border-radius: 50px;
            padding: 0.25rem;
            position: relative;
        }

        .dark .pricing-toggle {
            background: #334155;
        }

        .pricing-option {
            padding: 0.5rem 1.5rem;
            border-radius: 50px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 2;
            position: relative;
        }

        .pricing-option.active {
            color: white;
        }

        .pricing-slider {
            position: absolute;
            top: 0.25rem;
            left: 0.25rem;
            height: calc(100% - 0.5rem);
            width: calc(50% - 0.25rem);
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            border-radius: 50px;
            transition: all 0.3s ease;
            z-index: 1;
        }

        .pricing-slider.yearly {
            transform: translateX(100%);
        }

        /* NEW: Responsive improvements */
        @media (max-width: 767px) {
            .pricing-container {
                padding: 0 1rem 1rem;
            }

            .pricing-card {
                width: 85%;
                min-width: 280px;
            }
        }

        @media (max-width: 639px) {
            .pricing-card {
                width: 90%;
                min-width: 260px;
            }
        }

        /* NEW: Save badge for yearly pricing */
        .save-badge {
            background: linear-gradient(45deg, #10b981, #34d399);
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 600;
            margin-left: 0.5rem;
        }

/* Footer legal/PSE image safety */
footer img[src="/assets/images/pse-flowix.png"] {
    image-rendering: auto;
}

footer a[aria-label="GitHub"],
footer a[aria-label="LinkedIn"] {
    will-change: transform;
}
