@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ─── SEASONAL THEME SYSTEM ─────────────────────────────────────────────── */

/* DEFAULT — existing dark red/indigo */
:root {
    --orb1-color: #4f46e5;
    --orb2-color: #8b5cf6;
    --accent: #e11d48;
}

/* CHRISTMAS — deep green with red accents */
html[data-theme="christmas"] {
    --orb1-color: #166534;
    --orb2-color: #BB2528;
    --accent: #22c55e;
}

html[data-theme="christmas"] .orb-1 {
    background: radial-gradient(circle, #166534 0%, transparent 70%);
}

html[data-theme="christmas"] .orb-2 {
    background: radial-gradient(circle, #BB2528 0%, transparent 70%);
}

html[data-theme="christmas"] body {
    background-color: #070f08;
}

html[data-theme="christmas"] ::-webkit-scrollbar-thumb:hover {
    background: #22c55e;
}

/* HALLOWEEN — dark purple/orange */
html[data-theme="halloween"] {
    --orb1-color: #7c3aed;
    --orb2-color: #ea580c;
    --accent: #f97316;
}

html[data-theme="halloween"] .orb-1 {
    background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
}

html[data-theme="halloween"] .orb-2 {
    background: radial-gradient(circle, #c2410c 0%, transparent 70%);
}

html[data-theme="halloween"] body {
    background-color: #0d0010;
}

html[data-theme="halloween"] ::-webkit-scrollbar-thumb:hover {
    background: #f97316;
}

/* NEW YEAR — gold/silver on deep navy */
html[data-theme="newyear"] {
    --orb1-color: #b45309;
    --orb2-color: #3b82f6;
    --accent: #fbbf24;
}

html[data-theme="newyear"] .orb-1 {
    background: radial-gradient(circle, #b45309 0%, transparent 70%);
}

html[data-theme="newyear"] .orb-2 {
    background: radial-gradient(circle, #1d4ed8 0%, transparent 70%);
}

html[data-theme="newyear"] body {
    background-color: #02020d;
}

html[data-theme="newyear"] ::-webkit-scrollbar-thumb:hover {
    background: #fbbf24;
}

body {
    background-color: #020203;
    color: #e2e8f0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.6s ease;
}


/* --- ANTIGRAVITY PREMIUM GLASS SYSTEM --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid transparent;
    border-radius: inherit;
    background-clip: padding-box;
    position: relative;
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 0 rgba(255, 255, 255, 0.02);
}

.glass-panel::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.glass-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    /* Spring hover physics */
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, box-shadow;
}

.glass-card:hover,
.glass-card:active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(147, 51, 234, 0.3);
    transform: translate3d(0, -8px, 0) scale3d(1.02, 1.02, 1);
    box-shadow:
        0 30px 60px -15px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

/* Ambient Noise Texture */
.noise-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Gradient Orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
    will-change: transform;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #4f46e5 0%, transparent 70%);
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(20px, 30px, 0);
    }
}

/* Typography Polish */
.text-glow {
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-italic {
    font-style: italic;
    letter-spacing: -0.05em;
}

/* Smooth Reveal with Pop Animation */
.reveal {
    opacity: 0;
    transform: translate3d(0, 50px, 0) scale3d(0.92, 0.92, 1);
    transition: opacity 0.9s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #4f46e5, #8b5cf6);
    border-radius: 10px;
    border: 2px solid #020203;
}

::-webkit-scrollbar-thumb:hover {
    background: #4338ca;
}

/* Firefox Support */
* {
    scrollbar-width: thin;
    scrollbar-color: #4f46e5 #020203;
}

/* Currency Switcher */
.currency-btn {
    position: relative;
    overflow: hidden;
}

.currency-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Pricing Row Hover */
.price-row {
    transition: background 0.3s ease, border-color 0.3s ease;
}

.price-row:hover,
.price-row:active {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Star Animations */
.star-rating svg {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.star-filled {
    color: #fbbf24;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.5));
}

.star-empty {
    color: #334155;
}

/* Chat Widget */
.chat-bubble-user {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.chat-bubble-ai {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

@keyframes typing {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    animation: typing 1.4s infinite ease-in-out;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Mouse Follow Glow */
#mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.15) 0%, rgba(0, 0, 0, 0) 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    filter: blur(50px);
    opacity: 0;
    /* Hidden initially until moved */
    transition: opacity 0.5s ease, transform 0.15s ease-out;
}

@media (hover: none) and (pointer: coarse) {
    #mouse-glow {
        display: none;
    }
}

/* Comparison Slider Specific Styles */
#comparison-slider {
    position: relative;
    touch-action: none;
}

#before-image {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
    z-index: 10;
}

#slider-handle {
    cursor: ew-resize;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.2);
    z-index: 30;
}

/* Enhanced Motion Graphics & AntiGravity Hover Physics */
@keyframes float-hero-sine {
    0% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -15px, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

.anim-float-hero {
    animation: float-hero-sine 6s ease-in-out infinite;
    will-change: transform;
}

@keyframes float-gentle {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -8px, 0);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(99, 102, 241, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    }
}

/* 5-Second Button Shimmer Loop */
@keyframes shimmer-loop {
    0% {
        transform: translate3d(-150%, 0, 0) skewX(-25deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    20% {
        transform: translate3d(250%, 0, 0) skewX(-25deg);
        opacity: 0;
    }

    100% {
        transform: translate3d(250%, 0, 0) skewX(-25deg);
        opacity: 0;
    }
}

.btn-shimmer,
.btn-enhanced {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    will-change: transform, box-shadow;
    /* Spring physics */
    /* Remove padding/clip box from default so gradient respects radius */
}

.btn-shimmer::after,
.btn-enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-25deg);
    animation: shimmer-loop 5s infinite;
    pointer-events: none;
}

.btn-enhanced:hover,
.btn-enhanced:active {
    transform: translate3d(0, -4px, 0) scale3d(1.05, 1.05, 1);
    box-shadow:
        0 20px 40px rgba(99, 102, 241, 0.4),
        0 0 20px rgba(139, 92, 246, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Give buttons a subtle breathing effect if they also have pulse-glow */
.anim-pulse-glow:hover {
    animation: none;
    /* Let hover take over */
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.6);
}

/* ==========================================
   AntiGravity Settings: Prompt / Search Bar
   ========================================== */
.prompt-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
}

.prompt-input {
    width: 100%;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 1.25rem 2rem 1.25rem 3.5rem;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.prompt-input::placeholder {
    color: transparent;
    /* Text actually drawn by JS typewriter span */
}

/* On Focus/Hover: Expand slightly, Neon Outer Glow */
.prompt-container:hover,
.prompt-container:focus-within,
.prompt-container:active {
    transform: scale3d(1.02, 1.02, 1) translate3d(0, -2px, 0);
    cursor: default;
}

.prompt-container:hover .prompt-input,
.prompt-container:focus-within .prompt-input,
.prompt-container:active .prompt-input {
    border-color: rgba(147, 51, 234, 0.6);
    background: rgba(15, 15, 25, 0.8);
    box-shadow:
        0 10px 40px rgba(147, 51, 234, 0.4),
        0 0 15px rgba(168, 85, 247, 0.3);
    cursor: text;
}

.prompt-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    pointer-events: none;
}

.prompt-container:hover .prompt-icon {
    color: rgba(168, 85, 247, 1);
    filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.5));
}

