/* =============================================================================
   360SYNK CINEMATIC PRODUCTIVITY DESIGN SYSTEM
   Premium SaaS-grade animations and glassmorphism
   ============================================================================= */

/* --------------------------------------------------------------------------
   1. COLOR SYSTEM
   -------------------------------------------------------------------------- */
:root {
    /* Core Palette */
    --cin-bg-void: #030305;
    --cin-bg-dark: #050508;
    --cin-bg-surface: rgba(12, 12, 18, 0.95);
    --cin-bg-elevated: rgba(20, 20, 30, 0.9);
    
    /* Accent Colors */
    --cin-blue: #0EA5E9;
    --cin-blue-light: #38BDF8;
    --cin-turquoise: #14B8A6;
    --cin-cyan: #22D3EE;
    
    /* Gradients */
    --cin-gradient-primary: linear-gradient(135deg, #0EA5E9 0%, #14B8A6 100%);
    --cin-gradient-text: linear-gradient(90deg, #0EA5E9 0%, #14B8A6 50%, #22D3EE 100%);
    --cin-gradient-glow: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    --cin-gradient-card: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(20, 184, 166, 0.05) 100%);
    
    /* Glass Effects */
    --cin-glass-bg: rgba(255, 255, 255, 0.03);
    --cin-glass-border: rgba(255, 255, 255, 0.08);
    --cin-glass-border-hover: rgba(14, 165, 233, 0.3);
    
    /* Text */
    --cin-text-primary: #F8FAFC;
    --cin-text-secondary: #94A3B8;
    --cin-text-muted: #64748B;
    
    /* Status */
    --cin-green: #22C55E;
    --cin-amber: #F59E0B;
    --cin-red: #EF4444;
}

/* --------------------------------------------------------------------------
   2. GLASSMORPHISM BASE
   -------------------------------------------------------------------------- */
.glass-card {
    background: var(--cin-glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--cin-glass-border);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: var(--cin-glass-border-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(14, 165, 233, 0.1);
    transform: translateY(-4px);
}

.glass-card-neon {
    background: var(--cin-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 18px;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.4),
        inset 0 0 30px rgba(14, 165, 233, 0.03);
}

.glass-card-neon:hover {
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(14, 165, 233, 0.15),
        inset 0 0 40px rgba(14, 165, 233, 0.05);
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

.cin-heading {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.cin-body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

.text-gradient {
    background: var(--cin-gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* --------------------------------------------------------------------------
   4. SCROLL PROGRESS BAR
   -------------------------------------------------------------------------- */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    background: transparent;
}

#scroll-progress {
    height: 100%;
    width: 0%;
    background: var(--cin-gradient-primary);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
    transition: width 0.1s ease-out;
}

/* --------------------------------------------------------------------------
   5. SCROLL ANIMATIONS
   -------------------------------------------------------------------------- */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.scroll-animate.slide-left {
    transform: translateX(-60px);
}

.scroll-animate.slide-left.animate-in {
    transform: translateX(0);
}

.scroll-animate.slide-right {
    transform: translateX(60px);
}

.scroll-animate.slide-right.animate-in {
    transform: translateX(0);
}

.scroll-animate.scale-up {
    transform: scale(0.9);
}

.scroll-animate.scale-up.animate-in {
    transform: scale(1);
}

.stagger-child {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-child.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   6. FLOATING PARTICLES
   -------------------------------------------------------------------------- */
.particles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(14, 165, 233, 0.3);
    border-radius: 50%;
    animation: particleFloat 15s infinite ease-in-out;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -50px) scale(1.2);
        opacity: 0.6;
    }
    50% {
        transform: translate(-20px, -100px) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translate(40px, -50px) scale(1.1);
        opacity: 0.5;
    }
}

/* --------------------------------------------------------------------------
   7. HERO WORD SWAP
   -------------------------------------------------------------------------- */
.word-swap {
    display: inline-block;
    transition: all 0.3s ease;
}

.word-swap.swap-out {
    opacity: 0;
    transform: translateY(-20px);
}

.word-swap.swap-in {
    animation: swapIn 0.5s ease forwards;
}

@keyframes swapIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   8. TYPEWRITER EFFECT
   -------------------------------------------------------------------------- */
.typewriter-text::after {
    content: '|';
    animation: blink 0.8s infinite;
    color: var(--cin-blue);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* --------------------------------------------------------------------------
   9. BUTTON EFFECTS
   -------------------------------------------------------------------------- */
.btn-cinematic {
    position: relative;
    overflow: hidden;
    background: var(--cin-gradient-primary);
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cinematic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-cinematic:hover::before {
    left: 100%;
}

.btn-cinematic:hover {
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.4);
    transform: translateY(-2px);
}

.magnetic-btn {
    transition: transform 0.2s ease;
}

/* --------------------------------------------------------------------------
   10. DASHBOARD PREVIEW ANIMATIONS
   -------------------------------------------------------------------------- */
.dashboard-float {
    animation: dashboardFloat 6s ease-in-out infinite;
}

@keyframes dashboardFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(0.5deg); }
}

.dashboard-glow {
    transition: all 0.4s ease;
}

.dashboard-glow:hover {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(14, 165, 233, 0.2);
}

/* Animated elements */
.stat-card-animate {
    animation: statPop 0.6s ease forwards;
    opacity: 0;
}

@keyframes statPop {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    60% {
        transform: scale(1.05) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.bar-animate {
    animation: barGrow 1s ease forwards;
    transform-origin: bottom;
    transform: scaleY(0);
}

@keyframes barGrow {
    to { transform: scaleY(1); }
}

.notification-slide {
    animation: notifSlide 0.8s ease forwards;
}

@keyframes notifSlide {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --------------------------------------------------------------------------
   11. PRICING CARDS
   -------------------------------------------------------------------------- */
.pricing-cinematic {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-cinematic:hover {
    transform: translateY(-12px);
}

.pricing-cinematic.popular-tier {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(20, 184, 166, 0.05) 100%);
    border-color: var(--cin-blue);
}

.pricing-cinematic.popular-tier::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--cin-gradient-primary);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(15px);
}

.pricing-cinematic:hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.15), transparent 50%);
    border-radius: 18px;
    pointer-events: none;
}

