:root {
    --bg-color: #06040a;
    --card-bg: rgba(15, 12, 25, 0.8);
    --card-border: rgba(255, 255, 255, 0.08);
    --accent-color: #8c62ff;
    --accent-hover: #7c4dff;
    --accent-glow: rgba(124, 77, 255, 0.5);
    --text-main: #ffffff;
    --text-muted: #b0aec3;
    --text-dim: #8e8a9e;
    --success-color: #00e676;
    --success-glow: rgba(0, 230, 118, 0.3);
    --header-bg: rgba(6, 4, 10, 0.9);
    --max-width: 860px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    letter-spacing: -0.01em;
}

html, body { overflow-x: hidden; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.45;
}

.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, #4a148c 0%, rgba(74,20,140,0) 70%); top: -200px; left: -150px; }
.orb-2 { width: 700px; height: 700px; background: radial-gradient(circle, #1a237e 0%, rgba(26,35,126,0) 70%); top: 600px; right: -200px; }

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--card-border);
    z-index: 100;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover { transform: scale(1.05); }

.logo img {
    height: 40px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(124,77,255,0.5));
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover { color: var(--text-main); }

.header-cta {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.header-cta:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

.footer-links { margin: 14px 0; color: var(--text-dim); font-size: 13px; }
.footer-links a { color: #b388ff; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.article-wrap {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 120px 20px 60px 20px;
}

.breadcrumbs {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 30px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumbs a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover { color: #b388ff; }
.breadcrumbs span { color: var(--text-dim); }

.article-badge {
    background: rgba(124,77,255,0.08);
    border: 1px solid rgba(124,77,255,0.2);
    color: #b388ff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
}

h1 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.article-meta span { display: flex; align-items: center; gap: 6px; }

.lead {
    font-size: 19px;
    line-height: 1.6;
    color: #e0e0e0;
    font-weight: 400;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--card-border);
}

.article-body h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 45px 0 18px 0;
    color: #ffffff;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 35px 0 14px 0;
    color: #ffffff;
}

.article-body p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.article-body strong { color: #ffffff; font-weight: 600; }
.article-body a { color: var(--accent-color); text-decoration: none; border-bottom: 1px solid rgba(124,77,255,0.3); transition: all 0.2s ease; }
.article-body a:hover { color: #b388ff; border-bottom-color: #b388ff; }

.article-body ul, .article-body ol {
    margin: 0 0 25px 25px;
}

.article-body li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.article-body li strong { color: #ffffff; }

.stat-highlight {
    background: rgba(124,77,255,0.08);
    border: 1px solid rgba(124,77,255,0.2);
    border-radius: 16px;
    padding: 25px 30px;
    margin: 30px 0;
}

.stat-highlight h3 {
    color: #b388ff;
    margin-top: 0;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
}

.stat-box .num {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #b388ff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-box .label {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.source-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--card-border);
    border-left: 3px solid var(--accent-color);
    border-radius: 12px;
    padding: 20px 25px;
    margin: 30px 0;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.source-box strong { color: #b388ff; }

.quote-box {
    border-left: 3px solid var(--accent-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: white;
    font-size: 16px;
    line-height: 1.7;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 14px;
}

table.data-table th {
    background: rgba(124,77,255,0.1);
    color: #b388ff;
    padding: 14px 16px;
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}

table.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
}

table.data-table td strong { color: #ffffff; }

table.data-table tr:hover td { background: rgba(255,255,255,0.02); }

.cta-box {
    background: linear-gradient(135deg, rgba(33,18,77,0.3) 0%, rgba(18,14,30,0.7) 100%);
    border: 1px solid rgba(124,77,255,0.15);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    margin: 50px 0 30px 0;
}

.cta-box h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.cta-box p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #512da8 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(124,77,255,0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(124,77,255,0.5);
    background: linear-gradient(135deg, #8c62ff 0%, #5e35b1 100%);
}

.related-articles {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--card-border);
}

.related-articles h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.related-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 25px 22px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124,77,255,0.2);
    box-shadow: 0 12px 25px rgba(124,77,255,0.05);
}

.related-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.related-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

footer {
    border-top: 1px solid var(--card-border);
    padding: 40px 20px;
    text-align: center;
    background: rgba(8,5,14,0.95);
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-logo img {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1) opacity(0.8);
}

.footer-legal {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.modal.active { opacity: 1; pointer-events: auto; }

.modal-card {
    background: rgba(20,16,35,0.9);
    border: 1px solid var(--card-border);
    width: 90%;
    max-width: 450px;
    padding: 40px 30px;
    border-radius: 24px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.close-modal:hover { color: white; }

.form-group { margin-bottom: 20px; text-align: left; }

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.input-control {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--card-border);
    padding: 16px 20px;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.input-control:focus {
    border-color: var(--accent-color);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 15px rgba(124,77,255,0.15);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--success-color) 0%, #00b0ff 100%);
    border: none;
    color: var(--bg-color);
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 8px 25px var(--success-glow);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,230,118,0.5);
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    nav { display: none; }
    h1 { font-size: 26px; }
    .article-body h2 { font-size: 22px; }
    .stat-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .article-wrap { padding: 100px 15px 40px 15px; }
}
