/* ═══════════════════════════════════════════════════════
   MockupFlow — Shared Styles (canonical source: index.html)
   All pages link to this file for consistent nav, footer,
   background effects, and design tokens.
   ═══════════════════════════════════════════════════════ */

/* --- DESIGN TOKENS --- */
:root {
    --bg: #050505;
    --surface: #0F0F0F;
    --surface-hover: #1A1A1A;
    --border: #262626;
    --primary: #d0fb02;
    --primary-dim: rgba(208, 251, 2, 0.1);
    --primary-glow: rgba(208, 251, 2, 0.15);
    --accent: #4834D4;
    --danger: #FF5E57;
    --gold: #FFD700;
    --text-main: #FFFFFF;
    --text-muted: #A3A3A3;
    --font-body: 'Inter', sans-serif;
    --font-head: 'Space Grotesk', sans-serif;
    --font-code: 'Courier New', monospace;
}

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

/* --- BODY --- */
body {
    background-color: #050505;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    font-size: 18px;
    line-height: 1.7;
}

/* --- AURORA BACKGROUND --- */
.aurora-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -1;
    background: #050505; overflow: hidden;
}
.aurora-blob {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4;
    animation: float 10s infinite ease-in-out, pulseGlow 8s infinite alternate;
}
.blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: #1a1a2e; animation-delay: 0s; }
.blob-2 { bottom: -10%; right: -10%; width: 60vw; height: 60vw; background: #0f1c15; animation-delay: -5s; }
.blob-3 { top: 40%; left: 40%; width: 40vw; height: 40vw; background: rgba(208, 251, 2, 0.05); animation-delay: -2s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes pulseGlow {
    0% { opacity: 0.3; filter: blur(80px); }
    100% { opacity: 0.6; filter: blur(100px); }
}

/* --- DATA BEAMS --- */
.data-stream-layer {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none; overflow: hidden;
}
.data-beam {
    position: absolute; top: -200px; width: 1px; height: 200px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    opacity: 0; animation: dataFlow linear infinite;
}
@keyframes dataFlow {
    0% { transform: translateY(-200px); opacity: 0; }
    10% { opacity: 0.3; }
    80% { opacity: 0.3; }
    100% { transform: translateY(120vh); opacity: 0; }
}
.beam-1 { left: 15%; animation-duration: 4s; animation-delay: 0s; }
.beam-2 { left: 25%; animation-duration: 6s; animation-delay: 2s; height: 100px; }
.beam-3 { left: 45%; animation-duration: 3s; animation-delay: 1s; }
.beam-4 { left: 60%; animation-duration: 8s; animation-delay: 4s; height: 300px; }
.beam-5 { left: 75%; animation-duration: 5s; animation-delay: 2.5s; }
.beam-6 { left: 90%; animation-duration: 7s; animation-delay: 0.5s; }

.grid-pulse {
    position: absolute; width: 4px; height: 4px; background: var(--primary);
    border-radius: 50%; box-shadow: 0 0 10px var(--primary);
    animation: pulseDot 4s infinite; opacity: 0;
}
@keyframes pulseDot {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.6; transform: scale(1.5); }
    100% { opacity: 0; transform: scale(0.5); }
}

/* --- HORIZON GRID --- */
.horizon-grid {
    position: fixed; bottom: -30%; left: -50%; width: 200%; height: 100vh;
    background-image:
        linear-gradient(transparent 0%, var(--primary-dim) 2%, transparent 3%),
        linear-gradient(90deg, transparent 0%, var(--primary-dim) 2%, transparent 3%);
    background-size: 100px 100px;
    transform: perspective(500px) rotateX(60deg);
    opacity: 0.15; z-index: -2; pointer-events: none;
    animation: gridFly 20s linear infinite;
    -webkit-mask-image: linear-gradient(to top, black 0%, transparent 60%);
    mask-image: linear-gradient(to top, black 0%, transparent 60%);
}
@keyframes gridFly {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(100px); }
}
@keyframes moveGrid {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- UTILITIES --- */
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; position: relative; }
.text-primary { color: var(--primary); }
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; border-radius: 8px; font-weight: 600; text-decoration: none;
    transition: all 0.2s ease; cursor: pointer; border: none; font-family: var(--font-body); font-size: medium;
}
.btn-primary {
    background: var(--primary); color: #000; position: relative; overflow: hidden;
}
.btn-primary::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer { 0% { left: -100%; } 100% { left: 200%; } }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(208, 251, 2, 0.5); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: #fff; }
.btn-outline:hover { border-color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--primary); color: var(--primary); }

h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: 3.2rem; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 20px; color: #fff; }
p { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 30px; font-weight: 400; }
a { color: var(--primary); }

/* --- NAV --- */
nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    border-bottom: 1px solid transparent;
    background: transparent; backdrop-filter: none;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
nav.nav-scrolled {
    background: rgba(5, 5, 5, 0.8); backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
}
.nav-inner { height: 80px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: #fff; text-decoration: none; letter-spacing: -0.05em; display: flex; align-items: center; }
.logo img { margin-top: 4px; }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; cursor: pointer; padding: 8px 16px; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.mobile-menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 8px; order: -1; margin-right: 12px; }

