:root {
    --bg-color: #0b0f19;
    --bg-dark: #05070b;
    --sidebar-bg: #0b0f19;
    --main-bg: #0f1420;
    --card-bg: #131a26;
    --card-console: #161e2d;
    --accent-primary: #3b82f6;   /* Tunneling Blue */
    --accent-secondary: #10b981; /* Remote Desktop Green */
    --accent-vpn: #06b6d4;       /* SurgeVPN Cyan */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: #1e293b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- NAV BAR --- */
nav {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    background: rgba(11, 15, 25, 0.8);
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--text-main); }

.btn-nav {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
    color: var(--text-main) !important;
    transition: background 0.3s, border-color 0.3s;
}

.btn-nav:hover {
    background: #1e293b;
    border-color: var(--accent-primary);
}

/* --- HERO SECTION --- */
.hero { padding: 80px 0 60px 0; text-align: center; }
.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px auto; }

/* --- PRODUCT CARD GRID --- */
.product-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); /* Changed to repeat(4, 1fr) to support VPN card */
    gap: 20px; 
    margin-bottom: 80px; 
}
@media (max-width: 1024px) { /* Adjusted breakpoint for 4 columns */
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .product-grid { grid-template-columns: 1fr; }
}
.card.iot-card:hover { border-color: #8b5cf6; }
.card.vpn-card:hover { border-color: var(--accent-vpn); }

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-4px); }
.card.tunnel-card:hover { border-color: var(--accent-primary); }
.card.desktop-card:hover { border-color: var(--accent-secondary); }

.badge { align-self: flex-start; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 20px; text-transform: uppercase; }
.tunnel-badge { background: rgba(59, 130, 246, 0.1); color: var(--accent-primary); }
.desktop-badge { background: rgba(16, 185, 129, 0.1); color: var(--accent-secondary); }

.card h2 { font-size: 24px; margin-bottom: 15px; }
.card p { color: var(--text-muted); margin-bottom: 30px; font-size: 14px; }

