/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg,
            #FFFFFF 0%,
            #F8FAFF 25%,
            #FAFAFF 50%,
            #F5FAFF 75%,
            #FFFFFF 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
}

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

/* Global Selection Styles */
::selection {
    background: #dbeafe;
    /* blue-100 */
    color: #0f172a;
    /* slate-900 */
    -webkit-text-fill-color: #0f172a;
}

::-moz-selection {
    background: #dbeafe;
    color: #0f172a;
    -webkit-text-fill-color: #0f172a;
}

/* Tailwind Configuration */
/* Tailwind Configuration */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    max-width: 1280px;
}

/* Floating Gradient Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    top: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
    bottom: 20%;
    left: 5%;
    animation-delay: 7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #06B6D4 0%, #67E8F9 100%);
    top: 50%;
    right: -5%;
    animation-delay: 14s;
}

/* Glow Spots - Additional background effects */
.glow-spot {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.glow-spot-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    top: 20%;
    right: 10%;
}

.glow-spot-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    top: 60%;
    left: -10%;
}

.glow-spot-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    top: 40%;
    right: 20%;
}

.glow-spot-4 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
    top: 80%;
    left: 30%;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(20px, -30px) rotate(5deg);
    }

    50% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }

    75% {
        transform: translate(30px, 10px) rotate(3deg);
    }
}

/* Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 100;
}

/* Gradient Border Effect */
.gradient-border {
    position: relative;
    background: white;
    border-radius: 24px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, #E0E7FF, #DBEAFE, #E0F2FE);
    -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;
    pointer-events: none;
}

/* Task Card Hover Effect */
.task-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

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

/* Priority Bar Glow Effects */
.priority-glow-red {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.priority-glow-yellow {
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.4);
}

.priority-glow-blue {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

/* Feature Card Effect */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.12);
}

/* Animated Button */
.btn-lock-in {
    position: relative;
    overflow: hidden;
}

.btn-lock-in::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-lock-in:hover::before {
    width: 300px;
    height: 300px;
}

/* Lock In Demo Animation */
.locked-in-demo-before {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.locked-in-demo-after {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.locked-in-demo-before.dimmed {
    opacity: 0.3;
    transform: scale(1);
    filter: blur(4px);
}

.locked-in-demo-after.active {
    opacity: 1;
    transform: scale(1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

@media (min-width: 768px) {
    .locked-in-demo-before.dimmed {
        transform: scale(0.92) translateX(-10px);
    }

    .locked-in-demo-after.active {
        transform: scale(1.04) translateX(10px);
    }
}

.locked-in-demo-after.active>div {
    box-shadow: none !important;
}

.locked-in-demo-after:not(.active) {
    opacity: 0.4;
    transform: scale(0.92);
}

/* Success Animation */
.success-animation {
    animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.05);
    }

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

/* Staggered Fade In */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Glass Morphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Tag Pill Animation */
.tag-pill {
    transition: all 0.3s ease;
}

.tag-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Roadmap Timeline Connector */
.roadmap-connector {
    position: relative;
}

/* .roadmap-connector::after {
    content: '';
    position: absolute;
    left: 32px;
    top: 80px;
    bottom: -32px;
    width: 2px;
    background: linear-gradient(180deg, #3B82F6 0%, #E2E8F0 100%);
} */

.roadmap-connector:last-child::after {
    display: none;
}

/* Pulsing Dot Animation */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 1;
    }

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

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

.pulse-dot {
    animation: pulse-ring 2s ease-in-out infinite;
}

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

    .orb-1,
    .orb-2,
    .orb-3 {
        width: 250px;
        height: 250px;
    }

    .glow-spot-1,
    .glow-spot-2,
    .glow-spot-3,
    .glow-spot-4 {
        width: 300px;
        height: 300px;
        opacity: 0.5;
    }
}

/* Button Loading State */
.button-disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* Moving Gradient Animation */
@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.loading-gradient {
    background: linear-gradient(-45deg, #3b82f6, #6366f1, #8b5cf6, #3b82f6);
    background-size: 300% 300%;
    animation: gradient-flow 2s ease infinite;
    color: white !important;
    border: none !important;
}

/* Custom Dropdown Styles */
.custom-dropdown-open #dropdownOptions {
    visibility: visible;
    opacity: 1;
    transform: scale(100%);
}

.custom-dropdown-open #dropdownTrigger svg {
    transform: rotate(180deg);
}

