/* --- 1. Global Styles & Variables --- */
:root {
    --bg-dark: #0a0a14;
    --bg-card: rgba(22, 22, 38, 0.5);
    --primary-glow: #00aaff;
    --secondary-glow: #aa00ff;
    --accent-glow: #00ffaa;
    --text-light: #e0e0e0;
    --text-muted: #888;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Sora', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
}

.text-primary-glow {
    color: var(--primary-glow);
    text-shadow: 0 0 8px var(--primary-glow);
}

/* --- 2. Background Animations --- */
.blob-c {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.blob:nth-child(1) {
    width: 400px;
    height: 400px;
    background: var(--primary-glow);
    top: -150px;
    left: -150px;
    animation: float 25s infinite alternate;
}
.blob:nth-child(2) {
    width: 300px;
    height: 300px;
    background: var(--secondary-glow);
    bottom: -100px;
    right: -100px;
    animation: float 20s infinite alternate-reverse;
}
.blob:nth-child(3) {
    width: 250px;
    height: 250px;
    background: var(--accent-glow);
    bottom: 10%;
    left: 20%;
    animation: float 30s infinite alternate;
}

/* --- 3. Entry & Looping Animations --- */
@keyframes float {
    from { transform: translateY(0px) translateX(0px) rotate(0deg); }
    to { transform: translateY(-50px) translateX(50px) rotate(180deg); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
@keyframes slideInUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 15px var(--primary-glow); } 50% { transform: scale(1.05); box-shadow: 0 0 25px var(--primary-glow); } }
@keyframes pulse-secondary { 0%, 100% { transform: scale(1); box-shadow: 0 0 15px var(--accent-glow); } 50% { transform: scale(1.05); box-shadow: 0 0 25px var(--accent-glow); } }
@keyframes border-glow { 0%, 100% { border-color: var(--primary-glow); box-shadow: 0 0 20px var(--primary-glow); } 50% { border-color: var(--accent-glow); box-shadow: 0 0 30px var(--accent-glow); } }
@keyframes move-background { from { background-position: 0 0; } to { background-position: 100% 100%; } }
@keyframes particle-float { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-100px); opacity: 0; } }

/* Animation Utility Classes */
.animate-on-load { animation-duration: 0.8s; animation-fill-mode: both; animation-timing-function: ease-out; }
.fade-in { animation-name: fadeIn; }
.zoom-in { animation-name: zoomIn; }
.slide-in-up { animation-name: slideInUp; }
.slide-in-left { animation-name: slideInLeft; }
.slide-in-right { animation-name: slideInRight; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* --- 4. Component Styles --- */
/* Header */
.navbar { background: transparent; }
.navbar-brand { font-size: 1.8rem; }

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    border-width: 2px;
    transition: all 0.3s ease;
}
.btn-primary-glow {
    background-color: var(--primary-glow);
    border-color: var(--primary-glow);
    color: var(--bg-dark);
}
.btn-secondary-outline {
    background-color: transparent;
    border-color: var(--accent-glow);
    color: var(--accent-glow);
}
.pulse { animation: pulse 2s infinite; }
.pulse-secondary { animation: pulse-secondary 2.5s infinite; }

/* Hero Section */
.hero-section {
    height: 90vh;
    min-height: 600px;
}

/* Shape Divider */
.shape-divider {
    height: 100px;
    background: var(--bg-dark);
    clip-path: polygon(0 0, 100% 0, 100% 10%, 0 100%);
    margin-top: -50px;
    position: relative;
    z-index: 1;
}

/* Features Section */
.features-section, .pricing-section, .testimonials-section { background-color: var(--bg-dark); position: relative; z-index: 1; }
.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    height: 100%;
}
.feature-card .icon-glow { font-size: 3rem; margin-bottom: 15px; }

/* Explainer Section (Timeline) */
.timeline {
    position: relative;
    padding: 20px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(var(--secondary-glow), var(--primary-glow));
    animation: fadeIn 2s;
}
.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; text-align: right; }
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 4px solid var(--primary-glow);
    top: 30px;
    z-index: 1;
}
.timeline-item:nth-child(odd)::after { right: -10px; }
.timeline-item:nth-child(even)::after { left: -10px; }
.timeline-content {
    padding: 20px;
    background: var(--bg-card);
    border-radius: 10px;
}

/* Testimonials */
.testimonial-card {
    background: var(--bg-card);
    border-left: 4px solid var(--accent-glow);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}
.testimonial-card .avatar-glow {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--accent-glow);
    box-shadow: 0 0 15px var(--accent-glow);
    margin-bottom: 20px;
    animation: pulse-secondary 3s infinite;
}
.testimonial-card blockquote { font-size: 1.1rem; font-style: italic; margin: 0; }
.testimonial-card cite { display: block; margin-top: 15px; font-weight: 600; color: var(--text-light); }

/* Pricing */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
}
.pricing-card.highlighted {
    border: 2px solid var(--primary-glow);
    animation: border-glow 4s infinite linear;
}
.pricing-card .price { font-size: 3rem; font-family: var(--font-heading); margin: 15px 0; }
.pricing-card .per-month { font-size: 1rem; color: var(--text-muted); }
.pricing-card ul { list-style: none; padding: 0; margin: 20px 0; }
.pricing-card ul li { margin-bottom: 10px; }
.badge-popular {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--primary-glow);
    color: var(--bg-dark);
    transform: rotate(45deg);
    padding: 2px 30px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Final CTA Section */
.cta-section {
    position: relative;
    background-image: linear-gradient(45deg, var(--secondary-glow), var(--primary-glow));
    background-size: 200% 200%;
    animation: move-background 10s ease infinite;
}

/* Footer */
.footer-section {
    background: #060610;
    position: relative;
    overflow: hidden;
}
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--primary-glow); }
.footer-links span { margin: 0 10px; }
.particles .particle {
    position: absolute;
    bottom: -20px;
    width: 5px;
    height: 5px;
    background: var(--text-muted);
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 10s infinite linear;
}
.particles .particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 7s; }
.particles .particle:nth-child(2) { left: 25%; animation-delay: 2s; animation-duration: 9s; }
.particles .particle:nth-child(3) { left: 40%; animation-delay: 4s; animation-duration: 6s; }
.particles .particle:nth-child(4) { left: 60%; animation-delay: 1s; animation-duration: 8s; }
.particles .particle:nth-child(5) { left: 75%; animation-delay: 5s; animation-duration: 10s; }
.particles .particle:nth-child(6) { left: 90%; animation-delay: 3s; animation-duration: 5s; }

/* --- 5. Responsiveness --- */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 3rem; }
    .timeline::before { left: 10px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 0; }
    .timeline-item:nth-child(even) { left: 0; text-align: left; }
    .timeline-item::after { left: 1px; }
}