/* ============================================
   LibertyLedger Shared Design System
   ============================================ */

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

:root {
    --navy: #0a1628;
    --gold: #c9a84c;
    --gold-light: #e8d48b;
    --cream: #faf6ed;
    --slate: #3a4a5c;
    --text: #1a2332;
    --text-muted: #5a6a7a;
    --green: #1a5c3a;
    --border: rgba(201, 168, 76, 0.15);
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--cream);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
}

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

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

/* NAV */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.25rem 2rem;
    background: rgba(250, 246, 237, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--navy);
    letter-spacing: -0.5px;
    text-decoration: none;
}

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links .btn-nav {
    background: var(--navy);
    color: #fff;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background 0.2s;
}

.nav-links .btn-nav:hover {
    background: var(--slate);
    color: #fff;
}

/* BUTTONS */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--navy);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--slate);
    color: #fff;
    transform: translateY(-1px);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
}

.btn-gold:hover {
    background: var(--gold-light);
    color: var(--navy);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: #fff;
}

.btn-sm {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
}

/* FOOTER */
footer {
    padding: 3rem 2rem;
    background: var(--navy);
    text-align: center;
}

footer .logo {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

footer p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

footer .footer-links {
    margin: 1rem 0;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

footer .footer-links a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

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

/* UTILITIES */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }

/* LOADING SPINNER */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }
    .nav-links { gap: 1rem; }
    .nav-links a:not(.btn-nav) { display: none; }
    .container { padding: 0 1.5rem; }
}
