:root {
    --primary-color: #3B82F6;
    --primary-hover: #2563EB;
    --text-main: #111827;
    --text-secondary: #4B5563;
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --border-color: #E5E7EB;
    --success: #10B981;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-outline {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-text {
    color: var(--text-secondary);
}

.btn-text:hover {
    color: var(--primary-color);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.1rem;
    border-radius: 8px;
}

.full-width {
    width: 100%;
}/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    height: 70px;
}

.navbar-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand .logo-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 8px;
}

.footer-brand p {
    margin-top: 16px;
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.link-column h4 {
    margin-bottom: 24px;
    font-size: 1rem;
}

.link-column a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.link-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
/* Hero Section */
.hero {
    padding-top: 140px; /* Navbar height + spacing */
    padding-bottom: 80px;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: #EFF6FF;
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-item i {
    color: var(--success);
}

/* Hero Visual (Abstract Map) & Dashboard */
.hero-image {
    position: relative;
    height: 520px;
    background-color: #F3F4F6;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.abstract-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#D1D5DB 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    z-index: 1;
}

.server-node {
    width: 8px;
    height: 8px;
    background-color: #BFDBFE;
    border-radius: 50%;
    position: absolute;
    z-index: 1;
}

.node-usa { top: 10%; left: 10%; }
.node-eu { top: 15%; left: 80%; }
.node-asia { top: 80%; left: 90%; }

/* Dashboard Preview (Dark Theme) */
.dashboard-preview.dark-theme {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    background: #0F172A; /* Dark Slate background */
    color: #E2E8F0;
    border: 1px solid #1E293B;
    z-index: 10;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.preview-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #1E293B;
    background: #0F172A;
    position: relative;
    min-height: 56px;
}

.window-controls {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 50;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}
.red { background-color: #EF4444; }
.yellow { background-color: #F59E0B; }
.green { background-color: #10B981; }

.header-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #94A3B8;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 10;
}

/* Stats Grid (Horizontal Scroll) */
.stats-grid {
    display: flex;
    gap: 12px;
    padding: 20px 24px 12px 24px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    mask-image: linear-gradient(to right, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
}

.stats-grid::-webkit-scrollbar {
    display: none;
}

.stat-card {
    background: #1E293B;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #334155;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100px;
    min-width: 140px;
    flex: 0 0 auto;
}

.stat-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.75rem;
    color: #94A3B8;
    font-weight: 500;
}

.stat-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.stat-icon.purple { background: rgba(139, 92, 246, 0.2); color: #A78BFA; }
.stat-icon.blue { background: rgba(59, 130, 246, 0.2); color: #60A5FA; }
.stat-icon.green { background: rgba(16, 185, 129, 0.2); color: #34D399; }

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #F8FAFC;
}

.stat-value.text-green { color: #34D399; }

/* Chart Section */
.chart-section {
    flex-grow: 1;
    background: #1E293B;
    margin: 12px 24px 24px 24px;
    border-radius: 12px;
    border: 1px solid #334155;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.chart-header {
    font-size: 0.9rem;
    color: #E2E8F0;
    margin-bottom: 16px;
    font-weight: 500;
}

.chart-placeholder {
    flex-grow: 1;
    width: 100%;
    position: relative;
}

.chart-svg {
    width: 100%;
    height: 100%;
    display: block;
}
/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

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

.feature-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: white;
    transition: all 0.3s;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.bg-blue { background-color: #EFF6FF; color: #3B82F6; }
.bg-purple { background-color: #F3E8FF; color: #9333EA; }
.bg-green { background-color: #ECFDF5; color: #10B981; }

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* MVP Section */
.mvp-section {
    padding: 80px 0;
    background-color: #111827;
    color: white;
}

.mvp-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mvp-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.mvp-content p {
    color: #9CA3AF;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.mvp-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.mvp-list i {
    color: var(--success);
}

.code-block {
    background: #1F2937;
    padding: 32px;
    border-radius: var(--radius-lg);
    font-family: 'Menlo', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    border: 1px solid #374151;
}

.code-block .string { color: #A5F3FC; }
.code-block .comment { color: #6B7280; display: block; margin-top: 10px; }

/* Pricing */
.pricing {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 40px 32px;
    position: relative;
    transition: all 0.3s;
}

.pricing-card.popular {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
    z-index: 10;
}

.badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.card-header .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
}

.card-header .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.card-header p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.card-body ul {
    margin-bottom: 32px;
}

.card-body li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body li::before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
}

.faded {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Network Section */
.network-section {
    padding: 100px 0;
    background-color: white;
}

.network-map-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

#world-map {
    width: 100%;
    height: 550px;
}

/* jVectorMap custom styles */
.jvectormap-container {
    background: transparent !important;
}

.jvectormap-marker {
    transition: all 0.3s ease;
}

.jvectormap-tip {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.locations-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F1F5F9;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.location-item i {
    color: var(--primary-color);
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background-color: white;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    padding: 24px;
    background: #F8FAFC;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}
/* Responsive */
@media (max-width: 960px) {
    .hero-container {
        display: flex; /* Switch grid to flex column */
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center; /* Center items horizontally */
    }

    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        /* On mobile/tablet, hide the complex dashboard or simplify it */
        /* For now, just ensuring it fits */
        width: 100%;
        height: 400px; /* Smaller height */
    }

    .dashboard-preview.dark-theme {
        /* Adjust for smaller screens if needed */
        border-radius: var(--radius-lg);
        bottom: 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .mvp-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .mvp-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .mvp-list li {
        justify-content: center; /* Center list items */
    }

    .mvp-image {
        order: 1; /* Put image AFTER text on mobile */
        width: 100%;
        overflow-x: hidden; /* Prevent scroll causing page scroll */
    }
    
    .code-block {
        text-align: left; /* Keep code left-aligned */
        overflow-x: auto; /* Scroll code inside block */
        font-size: 0.8rem;
        padding: 20px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .network-map-placeholder {
        height: 250px;
        background-size: 20px 20px;
    }
    
    .map-node::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-auth {
        display: none;
        flex-direction: column;
        position: absolute;
        left: 0;
        right: 0;
        background: white;
        padding: 24px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        gap: 0; /* Reset gap for vertical layout */
    }

    .nav-links {
        top: 70px;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-auth {
        /* Position below nav-links. Adjust '250px' based on nav-links height */
        top: 280px; 
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out 0.1s; /* Add a slight delay */
        padding-bottom: 24px;
        box-shadow: none; /* Shadow is on nav-links */
        border-top: 1px solid var(--border-color);
    }
    
    .nav-links a {
        padding: 12px 0;
    }

    .mobile-menu-toggle {
        display: block;
        z-index: 1001; /* Ensure it's above other nav elements */
    }

    .navbar.mobile-menu-active .nav-links,
    .navbar.mobile-menu-active .nav-auth {
        display: flex;
        transform: translateY(0);
    }

    /* Change hamburger to close icon */
    .navbar .mobile-menu-toggle .fa-bars {
        display: block;
    }
    .navbar .mobile-menu-toggle .fa-times {
        display: none;
    }
    .navbar.mobile-menu-active .mobile-menu-toggle .fa-bars {
        display: none;
    }
    .navbar.mobile-menu-active .mobile-menu-toggle .fa-times {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }
    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
    }
}

/* FAQ Accordion Styles */
.faq-item {
    padding: 0;
    overflow: hidden;
    background: #F8FAFC;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
}

.faq-question span {
    flex-grow: 1;
}

.faq-question i {
    transition: transform 0.3s ease-in-out;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0 24px 24px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Adjust as needed for content */
}

/* Scroll to Top Button */
#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 1001;
}

#scrollToTopBtn:hover {
    background-color: var(--primary-hover);
}

#scrollToTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Live Ping Section */
.live-ping-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.ping-list-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 20px 40px;
    box-shadow: var(--shadow-md);
}

.ping-list {
    list-style: none;
}

.ping-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
}

.ping-item:last-child {
    border-bottom: none;
}

.server-location {
    font-weight: 500;
    color: var(--text-main);
}

.ping-time {
    font-weight: 700;
    font-family: 'Menlo', 'Monaco', monospace;
    font-size: 1.2rem;
    padding: 4px 10px;
    border-radius: 6px;
    min-width: 80px;
    text-align: right;
}

.ping-fast {
    color: #065F46;
    background-color: #D1FAE5;
}

.ping-medium {
    color: #92400E;
    background-color: #FEF3C7;
}

.ping-slow {
    color: #991B1B;
    background-color: #FEE2E2;
}
