:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --secondary: #F3F4F6;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --bg-main: #FFFFFF;
    --bg-alt: #F9FAFB;
    --border-color: #E5E7EB;
    --success: #10B981;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: 'Inter', sans-serif; color: var(--text-main); }
body { background-color: var(--bg-main); line-height: 1.6; position: relative; overflow-x: hidden; }

/* Dynamic Background & Shapes */
.bg-animation {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -2;
    background: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
}

.bg-animation::before, .bg-animation::after {
    content: ''; position: absolute; width: 400px; height: 400px;
    border-radius: 50%; filter: blur(100px); opacity: 0.6;
    animation: floatBg 15s infinite alternate ease-in-out;
}
.bg-animation::before { background: rgba(168, 192, 255, 0.8); top: -100px; left: -100px; }
.bg-animation::after { background: rgba(251, 194, 235, 0.8); bottom: -100px; right: -100px; animation-delay: -7s; }

@keyframes floatBg {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.2); }
}

/* Floating Shapes */
.floating-shapes {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; overflow: hidden;
}
.shape {
    position: absolute; background: linear-gradient(45deg, var(--primary), #ec4899);
    opacity: 0.1; animation: floatShape 20s infinite linear; border-radius: 20px;
}
.shape:nth-child(1) { width: 80px; height: 80px; top: 20%; left: 10%; animation-duration: 25s; transform: rotate(45deg); }
.shape:nth-child(2) { width: 120px; height: 120px; top: 70%; left: 80%; border-radius: 50%; animation-duration: 30s; animation-direction: reverse; }
.shape:nth-child(3) { width: 60px; height: 60px; top: 40%; left: 70%; animation-duration: 20s; transform: rotate(15deg); }
.shape:nth-child(4) { width: 90px; height: 90px; top: 80%; left: 20%; animation-duration: 28s; transform: rotate(60deg); clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }

@keyframes floatShape {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-50px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

/* Scroll Animation Classes */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-alt); }
.section-title { text-align: center; font-size: 2.5rem; font-weight: 700; margin-bottom: 40px; color: var(--text-main); }
.section-subtitle { text-align: center; color: var(--text-muted); margin-top: -30px; margin-bottom: 40px; font-size: 1.1rem; }
.highlight { color: var(--primary); background: -webkit-linear-gradient(45deg, #4F46E5, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.grid { display: grid; gap: 30px; }
.card { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--glass-border); border-radius: 16px; padding: 30px; box-shadow: var(--shadow-sm); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-lg); }

.btn { display: inline-block; padding: 10px 24px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: all 0.3s ease; cursor: pointer; border: none; text-align: center; position: relative; overflow: hidden; }
.btn::after { content: ''; position: absolute; top: 50%; left: 50%; width: 300%; height: 300%; background: rgba(255,255,255,0.2); transform: translate(-50%, -50%) scale(0); border-radius: 50%; transition: transform 0.5s ease; }
.btn:hover::after { transform: translate(-50%, -50%) scale(1); }
.btn-large { padding: 14px 32px; font-size: 1.1rem; }
.btn-primary { background-color: var(--primary); color: white; box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4); animation: pulseBtn 2s infinite; }
.btn-primary:hover { background-color: var(--primary-hover); animation: none; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6); }