/* Typewriter Overlay for Placeholder */
.prompt-typewriter {
    position: absolute;
    left: 3.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
}

/* Custom Cursor for Typewriter */
.prompt-typewriter::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: rgba(168, 85, 247, 0.8);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ==========================================
   AntiGravity Settings: 3D Cover Flow Display
   ========================================== */
.cover-flow-container {
    perspective: 1200px;
    /* Base 3D space */
    transform-style: preserve-3d;
}

.card-3d {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.6s ease;
    transform-style: preserve-3d;
    position: relative;
    z-index: 1;
    will-change: transform, box-shadow;
}

.card-3d-inner {
    transform: translateZ(30px);
    /* Push inner content closer to user */
    transition: transform 0.6s ease;
    will-change: transform;
}

.card-3d:hover,
.card-3d:active {
    transform: rotateX(5deg) rotateY(-5deg) scale3d(1.05, 1.05, 1);
    /* Slight tilt towards user */
    z-index: 10;
    box-shadow:
        -20px 20px 40px rgba(0, 0, 0, 0.5),
        -5px 5px 15px rgba(139, 92, 246, 0.2);
}

.card-3d:hover .card-3d-inner,
.card-3d:active .card-3d-inner {
    transform: translateZ(50px);
    /* Push content even further out on hover */
}

/* ─── INFINITE REVIEW MARQUEE ───────────────────────────────────── */
.review-marquee-wrap {
    overflow: hidden;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.review-marquee-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    animation: marquee-scroll 60s linear infinite;
    will-change: transform;
}

.review-marquee-track-reverse {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    animation: marquee-scroll 60s linear infinite reverse;
    will-change: transform;
}

.review-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.review-card {
    flex-shrink: 0;
    width: 300px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.25rem;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.review-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-4px);
}

.review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 0.75rem;
}

.review-stars svg {
    width: 16px;
    height: 16px;
}

.review-stars .star-on { color: #fbbf24; filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.4)); }
.review-stars .star-off { color: rgba(255, 255, 255, 0.1); }

.review-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 1rem;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    color: white;
    text-transform: uppercase;
    flex-shrink: 0;
}

.review-info .review-username {
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.review-info .review-product {
    color: rgba(99, 102, 241, 0.8);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (max-width: 640px) {
    .review-card {
        width: 240px;
        padding: 1rem;
    }
    .review-marquee-track {
        gap: 0.75rem;
        animation-duration: 40s;
    }
}