/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #da6a59;
    border-radius: 4px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Animation Keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(233, 166, 155, 0.3); }
    50% { box-shadow: 0 0 40px rgba(233, 166, 155, 0.6); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes reveal-scale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

@keyframes orbit {
    from { transform: rotate(0deg) translateX(150px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }
.animate-gradient { 
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}
.animate-spin-slow { animation: spin-slow 20s linear infinite; }

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #e9a69b 0%, #da6a59 50%, #e9a69b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Effect */
.glass {
    background: rgba(15, 41, 82, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(233, 166, 155, 0.1);
}

/* Hero Orb */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

/* Card Hover Effect */
.card-hover {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Typing Effect */
.typing-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #da6a59;
    animation: typing 3s steps(40) 1s forwards, blink 0.75s step-end infinite;
}

/* Navigation Active */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #da6a59;
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Feature Icon Container */
.feature-icon {
    position: relative;
    overflow: hidden;
}
.feature-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(233, 166, 155, 0.2), rgba(218, 106, 89, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.feature-icon:hover::before {
    opacity: 1;
}

/* Pricing Card Popular */
.pricing-popular {
    position: relative;
    border: 2px solid #da6a59;
}
.pricing-popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #da6a59, #c45544);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Interactive Dashboard Preview */
.dashboard-preview {
    position: relative;
    perspective: 1000px;
}
.dashboard-preview-inner {
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}
.dashboard-preview:hover .dashboard-preview-inner {
    transform: rotateY(-5deg) rotateX(5deg);
}

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

/* Mobile Menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open {
    transform: translateX(0);
}

/* Custom Cursor (Desktop) */
/* @media (min-width: 1024px) {
    .custom-cursor {
        cursor: none;
    }
    .cursor-dot {
        width: 8px;
        height: 8px;
        background: #da6a59;
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9999;
        transition: transform 0.1s ease;
    }
    .cursor-ring {
        width: 40px;
        height: 40px;
        border: 2px solid rgba(233, 166, 155, 0.5);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9998;
        transition: all 0.15s ease;
    }
    .cursor-ring.hover {
        transform: scale(1.5);
        border-color: #da6a59;
    }
} */

/* Tier Badge */
.tier-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Form Input Focus */
.form-input:focus {
    outline: none;
    border-color: #da6a59;
    box-shadow: 0 0 0 3px rgba(218, 106, 89, 0.2);
}

/* Video Modal */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-modal.open {
    opacity: 1;
    visibility: visible;
}
.video-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
}
.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-modal.open .video-modal-content {
    transform: scale(1) translateY(0);
}
.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(218, 106, 89, 0.2);
    border: 1px solid rgba(218, 106, 89, 0.3);
    border-radius: 50%;
    color: #e9a69b;
    cursor: pointer;
    transition: all 0.3s ease;
}
.video-modal-close:hover {
    background: #da6a59;
    color: white;
    transform: rotate(90deg);
}
.video-container {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(233, 166, 155, 0.2);
}
.video-container video {
    width: 100%;
    display: block;
}
