:root {
    color-scheme: dark;
    --bg-deeper: #040714;
    --bg-elevated: rgba(12, 19, 40, 0.92);
    --bg-card: rgba(16, 24, 48, 0.78);
    --bg-soft: rgba(69, 105, 220, 0.18);
    --stroke: rgba(120, 140, 200, 0.16);
    --accent-1: #5b8def;
    --accent-2: #61f0ff;
    --accent-amber: #fcb564;
    --alert-green: #34d399;
    --alert-red: #ef4444;
    --text-high: #f8fbff;
    --text-mid: #d2d9ff;
    --text-muted: #9da8d6;
    --max-width: min(1240px, 100% - 48px);
    font-family: "Manrope", "Inter", "Segoe UI", -apple-system, sans-serif;
    line-height: 1.65;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg-deeper);
    color: var(--text-mid);
    font-family: inherit;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: -10%;
    background:
        radial-gradient(circle at 5% 10%, rgba(96, 165, 250, 0.3), transparent 60%),
        radial-gradient(circle at 90% 15%, rgba(45, 212, 191, 0.25), transparent 60%),
        radial-gradient(circle at 25% 85%, rgba(251, 191, 36, 0.18), transparent 70%);
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(transparent 0, rgba(255, 255, 255, 0.04) 1px),
        linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.04) 1px);
    background-size: 160px 160px;
    opacity: 0.35;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--accent-2);
}

h1,
h2,
h3,
h4 {
    color: var(--text-high);
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    margin: 0;
    color: var(--text-mid);
}

header,
main,
footer {
    position: relative;
    z-index: 1;
}

.skip-link {
    position: absolute;
    left: -1000px;
    top: 12px;
    background: var(--accent-2);
    color: #021027;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    z-index: 1000;
}

.skip-link:focus {
    left: 12px;
}

.app-shell {
    width: var(--max-width);
    margin: 0 auto;
}

.hero {
    margin-top: 110px;
    padding: 72px 64px;
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(20, 32, 66, 0.92), rgba(8, 13, 27, 0.9));
    border: 1px solid var(--stroke);
    box-shadow: 0 40px 90px rgba(3, 7, 18, 0.55);
    display: grid;
    gap: 48px;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
}

.hero .actions {
    margin-top: 32px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(120deg, var(--accent-1), #7fa7ff);
    color: #050b1f;
    box-shadow: 0 16px 40px rgba(91, 141, 239, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(91, 141, 239, 0.4);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-high);
    background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-tertiary {
    border: 1px solid rgba(97, 240, 255, 0.35);
    color: var(--accent-2);
    background: rgba(97, 240, 255, 0.1);
}

nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: 74px;
    background: rgba(5, 9, 22, 0.68);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(97, 240, 255, 0.12);
    z-index: 50;
}

.nav-inner {
    width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-high);
}

.nav-links {
    display: flex;
    gap: 18px;
    margin: 0 0 0 auto;
    list-style: none;
    padding: 0;
}

.nav-links a {
    padding: 10px 18px;
    border-radius: 999px;
    color: var(--text-mid);
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-2);
}

.badge-live {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.18);
    color: var(--text-high);
    font-size: 0.85rem;
}

.grid {
    display: grid;
    gap: 24px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--stroke);
    padding: 24px 26px;
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.32);
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
}

.section-header p {
    max-width: 540px;
    color: var(--text-muted);
}

.ticker {
    display: flex;
    gap: 12px;
    overflow: hidden;
    white-space: nowrap;
    padding: 14px 0;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(20, 30, 60, 0.7);
    border: 1px solid rgba(120, 140, 200, 0.18);
    margin-right: 12px;
}

.ticker strong {
    color: var(--text-high);
}

.table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(120, 140, 200, 0.12);
}

.table thead {
    background: rgba(97, 240, 255, 0.08);
    color: var(--text-high);
    text-transform: uppercase;
    font-size: 0.82rem;
}

.table th,
.table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(120, 140, 200, 0.08);
}

.table tbody tr:hover {
    background: rgba(97, 240, 255, 0.06);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    color: #021624;
    background: var(--accent-2);
}

.pill.mmi {
    color: #021024;
    background: linear-gradient(120deg, #fef08a, #f97316);
}

.pill.status-green {
    background: var(--alert-green);
    color: #02251a;
}

.pill.status-red {
    background: var(--alert-red);
    color: #20070b;
}

.map-wrapper {
    position: relative;
    height: 520px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--stroke);
    box-shadow: 0 30px 60px rgba(3, 7, 18, 0.42);
}

#live-map {
    height: 100%;
    width: 100%;
}

.filter-panel {
    display: grid;
    gap: 16px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(12, 19, 40, 0.86);
    border: 1px solid var(--stroke);
}

.filter-panel label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-mid);
}

