html { scroll-behavior: smooth; }
html, body {
    overflow-x: hidden;
    max-width: 100%;
}
body {
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.font-display { font-family: 'Plus Jakarta Sans', sans-serif; letter-spacing: -0.02em; }

.site-content {
    flex: 1 0 auto;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.hero-gradient {
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(45,127,232,0.25), transparent 60%),
        radial-gradient(800px 500px at 0% 100%, rgba(13,77,150,0.25), transparent 60%),
        linear-gradient(135deg, #072A5E 0%, #0D4D96 60%, #072A5E 100%);
}
.mesh-bg {
    background:
        radial-gradient(800px 400px at 10% 0%, rgba(45,127,232,0.08), transparent 60%),
        radial-gradient(600px 400px at 100% 100%, rgba(13,77,150,0.08), transparent 60%),
        #ffffff;
}
.grid-pattern {
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.btn-primary {
    background: linear-gradient(135deg, #2D7FE8 0%, #0D4D96 100%);
    box-shadow: 0 10px 30px -10px rgba(13,77,150,0.5);
    transition: all .3s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -10px rgba(13,77,150,0.6); }
.btn-ghost {
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    transition: all .3s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

.card {
    background: #fff;
    border: 1px solid #ECECEC;
    border-radius: 20px;
    transition: all .4s cubic-bezier(.2,.8,.2,1);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -20px rgba(7,42,94,0.18);
    border-color: #2D7FE8;
}

.reveal { opacity: 0; transform: translateY(30px); transition: all .8s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track { animation: marquee 30s linear infinite; }

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}
.pulse-dot::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: 50%;
    background: #2D7FE8;
    animation: pulse-ring 2s cubic-bezier(.2,.8,.2,1) infinite;
}

.timeline-step { position: relative; }
.timeline-step::after {
    content: '';
    position: absolute;
    top: 28px; left: 56px; right: -100%;
    height: 2px;
    background: linear-gradient(90deg, #2D7FE8, rgba(45,127,232,0.1));
    z-index: 0;
}
.timeline-step:last-child::after { display: none; }

details[open] summary .chev { transform: rotate(180deg); }
details summary::-webkit-details-marker { display: none; }
details .content { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
details[open] .content { max-height: 500px; }

.nav-link { position: relative; }
.nav-link::after {
content: ''; position: absolute; left: 0; bottom: -4px;
width: 0; height: 2px; background: #2D7FE8; transition: width .3s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.page { display: none; }
.page.active { display: block; animation: fadeIn .5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.mobile-menu { transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.mobile-menu.open { transform: translateX(0); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: #0D4D96; border-radius: 10px; }

.country-card { transition: all .3s; }
.country-card:hover { transform: translateY(-4px); border-color: #2D7FE8; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
.float { animation: float 6s ease-in-out infinite; }

.gradient-text {
    background: linear-gradient(135deg, #2D7FE8 0%, #0D4D96 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.icon-box {
    width: 64px; height: 64px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(45,127,232,0.12), rgba(13,77,150,0.12));
    color: #0D4D96;
    transition: all .3s;
}
.card:hover .icon-box {
    background: linear-gradient(135deg, #2D7FE8, #0D4D96);
    color: #fff;
    transform: scale(1.05) rotate(-3deg);
}

.stat-number { font-variant-numeric: tabular-nums; }

.logo-mark {
    background: linear-gradient(135deg, #2D7FE8 0%, #072A5E 100%);
}

body.menu-open { overflow: hidden; }

/* ============ ARTICLE STYLES ============ */
.article-progress {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    z-index: 40;
    pointer-events: none;
}
.article-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2D7FE8, #0D4D96);
    transition: width .1s ease;
}

.article-content {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #333;
}
.article-content p {
    margin-bottom: 1.5rem;
}
.article-content h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: #072A5E;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.article-content h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #0D4D96;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.article-content li {
    margin-bottom: 0.5rem;
    position: relative;
}
.article-content ul li::marker {
    color: #2D7FE8;
}
.article-content blockquote {
    border-left: 4px solid #2D7FE8;
    background: linear-gradient(135deg, rgba(45,127,232,0.06), rgba(13,77,150,0.04));
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #072A5E;
    font-size: 1.125rem;
}
.article-content strong {
    color: #072A5E;
    font-weight: 600;
}
.article-content a {
    color: #2D7FE8;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.article-content a:hover {
    color: #0D4D96;
}

.toc-item {
    display: block;
    padding: 0.5rem 0.875rem;
    border-left: 2px solid transparent;
    color: #7A7A7A;
    font-size: 0.875rem;
    transition: all .2s;
    border-radius: 0 8px 8px 0;
}
.toc-item:hover {
    color: #0D4D96;
    border-left-color: #2D7FE8;
    background: rgba(45,127,232,0.05);
}
.toc-item.active {
    color: #0D4D96;
    border-left-color: #2D7FE8;
    background: rgba(45,127,232,0.08);
    font-weight: 600;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
    border: 1px solid #ECECEC;
    color: #0D4D96;
}
.share-btn:hover {
    background: #0D4D96;
    color: #fff;
    border-color: #0D4D96;
    transform: translateY(-2px);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2D7FE8, #072A5E);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
}

@media (max-width: 1024px) {
    .toc-sidebar { display: none; }
}
