/* ============================================
   MIRC2PIXEL — SHARED THEME
   ============================================ */
:root {
    --pixel-green: #26c280;
    --pixel-blue: #2d7ff9;
    --pixel-purple: #7b61ff;
    --pixel-cyan: #00e5ff;
    --pixel-orange: #ff9f1c;
    --pixel-magenta: #ff006e;
    --pixel-yellow: #ffe66d;
    --dark-bg: #0a0e17;
    --dark-surface: #111827;
    --dark-card: #1a2236;
    --dark-border: #2a3a5c;
    --text-primary: #e8edf5;
    --text-secondary: #8892a8;
    --text-muted: #5a6478;
    --font-pixel: 'Press Start 2P', monospace;
    --font-mono: 'IBM Plex Mono', monospace;
    --font-sans: 'Inter', -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--pixel-green) var(--dark-bg);
}

body {
    font-family: var(--font-sans);
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

::selection {
    background: var(--pixel-green);
    color: var(--dark-bg);
}

a { color: var(--pixel-green); text-decoration: none; }
a:hover { color: var(--pixel-cyan); }

/* Background effects */
.pixel-grid-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(38, 194, 128, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(38, 194, 128, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
}

.scanlines {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent, transparent 2px,
        rgba(0, 0, 0, 0.08) 2px, rgba(0, 0, 0, 0.08) 4px
    );
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(38, 194, 128, 0.15);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 14, 23, 0.95);
    border-bottom-color: rgba(38, 194, 128, 0.3);
}

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 44px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::before {
    content: '>_';
    color: var(--pixel-green);
    opacity: 0;
    margin-right: 4px;
    transition: opacity 0.3s ease;
}

.nav-links a:hover { color: var(--pixel-green); }
.nav-links a:hover::before { opacity: 1; }

.nav-cta {
    font-family: var(--font-mono) !important;
    font-size: 0.75rem !important;
    padding: 10px 20px;
    background: var(--pixel-green);
    color: var(--dark-bg) !important;
    border: none;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    transition: all 0.3s ease;
}

.nav-cta::before { display: none !important; }
.nav-cta:hover { background: var(--pixel-cyan); color: var(--dark-bg) !important; transform: translateY(-1px); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--pixel-green);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   COMMON SECTION STYLES
   ============================================ */
section { position: relative; z-index: 2; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--pixel-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.section-tag::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--pixel-green);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--pixel-green);
    color: var(--dark-bg) !important;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--pixel-cyan);
    color: var(--dark-bg) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(38, 194, 128, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    color: var(--text-primary) !important;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    border: 1px solid var(--dark-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--pixel-green);
    color: var(--pixel-green) !important;
    transform: translateY(-2px);
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark-surface);
    border-top: 1px solid var(--dark-border);
    padding: 3rem 2rem;
    position: relative;
    z-index: 2;
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { height: 36px; width: auto; }

.footer-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--pixel-green); }

.footer-social { display: flex; gap: 1rem; }

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--dark-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.footer-social a:hover {
    border-color: var(--pixel-green);
    color: var(--pixel-green);
    background: rgba(38, 194, 128, 0.08);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy, .footer-made {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
}

.footer-made span { color: var(--pixel-green); }

.footer-legal {
    max-width: 1200px;
    margin: 1rem auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
}

.footer-legal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--dark-border);
    background: rgba(17, 24, 39, 0.7);
    transition: all 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.footer-legal-link::before {
    content: '>_';
    color: var(--pixel-green);
    font-size: 0.62rem;
}

.footer-legal-link:hover {
    color: var(--pixel-green);
    border-color: rgba(38, 194, 128, 0.45);
    background: rgba(38, 194, 128, 0.08);
}

.footer-legal-sep {
    color: var(--dark-border);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 72px; left: 0; right: 0; bottom: 0;
        background: rgba(10, 14, 23, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
    }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 1rem; }
    .nav-toggle { display: flex; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-legal { margin-top: 1.25rem; }
    .footer-legal-sep { display: none; }
}
