@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0066ff;
    --primary-light: #e6f0ff;
    --secondary-color: #6c757d;
    --background-color: #f8faff;
    --card-bg: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --error-color: #ff7675;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Dynamic Background Accents */
.bg-accents {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.accent-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(0, 102, 255, 0.02) 100%);
    filter: blur(40px);
    animation: float 20s infinite alternate ease-in-out;
    z-index: -1;
}

.circle-1 { width: 400px; height: 400px; top: -100px; right: -100px; animation-delay: 0s; }
.circle-2 { width: 300px; height: 300px; bottom: 10%; left: -50px; animation-delay: -5s; }
.circle-3 { width: 250px; height: 250px; top: 40%; right: 15%; animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Header & Nav */
header {
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    width: 100%;
    z-index: 10;
}

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

.logo i { font-size: 1.8rem; }

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #001f3f 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.cta-button {
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 102, 255, 0.3);
}

/* Pricing Section */
.pricing {
    padding: 5rem 5%;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.pricing-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.recommended {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.recommended:hover {
    transform: translateY(-10px) scale(1.05);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.plan-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.plan-price span {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2.5rem;
}

.plan-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
}

.plan-features i {
    color: var(--success-color);
    font-size: 1.1rem;
}

.plan-button {
    display: block;
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.pricing-card.recommended .plan-button {
    background-color: var(--primary-color);
    color: white;
}

.plan-button:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Node Status Section */
.nodes {
    padding: 5rem 5%;
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.node-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.node-item {
    background: var(--card-bg);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.node-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.node-flag { font-size: 1.8rem; }

.node-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.node-latency-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 200px;
}

.latency-bar-bg {
    flex-grow: 1;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.latency-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--success-color);
    transition: width 1s ease-in-out;
}

.latency-value {
    font-family: monospace;
    font-weight: 600;
    color: var(--success-color);
    width: 60px;
    text-align: right;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--success-color);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Articles Preview Section */
.articles-preview {
    padding: 5rem 5%;
    background-color: var(--primary-light);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.article-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 1px solid transparent;
}

.article-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.article-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

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

/* Footer */
footer {
    padding: 4rem 5% 2rem;
    background: #fff;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .pricing-card.recommended { transform: scale(1); }
    .node-latency-wrapper { width: 120px; }
    header { padding: 1.5rem 5%; }
    nav { display: none; }
}
