@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #8b5cf6;
    --primary-dim: #6d28d9;
    --primary-glow: rgba(139,92,246,0.3);
    --accent: #06b6d4;
    --accent2: #10b981;
    --bg: #030712;
    --bg-card: #0f172a;
    --bg-surface: #1e293b;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(139,92,246,0.18);
    --border-bright: rgba(139,92,246,0.6);
    --radius: 16px;
    --transition: all 0.35s cubic-bezier(0.175,0.885,0.32,1.275);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.85;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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: 1240px;
    margin: 0 auto;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--primary), var(--accent)); border-radius: 10px; }

/* ── Header ── */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(3,7,18,0.98) 0%, rgba(3,7,18,0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

header.scrolled {
    border-bottom-color: var(--border-bright);
    box-shadow: 0 4px 30px rgba(139,92,246,0.12);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 5%;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
}

.logo img { 
    height: 36px; 
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-list ul { display: flex; gap: 2rem; }

.nav-list a {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    position: relative;
    font-weight: 500;
    transition: var(--transition);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-list a:hover { color: var(--primary); }
.nav-list a:hover::after { width: 100%; }

.header-auth .btn-signup {
    background: linear-gradient(135deg, var(--primary), var(--primary-dim));
    color: #fff;
    padding: 0.65rem 1.6rem;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 0 20px var(--primary-glow);
    border: none;
}

.header-auth .btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139,92,246,0.35);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px; height: 2.5px;
    background: var(--text);
    border-radius: 3px;
    transition: var(--transition);
}

@media (max-width: 992px) {
    .nav-list {
        display: none;
        position: fixed;
        top: 0; right: 0;
        width: 280px; height: 100vh;
        background: var(--bg-surface);
        padding: 5.5rem 2rem 2rem;
        z-index: 999;
        border-left: 1px solid var(--border);
    }
    .nav-list.active { display: block; }
    .nav-list ul { flex-direction: column; gap: 1.8rem; }
    .mobile-menu-toggle { display: flex; }
    .mobile-menu-toggle span { background: var(--text); }
    .mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
    .header-auth .btn-signup { display: none; }
}

@media (max-width: 768px) {
    .header-container { padding: 0.6rem 5%; }
    .logo { flex-grow: 1; }
    .logo img { height: 32px; }
    .header-auth .btn-signup { padding: 0.55rem 1.3rem; font-size: 0.85rem; }
}

/* ── Footer ── */
footer {
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg) 100%);
    padding: 5.5rem 5% 2.5rem;
    margin-top: 6.5rem;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-nav h4, .footer-contact h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 0.9rem; }

.footer-nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-nav a:hover { color: var(--primary); }

.footer-contact p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    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.25rem;
}

.footer-links a {
    color: var(--text-muted);
    margin-left: 1.75rem;
    font-size: 0.9rem;
}

.footer-links a:hover { color: var(--primary); }

/* ── Ad ── */
.ad-container {
    max-width: 1150px;
    margin: 3.5rem auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 0 40px rgba(139,92,246,0.1);
}

/* ── Section title ── */
.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--text);
    letter-spacing: 0.5px;
    font-weight: 800;
}

/* ── Mobile bottom bar ── */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(3,7,18,0.98) 0%, rgba(3,7,18,1) 100%);
    border-top: 1px solid var(--border);
    padding: 14px 20px;
    z-index: 1005;
    gap: 14px;
    justify-content: space-between;
}

.mobile-bottom-bar a {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.3px;
    font-weight: 700;
}

.mobile-bottom-bar .btn-login {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.mobile-bottom-bar .btn-register {
    background: linear-gradient(135deg, var(--primary), var(--primary-dim));
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 0 28px var(--primary-glow);
}

@media (max-width: 768px) {
    .mobile-bottom-bar { display: flex; }
    body { padding-bottom: 75px; }
    .section-title { font-size: 1.6rem; margin-bottom: 2.75rem; }
    footer { padding: 4rem 5% 2.25rem; margin-top: 4.5rem; }
    .footer-top { grid-template-columns: 1fr; gap: 2.75rem; text-align: center; }
    .footer-brand { display: flex; flex-direction: column; align-items: center; }
    .footer-nav ul { align-items: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
    .footer-links a { margin-left: 0; }
    .header-container { padding: 1rem 5%; }
    .logo { flex-grow: 1; }
    .header-auth .btn-signup { padding: 0.7rem 1.5rem; font-size: 0.9rem; }
    .header-auth .arrow { display: none; }
}
