:root {
    --primary: #ff7e9e;
    --primary-hover: #ff5e85;
    --secondary: #a0a0f0;
    --bg-light: #fff5f7;
    --text: #333;
    --text-muted: #666;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(255, 126, 158, 0.15);
    --border-radius: 20px;
    --font-main: 'Noto Sans SC', 'Inter', sans-serif;
}

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

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

/* Background Decorations */
.bg-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: #fff5f7;
    background-image: 
        radial-gradient(at 0% 0%, rgba(255, 126, 158, 0.2) 0, transparent 50%), 
        radial-gradient(at 50% 0%, rgba(160, 160, 240, 0.2) 0, transparent 50%), 
        radial-gradient(at 100% 0%, rgba(255, 203, 209, 0.2) 0, transparent 50%), 
        radial-gradient(at 0% 50%, rgba(255, 237, 188, 0.2) 0, transparent 50%), 
        radial-gradient(at 100% 50%, rgba(173, 216, 230, 0.2) 0, transparent 50%), 
        radial-gradient(at 0% 100%, rgba(255, 182, 193, 0.2) 0, transparent 50%), 
        radial-gradient(at 50% 100%, rgba(255, 255, 255, 0.2) 0, transparent 50%), 
        radial-gradient(at 100% 100%, rgba(160, 160, 240, 0.2) 0, transparent 50%);
    background-size: 200% 200%;
    animation: meshGradient 15s ease infinite alternate;
}

@keyframes meshGradient {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 100%; }
}

/* Glassmorphism card enhancement for better contrast */
.feature-card, .pricing-card, .node-card {
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
}

#bg-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
.header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

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

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    padding: 100px 0;
    position: relative;
    background: transparent;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #333, var(--primary), #a0a0f0);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 5s linear infinite;
}

@keyframes gradientText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

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

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

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s transform;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

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

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-outline {
    background-color: #f1f5f9;
    color: var(--text);
}

/* Features */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.05);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px rgba(255, 126, 158, 0.2);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Nodes Latency Section */
.nodes {
    padding: 60px 0;
}

.nodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.node-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 126, 158, 0.1);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.node-card:hover {
    transform: scale(1.02);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
}

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

.node-info .flag {
    font-size: 1.5rem;
}

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

.latency-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.latency {
    font-weight: 800;
    color: #10b981; /* Green for good ping */
    font-size: 1.2rem;
}

.latency-box small {
    color: #999;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* Specific to US ping color */
.latency.medium { color: #f59e0b; }

/* Existing Pricing Adjustment */
.pricing {
    padding: 80px 0;
    background-color: transparent;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    align-items: start;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 40px 30px;
    border-radius: 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.02);
}

.pricing-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-card .badge.secondary {
    background: #8b5cf6;
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin: 20px 0 30px;
    color: #444;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
}

.pricing-card .price sup {
    font-size: 1.5rem;
    vertical-align: super;
}

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

.specs {
    list-style: none;
    margin-bottom: 40px;
    color: #777;
    font-size: 0.95rem;
    text-align: left;
    display: inline-block;
}

.specs li {
    margin-bottom: 12px;
    text-align: center;
}

.pricing-card .btn {
    width: 100%;
}

/* Articles */
.articles {
    padding: 80px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    padding: 30px;
    background: #fff;
    border-left: 4px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.article-card h3 a {
    text-decoration: none;
    color: var(--text);
    transition: color 0.3s;
}

.article-card h3 a:hover {
    color: var(--primary);
}

.article-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 15px 0;
}

.article-card .date {
    font-size: 0.8rem;
    color: #999;
}

/* FAQ */
.faq {
    padding: 80px 0;
    background: transparent;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 30px;
}

.faq-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Footer */
footer {
    padding: 50px 0;
    background: #333;
    color: #eee;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #444;
    padding-top: 30px;
}

.footer-links a {
    color: #eee;
    text-decoration: none;
    margin-left: 20px;
}

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