/* ============================================================
   LaxLab — Shared Styles
   Common CSS for all public-facing pages
   Variables · Base · Nav · Footer
   ============================================================ */

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

:root {
    --bg-dark:    #0B0F1A;
    --bg-card:    #111827;
    --bg-card-2:  #1A2235;
    --bg-surface: #1F2937;
    --border:     #1E293B;
    --border-2:   #334155;
    --text:       #F9FAFB;
    --text-2:     #9CA3AF;
    --text-3:     #6B7280;
    --blue:       #3B82F6;
    --blue-light: #60A5FA;
    --blue-dark:  #1E40AF;
    --blue-glow:  rgba(59, 130, 246, 0.15);
    --green:      #10B981;
    --green-glow: rgba(16, 185, 129, 0.15);
    --amber:      #F59E0B;
    --amber-glow: rgba(245, 158, 11, 0.12);
    --red:        #EF4444;
    --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --font-mono:  'JetBrains Mono', 'SF Mono', monospace;
    --radius:     12px;
    --radius-lg:  20px;
    --max-w:      1200px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: clip;  /* clip instead of hidden — prevents mobile Safari from breaking position:sticky */
    -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue); }
img { max-width: 100%; display: block; }

/* Pages with fixed nav need body padding (not index.html) */
body.has-fixed-nav { padding-top: 64px; }

/* ==================== NAV ==================== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0 24px;
    background: rgba(11, 15, 26, 0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}
.nav__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav__logo {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 900;
    color: var(--text); letter-spacing: -0.5px;
    text-decoration: none;
}
.nav__logo span { color: var(--blue); }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__links a {
    color: var(--text-2); font-size: 0.9rem; font-weight: 500;
    text-decoration: none;
}
.nav__links a:hover { color: var(--text); text-decoration: none; }
.nav__cta {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--blue); color: #fff;
    padding: 8px 20px; border-radius: 8px;
    font-size: 0.875rem; font-weight: 600;
    border: none; cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.nav__cta:hover {
    background: var(--blue-light); color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Hamburger button — hidden on desktop */
.nav__hamburger {
    display: none;
    background: none; border: none; cursor: pointer;
    padding: 4px; color: var(--text-2);
}
.nav__hamburger svg { display: block; }
.nav__hamburger:hover { color: var(--text); }

/* Mobile overlay menu */
.nav__mobile {
    display: none;
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(11, 15, 26, 0.97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    z-index: 99;
    flex-direction: column;
    padding: 32px 24px;
    gap: 8px;
    overflow-y: auto;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
    color: var(--text-2);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}
.nav__mobile a:hover { color: var(--text); }
.nav__mobile .nav__cta {
    margin-top: 16px;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 1rem;
    border-bottom: none;
}

@media (max-width: 640px) {
    .nav__links { display: none; }
    .nav__hamburger { display: block; }
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 40px 24px;
    border-top: 1px solid var(--border);
}
.footer__inner {
    max-width: var(--max-w); margin: 0 auto;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 16px;
}
.footer__links {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
}
.footer__links a {
    font-size: 0.8rem; color: var(--text-3);
    text-decoration: none;
}
.footer__links a:hover { color: var(--text-2); text-decoration: none; }
.footer__brand {
    font-family: var(--font-display); font-weight: 800;
    font-size: 1.1rem;
}
.footer__brand span { color: var(--blue); }
.footer__copy { font-size: 0.8rem; color: var(--text-3); margin-top: -8px; }

