:root {
    --primary: #0EA5E9;
    --primary-hover: #0284C7;
    --bg-dark: #030712;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --accent: #7367F0; /* Keeping a hint of the original purple as an accent */
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

/* Background Animation */
.bg-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    z-index: -1;
    filter: blur(100px);
}

.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
    z-index: -2;
    opacity: 0.5;
}

a {
    transition: all 0.3s ease;
}

header {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo img {
    height: 40px;
    border-radius: 8px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

/* Sections */
section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(14, 165, 233, 0.3);
}

/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 150px;
    padding-bottom: 150px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Node Latency Section */
.latency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.node-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.node-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.node-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.latency-value {
    font-family: monospace;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.latency-good { color: #10B981; background: rgba(16, 185, 129, 0.1); }
.latency-med { color: #F59E0B; background: rgba(245, 158, 11, 0.1); }

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pricing-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card.popular::before {
    content: 'POPULAR';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--primary);
    transform: rotate(45deg);
    padding: 5px 40px;
    font-size: 0.7rem;
    font-weight: 800;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin: 20px 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.features-list {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.features-list li {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.features-list li::before {
    content: '✓';
    color: var(--primary);
    margin-right: 10px;
    font-weight: bold;
}

/* Article List */
.article-section {
    background: rgba(13, 148, 136, 0.05); /* Subtle change for context */
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.article-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
}

.article-link:hover {
    color: var(--primary);
}

footer {
    padding: 80px 5% 40px;
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo {
    max-width: 300px;
}

.footer-logo p {
    margin-top: 15px;
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .features-grid, .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .features-grid, .pricing-grid, .article-grid {
        grid-template-columns: 1fr;
    }
    .nav-links { display: none; }
}