/* Animated checkmarks */
.check-animated {
    animation: checkPop 0.3s ease;
}

@keyframes checkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   12. FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq-item-cinematic {
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    cursor: pointer;
    user-select: none;
}

.faq-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    transition: color 0.3s;
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.faq-item-cinematic.open .faq-icon {
    transform: rotate(180deg);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item-cinematic.open .faq-body {
    max-height: 200px;
    padding: 0 28px 24px;
}

.faq-body p {
    margin: 0;
    color: var(--cin-text-secondary);
    line-height: 1.7;
}

.faq-item-cinematic:hover .faq-header h4 {
    color: var(--cin-blue-light);
}

/* --------------------------------------------------------------------------
   13. FOOTER ENHANCEMENTS
   -------------------------------------------------------------------------- */
.footer-cinematic {
    position: relative;
    overflow: hidden;
}

.footer-grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(14, 165, 233, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridPulse 4s ease infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.footer-glow-separator {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--cin-blue),
        var(--cin-turquoise),
        var(--cin-blue),
        transparent
    );
    opacity: 0.5;
    margin: 40px 0;
}

.footer-link-cinematic {
    position: relative;
    display: inline-block;
    color: var(--cin-text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link-cinematic::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--cin-gradient-primary);
    transition: width 0.3s ease;
}

.footer-link-cinematic:hover {
    color: var(--cin-text-primary);
}

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

.social-link-cinematic {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cin-glass-bg);
    border: 1px solid var(--cin-glass-border);
    border-radius: 12px;
    color: var(--cin-text-muted);
    transition: all 0.3s ease;
}

.social-link-cinematic:hover {
    border-color: var(--cin-blue);
    color: var(--cin-blue);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   14. FEATURE SECTION ACCENTS
   -------------------------------------------------------------------------- */
.accent-line {
    position: absolute;
    width: 3px;
    height: 100%;
    background: var(--cin-gradient-primary);
    border-radius: 3px;
    opacity: 0.5;
}

.accent-line.left { left: -20px; }
.accent-line.right { right: -20px; }

.line-draw {
    animation: lineDraw 1s ease forwards;
    transform-origin: top;
    transform: scaleY(0);
}

@keyframes lineDraw {
    to { transform: scaleY(1); }
}

/* Icon pulse on hover */
.icon-pulse {
    transition: all 0.3s ease;
}

.icon-pulse:hover {
    animation: iconPulse 0.6s ease;
    color: var(--cin-blue);
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* --------------------------------------------------------------------------
   15. MODULE CAROUSEL
   -------------------------------------------------------------------------- */
.module-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.module-carousel::-webkit-scrollbar {
    display: none;
}

.module-slide {
    flex-shrink: 0;
    width: 300px;
    transition: all 0.4s ease;
}

.module-slide:hover {
    transform: scale(1.02);
}

/* Auto-scroll animation */
.auto-scroll {
    animation: autoScroll 30s linear infinite;
}

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

.auto-scroll:hover {
    animation-play-state: paused;
}

/* --------------------------------------------------------------------------
   16. HERO GRID OVERLAY
   -------------------------------------------------------------------------- */
.hero-grid-cinematic {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(14, 165, 233, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: bottom;
    opacity: 0.5;
    mask-image: linear-gradient(to top, white 0%, transparent 60%);
    -webkit-mask-image: linear-gradient(to top, white 0%, transparent 60%);
}

.hero-glow-cinematic {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.hero-glow-1 {
    top: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, transparent 70%);
}

.hero-glow-2 {
    bottom: -300px;
    left: -200px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.2) 0%, transparent 70%);
}

/* --------------------------------------------------------------------------
   17. TRUST STATS ANIMATION
   -------------------------------------------------------------------------- */
.trust-stat-cinematic {
    text-align: center;
    padding: 16px 32px;
    position: relative;
}

.trust-stat-cinematic .stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--cin-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trust-stat-cinematic .stat-label {
    font-size: 0.85rem;
    color: var(--cin-text-muted);
    display: block;
    margin-top: 4px;
}

.trust-divider-cinematic {
    width: 1px;
    height: 50px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--cin-glass-border),
        transparent
    );
}

/* --------------------------------------------------------------------------
   18. RESPONSIVE ADJUSTMENTS
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .glass-card {
        border-radius: 14px;
    }
    
    .scroll-progress-container {
        height: 2px;
    }
    
    .particles-container {
        display: none;
    }
    
    .hero-grid-cinematic {
        background-size: 40px 40px;
    }
}

/* --------------------------------------------------------------------------
   19. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-animate {
        opacity: 1;
        transform: none;
    }
    
    .auto-scroll {
        animation: none;
    }
}

