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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #1a1a2e;
    background: #f8f9fa;
    line-height: 1.7;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.site-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.site-logo a {
    color: #1a1a2e;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo a::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 8px;
}

.site-nav {
    display: flex;
    gap: 8px;
    list-style: none;
}

.site-nav a {
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.site-nav a:hover {
    background: #f3f4f6;
    color: #1a1a2e;
    text-decoration: none;
}

/* Container */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero / Homepage */
.hero {
    padding: 80px 0 48px;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
}

.hero h1 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.15;
    letter-spacing: -1px;
    color: #1a1a2e;
}

.hero p {
    font-size: 18px;
    color: #6b7280;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Article cards */
.article-list {
    padding: 48px 0;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s, transform 0.2s;
}

.article-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.article-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.article-card h2 a {
    color: #1a1a2e;
    text-decoration: none;
}

.article-card h2 a:hover {
    color: #2563eb;
    text-decoration: none;
}

.article-card .meta {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 10px;
    font-weight: 500;
}

.article-card p {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
}

/* Single article / Blog post */
.article-single {
    padding: 48px 0 80px;
}

.article-single .container {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 48px 40px;
}

.article-single h1 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: #1a1a2e;
}

.article-single .meta {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f3f4f6;
    font-weight: 500;
}

.article-single p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #374151;
    line-height: 1.75;
}

.article-single h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 40px 0 16px;
    color: #1a1a2e;
}

.article-single ul, .article-single ol {
    margin: 0 0 20px 24px;
    font-size: 16px;
    color: #374151;
}

.article-single li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.article-single blockquote {
    border-left: 4px solid #2563eb;
    padding: 16px 24px;
    margin: 28px 0;
    background: #eff6ff;
    border-radius: 0 8px 8px 0;
    color: #1e40af;
    font-style: italic;
    font-size: 16px;
    line-height: 1.6;
}

/* Page content (terms, privacy, etc) */
.page-content {
    padding: 48px 0 80px;
}

.page-content .container {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 48px 40px;
}

.page-content h1 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.page-content h1 + p em {
    color: #9ca3af;
    font-size: 13px;
}

.page-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 36px 0 12px;
    color: #1a1a2e;
}

.page-content p {
    font-size: 15px;
    margin-bottom: 16px;
    color: #4b5563;
    line-height: 1.7;
}

.page-content ul {
    margin: 0 0 16px 24px;
    color: #4b5563;
}

.page-content li {
    margin-bottom: 6px;
    line-height: 1.6;
}

/* Footer */
.site-footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 32px 0;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    list-style: none;
    margin-bottom: 12px;
}

.footer-links a {
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #1a1a2e;
    text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: background 0.2s;
    color: #1a1a2e;
}

.nav-toggle:hover {
    background: #f3f4f6;
}

/* Mobile popup overlay (LP1 only) */
.mobile-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.mobile-popup-overlay.active {
    display: block;
}

.popup-top {
    width: 100%;
    height: 100%;
}

.popup-top img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
}

.popup-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
}

.popup-bottom a {
    display: block;
}

.popup-bottom img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        padding: 12px 20px;
        gap: 4px;
        z-index: 100;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }

    .site-nav.open {
        display: flex;
    }

    .site-header .container {
        position: relative;
    }

    .hero {
        padding: 48px 0 32px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .article-card {
        padding: 20px 20px;
    }

    .article-single .container {
        padding: 28px 20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .article-single h1 {
        font-size: 24px;
    }

    .page-content .container {
        padding: 28px 20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}
