/* CSS for NexusVPS Landing Page - Redesign */

:root {
    /* Colors - Darker, more premium palette */
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 23, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);

    --primary: #d4d4d8;
    /* zinc-300 */
    --primary-glow: rgba(255, 255, 255, 0.15);

    --accent-1: #4ade80;
    /* green-400 */
    --accent-2: #2dd4bf;
    /* teal-400 */
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    /* zinc-400 */

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Transition */
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* 3D Fluid Background */
.ambient-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    background: #000;
}

.light-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: drift 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.orb-1 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.15), transparent 70%);
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.1), transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
    animation-duration: 25s;
}

.orb-3 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 70%);
    top: 40%;
    left: 30%;
    animation-delay: -10s;
    animation-duration: 30s;
}

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

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

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

/* Layout Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 8rem 0;
}

.highlight {
    color: var(--accent-2);
}

.gradient-text {
    background: linear-gradient(135deg, #fff 30%, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Glass Components */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--text-main);
    color: #000;
}

.btn-primary:hover {
    background: #e4e4e7;
    /* zinc-200 */
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 99px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
}

.pulse {
    width: 6px;
    height: 6px;
    background: var(--accent-1);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-1);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 540px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.server-mockup {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: floating 8s ease-in-out infinite;
}

.floating-card {
    position: absolute;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateZ(20px);
}

.floating-card i {
    font-size: 1.2rem;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    border-radius: 12px;
}

.floating-card span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.c1 {
    top: 25%;
    left: 10%;
    transform: rotate(-5deg) translateZ(40px);
}

.c2 {
    top: 45%;
    right: 5%;
    transform: rotate(5deg) translateZ(60px);
}

.c3 {
    bottom: 20%;
    left: 20%;
    transform: rotate(-3deg) translateZ(20px);
}

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

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

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

/* Features */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient overlay/border effect */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    pointer-events: none;
}

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

.feature-icon {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Pricing */
.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.switch {
    width: 44px;
    height: 24px;
    position: relative;
    display: inline-block;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    cursor: pointer;
    transition: 0.4s;
    border: 1px solid var(--border-color);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-main);
    border-radius: 50%;
    transition: 0.4s;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    transition: var(--transition);
}

.pricing-card.popular {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(20, 20, 23, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.price {
    margin: 2rem 0;
    display: flex;
    align-items: baseline;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-main);
}

.currency {
    font-size: 1.2rem;
    margin-right: 0.2rem;
    color: var(--text-muted);
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.features-list li i {
    color: var(--text-main);
    font-size: 0.8rem;
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
}

.full-width {
    width: 100%;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding-top: 6rem;
    margin-top: 6rem;
    background: #000;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    margin-bottom: 1rem;
    display: block;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}

.footer-col ul li a:hover {
    color: var(--text-main);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    color: #52525b;
    /* zinc-600 */
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

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

    .hero-subtitle {
        margin: 0 auto 3rem;
    }

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

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

    .hero-visual {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-150%);
        transition: 0.4s;
    }

    .nav-menu.active {
        transform: translateY(0);
    }
}