/* Reset & Variables */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #00ffd5;
    --secondary-color: #7000ff;
    --accent-color: #ff0055;
    --bg-dark: #030305;
    --bg-card: rgba(15, 15, 20, 0.6);
    --bg-glass: rgba(10, 10, 15, 0.4);
    --text-main: #f8f9fa;
    --text-muted: #8b92a5;
    --header-bg: rgba(3, 3, 5, 0.7);
    --border-color: rgba(255, 255, 255, 0.05);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --glow-primary: 0 0 20px rgba(0, 255, 213, 0.4);
    --glow-secondary: 0 0 20px rgba(112, 0, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(112, 0, 255, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 255, 213, 0.08), transparent 25%);
    background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

/* Header */
body>header {
    background-color: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
}

body>header.scrolled {
    padding: 0.8rem 0;
    background-color: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.logo img {
    height: 38px;
    transition: var(--transition);
}

.logo:hover img {
    filter: drop-shadow(var(--glow-primary));
}

.nav-list ul {
    display: flex;
    gap: 3rem;
}

.nav-list a {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
}

.nav-list a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
    border-radius: 2px;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--text-main);
}

.nav-list a:hover::before,
.nav-list a.active::before {
    width: 100%;
    box-shadow: var(--glow-primary);
}

.header-auth .btn-signup {
    font-family: 'Space Grotesk', sans-serif;
    background: transparent;
    color: var(--primary-color);
    padding: 0.7rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    border: 1px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.header-auth .btn-signup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    transition: var(--transition);
    z-index: -1;
}

.header-auth .btn-signup:hover {
    color: #000;
    box-shadow: var(--glow-primary);
}

.header-auth .btn-signup:hover::before {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
    border-radius: 2px;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .header-auth {
        margin-left: auto;
        margin-right: 1.5rem;
    }

    .header-auth .btn-signup {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    .nav-list {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(3, 3, 5, 0.98);
        backdrop-filter: blur(20px);
        padding: 7rem 2rem 4rem;
        z-index: 999;
        opacity: 0;
        transition: opacity 0.4s ease;
        overflow-y: auto;
    }

    .nav-list.active {
        display: block;
        opacity: 1;
    }

    .nav-list ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        width: 100%;
    }

    .nav-list a {
        font-size: 1.25rem;
        display: block;
        text-align: center;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
        background: var(--primary-color);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
        background: var(--primary-color);
    }
}

/* Footer */
footer {
    background: linear-gradient(to top, #020203, transparent);
    padding: 8rem 5% 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(112, 0, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        justify-content: center;
        width: 100%;
        gap: 1.5rem;
    }

    .ad-container {
        margin: 2rem auto;
        border-radius: 12px;
    }
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 350px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-nav h4,
.footer-contact h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-main);
    margin-bottom: 1.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav a {
    color: var(--text-muted);
    position: relative;
    display: inline-block;
}

.footer-nav a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.ad-container {
    max-width: 1200px;
    margin: 4rem auto;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.ad-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    pointer-events: none;
}

/* Common Components */
.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-main);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    box-shadow: var(--glow-primary);
}

/* Mobile Fixed Button */
.mobile-fixed-btn {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(3, 3, 5, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    text-align: center;
}

.mobile-fixed-btn .btn-primary {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 30px;
    letter-spacing: 1px;
    box-shadow: var(--glow-primary);
    transition: var(--transition);
}

.mobile-fixed-btn .btn-primary:active {
    transform: scale(0.98);
}

@media (max-width: 992px) {
    .mobile-fixed-btn {
        display: block;
    }

    body {
        padding-bottom: 85px;
    }
}