/* AQup Modern CSS (Restored) */
:root {
    --bg-deep-blue: #0a0e17;
    --accent-cyan: #00e5ff;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-deep-blue);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Common Components */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--accent-cyan);
    color: #000;
    border-radius: 6px;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    background: transparent;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Nav */
.aqup-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #0ea5e9;
}

/* Sections */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-title {
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hamburger Button */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1001;
}

.nav-overlay.active {
    display: block;
}

/* Global mobile overflow fix */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Nav */
    .nav-hamburger {
        display: flex;
    }

    .nav-content {
        height: 60px;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -280px;
        width: 260px;
        height: 100vh;
        background: rgba(10, 14, 23, 0.97);
        backdrop-filter: blur(15px);
        padding: 80px 20px 30px;
        gap: 0;
        z-index: 1050;
        transition: right 0.3s ease;
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        align-items: stretch;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links .nav-link {
        display: block;
        padding: 15px 10px;
        font-size: 1rem;
        color: #ccc;
    }

    .nav-links .nav-link:hover,
    .nav-links .nav-link:active {
        color: var(--accent-cyan);
        background: rgba(0, 229, 255, 0.05);
    }

    .nav-auth {
        margin-top: 10px;
        padding: 15px 10px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Container */
    .container {
        padding: 0 15px;
        max-width: 100%;
    }

    /* Hero section */
    .hero-section h1,
    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }

    .hero-section .hero-subtitle,
    .hero-section p[style*="font-size: 1.5rem"] {
        font-size: 1rem !important;
    }

    .hero-section div[style*="gap: 4rem"] {
        gap: 1.5rem !important;
    }

    .hero-section div[style*="gap: 1rem"] {
        flex-direction: column;
        align-items: center;
    }

    /* Sections general */
    section {
        padding: 60px 0 !important;
    }

    section h2 {
        font-size: 1.6rem !important;
        margin-bottom: 2rem !important;
    }

    /* Flex/Grid layouts to single column */
    section div[style*="display: flex"][style*="justify-content: space-between"],
    section div[style*="display: flex"][style*="gap: 2rem"] {
        flex-direction: column !important;
    }

    section div[style*="display: grid"][style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    section div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem !important;
    }

    /* Glass panels */
    .glass-panel {
        min-width: unset !important;
    }

    .glass-panel[style*="height: 400px"] {
        height: 200px !important;
    }

    /* Trust section logos */
    section div[style*="gap: 4rem"][style*="grayscale"] {
        gap: 1.5rem !important;
        flex-wrap: wrap;
        justify-content: center !important;
    }

    /* FAQ */
    section .container[style*="max-width: 800px"] {
        max-width: 100% !important;
    }

    /* Buttons */
    .btn-primary, .btn-secondary {
        font-size: 0.9rem;
        padding: 0.7rem 1.5rem;
    }

    /* Sticky CTA */
    #sticky-cta {
        bottom: 15px !important;
        right: 15px !important;
    }

    /* Nav brand logo */
    .nav-brand img {
        height: 32px !important;
    }
}