/* ==========================================================================
   ZoneIQ Brand Design System
   Deep Navy + Slate + Gold/Amber — Professional, Authoritative
   Typography: DM Serif Display (headings) + Inter (body)
   ========================================================================== */

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

/* --- Design Tokens --- */
:root {
    /* Navy spectrum */
    --navy-950: #060a18;
    --navy-900: #0a1128;
    --navy-800: #101d3a;
    --navy-700: #172a4d;
    --navy-600: #1e3a5f;

    /* Slate spectrum */
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;

    /* Gold accent */
    --gold-600: #b8860b;
    --gold-500: #d4a535;
    --gold-400: #e8b94d;
    --gold-300: #f0cc6b;
    --gold-200: #f7e0a0;

    /* Semantic */
    --danger: #ef4444;
    --danger-muted: rgba(239, 68, 68, 0.12);
    --success: #22c55e;
    --success-muted: rgba(34, 197, 94, 0.12);
    --info: #3b82f6;

    /* Surfaces */
    --bg-primary: var(--navy-950);
    --bg-elevated: var(--navy-900);
    --bg-card: var(--navy-800);
    --bg-card-hover: var(--navy-700);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(212, 165, 53, 0.2);

    /* Text */
    --text-primary: var(--slate-100);
    --text-secondary: var(--slate-400);
    --text-muted: var(--slate-500);
    --text-accent: var(--gold-400);
}

/* --- Typography --- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    color: var(--text-primary);
    line-height: 1.15;
    font-weight: 400;
}

h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Navigation --- */
.ziq-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 40px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(6, 10, 24, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.3s;
}

.ziq-nav-scrolled {
    background: rgba(6, 10, 24, 0.96);
    border-bottom-color: var(--border-accent);
}

.ziq-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.ziq-logo-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Serif Display', serif;
    font-size: 18px;
    color: var(--navy-950);
    font-weight: 400;
    letter-spacing: -0.5px;
}

.ziq-logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

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

.ziq-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ziq-nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s;
}

.ziq-nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.ziq-nav-link.active {
    color: var(--gold-400);
}

.ziq-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    padding: 10px 22px;
    background: var(--gold-500);
    color: var(--navy-950);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
    letter-spacing: -0.2px;
}

.ziq-nav-cta:hover {
    background: var(--gold-400);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212, 165, 53, 0.3);
}

/* Mobile menu toggle */
.ziq-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-secondary);
}

.ziq-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Mobile nav */
.ziq-mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy-950);
    z-index: 99;
    padding: 24px;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.ziq-mobile-nav.open {
    display: flex;
}

.ziq-mobile-nav a {
    display: block;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.2s;
}

.ziq-mobile-nav a:hover,
.ziq-mobile-nav a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.ziq-mobile-cta {
    margin-top: 16px;
    display: block;
    text-align: center;
    padding: 14px 24px;
    background: var(--gold-500);
    color: var(--navy-950) !important;
    font-weight: 600;
    border-radius: 8px;
}

/* --- Section Utilities --- */
.ziq-section {
    padding: 120px 40px;
    position: relative;
}

.ziq-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.ziq-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gold-500);
    margin-bottom: 16px;
}

.ziq-section-title {
    font-size: clamp(32px, 4vw, 48px);
    max-width: 700px;
    margin-bottom: 24px;
}

/* --- Buttons --- */
.ziq-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: var(--gold-500);
    color: var(--navy-950);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s;
    letter-spacing: -0.2px;
}

.ziq-btn-primary:hover {
    background: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(212, 165, 53, 0.25);
}

.ziq-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s;
}

.ziq-btn-secondary:hover {
    border-color: var(--gold-500);
    color: var(--gold-400);
    background: rgba(212, 165, 53, 0.06);
}

/* --- Footer --- */
.ziq-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 80px 40px 40px;
    background: var(--navy-950);
}

.ziq-footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
}

.ziq-footer-brand {
    max-width: 320px;
}

.ziq-footer-brand .ziq-logo {
    margin-bottom: 16px;
}

.ziq-footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.ziq-footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.ziq-footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    padding: 5px 0;
    transition: color 0.2s;
}

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

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

.ziq-footer-copy {
    font-size: 13px;
    color: var(--slate-600);
}

.ziq-footer-legal {
    display: flex;
    gap: 24px;
}

.ziq-footer-legal a {
    font-size: 13px;
    color: var(--slate-600);
    transition: color 0.2s;
}

.ziq-footer-legal a:hover {
    color: var(--text-secondary);
}

/* --- Cards --- */
.ziq-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 32px;
    transition: all 0.3s;
}

.ziq-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .ziq-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .ziq-nav {
        padding: 0 20px;
    }

    .ziq-nav-links {
        display: none;
    }

    .ziq-nav-cta.desktop-only {
        display: none;
    }

    .ziq-menu-toggle {
        display: block;
    }

    .ziq-section {
        padding: 80px 20px;
    }

    .ziq-footer {
        padding: 60px 20px 32px;
    }

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

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