@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

:root {
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --primary-glow: rgba(245,158,11,0.35);
    --accent: #10b981;
    --accent-dark: #059669;
    --bg: #0f172a;
    --bg-card: #1e293b;
    --bg-surface: #334155;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(245,158,11,0.2);
    --border-bright: rgba(245,158,11,0.6);
    --radius: 18px;
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    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: 1280px;
    margin: 0 auto;
}

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

/* ── Header ── */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15,23,42,0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
}

header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

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

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

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

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

.nav-list a {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 0.4px;
    position: relative;
    font-weight: 600;
    transition: var(--transition);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

.header-auth .btn-signup {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #0f172a;
    padding: 0.75rem 1.8rem;
    border-radius: 14px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.4px;
    font-weight: 800;
    transition: var(--transition);
    box-shadow: 0 0 30px var(--primary-glow);
    border: none;
}

.header-auth .btn-signup:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(245,158,11,0.5);
}

.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: 28px; height: 3px;
    background: var(--text);
    border-radius: 4px;
    transition: var(--transition);
}

@media (max-width: 992px) {
    .nav-list {
        display: none;
        position: fixed;
        top: 0; right: 0;
        width: 300px; height: 100vh;
        background: var(--bg-card);
        padding: 6rem 2rem 2rem;
        z-index: 999;
        border-left: 1px solid rgba(255,255,255,0.08);
    }
    .nav-list.active { display: block; }
    .nav-list ul { flex-direction: column; gap: 2rem; }
    .mobile-menu-toggle { display: flex; }
    .mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(7px,7px); }
    .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.9rem 5%; }
    .logo { flex-grow: 1; }
    .logo img { height: 34px; }
    .header-auth .btn-signup { padding: 0.7rem 1.6rem; font-size: 0.9rem; }
}

/* ── Footer ── */
footer {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg) 100%);
    padding: 6rem 5% 3rem;
    margin-top: 7rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

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

.footer-nav h4, .footer-contact h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.4px;
}

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

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

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

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 2.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

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

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

/* ── Ad ── */
.ad-container {
    max-width: 1180px;
    margin: 4rem auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 0 50px rgba(245,158,11,0.12);
}

/* ── Section title ── */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.8vw, 3rem);
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text);
    letter-spacing: 0.6px;
    font-weight: 900;
}

/* ── Mobile bottom bar ── */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    background: rgba(15,23,42,0.98);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 16px 24px;
    z-index: 1005;
    gap: 16px;
    justify-content: space-between;
}

.mobile-bottom-bar a {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    border-radius: 14px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.4px;
    font-weight: 800;
}

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

.mobile-bottom-bar .btn-register {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #0f172a;
    border: 2px solid transparent;
    box-shadow: 0 0 32px var(--primary-glow);
}

@media (max-width: 768px) {
    .mobile-bottom-bar { display: flex; }
    body { padding-bottom: 85px; }
    .section-title { font-size: 1.75rem; margin-bottom: 3rem; }
    footer { padding: 4.5rem 5% 2.75rem; margin-top: 5rem; }
    .footer-top { grid-template-columns: 1fr; gap: 3rem; 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.5rem; }
    .footer-links a { margin-left: 0; }
}
