:root {
    --bg: #07131f;
    --bg-soft: #0c1b2b;
    --card: #10253a;
    --card-2: #132d45;
    --text: #eef6ff;
    --muted: #afc4d8;
    --accent: #17d0b3;
    --accent-2: #ffb84d;
    --accent-3: #5ab0ff;
    --border: rgba(255, 255, 255, .08);
    --shadow: 0 18px 40px rgba(0, 0, 0, .35);
    --radius: 22px;
    --max: 1180px;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    background: radial-gradient(circle at top right, rgba(90, 176, 255, .14), transparent 26%),
    radial-gradient(circle at top left, rgba(23, 208, 179, .16), transparent 30%),
    linear-gradient(180deg, #07131f 0%, #081624 30%, #091a2a 100%);
    color: var(--text);
    line-height: 1.6
}

a {
    color: var(--accent);
    text-decoration: none
}

a:hover {
    opacity: .9
}

img {
    max-width: 100%;
    display: block
}

.container {
    width: min(var(--max), calc(100% - 32px));
    margin: auto
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(14px);
    background: rgba(7, 19, 31, .72);
    border-bottom: 1px solid var(--border)
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 24px
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text)
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    position: relative;
    box-shadow: var(--shadow)
}

.brand-mark:before, .brand-mark:after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: #072033
}

.brand-mark:before {
    width: 18px;
    height: 18px;
    inset: 13px auto auto 13px
}

.brand-mark:after {
    width: 8px;
    height: 8px;
    inset: 18px auto auto 18px;
    background: linear-gradient(135deg, var(--accent-3), white)
}

.brand h1, .brand p {
    margin: 0
}

.brand h1 {
    font-size: 1.05rem;
    letter-spacing: .03em
}

.brand p {
    font-size: .78rem;
    color: var(--muted)
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center
}

.menu a {
    color: var(--text);
    font-weight: 600;
    font-size: .95rem
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent), #11a5d7);
    color: #062030;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 800;
    border: none;
    box-shadow: var(--shadow)
}

.btn.secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border)
}

.hero {
    padding: 72px 0 44px
}

.hero-grid {
    display: grid;
    grid-template-columns:1.2fr .8fr;
    gap: 28px;
    align-items: center
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, .03)
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent)
}

.hero h2 {
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    line-height: 1.06;
    margin: 18px 0 18px
}

.hero p {
    font-size: 1.06rem;
    color: var(--muted);
    max-width: 65ch
}

.hero-card, .panel, .card, .article-card, .legal-box, .contact-box {
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

.hero-card {
    padding: 26px;
    background: linear-gradient(180deg, rgba(23, 208, 179, .12), rgba(255, 255, 255, .03))
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px
}

.badge {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    font-weight: 700;
    color: #dff6f2
}

.section {
    padding: 26px 0 34px
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 20px
}

.section-head h3 {
    font-size: 1.8rem;
    margin: 0
}

.section-head p {
    margin: 0;
    color: var(--muted);
    max-width: 62ch
}

.cards {
    display: grid;
    gap: 22px
}

.cards.two {
    grid-template-columns:repeat(2, minmax(0, 1fr))
}

.rank-card {
    padding: 24px;
    display: grid;
    grid-template-columns:auto 1fr auto;
    gap: 20px;
    align-items: center
}

.rank-num {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent-2), #ffd98c);
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    font-weight: 900;
    color: #3f2a07
}

.brand-logo {
    width: 120px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #113754, #0b2236);
    display: grid;
    place-items: center;
    font-weight: 900;
    letter-spacing: .12em;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .08)
}

.rank-main h4 {
    margin: 0 0 8px;
    font-size: 1.35rem
}

.rank-main ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
    color: var(--muted)
}

.rank-main li {
    margin: 6px 0
}

.rank-side {
    text-align: right
}

.score {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-2);
    line-height: 1
}

.muted {
    color: var(--muted)
}

.grid-3 {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 20px
}

.article-card {
    overflow: hidden
}

.article-thumb {
    height: 190px;
    background: linear-gradient(135deg, rgba(90, 176, 255, .26), rgba(23, 208, 179, .20));
    position: relative
}

.article-thumb:before {
    content: "";
    position: absolute;
    inset: 22px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .12)
}

.article-body {
    padding: 22px
}

.article-body h4 {
    margin: 0 0 10px;
    font-size: 1.2rem
}

.article-body p {
    margin: 0 0 14px;
    color: var(--muted)
}

.panel {
    padding: 28px
}

.panel p:last-child {
    margin-bottom: 0
}

.legal-content, .page-content {
    display: grid;
    grid-template-columns:280px 1fr;
    gap: 24px
}

.sidebar {
    position: sticky;
    top: 92px;
    height: fit-content;
    padding: 20px
}

.sidebar a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text)
}

.legal-box, .contact-box {
    padding: 28px
}

.legal-box h2, .contact-box h2 {
    margin-top: 0
}

.legal-box h3 {
    margin-top: 28px
}

.footer {
    margin-top: 42px;
    padding: 28px 0 48px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, .14)
}

.footer-grid {
    display: grid;
    grid-template-columns:1.1fr .9fr;
    gap: 28px
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: center
}

.note {
    font-size: .95rem;
    color: var(--muted);
    padding: 14px 16px;
    border-left: 4px solid var(--accent-2);
    background: rgba(255, 255, 255, .03);
    border-radius: 14px
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px
}

.table-like {
    display: grid;
    gap: 14px
}

.info-pill {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    color: var(--muted);
    font-weight: 700
}

.sitemap-list {
    columns: 2;
    gap: 32px
}

.sitemap-list a {
    display: block;
    margin: 10px 0
}

.contact-list {
    display: grid;
    gap: 14px;
    margin: 20px 0
}

.contact-item {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border)
}

@media (max-width: 980px) {
    .hero-grid, .cards.two, .grid-3, .footer-grid, .legal-content, .page-content {
        grid-template-columns:1fr
    }

    .rank-card {
        grid-template-columns:1fr;
        align-items: start
    }

    .rank-side {
        text-align: left
    }

    .sidebar {
        position: static
    }
}

@media (max-width: 640px) {
    .menu {
        display: none
    }

    .hero {
        padding-top: 48px
    }

    .section-head h3 {
        font-size: 1.55rem
    }

    .article-thumb {
        height: 160px
    }

    .sitemap-list {
        columns: 1
    }
}