.custom-dropdown-open #dropdownTrigger {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===== NEW UI/UX ENHANCEMENTS ===== */

/* Animated Gradient Text */
@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

.bg-gradient-to-r.from-blue-600.via-indigo-600.to-blue-500,
.bg-gradient-to-r.from-cyan-600.via-blue-600.to-cyan-600 {
    background-size: 200% auto;
    animation: gradient-shift 8s ease-in-out infinite;
}

/* Enhanced Button Hover Effects */
button:hover {
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:active {
    transform: translateY(0);
}

.group:hover {
    transform: translateY(-3px) scale(1.02);
}

/* Ripple Effect on Click */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
}

.btn-ripple:active::after {
    animation: ripple 0.6s ease-out;
}

/* Enhanced Tag Pills */
.tag-pill {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag-pill:hover {
    transform: translateY(-3px) rotate(1deg) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Orb Pulse Animation */
@keyframes orb-pulse {

    0%,
    100% {
        opacity: 0.15;
        filter: blur(80px);
    }

    50% {
        opacity: 0.22;
        filter: blur(90px);
    }
}

.orb {
    animation: float 20s ease-in-out infinite, orb-pulse 6s ease-in-out infinite;
}

/* Feature Card 3D Tilt */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.feature-card:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(5deg) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.15);
}

/* Task Card Enhanced Hover */
.task-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.2);
}

/* Scroll Reveal Animation */
@keyframes scroll-reveal {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    animation: scroll-reveal 0.8s ease-out forwards;
}

.scroll-reveal-left {
    opacity: 0;
    animation: scroll-reveal-left 0.8s ease-out forwards;
}

@keyframes scroll-reveal-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Staggered Animation Delays */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

.stagger-6 {
    animation-delay: 0.6s;
}

/* Roadmap Timeline Animation */
@keyframes timeline-grow {
    from {
        height: 0;
    }

    to {
        height: 100%;
    }
}

.roadmap-connector::after {
    animation: timeline-grow 1s ease-out forwards;
}

/* Icon Bounce on Card Hover */
.feature-card:hover svg {
    animation: icon-bounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes icon-bounce {

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

    50% {
        transform: scale(1.2) rotate(5deg);
    }
}

/* Border Glow Effect */
.feature-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #06b6d4, #3b82f6);
    background-size: 300% 300%;
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
    animation: gradient-rotate 6s linear infinite;
}

.feature-card:hover::after {
    opacity: 0.4;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Input Focus Glow */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 0 20px rgba(59, 130, 246, 0.15) !important;
    border-color: #3b82f6 !important;
}

/* Number Counter Animation */
@keyframes count-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter-animate {
    animation: count-up 1s ease-out;
}

/* Lock In Button Shake (Before State) */
@keyframes distraction-shake {

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

    25% {
        transform: translateX(-2px) rotate(-0.5deg);
    }

    75% {
        transform: translateX(2px) rotate(0.5deg);
    }
}

@media (min-width: 768px) {
    .locked-in-demo-before {
        animation: distraction-shake 3s ease-in-out infinite;
    }
}

/* Enhanced Glow for Locked State - REMOVED to fix white background */
.locked-in-demo-after.active {
    box-shadow: none;
}

/* Confetti Particle Animation */
@keyframes confetti-fall {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #3b82f6;
    animation: confetti-fall 3s linear forwards;
    z-index: 1000;
    pointer-events: none;
}

/* Custom Cursor for Interactive Elements */
.cursor-interactive {
    cursor: pointer;
    position: relative;
}

.cursor-interactive::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.cursor-interactive:hover::before {
    opacity: 1;
}

/* Particle Effect Container */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #60a5fa, #3b82f6);
    border-radius: 50%;
    animation: particle-float 2s ease-out forwards;
    opacity: 0;
}

@keyframes particle-float {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0);
    }

    50% {
        opacity: 1;
        transform: translate(var(--tx), var(--ty)) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(calc(var(--tx) * 1.5), calc(var(--ty) * 1.5)) scale(0.5);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Performance Hints */
.feature-card,
.task-card,
.orb,
button {
    will-change: transform;
}