/* Population Plus One — Shared Site CSS
   Import this file from every page with the correct relative path.
   Page-specific styles go inline or in a local <style> block. */

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

:root {
    --bg:          #07071a;
    --surface:     #0f0f2e;
    --card:        #13133a;
    --border:      rgba(255,255,255,0.08);
    --gold:        #d4af37;
    --gold-dim:    rgba(212,175,55,0.15);
    --purple:      #7c3aed;
    --purple-dim:  rgba(124,58,237,0.15);
    --text:        rgba(255,255,255,0.88);
    --muted:       rgba(255,255,255,0.45);
    --radius:      16px;

    /* App accent palette */
    --cosmic:  #7c3aed;
    --stars:   #3b82f6;
    --wheels:  #f59e0b;
    --plusone: #06b6d4;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
}

/* ── NAV ── */
.site-nav {
    position: sticky; top: 0; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 40px; height: 64px;
    background: rgba(7,7,26,0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav-logo {
    font-size: 15px; font-weight: 700; color: var(--gold);
    letter-spacing: 0.5px; text-decoration: none; white-space: nowrap;
}
.nav-links {
    display: flex; gap: 28px; list-style: none; align-items: center;
}
.nav-links a {
    color: var(--muted); text-decoration: none;
    font-size: 13px; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
    background: var(--gold); color: #07071a !important;
    padding: 7px 16px; border-radius: 8px; font-weight: 700 !important;
    font-size: 12px !important; letter-spacing: 0.3px;
}
.nav-cta:hover { background: #e8c547 !important; opacity: 1 !important; }

/* ── BUTTONS ── */
.btn {
    display: inline-block; padding: 13px 26px; border-radius: 12px;
    font-size: 14px; font-weight: 700; text-decoration: none;
    transition: all 0.2s; letter-spacing: 0.3px; cursor: pointer; border: none;
    font-family: inherit;
}
.btn-primary { background: var(--gold); color: #07071a; }
.btn-primary:hover { background: #e8c547; transform: translateY(-1px); }
.btn-ghost {
    border: 1px solid rgba(255,255,255,0.2); color: var(--text);
    background: rgba(255,255,255,0.04);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.08); }
.btn-sm { padding: 9px 18px; font-size: 13px; border-radius: 9px; }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; }
.container-sm { max-width: 760px; margin: 0 auto; }
section { padding: 96px 24px; }
section.surface { background: var(--surface); }

/* ── SECTION HEADERS ── */
.section-label {
    font-size: 11px; font-weight: 700; letter-spacing: 4px;
    text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.section-title {
    font-size: clamp(26px, 4vw, 42px); font-weight: 800; color: #fff; margin-bottom: 16px;
}
.section-sub {
    font-size: 16px; color: var(--muted); line-height: 1.75;
}
.section-header-center { text-align: center; }
.section-header-center .section-sub { max-width: 540px; margin: 0 auto; }

/* ── CARDS ── */
.card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
}
.card-accent-top::before {
    content: ''; display: block; height: 2px; width: 100%;
    background: var(--accent, var(--gold)); margin-bottom: 24px;
    margin-left: -28px; width: calc(100% + 56px); margin-top: -28px; border-radius: var(--radius) var(--radius) 0 0;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
    padding: 72px 24px 64px; text-align: center;
    border-bottom: 1px solid var(--border);
}
.page-hero-icon { font-size: 48px; margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(28px, 5vw, 52px); font-weight: 800; color: #fff; margin-bottom: 14px; }
.page-hero .hero-sub { font-size: 16px; color: var(--muted); max-width: 560px; margin: 0 auto; line-height: 1.75; }
.page-eyebrow {
    font-size: 11px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase;
    color: var(--gold); margin-bottom: 14px; display: block;
}

/* ── APP BADGES (accent colors) ── */
.badge {
    display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; padding: 3px 10px; border-radius: 20px;
    background: var(--gold-dim); color: var(--gold);
}
.badge-cosmic  { background: rgba(124,58,237,0.15); color: #a78bfa; }
.badge-stars   { background: rgba(59,130,246,0.15); color: #60a5fa; }
.badge-wheels  { background: rgba(245,158,11,0.15); color: #fbbf24; }
.badge-plusone { background: rgba(6,182,212,0.15); color: #22d3ee; }

/* ── DIVIDERS ── */
.divider { height: 1px; background: var(--border); margin: 0; border: none; }

/* ── FOOTER ── */
.site-footer {
    border-top: 1px solid var(--border); padding: 48px 24px 32px;
    color: var(--muted); font-size: 13px;
}
.footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: start;
}
.footer-brand { margin-bottom: 16px; }
.footer-brand-name { font-size: 15px; font-weight: 700; color: var(--gold); margin-bottom: 6px; }
.footer-brand-desc { font-size: 12px; color: var(--muted); line-height: 1.6; max-width: 320px; }
.footer-cols { display: flex; gap: 56px; }
.footer-col-title { font-size: 11px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: var(--muted); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--text); }
.footer-bottom {
    max-width: 1100px; margin: 32px auto 0; padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted);
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .site-nav { padding: 0 20px; }
    .nav-links { display: none; }
    section { padding: 64px 20px; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-cols { flex-direction: column; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .page-hero { padding: 48px 20px 40px; }
}
