/* ==================== SHARED LANDING STYLES ==================== */
/* Used by: blog.html, blog articles, and other landing pages */

:root {
    --white: #ffffff;
    --bg-soft: #f8fafc;
    --bg-secondary: #f8fafc;
    --text-dark: #0f172a;
    --text-primary: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --coral: #f97316;
    --coral-light: #fff7ed;
    --emerald: #10b981;
    --border: #e2e8f0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-dark);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-ghost {
    background: transparent;
    color: var(--text-body);
}

.btn-ghost:hover {
    background: var(--bg-soft);
}

.btn-primary {
    background: var(--text-dark);
    color: white;
}

.btn-primary:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-accent {
    background: var(--accent);
    color: white;
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--text-dark);
    background: var(--bg-soft);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: 10px;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 8rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f97316 100%);
    color: white;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-section p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.cta-section .btn {
    background: white;
    color: var(--accent);
}

.cta-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
}

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

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-dark);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==================== MOBILE ==================== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 199;
}
.mobile-overlay.open { display: block; }

.mobile-drawer {
    position: fixed;
    top: 0; right: 0;
    width: 260px;
    height: 100%;
    background: var(--white);
    z-index: 200;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: -4px 0 32px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}
.mobile-drawer.open { transform: translateX(0); }

.mobile-drawer .drawer-close {
    align-self: flex-end;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.75rem;
    padding: 0.25rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}
.mobile-drawer a {
    display: block;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}
.mobile-drawer a:last-of-type { border-bottom: none; }
.mobile-drawer .drawer-cta {
    margin-top: 1.5rem;
    display: block;
    text-align: center;
    background: var(--accent);
    color: #fff;
    border-radius: 10px;
    padding: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}
