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

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

:root {
    --bg: #0f1117;
    --card-bg: #1a1d27;
    --card-border: #2a2d3a;
    --text: #e4e4e7;
    --text-muted: #9ca3af;
    --accent-vless: #6366f1;
    --accent-hy2: #f59e0b;
    --accent-wg: #10b981;
    --glow-vless: rgba(99, 102, 241, 0.15);
    --glow-hy2: rgba(245, 158, 11, 0.15);
    --glow-wg: rgba(16, 185, 129, 0.15);
    --accent-step: #8b5cf6;
    --glow-step: rgba(139, 92, 246, 0.15);
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}

/* === HERO === */
.hero { text-align: center; padding: 80px 20px 40px; position: relative; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 600px; height: 600px; background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin-bottom: 16px;
    background: linear-gradient(135deg, #6366f1, #f59e0b, #10b981);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* === NAV LINKS === */
.page-nav { text-align: center; margin-bottom: 10px; }
.page-nav a {
    display: inline-block; padding: 6px 16px; border-radius: 100px;
    background: var(--card-bg); border: 1px solid var(--card-border);
    color: var(--text-muted); text-decoration: none; font-size: 0.85rem;
    transition: 0.2s;
}
.page-nav a:hover { border-color: var(--text-muted); color: var(--text); }

/* === CONTAINER === */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* === CARDS GRID === */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin: 50px 0; }
.card {
    background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 20px;
    padding: 36px 30px; position: relative; transition: transform 0.3s ease, box-shadow 0.3s ease; overflow: hidden;
}
.card:hover { transform: translateY(-4px); }
.card.vless:hover { box-shadow: 0 12px 40px var(--glow-vless); }
.card.hy2:hover   { box-shadow: 0 12px 40px var(--glow-hy2); }
.card.wg:hover    { box-shadow: 0 12px 40px var(--glow-wg); }

.card-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 20px; }
.vless .card-icon { background: var(--glow-vless); border: 1px solid rgba(99,102,241,0.3); }
.hy2   .card-icon { background: var(--glow-hy2);   border: 1px solid rgba(245,158,11,0.3); }
.wg    .card-icon { background: var(--glow-wg);    border: 1px solid rgba(16,185,129,0.3); }

.card h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.card .tagline { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; font-style: italic; }
.card .analogy {
    background: rgba(255,255,255,0.03); border-left: 3px solid var(--card-border);
    border-radius: 0 12px 12px 0; padding: 14px 16px; margin-bottom: 20px;
    font-size: 0.95rem; color: var(--text-muted);
}
.card .analogy strong { color: var(--text); }
.card .details { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.card .details li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; }
.card .details li .icon {
    flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 0.7rem; margin-top: 2px;
}
.vless .details .icon { background: var(--glow-vless); color: var(--accent-vless); }
.hy2   .details .icon { background: var(--glow-hy2);   color: var(--accent-hy2); }
.wg    .details .icon { background: var(--glow-wg);    color: var(--accent-wg); }

.verdict { display: inline-block; margin-top: 20px; padding: 6px 14px; border-radius: 100px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em; }
.vless .verdict { background: var(--glow-vless); color: var(--accent-vless); }
.hy2   .verdict { background: var(--glow-hy2);   color: var(--accent-hy2); }
.wg    .verdict { background: var(--glow-wg);    color: var(--accent-wg); }

/* === COMPARISON TABLE === */
.section-title { text-align: center; font-size: 1.8rem; font-weight: 700; margin: 60px 0 30px; }
.table-wrap { overflow-x: auto; margin-bottom: 60px; border-radius: 16px; border: 1px solid var(--card-border); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
thead th {
    background: rgba(255,255,255,0.03); padding: 16px 20px; text-align: left;
    font-weight: 600; font-size: 0.9rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--card-border);
}
tbody td { padding: 16px 20px; font-size: 0.95rem; border-bottom: 1px solid rgba(255,255,255,0.04); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.015); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.dot-v { background: var(--accent-vless); } .dot-h { background: var(--accent-hy2); } .dot-w { background: var(--accent-wg); }

/* === SCENARIO BLOCKS === */
.scenarios { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 60px; }
.scenario { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; padding: 28px 24px; text-align: center; }
.scenario .emoji { font-size: 2.2rem; margin-bottom: 12px; }
.scenario h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.scenario p { font-size: 0.9rem; color: var(--text-muted); }
.scenario .pick { display: inline-block; margin-top: 14px; padding: 5px 16px; border-radius: 100px; font-size: 0.82rem; font-weight: 600; }

/* === FAQ === */
.faq-section { margin-bottom: 60px; }
.faq-grid { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; padding: 24px; transition: border-color 0.2s ease; }
.faq-item:hover { border-color: #3a3d4a; }
.faq-item h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.faq-item p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.faq-item strong { color: var(--text); font-weight: 500; }

/* === STEPS / GUIDE === */
.steps { display: flex; flex-direction: column; gap: 24px; max-width: 700px; margin: 0 auto 60px; }
.step-card {
    display: flex; align-items: flex-start; gap: 20px; background: var(--card-bg);
    border: 1px solid var(--card-border); border-radius: 16px; padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.step-card:hover { transform: translateY(-2px); border-color: #3a3d4a; box-shadow: 0 8px 30px var(--glow-step); }
.step-number {
    flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px;
    background: var(--glow-step); border: 1px solid rgba(139, 92, 246, 0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 700; color: var(--accent-step);
}
.step-content h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.step-content p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.step-content code { background: rgba(255,255,255,0.06); padding: 2px 8px; border-radius: 6px; font-family: monospace; font-size: 0.9em; color: #c084fc; }

/* === FOOTER === */
footer { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 0.85rem; border-top: 1px solid var(--card-border); }

/* === RESPONSIVE === */
@media (max-width: 700px) {
    .cards { grid-template-columns: 1fr; }
    .hero { padding: 60px 16px 30px; }
    .section-title { font-size: 1.5rem; }
    .step-card { flex-direction: column; gap: 12px; }
}

/* subtle anim */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.card, .scenario, .faq-item, .step-card { animation: fadeUp 0.6s ease both; }
.card:nth-child(2) { animation-delay: 0.1s; } .card:nth-child(3) { animation-delay: 0.2s; }
.faq-item:nth-child(2) { animation-delay: 0.1s; } .faq-item:nth-child(3) { animation-delay: 0.2s; }
.step-card:nth-child(2) { animation-delay: 0.1s; } .step-card:nth-child(3) { animation-delay: 0.2s; }