/* ==========================================================================
   VPSserect — Matches dashboard design: monochrome, minimal, professional
   ========================================================================== */

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

:root {
    --surface: #ffffff;
    --surface-hover: rgb(243, 243, 243);
    --text: rgb(17, 24, 39);
    --text-muted: rgb(109, 110, 110);
    --border: rgb(229, 231, 235);
    --bg: rgb(245, 247, 248);
    --control-bg: rgb(247, 249, 251);
    --primary: #2c2c2c;
    --primary-hover: #1a1a1a;
    --green: rgb(34, 197, 94);
    --amber: rgb(245, 158, 11);
    --red: rgb(239, 68, 68);
}
.dark {
    --surface: rgb(21, 21, 21);
    --surface-hover: rgb(32, 32, 32);
    --text: #ffffff;
    --text-muted: rgb(160, 160, 160);
    --border: rgb(40, 40, 40);
    --bg: rgb(9, 9, 9);
    --control-bg: rgb(28, 28, 28);
    --primary: #e5e5e5;
    --primary-hover: #f5f5f5;
    color-scheme: dark;
}

html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    position: relative;
}

/* — Background Effects (matching dashboard login) — */

/* Grid pattern — full page */
.page-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.page-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
}
.dark .page-grid::before {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}
/* Radial fade — grid fades out at edges */
.page-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, transparent 0%, var(--bg) 75%);
}

/* Dots pattern — subtle texture on hero */
.dots-pattern {
    position: absolute;
    inset: -200px;
    pointer-events: none;
    opacity: 0.5;
    transform: rotate(40deg);
    background-size: 5px 5px;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
    z-index: 0;
}
.dark .dots-pattern {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
}

/* Glass morphism cards (matching dashboard Card component) */
.glass-card {
    position: relative;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px) saturate(1.4) brightness(1.05);
    -webkit-backdrop-filter: blur(16px) saturate(1.4) brightness(1.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
}
.dark .glass-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow:
        inset 0 0 2px 1px rgba(255, 255, 255, 0.04),
        0 4px 16px rgba(0, 0, 0, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.1);
}
/* Subtle top highlight */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 40%;
    pointer-events: none;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 100%);
    opacity: 0;
}
.dark .glass-card::before { opacity: 1; }

/* Ensure content sits above background */
nav, section, footer { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* — Buttons (match dashboard: rounded-full, monochrome) — */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; font-size: .875rem; font-weight: 500;
    border-radius: 9999px; padding: 10px 24px;
    border: none; cursor: pointer; transition: background .15s, transform .15s;
}
.btn-primary { background: var(--primary); color: var(--bg); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--surface-hover); }
.btn-ghost { background: transparent; color: var(--text-muted); padding: 8px 16px; }
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: 12px 28px; font-size: .95rem; }

