/* =============================================================================
   shared.css — PGFlare common styles
   Included by all pages before page-specific inline <style> blocks.
   Page-specific <style> rules override these where needed.
============================================================================= */

/* ── CSS VARIABLES ─────────────────────────────────────────────────────────── */
:root {
    --bg: #05080f;
    --bg2: #080d18;
    --surface: #0d1526;
    --border: rgba(255, 255, 255, 0.07);
    --accent: #00e5ff;
    /* brand cyan */
    --accent2: #c63800;
    /* dark orange-red */
    --accent3: #7c4dff;
    /* purple */
    --text: #e8edf5;
    /* near-white */
    --muted: #6b7a99;
    /* muted blue-grey */
    --green: #00ff88;
    /* bright green */
}

/* ── RESET ──────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── BASE ───────────────────────────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
    font-size: 17px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Subtle dot-grid overlay — very faint on light backgrounds */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Ensure anchor link targets clear the sticky/fixed nav */
[id] {
    scroll-margin-top: 88px;
}

/* Global link styles */
a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ── NAVIGATION ─────────────────────────────────────────────────────────────── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px;
    background: rgba(5, 8, 15, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
    color: var(--text);
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 16px;
    color: var(--muted);
    font-weight: 400;
    transition: color 0.2s;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--text);
    text-decoration: none;
}

.nav-cta {
    padding: 8px 20px;
    background: var(--accent);
    color: #000 !important;
    border-radius: 6px;
    font-weight: 500 !important;
    font-size: 16px;
}

.nav-cta:hover {
    opacity: 0.9;
    text-decoration: none !important;
}

/* ── UTILITY ────────────────────────────────────────────────────────────────── */
.section-label {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* ── FOOTER ─────────────────────────────────────────────────────────────────── */

/* Multi-column footer (index, pricing, about) */
footer {
    border-top: 1px solid var(--border);
    padding: 64px 48px 36px;
    display: block;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 52px;
}

.footer-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: var(--text);
}

.footer-logo span {
    color: var(--accent);
}

.footer-brand-desc {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
    margin-top: 14px;
    max-width: 260px;
}

.footer-col h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-col ul a,
.footer-col ul li a {
    font-size: 15px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul a:hover,
.footer-col ul li a:hover {
    color: var(--text);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    font-family: 'DM Mono', monospace;
    font-size: 14px;
    color: var(--muted);
}

.footer-legal-note {
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    color: var(--muted);
    opacity: 0.65;
    max-width: 540px;
    line-height: 1.6;
}

/* Simple inline footer (terms.html) */
.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 13px;
    color: var(--muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
    text-decoration: none;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .footer-top {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 900px) {
    nav {
        padding: 16px 24px;
    }

    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    footer {
        padding: 40px 24px 24px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
}

/* ── WIDESCREEN (1440px+) ───────────────────────────────────────────────── */
/* Expand shared containers so the layout breathes on 16:9 / 4K screens     */
@media (min-width: 1440px) {
    nav {
        padding: 20px 80px;
    }

    .footer-inner {
        max-width: 1440px;
    }
}

@media (min-width: 1800px) {
    nav {
        padding: 20px 120px;
    }

    .footer-inner {
        max-width: 1600px;
    }
}

/* ── MOBILE NAVIGATION ──────────────────────────────────────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200;
    flex-shrink: 0;
}

.nav-hamburger span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 15, 0.97);
    z-index: 90;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: color 0.2s;
}

.mobile-nav a:hover {
    color: var(--accent);
    text-decoration: none;
}

.mobile-nav .mobile-cta {
    background: var(--accent);
    color: #000 !important;
    padding: 14px 44px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 24px;
}

/* ── COOKIE CONSENT BANNER ───────────────────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(13, 21, 38, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cookie-banner p {
    flex: 1;
    min-width: 220px;
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

.cookie-banner p a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-banner-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-accept,
.cookie-decline {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: opacity 0.2s;
}

.cookie-accept:hover,
.cookie-decline:hover {
    opacity: 0.85;
}

.cookie-accept {
    background: var(--accent);
    color: #000;
}

.cookie-decline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text);
}

.cookie-banner.hidden {
    display: none;
}