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

:root {
    /* Light Mode - Sleek Tech */
    --primary-color: #06b6d4;
    --primary-hover: #0891b2;
    --secondary-color: #10b981;
    --bg-color: #f8fafc;
    --bg-alt: #ffffff;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --timeline-color: rgba(6, 182, 212, 0.2);
}

[data-theme="dark"] {
    /* Dark Mode - Pitch Black Quantum Theme */
    --primary-color: #06b6d4;
    --primary-hover: #22d3ee;
    --secondary-color: #10b981;
    --bg-color: #05070a;
    --bg-alt: #0a0e17;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: #0d121c;
    --border-color: #1e293b;
    --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    --timeline-color: rgba(6, 182, 212, 0.2);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color var(--transition), color var(--transition);
    position: relative;
    overflow-x: hidden;
}

/* Vertical Timeline Track */
body::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--timeline-color), rgba(16, 185, 129, 0.3), transparent);
    transform: translateX(-50%);
    z-index: -1;
}
body::after {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    width: 2px; height: 150px;
    background: var(--primary-color);
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--secondary-color);
    z-index: -1;
    border-radius: 2px;
    animation: particle-flow 12s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes particle-flow {
    0% { top: -150px; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@media (max-width: 768px) {
    body::before, body::after { display: none; }
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
a { text-decoration: none; color: var(--primary-color); transition: color var(--transition); }
a:hover { color: var(--primary-hover); }

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

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 24px; border-radius: 8px; font-weight: 600; cursor: pointer;
    transition: var(--transition); border: 2px solid transparent; text-align: center;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff !important; border: none;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5); transform: translateY(-2px);
}
.btn-outline {
    background-color: transparent; border-color: var(--primary-color); color: var(--primary-color) !important;
}
.btn-outline:hover {
    background-color: rgba(6, 182, 212, 0.1); box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-lg { padding: 14px 32px; font-size: 1.1rem; }
.btn-full { width: 100%; }

/* Navbar */
.navbar {
    position: sticky; top: 0; z-index: 1000;
    background-color: transparent; border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.navbar.scrolled {
    background-color: rgba(5, 7, 10, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}
[data-theme="light"] .navbar.scrolled { background-color: rgba(248, 250, 252, 0.9); }

.nav-content { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--text-color) !important; letter-spacing: -0.5px; }
.desktop-nav a { margin: 0 15px; color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--primary-color); }
.nav-actions { display: flex; align-items: center; gap: 15px; }

.theme-btn {
    background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-color);
    cursor: pointer; padding: 8px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.theme-btn:hover { border-color: var(--primary-color); color: var(--primary-color); box-shadow: 0 0 10px rgba(6, 182, 212, 0.2); }

/* Ping Widget */
.ping-widget {
    margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 15px; min-height: 100px;
}
.ping-btn {
    position: relative; border-radius: 30px; font-weight: 500; padding: 10px 24px;
}
.ping-rings { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; pointer-events: none; }
.ring-anim {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 20px; height: 20px; border: 2px solid var(--secondary-color); border-radius: 50%;
    animation: ping-ripple 1s ease-out forwards;
}
@keyframes ping-ripple { 0% { width: 20px; height: 20px; opacity: 1; } 100% { width: 150px; height: 150px; opacity: 0; } }
.ping-results { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }
.ping-item {
    background: var(--card-bg); border: 1px solid var(--border-color); padding: 8px 16px; border-radius: 20px;
    font-size: 0.9rem; animation: fade-in-up 0.3s ease-out forwards;
}
@keyframes fade-in-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.node-name { color: var(--text-muted); margin-right: 8px; }
.latency.fast { color: var(--secondary-color); font-weight: 600; }
.latency.med { color: #f59e0b; font-weight: 600; }

/* Sections */
.hero { padding: 120px 0 80px; text-align: center; }
.hero-content { max-width: 800px; margin: 0 auto; }
.headline { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; line-height: 1.2; letter-spacing: -1px; }
.subheadline { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 40px; }

.section { padding: 100px 0; }
.bg-alt { background-color: var(--bg-alt); }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 60px; font-weight: 800; letter-spacing: -0.5px; }

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

/* Cards */
.card {
    background-color: var(--card-bg); border-radius: 16px; padding: 40px 30px;
    border: 1px solid var(--border-color); transition: var(--transition);
    position: relative; z-index: 1;
}
.card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.15), inset 0 0 20px rgba(16, 185, 129, 0.05);
    transform: translateY(-5px);
}

