/* ===========================
   PolarisONE ScriptWEAVER Styles
   High-Tech, Futuristic Design
   =========================== */

/* Root Variables */
:root {
    --primary-cyan: #06b6d4;
    --primary-purple: #a855f7;
    --primary-pink: #ec4899;
    --primary-orange: #f97316;
    --primary-green: #10b981;
    --dark-bg: #0f172a;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.5);
    --glow-purple: 0 0 20px rgba(168, 85, 247, 0.5);
}

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

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.orbitron {
    font-family: 'Orbitron', sans-serif;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-cyan), var(--primary-purple));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-purple), var(--primary-pink));
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: 
        radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 90%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    animation: bgPulse 15s ease-in-out infinite;
}

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

/* Particles Background */
#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(6, 182, 212, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(168, 85, 247, 0.3), transparent),
        radial-gradient(2px 2px at 50% 50%, rgba(236, 72, 153, 0.3), transparent),
        radial-gradient(2px 2px at 80% 10%, rgba(16, 185, 129, 0.3), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(249, 115, 22, 0.3), transparent);
    background-size: 200% 200%;
    animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Glass Effect */
.glass-effect {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.3);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #06b6d4, #a855f7, #ec4899);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Glow Effects */
.glow-text {
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.8), 0 0 40px rgba(6, 182, 212, 0.4);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { 
        text-shadow: 0 0 20px rgba(6, 182, 212, 0.8), 0 0 40px rgba(6, 182, 212, 0.4);
    }
    50% { 
        text-shadow: 0 0 30px rgba(6, 182, 212, 1), 0 0 60px rgba(6, 182, 212, 0.6);
    }
}

.glow-border {
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(6, 182, 212, 0.5); }
    50% { box-shadow: 0 0 25px rgba(6, 182, 212, 0.8), 0 0 40px rgba(168, 85, 247, 0.4); }
}

/* Logo Container */
.logo-container {
    animation: logoRotate 10s linear infinite;
}

@keyframes logoRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navigation Link Hover */
.nav-link {
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
    transition: width 0.4s ease;
}

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

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 12px 32px;
    background: linear-gradient(135deg, #06b6d4, #a855f7);
    background-size: 200% 200%;
    color: white;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.btn-primary::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 ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.6);
    background-position: 100% 0;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 12px 32px;
    background: transparent;
    border: 2px solid var(--primary-cyan);
    color: var(--primary-cyan);
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, #06b6d4, #a855f7);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 300%;
    height: 300%;
}

.btn-secondary:hover {
    color: white;
    border-color: var(--primary-purple);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Hero Title Animation */
.hero-title {
    animation: heroFadeIn 1.5s ease-out;
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Badge */
.hero-badge {
    animation: badgeFloat 3s ease-in-out infinite;
}

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

/* Floating Elements */
.floating-element {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

/* Stat Card */
.stat-card {
    padding: 20px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 15px;
    transition: all 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(6, 182, 212, 0.6);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.3);
}

/* Feature Card */
.feature-card {
    padding: 32px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card:hover::before {
    opacity: 1;
    animation: ripple 2s linear infinite;
}

@keyframes ripple {
    0% { transform: scale(0.5); }
    100% { transform: scale(1.5); }
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(6, 182, 212, 0.6);
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.4);
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 20px;
    color: white;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
}

.feature-link {
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.feature-link:hover {
    color: var(--primary-purple);
    transform: translateX(5px);
}

/* Demo Video Container */
.demo-video-container {
    position: relative;
    border: 2px solid rgba(6, 182, 212, 0.3);
    transition: all 0.4s ease;
}

.demo-video-container:hover {
    border-color: rgba(6, 182, 212, 0.8);
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.5);
}

.play-button {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: none;
    background: rgba(6, 182, 212, 0.2);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.4s ease;
}

.play-button:hover {
    transform: scale(1.2);
    background: rgba(6, 182, 212, 0.4);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.8);
}

/* Testimonial Card */
.testimonial-card {
    padding: 32px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 20px;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 15px 50px rgba(168, 85, 247, 0.3);
}

/* CTA Card */
.cta-card {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(168, 85, 247, 0.1));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(6, 182, 212, 0.3);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 50%);
    animation: ctaRotate 10s linear infinite;
}

@keyframes ctaRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Input Fields */
.input-field {
    width: 100%;
    padding: 14px 20px;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(6, 182, 212, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.input-field::placeholder {
    color: rgba(156, 163, 175, 0.6);
}

/* Social Icons */
.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary-cyan);
    text-decoration: none;
    transition: all 0.4s ease;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: white;
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.5);
}

/* Pricing Card */
.pricing-card {
    padding: 40px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(6, 182, 212, 0.2);
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.1), transparent);
    transition: left 0.8s ease;
}

.pricing-card:hover::before {
    left: 100%;
}

.pricing-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(6, 182, 212, 0.6);
    box-shadow: 0 25px 70px rgba(6, 182, 212, 0.4);
}

.popular-plan {
    border: 2px solid rgba(168, 85, 247, 0.5);
    background: rgba(168, 85, 247, 0.05);
}

.popular-plan:hover {
    border-color: rgba(168, 85, 247, 0.8);
    box-shadow: 0 25px 70px rgba(168, 85, 247, 0.5);
}

.premium-plan {
    border: 2px solid rgba(249, 115, 22, 0.5);
    background: rgba(249, 115, 22, 0.05);
}

.premium-plan:hover {
    border-color: rgba(249, 115, 22, 0.8);
    box-shadow: 0 25px 70px rgba(249, 115, 22, 0.5);
}

.popular-badge,
.premium-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.5);
}

.premium-badge {
    background: linear-gradient(135deg, var(--primary-orange), #dc2626);
}

.premium-btn {
    background: linear-gradient(135deg, var(--primary-orange), #dc2626);
}

.premium-btn:hover {
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.6);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 182, 212, 0.3);
    border: 2px solid var(--primary-cyan);
    border-radius: 30px;
    transition: 0.4s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    border-radius: 50%;
    transition: 0.4s;
}

input:checked + .toggle-slider {
    background: rgba(168, 85, 247, 0.3);
    border-color: var(--primary-purple);
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

/* Comparison Table */
.comparison-table {
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table thead tr {
    background: rgba(6, 182, 212, 0.1);
}

.comparison-table tbody tr {
    transition: all 0.3s ease;
}

.comparison-table tbody tr:hover {
    background: rgba(6, 182, 212, 0.05);
    transform: scale(1.01);
}

.comparison-table th,
.comparison-table td {
    border-bottom: 1px solid rgba(107, 114, 128, 0.2);
}

/* FAQ Items */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(6, 182, 212, 0.5);
}

.faq-question {
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-cyan);
}

.faq-answer {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem !important;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .pricing-card {
        padding: 28px;
    }
    
    .glass-card {
        padding: 20px !important;
    }
}

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

/* Selection Style */
::selection {
    background: rgba(6, 182, 212, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(6, 182, 212, 0.3);
    color: white;
}

/* Page Transition */
.page-transition {
    animation: pageLoad 0.8s ease-out;
}

@keyframes pageLoad {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.3);
}

/* Code Block Styling */
code {
    background: rgba(6, 182, 212, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--primary-cyan);
    font-family: 'Courier New', monospace;
}

pre {
    background: rgba(15, 23, 42, 0.8);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    overflow-x: auto;
}

/* Utility Classes */
.backdrop-blur {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.text-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

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

.transition-all {
    transition: all 0.3s ease;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.1) 25%, rgba(168, 85, 247, 0.1) 50%, rgba(6, 182, 212, 0.1) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
}

@keyframes skeleton {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}