/* Reset & Variables */
:root {
    --bg-deep: #0a0b10;
    --bg-card: #151822;
    --bg-card-hover: #1e2233;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-glow: rgba(139, 92, 246, 0.5);
    --border-color: #2e3347;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
    /* Particle background effect */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; border-radius: 12px; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 { color: #ffffff; font-weight: 700; line-height: 1.2; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; text-align: center; }
.text-gradient {
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.1);
}

/* Header */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 11, 16, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 20px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    border-radius: 6px;
    transform: rotate(45deg);
}

.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text-muted); font-weight: 500; }
.nav-links a:hover { color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 24px; }
.lang-switch { color: var(--text-muted); font-size: 0.9rem; cursor: pointer; }

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Trust Bar */
.trust-bar {
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(21, 24, 34, 0.5);
}

.trust-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.trust-item::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent-purple);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-purple);
}

/* Stats */
.stats { padding: 100px 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 24px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover { transform: translateY(-5px); border-color: var(--accent-purple); }
.stat-num { font-size: 3rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.stat-label { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* Features */
.features { padding: 100px 0; background: rgba(21, 24, 34, 0.3); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover::before { opacity: 1; }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 16px; }
.feature-card p { color: var(--text-muted); margin-bottom: 24px; }
.feature-image { width: 100%; border: 1px solid var(--border-color); }

/* Nodes Map */
.nodes { padding: 100px 0; }
.nodes-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 60px;
    margin-top: 60px;
}

.nodes-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    text-align: center;
}

.node-item {
    padding: 24px;
    background: rgba(10, 11, 16, 0.5);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.node-city { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.node-speed { color: var(--accent-blue); font-size: 0.9rem; font-weight: 600; }

/* Testimonials */
.testimonials { padding: 100px 0; background: rgba(21, 24, 34, 0.3); }
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.testi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 20px;
}

.stars { color: #fbbf24; font-size: 1.2rem; margin-bottom: 20px; }
.testi-text { color: var(--text-main); font-size: 1.1rem; font-style: italic; margin-bottom: 30px; }
.testi-user { display: flex; align-items: center; gap: 16px; }
.avatar {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--border-color), var(--bg-card-hover));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #fff;
}

/* Pricing */
.pricing { padding: 100px 0; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
    align-items: center;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px 32px;
    text-align: center;
    position: relative;
}

.price-card.recommended {
    background: linear-gradient(180deg, var(--bg-card-hover) 0%, var(--bg-card) 100%);
    border-color: var(--accent-purple);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.tag-rec {
    position: absolute;
    top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: #fff; padding: 6px 16px; border-radius: 20px;
    font-size: 0.85rem; font-weight: 700; letter-spacing: 1px;
}

.price-title { font-size: 1.5rem; color: var(--text-muted); margin-bottom: 20px; }
.price-amount { font-size: 3.5rem; font-weight: 800; color: #fff; margin-bottom: 32px; }
.price-amount span { font-size: 1.25rem; color: var(--text-muted); font-weight: 500; }

.price-features { text-align: left; margin-bottom: 40px; }
.price-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex; align-items: center; gap: 12px;
}
.price-features li::before { content: '✦'; color: var(--accent-purple); }
.price-features li:last-child { border-bottom: none; }

/* FAQ */
.faq { padding: 100px 0; background: rgba(21, 24, 34, 0.3); }
.faq-list { max-width: 800px; margin: 60px auto 0; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-q {
    padding: 24px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-q::after { content: '+'; color: var(--accent-purple); font-size: 1.5rem; }
.faq-a {
    padding: 0 32px 24px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    margin-top: -8px;
}

/* Footer */
.footer {
    background: #050508;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p { color: var(--text-muted); margin-top: 20px; }
.footer-links h4 { color: #fff; margin-bottom: 24px; font-size: 1.1rem; }
.footer-links li { margin-bottom: 16px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent-purple); }

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Download Page */
.page-hero { padding: 180px 0 100px; text-align: center; }
.page-hero p { color: var(--text-muted); font-size: 1.2rem; margin-top: 20px; }

.dl-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto 100px;
}

.dl-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    transition: all 0.3s;
}

.dl-card:hover { border-color: var(--accent-blue); transform: translateY(-5px); }
.dl-icon { font-size: 4rem; margin-bottom: 24px; }
.dl-card h3 { font-size: 1.8rem; margin-bottom: 12px; }
.dl-card p { color: var(--text-muted); margin-bottom: 32px; }

/* Help Page */
.help-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    margin-bottom: 100px;
}

.help-nav {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 100px;
}

.help-nav li { margin-bottom: 8px; }
.help-nav a {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
}

.help-nav a:hover, .help-nav a.active {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
}

.help-content section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 32px;
}

.help-content h3 { font-size: 1.8rem; margin-bottom: 24px; color: #fff; }
.help-content p { color: var(--text-muted); margin-bottom: 16px; }
.help-content ul, .help-content ol { margin-left: 24px; color: var(--text-muted); margin-bottom: 16px; }
.help-content li { margin-bottom: 8px; }

/* Responsive */
@media (max-width: 1024px) {
    .stats-grid, .features-grid, .testi-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .nodes-list { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .price-card.recommended { transform: none; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 3rem; }
    .stats-grid, .features-grid, .testi-grid, .pricing-grid, .dl-grid { grid-template-columns: 1fr; }
    .nodes-list { grid-template-columns: repeat(2, 1fr); }
    .help-layout { grid-template-columns: 1fr; }
    .help-nav { position: static; }
}