/* — Nav — */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: var(--bg); border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; }
.logo-icon {
    width: 28px; height: 28px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px;
}
.dark .logo-icon { background: #e5e5e5; color: #0b0b0b; }
html:not(.dark) .logo-icon { background: #1a1a1a; color: #fff; }

.nav-menu { display: flex; align-items: center; gap: 0; list-style: none; }
.nav-menu > li { position: relative; padding-bottom: 10px; margin-bottom: -10px; }
.nav-menu > li > a,
.nav-menu > li > button {
    font-size: .85rem; font-weight: 500; color: var(--text-muted);
    padding: 6px 12px; border-radius: 6px;
    background: none; border: none; cursor: pointer;
    display: flex; align-items: center; gap: 4px; transition: color .15s;
}
.nav-menu > li > a:hover,
.nav-menu > li > button:hover,
.nav-menu > li:hover > button,
.nav-menu > li > a.active { color: var(--text); }
.nav-menu > li > button svg { transition: transform .15s; }
.nav-menu > li:hover > button svg { transform: rotate(180deg); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
    width: 32px; height: 32px; border-radius: 8px; background: transparent;
    border: 1px solid var(--border); color: var(--text-muted);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { color: var(--text); }

/* — Mega Menu — */
.mega-menu {
    position: absolute; top: calc(100% + 4px); left: 50%;
    transform: translateX(-50%); width: 640px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    padding: 20px; box-shadow: 0 8px 30px rgba(0,0,0,.08);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .15s, visibility .15s;
}
.dark .mega-menu { box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.nav-menu > li:hover .mega-menu { opacity: 1; visibility: visible; pointer-events: auto; }

.mega-header { display: flex; justify-content: space-between; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.mega-header h3 { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.mega-header .badge { font-size: .65rem; padding: 2px 8px; border-radius: 4px; background: var(--control-bg); color: var(--text-muted); font-weight: 600; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega-item { display: flex; gap: 12px; padding: 12px; border-radius: 8px; border: 1px solid transparent; }
.mega-item:hover { background: var(--surface-hover); }
.mega-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--control-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text-muted); }
.mega-item-info h4 { font-size: .85rem; font-weight: 600; }
.mega-item-info p { font-size: .72rem; color: var(--text-muted); line-height: 1.4; }
.mega-item-price { font-size: .72rem; font-weight: 600; color: var(--text-muted); margin-top: 4px; }
.mega-footer { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; }
.mega-footer p { font-size: .72rem; color: var(--text-muted); }
.mega-footer a { font-size: .75rem; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 4px; }

/* — Hero — */
.hero { padding-top: 120px; padding-bottom: 80px; text-align: center; }

.hero-promo {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 9999px; font-size: .8rem; font-weight: 500;
    background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
    margin-bottom: 20px;
}
.promo-flash { display: none; }
.promo-badge { font-size: .65rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: var(--primary); color: var(--bg); text-transform: uppercase; letter-spacing: .04em; }
.promo-text { color: var(--text-muted); }
.promo-text strong { color: var(--text); }
.promo-arrow { display: none; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 9999px; font-size: .75rem; font-weight: 500;
    background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
    margin-bottom: 24px;
}
.hero-badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

.hero h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; margin-bottom: 16px; }
.hero h1 .gradient-text { color: var(--text); -webkit-text-fill-color: var(--text); }
.hero-price-highlight { color: var(--text) !important; -webkit-text-fill-color: var(--text) !important; }
.hero-price-period { font-size: .4em; font-weight: 500; color: var(--text-muted); -webkit-text-fill-color: var(--text-muted); }

.hero-desc { font-size: 1rem; color: var(--text-muted); max-width: 480px; margin: 0 auto 28px; line-height: 1.7; }
.hero-specs { display: inline-block; margin-top: 8px; padding: 4px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; font-size: .78rem; font-weight: 500; color: var(--text-muted); }
.hero-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.hero-trust { display: flex; justify-content: center; gap: 20px; margin-top: 20px; }
.hero-trust-item { display: flex; align-items: center; gap: 4px; font-size: .75rem; color: var(--text-muted); }
.hero-trust-item svg { color: var(--text-muted); width: 12px; height: 12px; }

.hero-stats { display: flex; justify-content: center; gap: 40px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.hero-stat-value { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.hero-stat-label { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }

/* — Buy Button — simple, not split — */
.btn-buy { background: var(--primary); color: var(--bg); font-weight: 600; gap: 0; padding: 0; overflow: hidden; border-radius: 9999px; }
.btn-buy:hover { background: var(--primary-hover); }
.btn-buy .btn-buy-label { padding: 10px 18px; }
.btn-buy .btn-buy-divider { width: 1px; align-self: stretch; background: rgba(128,128,128,.2); }
.btn-buy .btn-buy-price { padding: 10px 18px; font-weight: 700; font-size: .85rem; opacity: .8; }
.btn-buy.btn-lg .btn-buy-label { padding: 12px 24px; }
.btn-buy.btn-lg .btn-buy-price { padding: 12px 24px; }

.btn-buy-outline { background: transparent; color: var(--text); border: 1px solid var(--border); font-weight: 600; gap: 0; padding: 0; overflow: hidden; border-radius: 9999px; }
.btn-buy-outline:hover { border-color: var(--text-muted); }
.btn-buy-outline .btn-buy-label { padding: 10px 18px; }
.btn-buy-outline .btn-buy-divider { width: 1px; align-self: stretch; background: var(--border); }
.btn-buy-outline .btn-buy-price { padding: 10px 18px; font-weight: 700; font-size: .85rem; color: var(--text-muted); }

/* — Sections — */
.section-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.section-title { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 12px; line-height: 1.15; }
.section-desc { font-size: .95rem; color: var(--text-muted); max-width: 480px; line-height: 1.6; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .section-desc { margin: 0 auto; }
.section-promo { display: block; margin-top: 6px; color: var(--text); font-weight: 600; }

/* — Features — */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { border-radius: 12px; padding: 28px; }
.feature-card:hover { border-color: rgba(255, 255, 255, 0.15); }
.dark .feature-card:hover { border-color: rgba(255, 255, 255, 0.1); }
.feature-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--control-bg); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--text-muted); }
.feature-card h3 { font-size: .95rem; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }

/* — Pricing — */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.pricing-card { border-radius: 12px; padding: 28px 24px; position: relative; }
.pricing-card:hover { border-color: rgba(255, 255, 255, 0.15); }
.dark .pricing-card:hover { border-color: rgba(255, 255, 255, 0.1); }
.pricing-card.featured { border-color: var(--text-muted); }
.pricing-badge-popular { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--primary); color: var(--bg); font-size: .65rem; font-weight: 700; padding: 3px 12px; border-radius: 9999px; }
.pricing-save { display: inline-block; background: var(--control-bg); color: var(--text-muted); font-size: .68rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; margin-bottom: 12px; }
.pricing-name { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 10px; }
.pricing-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.pricing-price-orig { font-size: .9rem; color: var(--text-muted); text-decoration: line-through; opacity: .5; }
.pricing-price { font-size: 2.25rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.pricing-price span { font-size: .85rem; font-weight: 500; color: var(--text-muted); }
.pricing-desc { font-size: .8rem; color: var(--text-muted); margin-bottom: 14px; }
.pricing-specs { font-size: .72rem; color: var(--text-muted); padding: 8px 10px; background: var(--control-bg); border-radius: 6px; margin-bottom: 20px; text-align: center; font-weight: 500; }
.pricing-features { list-style: none; margin-bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { display: flex; align-items: center; gap: 8px; font-size: .82rem; }
.pricing-features li svg { flex-shrink: 0; color: var(--text-muted); }
.pricing-card .btn, .pricing-card .btn-buy, .pricing-card .btn-buy-outline { width: 100%; justify-content: center; }

/* — Network / Ping — */
.ping-card { border-radius: 12px; padding: 40px; display: flex; gap: 48px; }
.ping-left { flex: 1; }
.ping-right { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.ping-live { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.ping-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.ping-live span { font-size: .78rem; font-weight: 600; color: var(--green); }
.ping-result { background: var(--control-bg); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.ping-result-left { display: flex; align-items: center; gap: 10px; }
.ping-result-flag { font-size: 1.2rem; }
.ping-result-info h4 { font-size: .82rem; font-weight: 600; }
.ping-result-info p { font-size: .68rem; color: var(--text-muted); }
.ping-value { font-size: 1.2rem; font-weight: 800; text-align: right; }
.ping-value.good { color: var(--green); }
.ping-value.ok { color: var(--amber); }
.ping-value.loading { color: var(--text-muted); font-size: .85rem; }
.ping-unit { font-size: .65rem; color: var(--text-muted); text-align: right; }
.ping-bar { height: 2px; border-radius: 1px; background: var(--border); margin-top: 4px; overflow: hidden; }
.ping-bar-fill { height: 100%; border-radius: 1px; transition: width .5s ease; }
.ping-bar-fill.good { background: var(--green); }
.ping-bar-fill.ok { background: var(--amber); }
.ping-bar-fill.bad { background: var(--red); }

/* — CTA — */
.cta-section { text-align: center; }
.cta-card { border-radius: 12px; padding: 56px 40px; }
.cta-card::before { display: none; }
.cta-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 10px; }
.cta-card p { font-size: .95rem; color: var(--text-muted); margin-bottom: 28px; max-width: 400px; margin-left: auto; margin-right: auto; }

/* — Footer — */
footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.footer-brand .logo { margin-bottom: 10px; }
.footer-brand p { font-size: .8rem; color: var(--text-muted); max-width: 220px; }
.footer-col h4 { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 12px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: .8rem; color: var(--text-muted); }
.footer-col ul a:hover { color: var(--text); }
.footer-bottom p { font-size: .75rem; color: var(--text-muted); text-align: center; }

/* — Page Hero (sub-pages) — */
.page-hero { padding-top: 120px; padding-bottom: 40px; }
.nav-menu > li > a.active { color: var(--text); }

/* — About — */
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.about-card { border-radius: 12px; padding: 28px; }
.about-card:hover { border-color: rgba(255, 255, 255, 0.15); }
.dark .about-card:hover { border-color: rgba(255, 255, 255, 0.1); }
.about-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.about-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

/* No animations — clean instant loads */

/* — Mobile — */
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text); cursor: pointer; }
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .ping-card { flex-direction: column; }
    .mega-menu { width: 90vw; max-width: 560px; }
}
@media (max-width: 768px) {
    section { padding: 56px 0; }
    .nav-menu { display: none; }
    .nav-menu.open { display: flex; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 24px; gap: 2px; }
    .nav-menu.open .mega-menu { position: static; transform: none; width: 100%; opacity: 1; visibility: visible; pointer-events: auto; margin-top: 4px; box-shadow: none; }
    .mobile-menu-btn { display: flex; }
    .features-grid, .pricing-grid { grid-template-columns: 1fr; }
    .pricing-grid { max-width: 380px; margin: 0 auto; }
    .hero { padding-top: 100px; padding-bottom: 48px; }
    .hero-stats { gap: 20px; flex-wrap: wrap; }
    .hero-stat-value { font-size: 1.25rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .cta-card { padding: 40px 24px; }
    .ping-card { padding: 28px; }
    .about-grid { grid-template-columns: 1fr; }
    .page-hero { padding-top: 100px; }
}
@media (max-width: 480px) {
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn, .hero-actions .btn-buy { width: 100%; }
    .hero-trust { flex-wrap: wrap; justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}