/* --- INTERACTIVE MOCKUPS --- */
.terminal {
    background: #05070b;
    border-radius: 6px;
    padding: 15px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #38bdf8;
    margin-bottom: 30px;
    text-align: left;
    border: 1px solid #1e293b;
}
.terminal span { color: #f43f5e; }
.terminal .output { color: #a7f3d0; }

.ui-preview { background: #05070b; border-radius: 6px; padding: 20px; margin-bottom: 30px; border: 1px solid #1e293b; text-align: left; }
.ui-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #131a26; font-size: 13px; }

/* --- CORE BUTTONS --- */
.btn { display: inline-block; text-align: center; padding: 12px 24px; border-radius: 6px; font-weight: 600; text-decoration: none; transition: opacity 0.3s; }
.btn:hover { opacity: 0.9; }
.btn-tunnel { background-color: var(--accent-primary); color: #fff; }
.btn-desktop { background-color: var(--accent-secondary); color: #fff; }
.btn-vpn { background-color: var(--accent-vpn); color: #fff; }

.infra-text { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 40px; }
.infra-text code { background: var(--card-bg); padding: 2px 6px; border-radius: 4px; color: var(--text-main); }

/* --- SIGNUP MODULE --- */
.body-center { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; }
.signup-container { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 40px; max-width: 450px; width: 100%; text-align: center; }
.signup-container .logo { color: var(--accent-primary); margin-bottom: 10px; }
.signup-container h1 { font-size: 22px; margin-bottom: 20px; }
.signup-container p { color: var(--text-muted); font-size: 14px; margin-bottom: 30px; }
.form-group { text-align: left; margin-bottom: 20px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; margin-bottom: 8px; color: var(--text-muted); }
.form-group input { width: 100%; padding: 12px; background: #05070b; border: 1px solid var(--border-color); border-radius: 6px; color: #fff; font-size: 14px; }
.form-group input:focus { border-color: var(--accent-primary); outline: none; }
.btn-submit { width: 100%; padding: 12px; background: var(--accent-primary); color: #fff; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: 15px; margin-top: 10px; }
.back-link { display: inline-block; margin-top: 20px; font-size: 14px; color: var(--text-muted); text-decoration: none; }
.back-link:hover { color: #fff; }

/* --- DOWNLOAD PLATFORMS MODULE --- */
.body-padding { padding: 60px 20px; }
.dl-container { max-width: 800px; margin: 0 auto; text-align: center; }
.dl-container h1 { font-size: 36px; margin-bottom: 15px; }
.dl-subtitle { color: var(--text-muted); font-size: 18px; margin-bottom: 40px; }
.os-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 50px; }
@media (max-width: 600px) { .os-grid { grid-template-columns: 1fr; } }
.os-card { background: var(--card-bg); border: 1px solid var(--border-color); padding: 30px; border-radius: 8px; text-align: center; }
.os-icon { font-size: 40px; margin-bottom: 15px; }
.os-title { font-weight: 700; margin-bottom: 10px; font-size: 18px; }
.os-version { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }
.btn-dl { display: block; padding: 10px; background: var(--accent-secondary); color: #fff; text-decoration: none; border-radius: 6px; font-weight: 600; font-size: 14px; }

/* --- LIVE CONSOLE CORE MODULE --- */
.body-dashboard { background-color: var(--main-bg); display: flex; height: 100vh; overflow: hidden; }
aside { width: 240px; background: var(--sidebar-bg); border-right: 1px solid var(--border-color); padding: 25px; display: flex; flex-direction: column; justify-content: space-between; }
.brand { font-size: 20px; font-weight: 800; background: linear-gradient(45deg, var(--accent-blue), var(--accent-green)); background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 40px; }
.menu-group { margin-bottom: 25px; }
.menu-title { font-size: 11px; text-transform: uppercase; color: var(--text-muted); letter-spacing: 1px; margin-bottom: 10px; font-weight: 600; }
.menu-item { display: block; padding: 10px; color: var(--text-main); text-decoration: none; font-size: 14px; border-radius: 6px; margin-bottom: 5px; }
.menu-item.active { background: rgba(59, 130, 246, 0.15); color: var(--accent-primary); font-weight: 600; }
.menu-item:hover:not(.active) { background: rgba(255,255,255,0.05); }
.main-console { flex: 1; padding: 40px; overflow-y: auto; background-color: var(--main-bg); }
.header-panel { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.token-box { background: var(--bg-dark); border: 1px solid var(--border-color); padding: 15px; border-radius: 6px; font-family: monospace; font-size: 14px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.token-text { color: var(--accent-primary); }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .dashboard-grid { grid-template-columns: 1fr; } }
.dash-card { background: var(--card-console); border: 1px solid var(--border-color); border-radius: 8px; padding: 25px; }
.dash-card h3 { font-size: 16px; margin-bottom: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.status-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.02); }
.status-indicator { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.status-online { background: var(--accent-secondary); }



/* --- PRICING MODULE --- */
.pricing-section { padding: 60px 0 80px 0; text-align: center; }
.pricing-section h2 { font-size: 32px; margin-bottom: 40px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 30px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; }
.price-card.popular { border-color: var(--accent-primary); box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1); }
.price-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.price-amount { font-size: 36px; font-weight: 800; margin-bottom: 20px; }
.price-amount span { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.price-features { list-style: none; margin-bottom: 30px; font-size: 14px; color: var(--text-muted); }
.price-features li { margin-bottom: 12px; }
.price-features li::before { content: "✓ "; color: var(--accent-secondary); margin-right: 5px; font-weight: bold; }


/* --- TABBED PRICING ENGINE --- */
.pricing-tabs {
    text-align: center;
    margin-top: 20px;
}

.pricing-tabs input[type="radio"] {
    display: none;
}

.pricing-tabs label {
    display: inline-block;
    padding: 10px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    margin: 0 5px 40px 5px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    color: var(--text-muted);
}

/* Tab Hover & Checked States */
.pricing-tabs label:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
}

#tab-tunnel:checked ~ label[for="tab-tunnel"] { background: rgba(59, 130, 246, 0.15); border-color: var(--accent-primary); color: var(--accent-primary); }
#tab-desktop:checked ~ label[for="tab-desktop"] { background: rgba(16, 185, 129, 0.15); border-color: var(--accent-secondary); color: var(--accent-secondary); }
#tab-iot:checked ~ label[for="tab-iot"] { background: rgba(139, 92, 246, 0.15); border-color: #8b5cf6; color: #8b5cf6; }
#tab-vpn:checked ~ label[for="tab-vpn"] { background: rgba(6, 182, 212, 0.15); border-color: var(--accent-vpn); color: var(--accent-vpn); }

/* Hide all grids by default */
.pricing-tabs .pricing-grid {
    display: none;
    grid-template-columns: 1fr 1fr;
    max-width: 800px;
    margin: 0 auto;
    gap: 25px;
}

/* Show the active grid based on checked radio button */
#tab-tunnel:checked ~ .content-tunnel { display: grid; }
#tab-desktop:checked ~ .content-desktop { display: grid; }
#tab-iot:checked ~ .content-iot { display: grid; }
#tab-vpn:checked ~ .content-vpn { display: grid; }

.price-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.price-card.popular { box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.price-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.price-amount { font-size: 36px; font-weight: 800; margin-bottom: 20px; }
.price-amount span { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.price-features { list-style: none; margin-bottom: 30px; font-size: 14px; color: var(--text-muted); }
.price-features li { margin-bottom: 12px; }
.price-features li::before { content: "✓ "; color: var(--accent-secondary); margin-right: 5px; font-weight: bold; }

/* --- FOOTER --- */
footer { border-top: 1px solid var(--border-color); padding: 40px 0; text-align: center; font-size: 14px; color: var(--text-muted); }