:root {
    --bg-color: #030303;
    --text-main: #ffffff;
    --text-muted: #888888;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-glow: rgba(255, 255, 255, 0.15);
    --primary-glow: 0 0 20px rgba(255, 255, 255, 0.2);
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Animated Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: floatBg 20s infinite alternate linear;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    top: -200px;
    left: -200px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -100px;
    right: -100px;
    animation-direction: alternate-reverse;
}

@keyframes floatBg {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(100px, 50px) scale(1.1);
    }

    100% {
        transform: translate(-50px, 150px) scale(0.9);
    }
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Proxy Inline Banner in Hero */
.proxy-inline-banner {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 16px 28px;
    margin-bottom: 40px;
    border-radius: 100px;
    border: 1px solid rgba(88, 166, 255, 0.4);
    background: linear-gradient(90deg, rgba(88, 166, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    box-shadow: 0 4px 24px rgba(88, 166, 255, 0.2);
    z-index: 10;
    transition: var(--transition);
}

.proxy-inline-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(88, 166, 255, 0.3);
    border-color: rgba(88, 166, 255, 0.6);
}

.proxy-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.proxy-btn {
    background: #58a6ff;
    color: #000;
    text-decoration: none;
    padding: 8px 24px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 800;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.4);
}

.proxy-btn:hover {
    background: #ffffff;
    color: #000;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 20px;
    margin: 0 40px;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    border-radius: 100px;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--glass-border);
}

.brand-name {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #fff;
    bottom: -4px;
    left: 0;
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.cta-btn {
    padding: 10px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-btn.primary {
    background: #ffffff;
    color: #000000;
    box-shadow: var(--primary-glow);
}

.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    background: #f0f0f0;
}

.cta-btn.secondary {
    color: #ffffff;
    border: 1px solid var(--glass-border);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.cta-btn.large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 10;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.text-gradient {
    -webkit-text-fill-color: transparent;
    background: linear-gradient(135deg, #ffffff 0%, #666666 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Mockup Container */
.hero-visuals {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.mockup-container {
    position: relative;
    width: 400px;
    height: 600px;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

.mockup-container:hover {
    transform: rotateY(10deg);
}

/* Optimized mockup animations avoiding blur and lag */
.mockup-img {
    position: absolute;
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease;
    background: #000;
    will-change: transform;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-main {
    top: 0;
    left: 0;
    z-index: 3;
    animation: floatSmooth 6s ease-in-out infinite;
}

.mockup-back-left {
    top: 30px;
    left: -100px;
    z-index: 1;
    transform: scale(0.85);
    opacity: 0.5;
    animation: floatSmooth 7s ease-in-out infinite 1s;
}

.mockup-back-right {
    top: 50px;
    right: -100px;
    z-index: 2;
    transform: scale(0.9);
    opacity: 0.6;
    animation: floatSmooth 8s ease-in-out infinite 2s;
}

.mockup-container:hover .mockup-back-left {
    transform: scale(0.85) translate(-20px, 0);
    opacity: 0.8;
}

.mockup-container:hover .mockup-back-right {
    transform: scale(0.9) translate(20px, 0);
    opacity: 0.9;
}

@keyframes floatSmooth {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Servers Section */
.servers-section {
    padding: 100px 10%;
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.server-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.server-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.server-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flag {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.flag.double-flag {
    font-size: 1.6rem;
    letter-spacing: -4px;
    padding-right: 4px;
}

/* Status Dot Component */
.status-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 1px solid var(--glass-border);
}

.pulse.green {
    width: 12px;
    height: 12px;
    background-color: #00e676;
    /* Green */
    border-radius: 50%;
    box-shadow: 0 0 12px #00e676;
    animation: pulseGreenAnim 2s infinite;
}

@keyframes pulseGreenAnim {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(0, 230, 118, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
    }
}

.server-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.server-name {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Dynamic Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.server-tag {
    font-size: 0.7rem;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    font-weight: 600;
    letter-spacing: 0.5px;
    user-select: none;
}

.server-tag.protocol {
    background: rgba(255, 255, 255, 0.05);
    color: #cccccc;
}

.server-tag.protocol.xhttp {
    background: rgba(162, 0, 255, 0.15);
    color: #d896ff;
    border-color: rgba(162, 0, 255, 0.3);
}

.server-tag.attribute {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.server-tag.attribute.highlight {
    background: rgba(0, 230, 118, 0.15);
    color: #00e676;
    border-color: rgba(0, 230, 118, 0.3);
}

/* Footer */
.footer {
    padding: 60px 10% 30px;
    margin-top: 50px;
    border-top: 1px solid var(--glass-border);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    max-width: 1400px;
    margin: 0 auto 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.2rem;
}

.logo-img-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

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

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--text-main);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animations Scroll Reveal */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 60px;
        gap: 60px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .mockup-container {
        width: 320px;
        height: 480px;
    }
}

@media (max-width: 768px) {
    .navbar {
        margin: 10px 20px;
        padding: 12px 20px;
    }

    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .proxy-inline-banner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .servers-grid {
        grid-template-columns: 1fr;
    }

    .mockup-container {
        width: 280px;
        height: 420px;
    }

    .mockup-back-left,
    .mockup-back-right {
        display: none;
    }
}