@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(79, 70, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

.btn-secondary { background-color: var(--secondary); color: var(--text-main); }
.btn-secondary:hover { background-color: #E5E7EB; transform: translateY(-2px); }
.btn-outline { background-color: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background-color: var(--primary); color: white; transform: translateY(-2px); }

.navbar { position: fixed; top: 0; left: 0; width: 100%; padding: 20px 0; background: var(--glass-bg); backdrop-filter: blur(15px); border-bottom: 1px solid var(--border-color); z-index: 1000; transition: all 0.3s ease; }
.navbar.scrolled { padding: 12px 0; box-shadow: var(--shadow-md); background: rgba(255,255,255,0.9); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; text-decoration: none; color: var(--text-main); letter-spacing: 1px; transition: transform 0.3s; }
.logo:hover { transform: scale(1.05); }
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 500; transition: color 0.3s ease, transform 0.2s; display: inline-block; }
.nav-links a:hover { color: var(--primary); transform: translateY(-2px); }
@media (max-width: 992px) { .nav-links, .nav-btn { display: none; } }

.hero { padding: 150px 0 100px; min-height: 100vh; display: flex; align-items: center; }
.hero-container { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.hero-content { flex: 1; }
.hero-content h1 { font-size: 3.8rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; max-width: 500px; }
.hero-buttons { display: flex; gap: 20px; }

.hero-image { flex: 1; perspective: 1000px; }
.mockup-card { background: rgba(255, 255, 255, 0.7); border-radius: 20px; padding: 0; overflow: hidden; transform: rotateY(-10deg) rotateX(5deg); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); animation: hover-card 5s infinite alternate ease-in-out; border: 1px solid var(--glass-border); }
@keyframes hover-card { 0% { transform: rotateY(-10deg) rotateX(5deg) translateY(0); } 100% { transform: rotateY(-5deg) rotateX(2deg) translateY(-25px); } }
.mockup-header { background: rgba(241, 245, 249, 0.8); padding: 10px 15px; display: flex; gap: 8px; border-bottom: 1px solid var(--border-color); }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.red { background-color: #ef4444; } .dot.yellow { background-color: #f59e0b; } .dot.green { background-color: #10b981; }
.mockup-body { padding: 30px; }
.mockup-body h3 { margin-bottom: 20px; }
.progress-bar { width: 100%; height: 8px; background-color: #e2e8f0; border-radius: 4px; margin-bottom: 20px; overflow: hidden; }
.progress-bar .fill { height: 100%; background: linear-gradient(90deg, #4F46E5, #ec4899); border-radius: 4px; animation: loadBar 2s ease-out infinite alternate; }
@keyframes loadBar { 0% { width: 70%; } 100% { width: 95%; } }
.status-good { color: var(--success); font-weight: 600; text-shadow: 0 0 10px rgba(16, 185, 129, 0.3); }

@media (max-width: 768px) { .hero-container { flex-direction: column; text-align: center; } .hero-content p { margin: 0 auto 40px; } .hero-buttons { justify-content: center; } }

.features-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature-card { text-align: center; }
.icon-wrapper { font-size: 3.5rem; margin-bottom: 20px; display: inline-block; padding: 20px; background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(236,72,153,0.1)); border-radius: 50%; transition: transform 0.3s; }
.feature-card:hover .icon-wrapper { transform: scale(1.1) rotate(5deg); }
.feature-card h3 { margin-bottom: 15px; font-size: 1.3rem; }

.reviews-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.stars { margin-bottom: 15px; letter-spacing: 2px; }
.review-card p { font-style: italic; margin-bottom: 20px; }
.reviewer { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.avatar { font-size: 1.5rem; }

.status-panel { padding: 0; overflow: hidden; border: 1px solid var(--border-color); }
.status-header { display: flex; justify-content: space-between; padding: 15px 30px; background-color: rgba(243, 244, 246, 0.8); font-weight: 600; border-bottom: 1px solid var(--border-color); }
.status-item { display: flex; justify-content: space-between; padding: 15px 30px; border-bottom: 1px solid var(--border-color); transition: background-color 0.2s ease, transform 0.2s; }
.status-item:hover { background-color: var(--bg-main); transform: scale(1.01); z-index: 10; position: relative; box-shadow: var(--shadow-sm); }
.node-status { display: flex; align-items: center; gap: 8px; color: var(--success); font-weight: 500; }
.node-status .dot { animation: blink 1.5s infinite; }
@keyframes blink { 0% { opacity: 0.4; } 50% { opacity: 1; box-shadow: 0 0 8px var(--success); } 100% { opacity: 0.4; } }
.node-latency { color: var(--text-muted); font-family: monospace; font-size: 1.1rem; }
.status-footer { padding: 15px 30px; text-align: center; color: var(--text-muted); font-size: 0.9rem; background-color: rgba(252, 252, 252, 0.8); }

.pricing-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; margin-top: 20px; }
.pricing-card { text-align: center; position: relative; padding: 40px 30px; transition: transform 0.4s ease; }
.pricing-card.popular { transform: scale(1.05); border: 2px solid var(--primary); box-shadow: var(--shadow-lg); z-index: 1; background: linear-gradient(to bottom, #ffffff, #f9faff); }
.pricing-card.popular:hover { transform: scale(1.08) translateY(-10px); }
.badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, #4F46E5, #ec4899); color: white; padding: 6px 20px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; box-shadow: 0 4px 10px rgba(236,72,153,0.3); animation: floatBadge 3s infinite ease-in-out; }
@keyframes floatBadge { 0%, 100% { top: -15px; } 50% { top: -20px; } }
.price { font-size: 3.5rem; font-weight: 800; margin: 20px 0; color: var(--primary); }
.price span { font-size: 1.2rem; color: var(--text-muted); font-weight: 400; }
.features-list { list-style: none; margin-bottom: 30px; }
.features-list li { margin-bottom: 15px; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 8px; }
.features-list li::before { content: '✓'; color: var(--success); font-weight: bold; }

.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-color); margin-bottom: 10px; background: rgba(255,255,255,0.5); border-radius: 8px; transition: background 0.3s; }
.faq-item:hover { background: rgba(255,255,255,0.9); }
.faq-question { width: 100%; text-align: left; padding: 20px; background: none; border: none; font-size: 1.1rem; font-weight: 600; color: var(--text-main); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: inherit; transition: color 0.3s; }
.faq-question:hover { color: var(--primary); }
.faq-question .icon { transition: transform 0.3s; font-size: 1.5rem; }
.faq-question.active .icon { transform: rotate(45deg); color: var(--primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.faq-answer p { padding: 0 20px 20px; color: var(--text-muted); }

.knowledge-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.knowledge-card { text-decoration: none; color: inherit; display: block; border-left: 4px solid transparent; transition: all 0.3s ease; }
.knowledge-card:hover { border-left-color: var(--primary); transform: translateX(10px); }
.knowledge-card h4 { color: var(--primary); margin-bottom: 10px; font-size: 1.1rem; }

.footer { background-color: rgba(255,255,255,0.9); border-top: 1px solid var(--border-color); padding: 40px 0 20px; position: relative; z-index: 10; backdrop-filter: blur(10px); }
.footer-container { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.footer-info h3 { margin-bottom: 10px; background: -webkit-linear-gradient(45deg, #4F46E5, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { text-align: center; color: var(--text-muted); font-size: 0.9rem; padding-top: 20px; border-top: 1px solid var(--border-color); }

/* Article Details specific styles */
.article-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.article-header h1 { font-size: 2.5rem; color: var(--primary); margin-bottom: 10px; }
.article-content h3 { margin: 25px 0 15px; color: var(--text-main); font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }
.article-content h3::before { content: ''; display: inline-block; width: 6px; height: 24px; background: var(--primary); border-radius: 4px; }
.article-content p { margin-bottom: 15px; font-size: 1.05rem; color: #4B5563; line-height: 1.8; }
.article-content ul, .article-content ol { margin-bottom: 20px; padding-left: 20px; }
.article-content li { margin-bottom: 10px; color: #4B5563; }
.article-note { background: #EEF2FF; border-left: 4px solid var(--primary); padding: 15px 20px; border-radius: 0 8px 8px 0; margin: 20px 0; }
.article-img-placeholder { width: 100%; height: 300px; background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 600; margin: 20px 0; border: 2px dashed #c7d2fe; }
