:root {
    --primary: #ff7043;
    --dark: #ffffff;
    /* Changed to white */
    --text: #1f1f1f;
    /* Added text color variable */
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Custom Selection */
::selection {
    background: var(--primary);
    color: white;
}

/* Smooth Scrollbar (Optional, if Lenis doesn't cover it) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Animations */
@keyframes pulse-slow {

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

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

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

/* 3D Perspective */
.perspective-1000 {
    perspective: 1000px;
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Typography Enhancements */
.hero-title {
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.1);
    /* Changed to dark stroke */
    color: var(--text);
    /* Changed to dark text */
}

/* Navigation Link Hover Effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Soft floating effect for badges */
@keyframes float-soft {
    0% {
        transform: translateY(0);
    }

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

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

.float-soft {
    animation: float-soft 4s ease-in-out infinite;
}

/* Reveal Animations (IntersectionObserver) */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

.reveal.fade-in {
    transform: translateY(10px);
}

.reveal.fade-in-up {
    transform: translateY(24px);
}

.reveal.fade-in-left {
    transform: translateX(-24px);
}

.reveal.fade-in-right {
    transform: translateX(24px);
}

.reveal.zoom-in {
    transform: scale(0.92);
}

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

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

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

.hover\:pause:hover {
    animation-play-state: paused;
}

/* Gradient Mask for Marquee */
.mask-gradient {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Responsive Tweaks */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
    }

    nav.fixed {
        width: 96%;
        max-width: none;
        left: 50%;
        transform: translateX(-50%);
    }

    nav.fixed>div {
        padding: 12px 16px;
    }

    #mobileMenu {
        display: none;
    }

    #mobileMenu.block {
        display: block;
    }

    .hero-title {
        font-size: clamp(1.9rem, 5vw, 2.6rem);
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .hero-cta a {
        width: 100%;
        text-align: center;
    }

    .hero-video-card {
        margin-top: 1.25rem;
        width: 100%;
    }

    .hero-video-card video,
    .hero-video-card img {
        width: 100%;
        height: auto;
    }

    .floating-element {
        max-width: 60%;
    }

    main section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .feature-card,
    .pricing-card,
    .testimonial-card {
        width: 100%;
    }

    model-viewer,
    video,
    img {
        max-width: 100%;
        height: auto;
    }

    #demo-visual .flex,
    #demo .flex {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    nav.fixed>div {
        padding: 10px 12px;
    }

    .hero-title {
        font-size: clamp(1.7rem, 6vw, 2.2rem);
    }

    .hero-badge span {
        font-size: 0.85rem;
    }

    .hero-video-card video {
        max-height: 260px;
    }

    .hero-video-badge span {
        font-size: 0.6rem;
        letter-spacing: 0.16em;
    }

    .feature-card,
    .pricing-card,
    .testimonial-card {
        padding: 1.25rem;
    }

    main section {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}