/* CSS content (all pages) */

body.bodywebsite {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
}

.bodywebsite h1 {
    margin-top: 0;
    margin-bottom: 0;
}

/* -----------------------------------
   THEME VARIABLES
----------------------------------- */

:root {
    --bg: #070b16;
    --panel: #101827;
    --panel-soft: #162033;
    --text: #f8fafc;
    --muted: #94a3b8;
    --blue: #38bdf8;
    --purple: #a78bfa;
    --green: #34d399;
    --border: rgba(255,255,255,.1);
    --nav-bg: rgba(10,15,25,.72);
    --glass: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
    --shadow: 0 30px 80px rgba(0,0,0,.35);
}

:root[data-theme="dark"] {
    --bg: #070b16;
    --panel: #101827;
    --panel-soft: #162033;
    --text: #f8fafc;
    --muted: #94a3b8;
    --blue: #38bdf8;
    --purple: #a78bfa;
    --green: #34d399;
    --border: rgba(255,255,255,.1);
    --nav-bg: rgba(10,15,25,.72);
    --glass: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
    --shadow: 0 30px 80px rgba(0,0,0,.35);
}

:root[data-theme="light"] {
    --bg: #f3f7fb;
    --panel: #ffffff;
    --panel-soft: #e8eef5;
    --text: #0f172a;
    --muted: #475569;
    --blue: #0284c7;
    --purple: #7c3aed;
    --green: #059669;
    --border: rgba(15,23,42,.08);
    --nav-bg: rgba(255,255,255,.82);
    --glass: linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,255,255,.7));
    --shadow: 0 20px 60px rgba(15,23,42,.08);
}

/* -----------------------------------
   HEADER
----------------------------------- */

.hly-nav {
    position: sticky;
    top: 0;
    z-index: 999;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;

    padding: 22px 8%;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    background: var(--nav-bg);

    border-bottom: 1px solid var(--border);
}

.hly-brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.hly-logo {
    display: block;
    height: 44px;
    width: auto;
    max-width: 220px;
}

.hly-logo-light {
    display: block;
}

.hly-logo-dark {
    display: none;
}

:root[data-theme="light"] .hly-logo-light {
    display: none;
}

:root[data-theme="light"] .hly-logo-dark {
    display: block;
}

.hly-nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
}

.hly-nav-links a {
    color: var(--text) !important;
    text-decoration: none;
    font-weight: 700;
}

.hly-nav-links a:hover {
    color: var(--blue) !important;
}

.hly-nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle,
.hly-menu-toggle {
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.05);
    color: var(--text);
    padding: 0 20px;
    cursor: pointer;
    font-weight: 700;
}

.theme-toggle {
    min-width: 90px;
}

.hly-menu-toggle {
    display: none;
}

/* -----------------------------------
   SHARED ELEMENTS
----------------------------------- */

.hly-eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--blue);
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .16em;
}

.hly-actions {
    display: flex;
    gap: 16px;
    margin-top: 38px;
    flex-wrap: wrap;
}

.hly-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.hly-btn-primary {
    background: linear-gradient(90deg, var(--blue), var(--purple));
    color: #020617 !important;
}

.hly-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(56,189,248,.2);
}

.hly-btn-secondary {
    border: 1px solid var(--border);
    background: rgba(255,255,255,.04);
    color: var(--text) !important;
}

.hly-btn-secondary:hover {
    background: rgba(255,255,255,.08);
}

/* -----------------------------------
   MOBILE HEADER
----------------------------------- */

@media (max-width: 760px) {
    .hly-nav {
        grid-template-columns: 1fr auto;
        gap: 16px;
        padding: 18px 6%;
    }

    .hly-logo {
        height: 36px;
        max-width: 170px;
    }

    .hly-nav-controls {
        justify-self: end;
    }

    .theme-toggle {
        min-width: 72px;
        padding: 0 16px;
    }

    .hly-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 16px;
    }

    .hly-nav-links {
        display: none;
        grid-column: 1 / -1;

        margin-top: 10px;
        padding: 18px;

        border-radius: 24px;
        background: var(--panel);
        border: 1px solid var(--border);

        box-shadow: 0 20px 50px rgba(0,0,0,.25);
    }

    .hly-nav-links.is-open {
        display: grid;
        gap: 10px;
    }

    .hly-nav-links a {
        display: block;
        padding: 12px 14px;
        border-radius: 14px;
    }

    .hly-nav-links a:hover {
        background: var(--panel-soft);
    }
}
