:root {
    --primary-color: #19177a; /* Deep Blue */
    --primary-dim: rgba(25, 23, 122, 0.2);
    --bg-dark: #0A0F1C;
    --bg-darker: #05080F;
    --text-main: #FFFFFF;
    --text-muted: #A0AABF;
    --text-faint: #5E6A82;
    --border-color: #1F293A;
    --max-width: 1200px;
    --header-height: 80px;
}

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

body {
    font-family: 'Inter', sans-serif;
    /* Fixed Background Image */
    background: url('./img/background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.highlight {
    color: #4d4aff; /* Lighter blue for text visibility */
}

.btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 50px; /* Increased roundness */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--text-main);
    color: var(--primary-color);
    border-color: var(--text-main);
    box-shadow: 0 0 15px var(--primary-dim);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
    background-color: rgba(5, 8, 15, 0.95); /* Solid dark when scrolled */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo img {
    height: 48px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

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

/* Hero Section */
#hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    background: rgba(10, 15, 28, 0.3); /* Subtle dark overlay */
    backdrop-filter: blur(8px); /* Blur the fixed background */
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); 
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    background: rgba(10, 15, 28, 0.5); /* Slightly darker than section */
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-sub {
    font-size: 0.9rem;
    color: #cbd5e1;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.2));
    animation: float 6s ease-in-out infinite;
}

/* Keep basic Lottie support without messing up layout */
dotlottie-player {
    max-width: 100%;
    height: auto;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Features Strip */
#features-strip {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 25px 0;
    position: relative;
    z-index: 1;
}

.strip-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

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

/* Trust Section */
#trust {
    padding: 100px 0;
    background: rgba(10, 15, 28, 0.3); /* Subtle dark overlay */
    backdrop-filter: blur(8px); /* Blur the fixed background */
}

.trust-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-direction: row-reverse;
}

.trust-content {
    flex: 1;
    background: rgba(10, 15, 28, 0.6);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.trust-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.separator {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 30px;
}

.key-differences {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.diff-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.diff-item i {
    color: var(--primary-color);
    background: var(--primary-dim);
    padding: 8px;
    border-radius: 50%;
    font-size: 0.8rem;
}

.trust-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.trust-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Network Section */
#network {
    padding: 100px 0;
    text-align: center;
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

#network h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.network-desc {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 10px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.network-note {
    color: var(--text-faint);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.separator-center {
    width: 60px;
    height: 3px;
    background-color: var(--border-color);
    margin: 0 auto 50px auto;
}

.flags-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    max-width: 600px;
    margin: 0 auto 50px auto;
    justify-items: center;
}

.flags-grid img {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    filter: grayscale(40%);
}

@media (max-width: 600px) {
    .flags-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* How To Section - Redesigned to Horizontal Cards */
#how-to {
    padding: 100px 0;
    background: rgba(10, 15, 28, 0.3); /* Subtle dark overlay */
    backdrop-filter: blur(8px); /* Blur the fixed background */
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

#how-to h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.sub-head {
    color: #cbd5e1;
    font-size: 1.2rem;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
}

.step-horizontal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(5, 8, 15, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    gap: 40px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.step-horizontal:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.step-info {
    flex: 1;
    text-align: left;
}

.step-tag {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    background: var(--primary-dim);
    padding: 4px 12px;
    border-radius: 20px;
}

.step-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.step-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
}

.step-media {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.step-media img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.action-footer {
    text-align: center;
}

.btn-large {
    padding: 15px 50px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--bg-darker); /* Solid background */
    border-top: 1px solid var(--border-color);
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left ul, .footer-right .social-icons {
    margin-top: 15px;
}

.footer-left ul li {
    margin-bottom: 10px;
}

.footer-left ul li a {
    color: var(--text-muted);
}

.footer-left ul li a:hover {
    color: var(--primary-color);
}

.footer-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-center img {
    height: 40px;
}

.footer-center p {
    color: var(--text-faint);
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* Server Tooltip */
.server-tooltip {
    position: fixed;
    background: rgba(5, 8, 15, 0.95);
    border: 1px solid var(--primary-color);
    padding: 12px;
    border-radius: 6px;
    pointer-events: none; /* Allows mouse to pass through */
    z-index: 10000;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
    min-width: 160px;
    display: none;
    backdrop-filter: blur(8px);
    transform: translate(15px, 15px); /* Initial offset from cursor */
}

.server-tooltip .tooltip-header {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.server-tooltip .tooltip-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 4px;
    color: var(--text-muted);
}

.server-tooltip .tooltip-val {
    color: #fff;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.server-tooltip .status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 5px #00ff88;
    margin-right: 6px;
}

/* Hamburger Menu & Mobile Overlay */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-main);
    z-index: 1001;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-darker);
    z-index: 2000;
    transition: transform 0.4s ease-in-out;
    transform: translateX(100%);
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Allow scrolling if content is long */
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.close-menu {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.mobile-menu-content {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.mobile-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 10px 0;
}

.mobile-resources h4 {
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.mobile-resources a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 1rem;
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.mobile-actions .btn {
    text-align: center;
    width: 100%;
}

.mobile-actions .social-icons {
    justify-content: center;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-container, .trust-container {
        flex-direction: column;
        text-align: center;
    }

    .trust-container {
        flex-direction: column-reverse; /* Revert for mobile to stack properly */
    }

    .trust-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .separator, .key-differences {
        align-items: center;
    }

    .step-horizontal {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .step-info p {
        margin: 0 auto;
    }

    .step-media {
        justify-content: center;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    /* Hide Desktop Nav & Show Hamburger on Tablet/Mobile */
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }
}

@media (max-width: 768px) {
    /* Removed nav-links hiding and hamburger showing from here as it's moved up */
}

@media (max-width: 600px) {
    .flags-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .flags-grid img:last-child {
        grid-column: 2;
    }
}

/* Show Hamburger on Mobile - Moved to 968px query */