.tech-icon { margin-bottom: 20px; stroke: var(--primary-color); }
.feature-card { text-align: center; }
.feature-card h3 { margin-bottom: 15px; font-size: 1.4rem; }
.feature-card p { color: var(--text-muted); }

.media-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 1.5rem; }
.media-card p { color: var(--text-muted); margin-bottom: 25px; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list li {
    background-color: transparent; padding: 6px 14px; border-radius: 20px; font-size: 0.85rem;
    border: 1px solid var(--border-color); color: var(--text-muted); transition: var(--transition);
}
.card:hover .tag-list li { border-color: var(--primary-color); color: var(--primary-color); }

/* Pricing */
.pricing-card { display: flex; flex-direction: column; position: relative; padding: 40px; }
.pricing-card.popular {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}
.badge {
    position: absolute; top: -12px; right: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff; padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 700;
}
.pricing-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.pricing-card .price { font-size: 3rem; font-weight: 800; margin-bottom: 30px; color: var(--text-color); }
.pricing-card .price span { font-size: 1.1rem; color: var(--text-muted); font-weight: normal; }
.pricing-features { list-style: none; margin-bottom: 40px; flex-grow: 1; }
.pricing-features li { margin-bottom: 15px; color: var(--text-muted); display: flex; align-items: center; }
.pricing-features li svg { margin-right: 12px; flex-shrink: 0; stroke: var(--secondary-color); }

/* Reviews */
.review-card { padding: 30px; }
.review-badge {
    display: inline-flex; align-items: center; gap: 5px; color: var(--secondary-color);
    font-size: 0.85rem; font-weight: 600; margin-bottom: 15px;
    background: rgba(16, 185, 129, 0.1); padding: 4px 10px; border-radius: 12px;
}
.review-text { font-style: italic; color: var(--text-muted); margin-bottom: 25px; font-size: 1.05rem; line-height: 1.7; }
.reviewer { font-weight: 600; color: var(--text-color); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--border-color); }
.faq-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.faq-q { font-size: 1.25rem; margin-bottom: 12px; }
.faq-a { color: var(--text-muted); line-height: 1.7; }

/* Footer */
footer { border-top: 1px solid var(--border-color); padding: 60px 0 40px; text-align: center; background: var(--bg-color); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.footer-links { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-muted); font-weight: 500; }
.footer-links a:hover { color: var(--primary-color); }
.footer-copyright { color: var(--text-muted); font-size: 0.9rem; }

/* Subpages */
.page-header { padding: 80px 0 60px; text-align: center; border-bottom: 1px solid var(--border-color); background-color: var(--bg-alt); }
.page-header h1 { font-size: 2.5rem; font-weight: 800; }
.page-content { padding: 80px 0; max-width: 800px; }
.page-content h2 { margin: 40px 0 20px; font-size: 1.8rem; }
.page-content p, .page-content ul { margin-bottom: 20px; color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; }
.page-content ul { padding-left: 20px; }
.page-content li { margin-bottom: 10px; }

/* Responsive */
@media (max-width: 768px) {
    .headline { font-size: 2.5rem; }
    .desktop-nav { display: none; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .hero { padding: 80px 0 60px; }
    .section { padding: 60px 0; }
    .btn { padding: 14px 28px; }
}