.filter-panel select,
.filter-panel input {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(120, 140, 200, 0.2);
    background: rgba(7, 12, 26, 0.8);
    color: var(--text-high);
    font-size: 0.95rem;
}

.filter-panel select:focus-visible,
.filter-panel input:focus-visible {
    outline: none;
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(97, 240, 255, 0.25);
}

.timeline {
    margin-top: 30px;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(120, 140, 200, 0.18);
    position: relative;
}

.timeline span {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, var(--accent-2), #8ff7ff);
}

.form {
    display: grid;
    gap: 24px;
}

.form fieldset {
    border: 1px solid rgba(120, 140, 200, 0.18);
    border-radius: 18px;
    padding: 18px 20px 22px;
}

.form legend {
    padding: 0 12px;
    font-weight: 600;
    color: var(--text-mid);
}

.form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-mid);
    font-size: 0.92rem;
}

.form input,
.form select,
.form textarea {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(120, 140, 200, 0.22);
    background: rgba(7, 12, 26, 0.85);
    color: var(--text-high);
    font-size: 0.96rem;
}

.form textarea {
    min-height: 120px;
    resize: vertical;
}

.form small {
    color: var(--text-muted);
}

.stats-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.stat-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(15, 24, 46, 0.85);
    border: 1px solid rgba(120, 140, 200, 0.16);
}

.stat-card span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-card strong {
    display: block;
    margin-top: 6px;
    font-size: 1.4rem;
    color: var(--text-high);
}

.education-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.education-card {
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--stroke);
    padding: 26px;
    position: relative;
    overflow: hidden;
}

.education-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(97, 240, 255, 0.28), transparent 60%);
    opacity: 0.35;
    pointer-events: none;
}

.education-card span {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    background: rgba(97, 240, 255, 0.18);
    border-radius: 16px;
    font-size: 1.3rem;
    color: var(--accent-2);
    margin-bottom: 18px;
}

.education-card p {
    color: var(--text-muted);
    margin-bottom: 18px;
}

.checklist {
    display: grid;
    gap: 18px;
}

.checklist-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    background: rgba(12, 19, 40, 0.84);
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(120, 140, 200, 0.16);
}

.checklist-item input {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-1);
}

.timeline-events {
    position: relative;
    padding-left: 36px;
}

.timeline-events::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 12px;
    width: 2px;
    background: linear-gradient(180deg, rgba(97, 240, 255, 0), rgba(97, 240, 255, 0.5), rgba(97, 240, 255, 0));
}

.timeline-card {
    position: relative;
    margin-bottom: 26px;
    padding: 18px 22px;
    border-radius: 18px;
    background: rgba(9, 15, 32, 0.82);
    border: 1px solid rgba(120, 140, 200, 0.18);
}

.timeline-card::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
    left: -29px;
    top: 20px;
}

.badge-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

footer {
    margin-top: 120px;
    padding: 48px 0 64px;
    background: rgba(5, 9, 22, 0.86);
    border-top: 1px solid rgba(120, 140, 200, 0.12);
}

.footer-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-grid small,
.footer-grid p {
    color: var(--text-muted);
}

.copyright {
    margin-top: 24px;
    text-align: center;
    color: rgba(200, 210, 245, 0.6);
    font-size: 0.85rem;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(97, 240, 255, 0.12);
    font-size: 0.85rem;
}

.lang-toggle button {
    border: none;
    background: transparent;
    color: var(--text-mid);
    cursor: pointer;
    font-weight: 600;
}

.lang-toggle button[aria-pressed="true"] {
    color: var(--text-high);
    text-decoration: underline;
}

.status-banner {
    margin-top: 24px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(120, 140, 200, 0.2);
    display: flex;
    gap: 16px;
    align-items: center;
}

.status-banner svg {
    flex-shrink: 0;
}

.skeleton {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(23, 34, 62, 0.7), rgba(15, 23, 42, 0.9));
    background-size: 300% 100%;
    animation: shimmer 1.8s ease-in-out infinite;
    border-radius: 16px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 1080px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 60px;
    }

    nav {
        height: auto;
        padding: 16px 0;
    }

    .nav-inner {
        flex-wrap: wrap;
        gap: 18px;
    }

    .nav-links {
        flex: 1 0 100%;
        flex-wrap: wrap;
        justify-content: space-between;
    }
}

@media (max-width: 780px) {
    :root {
        --max-width: min(100% - 28px, 700px);
    }

    .hero {
        padding: 48px 36px;
    }

    .section {
        padding: 72px 0;
    }

    .ticker {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 540px) {
    .hero {
        padding: 36px 24px;
    }

    .hero .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .map-wrapper {
        height: 420px;
    }

    .table thead {
        display: none;
    }

    .table tr {
        display: grid;
        padding: 14px 12px;
        border-bottom: 1px solid rgba(120, 140, 200, 0.12);
    }

    .table td {
        padding: 6px 0;
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }

    .table td::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-size: 0.82rem;
    }
}