/* --- NAV DROPDOWNS --- */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown > a::after {
    content: ''; width: 0; height: 0;
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 4px solid currentColor; transition: transform 0.2s;
}
.nav-dropdown-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    min-width: 200px; padding: 8px 0;
    background: rgba(15, 15, 15, 0.95); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: 12px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: all 0.2s ease; margin-top: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1; visibility: visible; pointer-events: auto; margin-top: 4px;
}
.nav-dropdown:hover > a::after { transform: rotate(180deg); }
.nav-dropdown-menu a {
    display: block; padding: 10px 20px; color: var(--text-muted);
    font-size: 0.85rem; text-decoration: none; transition: all 0.15s;
}
.nav-dropdown-menu a:hover { color: var(--primary); background: rgba(208, 251, 2, 0.05); }

@media (max-width: 1100px) {
    .nav-inner { position: relative; }
    .nav-links { display: none; }
    .mobile-menu-toggle { display: block; position: absolute; left: 24px; order: unset; margin-right: 0; }
    .logo { margin: 0 auto; }
    .nav-cta { position: absolute; right: 24px; }
    .nav-links.mobile-open {
        display: flex; flex-direction: column; position: absolute; top: 80px; left: 0; width: 100%;
        background: rgba(5, 5, 5, 0.98); backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border); padding: 20px; gap: 0;
    }
    .nav-dropdown-menu {
        position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
        margin-top: 0; background: transparent; border: none; box-shadow: none;
        padding: 0 0 0 16px;
    }
    .nav-dropdown > a::after { display: none; }
}

/* --- FOOTER --- */
#footer-system {
    background-color: transparent; border-top: none;
    padding: 80px 0 40px; font-size: 0.9rem; position: relative; z-index: 10;
}
.footer-main-grid { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; align-items: center; text-align: center; }
.footer-logo { font-size: 1.4rem; color: #fff; text-decoration: none; font-weight: 700; margin-bottom: 20px; display: block; font-family: var(--font-head); }
.footer-logo span { color: var(--primary); }
.footer-desc { color: #666; font-size: 0.85rem; line-height: 1.6; margin-bottom: 30px; max-width: 480px; text-align: center; }
.footer-col h4 { display: none; }
.footer-col.legal-row { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; justify-content: center; }
.footer-col.legal-row a { color: #888; text-decoration: none; font-size: 0.85rem; transition: all 0.2s; cursor: pointer; }
.footer-col.legal-row a:hover { color: var(--primary); }
.footer-col.legal-row .footer-sep { color: #333; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    color: #555; font-size: 0.7rem;
    padding: 30px 16px 0 0; margin-top: 30px; border-top: 1px solid #1a1a1a;
}
.scroll-to-top {
    background: #111; border: 1px solid #333; color: #999; width: 36px; height: 36px;
    border-radius: 4px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s ease; flex-shrink: 0; margin-right: 20px;
}
.scroll-to-top:hover { background: #1a1a1a; border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

@media (max-width: 768px) {
    .footer-main-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    h2 { font-size: 2.2rem; }
}

/* --- COOKIE CONSENT BANNER --- */
#cookie-consent {
    position: fixed !important; bottom: 0 !important; left: 0 !important;
    width: 100% !important; z-index: 9999 !important;
    background: rgba(10, 10, 10, 0.97) !important;
    backdrop-filter: blur(16px) !important;
    border-top: 1px solid #262626 !important;
    padding: 24px 0 !important; margin: 0 !important;
    transform: translateY(100%); transition: transform 0.4s ease;
}
#cookie-consent.visible { transform: translateY(0) !important; }
#cookie-consent .container {
    display: flex !important; align-items: center !important;
    justify-content: space-between !important; gap: 24px !important;
    max-width: 1400px !important; margin: 0 auto !important; padding: 0 24px !important;
}
#cookie-consent p {
    margin: 0 !important; padding: 0 !important;
    font-size: 0.88rem !important; color: #a3a3a3 !important;
    line-height: 1.5 !important; flex: 1 !important;
    font-family: 'Inter', sans-serif !important;
}
#cookie-consent p a {
    color: #d0fb02 !important; text-decoration: underline !important;
}
#cookie-consent .consent-buttons {
    display: flex !important; gap: 10px !important; flex-shrink: 0 !important;
}
#cookie-consent .consent-btn {
    padding: 10px 24px !important; border-radius: 8px !important;
    font-size: 0.85rem !important; font-weight: 600 !important;
    cursor: pointer !important; font-family: 'Inter', sans-serif !important;
    transition: all 0.2s ease !important; line-height: 1.4 !important;
    display: inline-flex !important; align-items: center !important;
    justify-content: center !important; text-decoration: none !important;
    width: auto !important; margin: 0 !important;
}
#cookie-consent .consent-accept {
    background: #d0fb02 !important; color: #000 !important;
    border: none !important;
}
#cookie-consent .consent-accept:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(208, 251, 2, 0.3) !important;
}
#cookie-consent .consent-decline {
    background: transparent !important;
    border: 1px solid #262626 !important;
    color: #a3a3a3 !important;
}
#cookie-consent .consent-decline:hover {
    border-color: #fff !important; color: #fff !important;
}

@media (max-width: 768px) {
    #cookie-consent .container {
        flex-direction: column !important; text-align: center !important;
    }
    #cookie-consent .consent-buttons {
        width: 100% !important; justify-content: center !important;
    }
}

/* --- PAGE CONTENT SPACING --- */
.page-content {
    padding-top: 120px;
    min-height: 60vh;
    position: relative;
    z-index: 1;
}
