/* Variables & Theme Settings */
:root {
    --bg-main: #0b0f19;
    --bg-darker: #05080f;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #1e293b;
    --accent: #0ea5e9;
    --card-bg: rgba(30, 41, 59, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --white: #ffffff;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.grid {
    display: grid;
    gap: 30px;
}

/* Typography Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-light);
    color: var(--white);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    background-color: rgba(30, 41, 59, 0.9);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-light);
    border: 1px solid var(--primary-light);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 30px;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Dynamic Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.logo ion-icon {
    color: var(--primary-light);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--white);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Core Advantages */
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 20px;
    background: rgba(59, 130, 246, 0.1);
    padding: 15px;
    border-radius: 50%;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Node Status */
.status-dashboard {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 30px;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--card-border);
}

.status-row:last-child {
    border-bottom: none;
}

.node-info {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 40%;
}

.node-info .flag {
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.node-name {
    font-weight: 500;
}

.node-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #10b981; /* Emerald green */
    width: 30%;
}

.pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.pulse.green {
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulsing 2s infinite;
}

@keyframes pulsing {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.node-latency {
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--white);
    width: 20%;
    text-align: right;
}

/* Pricing Section (Replicating Image) */
.pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: stretch;
}

.white-card {
    background: #ffffff;
    border-radius: 8px;
    color: #333;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.white-card:hover {
    transform: translateY(-10px);
}

.pricing-header {
    background-color: #2b8df4; /* Light blue header from image */
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.pricing-header h3 {
    font-size: 2rem;
    font-weight: 400;
}

.pricing-header .period {
    font-size: 1rem;
    opacity: 0.8;
}

.pricing-header h4 {
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 400;
}

.white-card.popular .pricing-header {
    background-color: #2b8df4; 
}

.pricing-features {
    padding: 30px;
    flex-grow: 1;
}

.pricing-features li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 0.95rem;
}

.pricing-features li ion-icon {
    color: #2b8df4;
    font-size: 1.2rem;
}

.pricing-card .btn {
    margin: 0 30px 30px;
    border-radius: 30px;
}

.pricing-card .btn-outline {
    border-color: #e2e8f0;
    color: #64748b;
}

.pricing-card .btn-outline:hover {
    border-color: #2b8df4;
    color: #2b8df4;
    background-color: transparent;
}

.pricing-card .btn-buy {
    background-color: #2b8df4;
    box-shadow: none;
}

/* Reviews Section */
.reviews-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.review-card {
    display: flex;
    flex-direction: column;
}

.stars {
    color: #fbbf24; /* Yellow */
    margin-bottom: 15px;
    display: flex;
    gap: 2px;
}

.review-text {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 20px;
    flex-grow: 1;
}

.reviewer {
    color: var(--primary-light);
    font-weight: 600;
    text-align: right;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    padding: 0;
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-question ion-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question ion-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    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-bottom: 20px;
    max-height: 200px;
}

/* Knowledge Base */
.knowledge-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.kb-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    padding: 30px 20px;
}

.kb-card ion-icon {
    font-size: 2.5rem;
    color: var(--accent);
}

.kb-card span {
    font-weight: 500;
    color: var(--text-main);
}

.kb-card:hover span {
    color: var(--primary-light);
}

/* Footer */
.footer {
    border-top: 1px solid var(--card-border);
    padding: 60px 0 20px;
    background-color: var(--bg-main);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-actions {
        flex-direction: column;
    }
    .node-info {
        width: 50%;
    }
    .node-status {
        width: 25%;
        font-size: 0.85rem;
    }
    .node-latency {
        width: 25%;
    }
}
