/* ---------------------------------------------------
   NATHBROK — Base Styles
   Aesthetic: Deep Space Editorial
   Fonts: Cinzel (display) · Outfit (UI) · JetBrains Mono (accents)
   --------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Outfit:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* -- Tokens -- */
:root {
    --bg-void:        #06080d;
    --bg-surface:     #0b0f17;
    --bg-raised:      #111621;
    --bg-overlay:     #161d2b;

    --gold:           #c9a84c;
    --gold-dim:       rgba(201, 168, 76, 0.18);
    --gold-rule:      rgba(201, 168, 76, 0.35);

    --text-primary:   #eaedf5;
    --text-secondary: #8a90a8;
    --text-muted:     #525870;

    --border-subtle:  rgba(255,255,255,0.06);
    --border-mid:     rgba(255,255,255,0.10);

    --radius-sm:      6px;
    --radius-md:      10px;
    --radius-lg:      16px;

    --font-display:   'Cinzel', Georgia, serif;
    --font-ui:        'Outfit', system-ui, sans-serif;
    --font-mono:      'JetBrains Mono', monospace;

    --head-h:         64px;
    --drawer-w:       300px;
    --transition:     0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -- Reset -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.65;
    background: var(--bg-void);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

ul { list-style: none; }
a  { color: inherit; text-decoration: none; }

/* ------------------------------------------
   HEADER
------------------------------------------ */
.site-head {
    position: sticky;
    top: 0;
    z-index: 900;
    height: var(--head-h);
    background: var(--bg-void);
    border-bottom: 1px solid var(--gold-rule);
}

.site-head::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
    pointer-events: none;
}

.site-head__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Logo */
.site-head__logo {
    display: flex;
    align-items: baseline;
    gap: 1px;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-mark {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: -0.02em;
    line-height: 1;
}

.logo-wordmark {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    line-height: 1;
}

/* Desktop nav */
.site-head__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.site-head__nav a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.site-head__nav a:hover {
    color: var(--gold);
    background: var(--gold-dim);
}

/* Desktop CTA buttons */
.site-head__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 8px;
    transition: border-color var(--transition);
}

.hamburger:hover { border-color: var(--gold-rule); }

.hamburger span {
    display: block;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* ------------------------------------------
   BUTTONS (global)
------------------------------------------ */
.btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bg-void);
    background: var(--gold);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: opacity var(--transition), transform var(--transition);
}

.btn-solid:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-solid:active { transform: translateY(0); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.btn-ghost:hover {
    color: var(--gold);
    border-color: var(--gold-rule);
    background: var(--gold-dim);
}

.btn--sm { padding: 6px 14px; font-size: 12px; }

/* ------------------------------------------
   DRAWER / SIDEBAR
------------------------------------------ */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}

.drawer--open { pointer-events: all; }

.drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: background var(--transition), backdrop-filter var(--transition);
}

.drawer--open .drawer__backdrop {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

.drawer__panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: var(--drawer-w);
    background: var(--bg-surface);
    border-left: 1px solid var(--gold-rule);
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 32px;
}

.drawer--open .drawer__panel { transform: translateX(0); }

.drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 64px;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.drawer__brand {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.04em;
}

.drawer__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 15px;
    transition: color var(--transition), border-color var(--transition);
}

.drawer__close:hover { color: var(--gold); border-color: var(--gold-rule); }

.drawer__section {
    padding: 20px 20px 4px;
    border-bottom: 1px solid var(--border-subtle);
}

.drawer__label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.drawer__section ul { display: flex; flex-direction: column; gap: 2px; }

.drawer__section li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.drawer__section li a i {
    width: 16px;
    font-size: 13px;
    color: var(--text-muted);
    transition: color var(--transition);
}

.drawer__section li a:hover {
    color: var(--text-primary);
    background: var(--bg-raised);
}

.drawer__section li a:hover i { color: var(--gold); }

.drawer__portal {
    padding: 20px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer__portal .btn-ghost,
.drawer__portal .btn-solid {
    justify-content: center;
    width: 100%;
}

/* ------------------------------------------
   MAIN
------------------------------------------ */
main {
    min-height: calc(100vh - var(--head-h));
}

/* ------------------------------------------
   FOOTER
------------------------------------------ */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--gold-rule);
    padding: 56px 24px 0;
}

.footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.footer-entity {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 13px;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.social-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.social-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 14px;
    transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}

.social-row a:hover {
    color: var(--gold);
    border-color: var(--gold-rule);
    background: var(--gold-dim);
    transform: translateY(-2px);
}

.footer-col__heading {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.footer-col ul { display: flex; flex-direction: column; gap: 4px; }

.footer-col li a {
    font-size: 13.5px;
    color: var(--text-secondary);
    padding: 3px 0;
    transition: color var(--transition);
    display: inline-block;
}

.footer-col li a:hover { color: var(--gold); }

.download-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-list li a i {
    width: 16px;
    font-size: 14px;
    color: var(--text-muted);
    transition: color var(--transition);
}

.download-list li a:hover i { color: var(--gold); }

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-faq {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-faq:hover { color: var(--gold); }

/* ------------------------------------------
   COOKIE BANNER
------------------------------------------ */
.cookie-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 8888;
    background: var(--bg-raised);
    border-top: 1px solid var(--gold-rule);
    padding: 14px 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

.cookie-bar.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.cookie-bar__inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cookie-bar__icon {
    font-size: 18px;
    color: var(--gold);
    flex-shrink: 0;
}

.cookie-bar__inner p {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-bar__inner p a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-bar__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ------------------------------------------
   GLOBAL MESSAGES
------------------------------------------ */
.global-messages {
    max-width: 1240px;
    margin: 16px auto;
    padding: 0 24px;
}

.global-messages .message {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    border-left: 3px solid;
    margin-bottom: 8px;
}

.global-messages .message.error {
    background: rgba(200, 50, 50, 0.12);
    border-color: #c83232;
    color: #f4a4a4;
}

.global-messages .message.success {
    background: rgba(50, 180, 100, 0.12);
    border-color: #32b464;
    color: #82e4a4;
}

.global-messages .message.info {
    background: var(--gold-dim);
    border-color: var(--gold);
    color: #dfc98a;
    cursor: pointer;
}

/* ------------------------------------------
   RESPONSIVE
------------------------------------------ */
@media (max-width: 1024px) {
    .site-head__nav { display: none; }
    .site-head__actions { display: none; }
    .hamburger { display: flex; margin-left: auto; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    :root { --head-h: 56px; }

    .site-head__inner { padding: 0 16px; }

    .logo-mark  { font-size: 22px; }
    .logo-wordmark { font-size: 18px; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 32px;
    }

    .footer-brand { grid-column: 1; }

    .site-footer { padding: 32px 16px 0; }

    .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

    .cookie-bar__inner { flex-wrap: wrap; }
    .cookie-bar__actions { width: 100%; }
    .cookie-bar__actions .btn-solid,
    .cookie-bar__actions .btn-ghost { flex: 1; justify-content: center; }

    main { padding: 0; }
}