:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --shadow-glow: 0 25px 50px rgba(0, 0, 0, 0.15);
    --shadow-neon: 0 0 30px rgba(103, 126, 234, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-accent: #667eea;
    
    /* Dynamic timing functions */
    --elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
    --bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* logo*/

body {
    background: var(--dark-gradient);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Fluid animated background with parallax effect */
.bg-animated {
    background: var(--dark-gradient);
    position: relative;
}

.bg-animated::before {
    content: '';
    position: absolute;
    background: 
        radial-gradient(circle at 20% 50%, rgba(103, 126, 234, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(79, 172, 254, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 60% 30%, rgba(240, 147, 251, 0.08) 0%, transparent 40%);
    transform-origin: center;
}

.bg-animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="dots" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1.5" fill="white" opacity="0.1"><animate attributeName="opacity" values="0.1;0.3;0.1" dur="3s" repeatCount="indefinite"/></circle><circle cx="5" cy="5" r="1" fill="white" opacity="0.05"><animate attributeName="opacity" values="0.05;0.15;0.05" dur="4s" repeatCount="indefinite"/></circle></pattern></defs><rect width="200" height="200" fill="url(%23dots)"/></svg>');
    opacity: 0.6;
    animation: dotFlow 20s linear infinite;
}

@keyframes backgroundFlow {
    0%, 100% { 
        transform: translateX(0) translateY(0) scale(1); 
    }
    25% { 
        transform: translateX(-30px) translateY(20px) scale(1.05); 
    }
    50% { 
        transform: translateX(20px) translateY(-15px) scale(0.98); 
    }
    75% { 
        transform: translateX(-15px) translateY(-25px) scale(1.02); 
    }
}

@keyframes backgroundRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes dotFlow {
    from { transform: translateX(0) translateY(0); }
    to { transform: translateX(-40px) translateY(-40px); }
}

/* Glass Header */
.glass-header {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.logo-container {
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    transition: all 0.3s ease;
}

.logo-text:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(103, 126, 234, 0.5));
}

/* Navigation Links */
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 0;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    transform: translateY(-2px);
}

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

/* Mobile Menu */
.mobile-menu-btn {
    color: var(--text-primary);
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: block;
}

.mobile-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    padding-left: 20px;
}

/* Dynamic hero section */
.hero-section {
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hexagon" width="20" height="20" patternUnits="userSpaceOnUse"><polygon points="10,2 18,7 18,13 10,18 2,13 2,7" fill="none" stroke="white" stroke-width="0.5" opacity="0.2"><animateTransform attributeName="transform" type="rotate" values="0 10 10;360 10 10" dur="20s" repeatCount="indefinite"/></polygon></pattern></defs><rect width="100" height="100" fill="url(%23hexagon)"/></svg>');
    opacity: 0.4;
    animation: heroPattern 15s linear infinite;
}

@keyframes heroPattern {
    from { transform: translateX(0) translateY(0); }
    to { transform: translateX(-20px) translateY(-20px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Fluid pricing cards */
.pricing-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    perspective: 1000px;
}

.pricing-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 2.5rem;
    position: relative;
    transition: all 0.5s var(--elastic);
    overflow: hidden;
    transform-style: preserve-3d;
    cursor: pointer;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.5s var(--smooth);
    z-index: -1;
}

.pricing-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transition: all 0.6s var(--smooth);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
}

.pricing-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.03);
    box-shadow: var(--shadow-neon), var(--shadow-glow);
    border-color: rgba(103, 126, 234, 0.6);
}

.pricing-card:hover::before {
    opacity: 0.15;
}

.pricing-card:hover::after {
    width: 200px;
    height: 200px;
}

.popular-card {
    position: relative;
    background: linear-gradient(135deg, rgba(103, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.15) 100%);
    border: 2px solid rgba(103, 126, 234, 0.6);
    transform: scale(1.05);
    animation: popularPulse 4s ease-in-out infinite;
}

@keyframes popularPulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(103, 126, 234, 0.3);
    }
    50% { 
        box-shadow: 0 0 40px rgba(103, 126, 234, 0.5);
    }
}

.popular-badge {
    position: absolute;
    top: 7px;
    right: 20px;
    background: var(--secondary-gradient);
    color: var(--text-primary);
    padding: 0.6rem 1.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-glow);
    animation: badgeFloat 3s ease-in-out infinite;
    transition: transform 0.3s var(--elastic);
}

