:root {
    --chimera-dark: #0e0f14;
    --chimera-panel: #171a24;
    --chimera-accent: #d4a24c;
    --chimera-accent-soft: rgba(212, 162, 76, 0.25);
    --chimera-light: #f5f4f0;
    --chimera-muted: #9a9aa4;
    --chimera-body-text: #d8d6dd;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--chimera-light);
    color: var(--chimera-dark);
}

/* Branded background — the CHIMERA artwork, dimmed and fixed, behind every inner page */
body.branded {
    min-height: 100vh;
    color: #fff;
    background:
        linear-gradient(rgba(10,11,15,0.90), rgba(10,11,15,0.94)),
        url('/assets/img/hero-chimera.png');
    background-size: cover;
    background-position: center 20%;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    body.branded { background-attachment: scroll; }
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    background: var(--chimera-dark);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
}

body.branded .site-header {
    background: rgba(14, 15, 20, 0.7);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(212, 162, 76, 0.15);
}

.site-header .logo {
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    color: #fff;
    text-decoration: none;
}

.site-header nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.9rem;
}

/* Overlay header sits transparently on top of the hero image, on the homepage only */
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
}

.btn-primary {
    background: var(--chimera-accent);
    color: var(--chimera-dark) !important;
    padding: 0.6rem 1.4rem;
    border-radius: 3px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.02em;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 162, 76, 0.35);
}

.btn-large { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* ---- Full-bleed hero (homepage only) ---- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 560px;
    max-height: 980px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: var(--chimera-dark);
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
    animation: heroReveal 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,12,0.92) 0%, rgba(10,10,12,0.25) 35%, transparent 60%);
}

.hero-cta {
    position: relative;
    z-index: 2;
    margin-bottom: 8vh;
    animation: fadeUp 1s ease-out 0.5s both;
}

.scroll-cue {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 22px;
    height: 36px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    animation: fadeUp 1s ease-out 1s both;
}

.scroll-cue span {
    display: block;
    width: 4px;
    height: 8px;
    background: var(--chimera-accent);
    border-radius: 2px;
    margin: 6px auto 0;
    animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes heroReveal {
    from { opacity: 0; transform: scale(1.06); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollDot {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-image, .hero-cta, .scroll-cue, .scroll-cue span {
        animation: none !important;
    }
}

.landing {
    background: var(--chimera-dark);
    color: #fff;
}

.mission {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: 5rem 1.5rem 6rem;
}

.mission h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    color: var(--chimera-accent);
}

.mission-lede {
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    color: #e8e4da;
    margin-bottom: 1.5rem;
}

.mission-body {
    color: #b7b6bd;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* ---- Glass-panel cards used on every branded inner page ---- */
.auth-container {
    max-width: 420px;
    margin: 4rem auto;
    padding: 2.25rem;
    background: rgba(23, 26, 36, 0.78);
    backdrop-filter: blur(10px);
    border: 1px solid var(--chimera-accent-soft);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
    color: #fff;
}

.auth-container h1 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--chimera-accent);
    font-size: 1.6rem;
}

.auth-container p { color: var(--chimera-body-text); }

.auth-container form label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #e8e4da;
    font-size: 0.9rem;
}

.auth-container input {
    display: block;
    width: 100%;
    padding: 0.65rem 0.75rem;
    margin-top: 0.4rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 4px;
    color: #fff;
    font-size: 0.95rem;
}

.auth-container input:focus {
    outline: none;
    border-color: var(--chimera-accent);
    box-shadow: 0 0 0 3px rgba(212,162,76,0.2);
}

.auth-container button {
    width: 100%;
    padding: 0.75rem;
    background: var(--chimera-accent);
    color: var(--chimera-dark);
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-container button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 162, 76, 0.3);
}

.auth-container a { color: var(--chimera-accent); }

.alert {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-error { background: rgba(253, 226, 226, 0.15); color: #f6a9a9; border: 1px solid rgba(246,169,169,0.3); }
.alert-info { background: rgba(212, 162, 76, 0.12); color: #e9c987; border: 1px solid var(--chimera-accent-soft); }

.dashboard { max-width: 960px; margin: 0 auto; padding: 3rem 1.5rem; }

.dashboard h1 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--chimera-accent);
}

.dashboard > p { color: var(--chimera-body-text); }

.sector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.sector-card {
    display: block;
    padding: 1.5rem;
    background: rgba(23, 26, 36, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.sector-card:hover {
    border-color: var(--chimera-accent-soft);
    transform: translateY(-2px);
}

.sector-card h2 { margin-top: 0; font-size: 1.1rem; color: var(--chimera-accent); }
.sector-card p { color: var(--chimera-muted); font-size: 0.9rem; }

.community-links {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.community-links h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    color: var(--chimera-accent);
}

.community-links a { color: #fff; }

.legal-page {
    max-width: 720px;
}

.legal-updated {
    color: var(--chimera-muted);
    font-size: 0.85rem;
    margin-top: -0.5rem;
}

.legal-page section {
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    color: var(--chimera-accent);
    margin-bottom: 0.5rem;
}

.legal-page p {
    color: var(--chimera-body-text);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.legal-page a { color: var(--chimera-accent); }

.legal-note {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-top: 1rem;
}

.legal-note a { color: rgba(255,255,255,0.7); }
