/* ZOS Base Styles — shared across all Zero OS pages */
/* Mirrors dsm.promo design tokens + nav/footer pattern */

/* ===== SELF-HOSTED FONTS ===== */
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/source-sans-3-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/playfair-display-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/playfair-display-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/fonts/jetbrains-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

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

/* ===== CSS VARIABLES ===== */
:root {
    --navy: #0A1628;
    --gold: #C0B283;
    --gold-light: rgba(192,178,131,0.12);
    --gold-border: rgba(192,178,131,0.15);
    --text: #1A1A2E;
    --text-muted: #5A5A6E;
    --text-dim: #8A8A9E;
    --white: #FFFFFF;
    --glass-bg: #FFFFFF;
    --glass-border: rgba(10,22,40,0.06);
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --max-w: 1100px;
    --page-px: clamp(24px, 5vw, 80px);
}

/* ===== BASE ===== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--sans);
    background: #F8F7F4;
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== BACKGROUND GLOW ===== */
.bg-glow {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(192,178,131,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 70% at 0% 50%, rgba(192,178,131,0.03) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 100% 80%, rgba(192,178,131,0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.7s ease-out both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }

/* ===== NAVIGATION ===== */
nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(248,247,244,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-family: var(--sans);
    font-size: 1.15rem;
    font-weight: 700;
}

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

.nav-logo-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #003f8c, #bb5500);
    border-radius: 6px;
}

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

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

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-cta {
    color: var(--gold) !important;
    border: 1px solid rgba(192,178,131,0.3);
    padding: 0.45rem 1.25rem;
    border-radius: 6px;
    transition: all 0.3s !important;
}

.nav-cta:hover {
    background: rgba(192,178,131,0.1) !important;
    border-color: var(--gold) !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
}

#mobileMenu {
    display: none;
    background: rgba(248,247,244,0.95);
    border-top: 1px solid rgba(10,22,40,0.06);
    padding: 1rem 1.5rem 1.5rem;
}

#mobileMenu a {
    display: block;
    padding: 0.6rem 0;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
}

#mobileMenu a:hover { color: var(--text); }

#mobileMenu .mobile-cta {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    color: var(--gold);
    border: 1px solid rgba(192,178,131,0.3);
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
}

/* ===== FOOTER ===== */
footer {
    padding: 48px var(--page-px);
    background: #060D18;
    color: rgba(255,255,255,0.35);
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

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

.footer-brand .brand {
    display: inline-block;
    margin-bottom: 12px;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--white);
    text-decoration: none;
}

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

.footer-brand p {
    font-size: 0.88rem;
    margin-top: 0;
    color: rgba(255,255,255,0.35);
}

.footer-col h4,
.footer-heading {
    display: block;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: rgba(255,255,255,0.35);
    transition: color 0.3s;
}

.social-links a:hover { color: var(--white); }

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-copy {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== CONTENT AREA (trust pages) ===== */
.content {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    position: relative;
    z-index: 1;
}

.content h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.content .subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.content h2 {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 32px 0 12px;
}

.content p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.2em;
    line-height: 1.7;
}

.content ul,
.content ol {
    margin: 0 0 1.2em 20px;
    color: var(--text-muted);
    font-size: 1rem;
}

.content li { margin-bottom: 6px; }

.content a.inline {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(192,178,131,0.3);
}

.content a.inline:hover { border-bottom-color: var(--gold); }

#email-link {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(192,178,131,0.3);
    cursor: pointer;
}

/* ===== UTILITIES ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .content { padding: 40px 20px 60px; }
    .content h1 { font-size: 1.6rem; }
}
