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

:root {
    --bg: #faf9f7;
    --surface: #ffffff;
    --surface-2: #f3f2ef;
    --text: #1c1c1a;
    --text-2: #55544f;
    --muted: #98968e;
    --border: #e7e5e0;
    --accent: #a16207;
    --accent-soft: #faf3e3;
    --bar-ru: #4f7dc4;
    --bar-us: #c45f5f;
    --bar-eu: #d09b3c;
    --bar-asia: #8a6fc4;
}

[data-theme="dark"] {
    --bg: #161614;
    --surface: #1f1f1c;
    --surface-2: #282824;
    --text: #ecebe7;
    --text-2: #b5b3ab;
    --muted: #797770;
    --border: #33322e;
    --accent: #e3b341;
    --accent-soft: #2b2618;
    --bar-ru: #6d96d6;
    --bar-us: #d37f7f;
    --bar-eu: #ddb05e;
    --bar-asia: #a48fd6;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- header ---------- */

.top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.brand {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.3px;
    color: var(--text);
    text-decoration: none;
}

.brand .dot {
    color: var(--accent);
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-nav a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.controls {
    display: flex;
    gap: 0.5rem;
}

.ctrl-btn {
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ctrl-btn:hover {
    color: var(--text);
    border-color: var(--muted);
}

/* ---------- hero ---------- */

.hero {
    padding: 5.5rem 0 4.5rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero p {
    color: var(--text-2);
    font-size: 1.1rem;
    max-width: 34rem;
    margin: 0 auto 2.5rem;
}

.stores {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.3rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
}

.store-btn:hover {
    border-color: var(--muted);
    transform: translateY(-1px);
}

.store-btn i {
    font-size: 1.15rem;
    color: var(--text-2);
}

/* ---------- sections ---------- */

section {
    padding: 2.5rem 0;
}

.sec-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

/* ---------- stats ---------- */

.stats-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
}

.stats-head {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3da35d;
    display: inline-block;
    margin-right: 0.15rem;
    animation: pulse 2s infinite;
    align-self: center;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.total-num {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
}

.total-label {
    color: var(--text-2);
    font-size: 1rem;
}

.region-chips {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    color: var(--text-2);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.region-chips b {
    color: var(--text);
    font-weight: 700;
}

.chip-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    margin-right: 0.4rem;
    vertical-align: 1px;
}

.versions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.version-row {
    display: grid;
    grid-template-columns: 6.5rem 1fr 3.5rem;
    align-items: center;
    gap: 1rem;
}

.version-name {
    color: var(--text-2);
    font-size: 0.9rem;
    white-space: nowrap;
}

.version-bar {
    height: 10px;
    border-radius: 5px;
    background: var(--surface-2);
    overflow: hidden;
    display: flex;
}

.version-bar span {
    height: 100%;
}

.version-count {
    text-align: right;
    font-weight: 700;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

.stats-note {
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
    padding: 1rem 0 0;
}

/* ---------- create cards ---------- */

.totals {
    display: flex;
    gap: 2.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.totals-num {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
}

.totals-label {
    color: var(--text-2);
    font-size: 0.9rem;
    margin-left: 0.45rem;
}


.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
    display: block;
}

.card:hover {
    border-color: var(--muted);
    transform: translateY(-2px);
}

.card i {
    font-size: 1.3rem;
    color: var(--accent);
    background: var(--accent-soft);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.card-desc {
    color: var(--text-2);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ---------- community ---------- */

.links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.link-pill {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.link-pill:hover {
    color: var(--text);
    border-color: var(--muted);
}

.link-pill i {
    font-size: 1rem;
}

.pill-note {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--muted);
    border-left: 1px solid var(--border);
    padding-left: 0.55rem;
}

/* ---------- footer ---------- */

footer {
    border-top: 1px solid var(--border);
    margin-top: 3rem;
    padding: 2rem 0 3rem;
    color: var(--muted);
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

footer a {
    color: var(--muted);
}

#visitor-stats {
    font-variant-numeric: tabular-nums;
}

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

/* ---------- responsive ---------- */

@media (max-width: 760px) {
    .top-nav .nav-links {
        display: none;
    }

    .hero {
        padding: 3.5rem 0 3rem;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .stats-card {
        padding: 1.5rem;
    }

    .total-num {
        font-size: 2.4rem;
    }

    .version-row {
        grid-template-columns: 5.5rem 1fr 3rem;
    }
}

/* ===== Evertech hero art update ===== */
body {
    overflow-x: hidden;
}

.wrap {
    max-width: 1080px;
}

.hero {
    position: relative;
    padding: 5.6rem 0 3.8rem;
    text-align: initial;
}

.hero-with-art {
    min-height: 575px;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(410px, 1.1fr);
    align-items: center;
    gap: 1rem;
}

.hero-copy {
    position: relative;
    z-index: 3;
    text-align: left;
}

.hero h1 {
    font-size: clamp(2.7rem, 6vw, 4.15rem);
    letter-spacing: -2.6px;
    line-height: 1.05;
    margin-bottom: 1.1rem;
}

.hero p {
    max-width: 34rem;
    margin: 0 0 2.35rem;
}

.stores {
    justify-content: flex-start;
}

.store-btn {
    box-shadow: 0 10px 26px rgba(52, 43, 32, 0.035);
}

.hero-art {
    position: absolute;
    z-index: 1;
    right: -70px;
    top: 45px;
    width: min(835px, 64vw);
    height: 595px;
    pointer-events: none;
    overflow: visible;
}

.hero-art::before {
    content: "";
    position: absolute;
    inset: 15% 3% 5% 9%;
    border-radius: 999px;
    background:
        radial-gradient(circle at 64% 58%, rgba(161, 98, 7, 0.16), transparent 42%),
        linear-gradient(115deg, transparent 2%, rgba(217, 166, 84, 0.16) 45%, transparent 78%);
    filter: blur(44px);
    transform: rotate(-8deg);
    opacity: 0.8;
}

.hero-art::after {
    content: "";
    position: absolute;
    right: 8%;
    bottom: 6%;
    width: 68%;
    height: 27%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(80, 54, 28, 0.12), transparent 72%);
    filter: blur(34px);
    transform: rotate(-7deg);
    opacity: 0.75;
}

.hero-art img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center right;
    transform: rotate(-1.1deg);
    filter: drop-shadow(0 34px 46px rgba(33, 25, 18, 0.12));
}

[data-theme="dark"] .hero-art img {
    filter:
        drop-shadow(0 26px 36px rgba(0, 0, 0, 0.35))
        brightness(0.92);
}

[data-theme="dark"] .hero-art::before {
    opacity: 0.45;
}

[data-theme="dark"] .hero-art::after {
    opacity: 0.5;
}

@media (max-width: 760px) {
    .wrap {
        padding: 0 1.15rem;
    }

    .hero-with-art {
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 3.25rem 0 2.1rem;
    }

    .hero-copy {
        text-align: center;
    }

    .hero h1 {
        font-size: clamp(2.38rem, 12vw, 3.25rem);
        letter-spacing: -1.8px;
        line-height: 1.06;
        margin-bottom: 0.9rem;
    }

    .hero p {
        font-size: 1rem;
        max-width: 22rem;
        margin: 0 auto 1.5rem;
    }

    .stores {
        justify-content: center;
        gap: 0.55rem;
    }

    .store-btn {
        padding: 0.66rem 0.94rem;
        font-size: 0.88rem;
    }

    .hero-art {
        position: relative;
        right: auto;
        top: auto;
        order: 2;
        width: min(122vw, 540px);
        height: 285px;
        margin: 1rem 0 -1.3rem 50%;
        transform: translateX(-50%);
    }

    .hero-art::before {
        inset: 17% 5% 6% 5%;
        filter: blur(38px);
        opacity: 0.8;
    }

    .hero-art::after {
        right: 12%;
        bottom: 8%;
        width: 64%;
        height: 24%;
        filter: blur(30px);
    }

    .hero-art img {
        object-position: center;
        filter: drop-shadow(0 25px 36px rgba(33, 25, 18, 0.12));
    }
}
