/* Shared styles - design tokens, resets, nav, footer, buttons, mobile menu */

:root {
    --navy-deep: #0B1628;
    --navy-mid: #132040;
    --blue-primary: #2563EB;
    --blue-light: #3B82F6;
    --blue-pale: #DBEAFE;
    --blue-wash: #EFF6FF;
    --emerald: #10B981;
    --emerald-light: #D1FAE5;
    --amber: #F59E0B;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --surface: #FFFFFF;
    --surface-alt: #F8FAFC;
    --border: #E2E8F0;
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    background: rgba(11, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

nav.scrolled {
    background: rgba(11, 22, 40, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.8rem;
}

.logo-img {
    height: 50px;
    width: 50px;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.logo:hover .logo-img { transform: scale(1.05); }
.logo:hover .logo-text { color: white; }

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    align-items: center;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    transition: all 0.25s ease;
    letter-spacing: -0.01em;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.nav-links a.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

/* Buttons */
.cta-button {
    background: var(--emerald);
    color: white;
    padding: 0.65rem 1.6rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-block;
    letter-spacing: -0.01em;
}

.cta-button:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.primary-button {
    background: var(--emerald);
    color: white;
    padding: 1.1rem 2.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: inline-block;
    letter-spacing: -0.01em;
}

.primary-button:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.35);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.1rem 2.8rem;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: inline-block;
    letter-spacing: -0.01em;
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Section badges */
.section-badge {
    display: inline-block;
    background: var(--emerald-light);
    color: #065F46;
    padding: 0.4rem 1.2rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
    letter-spacing: 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Tag pills */
.tag-pill {
    background: rgba(16, 185, 129, 0.15);
    color: #6EE7B7;
    padding: 0.3rem 1rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
}

.tag-pill-sm {
    background: var(--emerald-light);
    color: #065F46;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 500;
}

/* Footer */
footer {
    background: #060A12;
    color: white;
    padding: 80px 3rem 40px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), rgba(16, 185, 129, 0.3), transparent);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section h3 {
    font-family: var(--font-display);
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer-logo {
    height: 65px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-section p,
.footer-section a {
    color: #64748B;
    text-decoration: none;
    line-height: 2;
    display: block;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-section a:hover { color: var(--emerald); }

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #475569;
    font-size: 0.9rem;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle:hover .hamburger-line {
    background: white;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Shared responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; }
    .desktop-cta { display: none; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 350px;
        background: var(--navy-deep);
        flex-direction: column;
        padding: 100px 2rem 2rem;
        gap: 0;
        box-shadow: -5px 0 25px rgba(0,0,0,0.3);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
        border: none;
        border-radius: 0;
    }

    .nav-links.active { right: 0; }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-links li:last-child { border-bottom: none; }

    .nav-links a {
        display: block;
        padding: 1.2rem 0;
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.75);
    }

    .nav-links a:hover {
        color: white;
        background: rgba(255, 255, 255, 0.06);
    }

    .nav-links a::after { display: none; }

    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    body.menu-open { overflow: hidden; }

    .section-title { font-size: 2.2rem; }
    .section-subtitle { font-size: 1.05rem; }
}
