:root {
    --primary-color: #4a90e2;
    --secondary-color: #9013fe;
    --background-light: #f8f9fc;
    --text-dark: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --border-color: #e1e4e8;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(74, 144, 226, 0.15);
    --gradient-primary: linear-gradient(135deg, #4a90e2 0%, #9013fe 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

/* Background Dynamic Elements */
.bg-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: float 10s infinite ease-in-out alternate;
}
.bg-1 { width: 400px; height: 400px; background: rgba(74, 144, 226, 0.3); top: -100px; left: -100px; }
.bg-2 { width: 500px; height: 500px; background: rgba(144, 19, 254, 0.2); top: 20%; right: -150px; animation-delay: -3s; }
.bg-3 { width: 300px; height: 300px; background: rgba(74, 144, 226, 0.2); bottom: 10%; left: 10%; animation-delay: -6s; }

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(1.1); }
}

/* Typography & Utilities */
h1, h2, h3 { font-weight: 700; color: #1a1a1a; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; position: relative; }
h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}
p { color: var(--text-muted); margin-bottom: 1rem; }
a { text-decoration: none; color: var(--primary-color); transition: 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 5rem 0; position: relative; }

/* Button */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(144, 19, 254, 0.4);
    color: var(--white);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.logo { font-size: 1.5rem; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 20px; list-style: none; }
.nav-links a { color: var(--text-dark); font-weight: 500; }
.nav-links a:hover { color: var(--primary-color); }

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}
.hero h1 { font-size: 4rem; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 30px; }

/* Grid Layouts */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }

/* Card Style */
.card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

/* Advantages */
.advantage-card { text-align: center; }
.icon-box { font-size: 3rem; margin-bottom: 20px; }

/* Pricing */
.pricing-card { text-align: center; position: relative; overflow: hidden; }
.pricing-card.popular { border-color: var(--primary-color); transform: scale(1.05); z-index: 1; }
.popular-badge { position: absolute; top: 15px; right: -30px; background: var(--gradient-primary); color: white; padding: 5px 40px; transform: rotate(45deg); font-size: 0.8rem; font-weight: bold; }
.price { font-size: 3rem; font-weight: 800; color: #1a1a1a; margin: 20px 0; }
.price span { font-size: 1rem; color: var(--text-muted); }
.features { list-style: none; margin-bottom: 30px; text-align: left; }
.features li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.features li::before { content: '✓'; color: var(--primary-color); font-weight: bold; }

/* Node Status */
.node-list { display: flex; flex-direction: column; gap: 15px; max-width: 800px; margin: 0 auto; }
.node-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: white; border-radius: 10px; box-shadow: var(--shadow-soft); }
.node-status { display: flex; align-items: center; gap: 10px; }
.status-dot { width: 10px; height: 10px; background: #2ecc71; border-radius: 50%; box-shadow: 0 0 10px #2ecc71; animation: pulse 2s infinite; }
.latency { font-family: monospace; font-weight: bold; color: var(--primary-color); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); } }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: white; border-radius: 10px; margin-bottom: 15px; box-shadow: var(--shadow-soft); overflow: hidden; }
.faq-question { padding: 20px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; color: var(--text-muted); }
.faq-item.active .faq-answer { padding: 0 20px 20px; max-height: 200px; }
.faq-question::after { content: '+'; font-size: 1.5rem; transition: transform 0.3s; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }

/* Knowledge Base */
.kb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.kb-card { background: white; padding: 20px; border-radius: 10px; box-shadow: var(--shadow-soft); transition: 0.3s; display: block; color: inherit;}
.kb-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-left: 4px solid var(--primary-color); }
.kb-card h3 { font-size: 1.2rem; margin-bottom: 10px; }

/* Article Pages Specific */
.article-header { padding-top: 120px; text-align: center; margin-bottom: 40px; }
.article-content { background: white; padding: 40px; border-radius: 20px; box-shadow: var(--shadow-soft); max-width: 800px; margin: 0 auto 50px; }
.article-content h2 { font-size: 1.8rem; margin-top: 30px; text-align: left; }
.article-content h2::after { display: none; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--primary-color); font-weight: 600; }

/* Footer */
footer { text-align: center; padding: 30px; background: white; border-top: 1px solid var(--border-color); margin-top: 50px; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .pricing-card.popular { transform: none; }
}
