/* Shared base styles for every PeculiarHabit page: tokens, reset, buttons,
   the fixed backdrop, the shared nav and footer, and the section header. */

:root {
    --bg: #0a0b14;
    --surface: #141622;
    --surface-raised: #1b1e2e;
    --border: #262a3d;
    --text: #e8eaf4;
    --text-muted: #9aa0b8;
    --indigo: #5b3fd6;
    --blue: #3b82f6;
    --cyan: #22d3ee;
    --brand-gradient: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
    --max-width: 1080px;
    --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--bg);
    background-image: url("/assets/images/hero-backdrop.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

a { color: var(--cyan); text-decoration: none; }

h1, h2, h3 { line-height: 1.15; margin: 0; }

.button {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover { transform: translateY(-2px); }

.button--primary {
    background: var(--brand-gradient);
    color: #06121e;
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.25);
}

.button--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.button--ghost:hover { border-color: var(--cyan); }

.site-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 22px 24px;
    width: 100%;
}

.site-nav__brand { display: flex; align-items: center; }

.site-nav__logo { display: block; height: 56px; width: auto; }

.site-nav__links { display: flex; align-items: center; gap: 26px; }

.site-nav__links a { color: var(--text); font-weight: 600; }

.site-nav__links a:hover { color: var(--cyan); }

.site-nav__links a.is-active { color: var(--cyan); }

.site-nav__cta {
    color: var(--text);
    font-weight: 700;
    padding: 9px 20px;
    border: 1px solid var(--border);
    border-radius: 999px;
}

.site-nav__cta:hover { border-color: var(--cyan); }

.site-nav__cta.is-active { border-color: var(--cyan); }

.site-nav__links a.site-nav__bonus {
    color: #fbbf24;
    font-weight: 700;
    white-space: nowrap;
}

.site-nav__links a.site-nav__bonus:hover { color: #fcd34d; }

.site-nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}

.site-nav__toggle span {
    display: block;
    height: 2px;
    width: 20px;
    margin: 0 auto;
    background: var(--text);
}

.section-head { max-width: var(--max-width); margin: 0 auto 36px; padding: 0 24px; text-align: center; }

.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }

.section-head p { color: var(--text-muted); font-size: 1.1rem; margin: 12px 0 0; }

.page-section { padding: 70px 0; }

.site-footer { border-top: 1px solid var(--border); padding: 40px 24px; }

.site-footer__inner { max-width: var(--max-width); margin: 0 auto; text-align: center; }

.site-footer__brand { display: inline-flex; align-items: center; }

.site-footer__brand img { display: block; height: 40px; width: auto; }

.site-footer__tag { color: var(--text-muted); margin: 12px 0; }

.site-footer__links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin: 16px 0; }

.site-footer__links a { color: var(--text); }

.site-footer__copy { color: var(--text-muted); font-size: 0.85rem; margin: 8px 0 0; }

@media (max-width: 760px) {
    .site-nav__toggle { display: flex; }

    .site-nav__links {
        display: none;
        position: absolute;
        top: 100%;
        right: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        background: var(--surface-raised);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 20px 24px;
        z-index: 20;
    }

    .site-nav__links.is-open { display: flex; }
}
