@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
    --gold: #D4AF37;
    --gold-light: #F5D76E;
    --gold-dark: #A8891F;
    --neon: #00E676;
    --neon-dim: rgba(0, 230, 118, 0.15);
    --red-accent: #FF1744;
    --bg-dark: #080810;
    --bg-card: #12121C;
    --bg-card-hover: #1A1A28;
    --bg-elevated: #181824;
    --text-main: #B8B8C8;
    --text-light: #EDEDF5;
    --text-muted: #6E6E82;
    --border: rgba(212, 175, 55, 0.18);
    --border-strong: rgba(212, 175, 55, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 24px rgba(212, 175, 55, 0.25);
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F5D76E 50%, #A8891F 100%);
    --gradient-dark: linear-gradient(180deg, #12121C 0%, #080810 100%);
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    padding-top: 68px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text-light);
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: 0.04em;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold-light);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    margin-bottom: 16px;
    color: var(--text-light);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-main);
    max-width: 560px;
    line-height: 1.75;
}

/* Header */
.main-header {
    background: rgba(8, 8, 16, 0.92);
    backdrop-filter: blur(16px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    width: 100%;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
    gap: 20px;
}

.logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    overflow: hidden;
}

.main-nav a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.main-nav a:hover,
.main-nav a.current {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
}

.main-nav a:hover::after,
.main-nav a.current::after {
    width: 60%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background-color: var(--gold);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-gold);
    color: #0A0A0F;
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.45);
    color: #0A0A0F;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-strong);
    color: var(--gold);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    color: var(--gold-light);
}

.btn-neon {
    background: var(--neon);
    color: #0A0A0F;
    font-weight: 700;
}

.btn-neon:hover {
    background: #00FF88;
    transform: translateY(-2px);
    color: #0A0A0F;
}

.btn-large {
    padding: 16px 36px;
    font-size: 0.95rem;
}

.btn-signin {
    padding: 8px 16px;
    font-size: 0.78rem;
}

.btn-signup {
    padding: 8px 18px;
    font-size: 0.78rem;
}

/* Footer */
.main-footer {
    background: #050508;
    padding: 72px 0 0;
    border-top: 1px solid var(--border);
    margin-top: 0;
    color: var(--text-main);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand img {
    height: 48px;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-muted);
}

.footer-links h3,
.footer-contact h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a,
.sitemap-link a {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.footer-links a:hover,
.sitemap-link a:hover {
    color: var(--gold);
}

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

.sitemap-link {
    margin-top: 16px;
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--gold);
}

.page-header {
    padding: 80px 0 60px;
    text-align: center;
    background: var(--gradient-dark);
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    font-size: 0.88rem;
    color: var(--text-muted);
    padding-top: 20px;
}

.breadcrumb a {
    color: var(--gold);
}

.breadcrumb span {
    margin: 0 8px;
    color: var(--text-muted);
}

.mobile-bottom-bar {
    display: none;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 68px;
    }

    .container {
        padding: 0 16px;
    }

    .header-inner {
        height: 68px;
    }

    .logo img {
        height: 34px;
    }

    .main-nav {
        position: absolute;
        top: 68px;
        left: 0;
        width: 100%;
        background: rgba(8, 8, 16, 0.98);
        backdrop-filter: blur(16px);
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s ease,
                    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid var(--border);
        flex: unset;
        justify-content: flex-start;
        opacity: 0;
        transform: translateY(-10px);
    }

    .main-nav.active {
        max-height: 420px;
        opacity: 1;
        transform: translateY(0);
    }

    .main-nav .nav-list {
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        align-items: stretch;
    }

    .main-nav a {
        display: block;
        padding: 12px 14px;
        transform: translateX(-20px);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .main-nav.active a {
        transform: translateX(0);
        opacity: 1;
    }

    .main-nav.active a:nth-child(1) { transition-delay: 0.05s; }
    .main-nav.active a:nth-child(2) { transition-delay: 0.1s; }
    .main-nav.active a:nth-child(3) { transition-delay: 0.15s; }
    .main-nav.active a:nth-child(4) { transition-delay: 0.2s; }
    .main-nav.active a:nth-child(5) { transition-delay: 0.25s; }
    .main-nav.active a:nth-child(6) { transition-delay: 0.3s; }
    .main-nav.active a:nth-child(7) { transition-delay: 0.35s; }
    .main-nav.active a:nth-child(8) { transition-delay: 0.4s; }

    .mobile-menu-toggle {
        display: flex;
    }

    .btn-signup {
        display: none;
    }

    .btn-signin {
        padding: 8px 16px;
        font-size: 0.78rem;
    }

    body.menu-open {
        overflow: hidden;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .mobile-bottom-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1300;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(8, 8, 16, 0.98);
        border-top: 1px solid var(--border);
        transition: transform 0.3s ease;
    }

    .mobile-bottom-bar a {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.88rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        border-radius: var(--radius-sm);
        transition: all 0.3s ease;
    }

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

    .mobile-bottom-bar .btn-login:hover {
        background: rgba(212, 175, 55, 0.08);
        border-color: var(--gold);
    }

    .mobile-bottom-bar .btn-register {
        background: var(--gradient-gold);
        color: #0A0A0F;
    }

    .mobile-bottom-bar .btn-register:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    }

    body {
        padding-bottom: 76px;
    }

    #floating-banner {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
        max-width: 100%;
    }
}