.popular-badge:hover {
    transform: scale(1.1) rotate(2deg);
}

@keyframes badgeFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    50% { 
        transform: translateY(-5px) rotate(1deg); 
    }
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s var(--smooth);
    cursor: default;
}

.card-title:hover {
    transform: translateX(5px);
    filter: drop-shadow(0 0 10px rgba(103, 126, 234, 0.5));
}

.card-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    transition: color 0.3s var(--smooth);
}

.pricing-card:hover .card-description {
    color: rgba(255, 255, 255, 0.9);
}

.price-section {
    margin-bottom: 2rem;
    text-align: center;
}

.price-main {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.4s var(--elastic);
}

.price-main:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(103, 126, 234, 0.6);
}

.currency-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 0.3rem;
    margin: 1rem auto;
    width: fit-content;
    backdrop-filter: blur(15px);
    transition: all 0.3s var(--smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.currency-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.currency-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 1.5rem;
    cursor: pointer;
    transition: all 0.4s var(--elastic);
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.currency-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: left 0.3s var(--smooth);
    z-index: -1;
}

.currency-btn:hover {
    transform: scale(1.05);
}

.currency-btn.active {
    background: var(--primary-gradient);
    color: var(--text-primary);
    box-shadow: 0 6px 20px rgba(103, 126, 234, 0.4);
    transform: scale(1.05);
}

.currency-btn.active::before {
    left: 0;
}

/* Enhanced features list */
.features-list {
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: all 0.4s var(--elastic);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    transition: left 0.3s var(--smooth);
    z-index: -1;
}

.feature-item:hover {
    transform: translateX(10px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
}

.feature-item:hover::before {
    left: 0;
}

.feature-icon {
    color: #4ade80;
    margin-right: 1rem;
    margin-top: 0.25rem;
    font-size: 1.1rem;
    filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.4));
    transition: all 0.3s var(--elastic);
    animation: iconGlow 2s ease-in-out infinite alternate;
}

.feature-item:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(74, 222, 128, 0.6));
}

@keyframes iconGlow {
    0% { filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.4)); }
    100% { filter: drop-shadow(0 0 12px rgba(74, 222, 128, 0.6)); }
}

.feature-text {
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.3s var(--smooth);
}

.feature-item:hover .feature-text {
    color: rgba(255, 255, 255, 0.9);
}

/* Dynamic CTA button */
.cta-button {
    width: 100%;
    background: var(--primary-gradient);
    border: none;
    color: var(--text-primary);
    padding: 1.2rem 2rem;
    border-radius: 1.2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s var(--elastic);
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button::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.6s var(--smooth);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.4s var(--smooth);
    transform: translate(-50%, -50%);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover::after {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(103, 126, 234, 0.5);
}

.cta-button:active {
    transform: translateY(-2px) scale(0.98);
}

/* Enhanced footer */
footer {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(25px);
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary-gradient);
    animation: borderFlow 3s ease-in-out infinite;
}

@keyframes borderFlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Footer */
.footer {
    background: var(--dark-gradient);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 80px 0 40px;
    position: relative;
    z-index: 1000;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary-gradient);
    opacity: 0.3;
}

.footer-section {
    margin-bottom: 40px;
}

.footer-title {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.footer-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.footer-heading {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
}

.footer-link:hover {
    color: var(--text-primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(103, 126, 234, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.legal-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: var(--text-primary);
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .popular-card {
        transform: none;
        animation: none;
    }
    
    .pricing-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .pricing-card {
        padding: 2rem;
    }
    
    .pricing-card:hover {
        transform: translateY(-10px) scale(1.02);
    }
    
    .price-main {
        font-size: 2.2rem;
    }
}

/* Staggered loading animations */
.pricing-card {
    animation: cardReveal 0.8s var(--elastic) forwards;
    opacity: 0;
    transform: translateY(50px) rotateX(10deg);
}

.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.3s; }
.pricing-card:nth-child(3) { animation-delay: 0.5s; }

@keyframes cardReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* Micro-interactions */
@media (hover: hover) {
    * {
        transition-timing-function: var(--smooth);
    }
}

/* Performance optimizations */
.pricing-card,
.nav-link,
.cta-button,
.feature-item {
    will-change: transform;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.1s !important;
        transition-duration: 0.1s !important;
    }
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

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

/* Selection Styles */
::selection {
    background: rgba(103, 126, 234, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(103, 126, 234, 0.3);
    color: white;
}