:root {
    --bg: #020204;
    --bg-elevated: #06080f;
    --bg-card: rgba(6, 10, 18, 0.72);
    --border: rgba(0, 200, 255, 0.16);
    --border-bright: rgba(0, 240, 255, 0.45);
    --text: #eef8ff;
    --muted: #6b8499;
    --laser: #00f0ff;
    --laser-soft: #4de8ff;
    --laser-dim: #0088bb;
    --glow: rgba(0, 240, 255, 0.45);
    --glow-soft: rgba(0, 200, 255, 0.12);
    --max: 1120px;
    --radius: 16px;
    --radius-sm: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Kanit", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--laser-soft); text-decoration: none; }
a:hover { color: var(--laser); }

/* Ambient background */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -3;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 20%, transparent 75%);
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -2;
    pointer-events: none;
}

.bg-glow-1 {
    width: 520px;
    height: 520px;
    top: -180px;
    left: -120px;
    background: rgba(0, 180, 255, 0.18);
}

.bg-glow-2 {
    width: 420px;
    height: 420px;
    top: 40%;
    right: -140px;
    background: rgba(0, 120, 255, 0.1);
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(2, 2, 4, 0.82);
    backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(0, 240, 255, 0.08);
}

.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    max-width: var(--max);
    margin: 0 auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
}

.brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px var(--glow), 0 0 0 1px rgba(0, 240, 255, 0.25);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 4px;
    align-items: center;
}

.nav a:not(.btn) {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.nav a:not(.btn):hover {
    color: var(--laser);
    background: var(--glow-soft);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.08);
}

.lang-switch {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
}

.lang-btn {
    padding: 7px 13px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:hover { color: var(--laser); }

.lang-btn.active {
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.2), rgba(0, 240, 255, 0.06));
    color: var(--laser);
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.1);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: linear-gradient(135deg, #0099cc 0%, var(--laser) 50%, #80f0ff 100%);
    color: #000810;
    box-shadow: 0 0 28px var(--glow), 0 8px 24px rgba(0, 0, 0, 0.45);
    font-weight: 700;
}

.btn-primary:hover {
    box-shadow: 0 0 40px var(--glow), 0 12px 32px rgba(0, 0, 0, 0.5);
}

.btn-secondary {
    background: rgba(0, 240, 255, 0.04);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    border-color: var(--border-bright);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.btn-discord {
    background: linear-gradient(135deg, #4752c4, #5865f2);
    color: #fff;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.35);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ── Hero ── */
.hero {
    padding: 72px 0 64px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 860px) {
    .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}

.hero-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--laser);
    padding: 6px 14px;
    margin-bottom: 20px;
    border: 1px solid var(--border-bright);
    border-radius: 999px;
    background: rgba(0, 240, 255, 0.06);
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.12), inset 0 0 20px rgba(0, 240, 255, 0.05);
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(2.2rem, 5.5vw, 3.2rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-accent {
    display: block;
    margin-top: 4px;
    background: linear-gradient(90deg, var(--laser) 0%, #a0f0ff 50%, var(--laser-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 28px rgba(0, 240, 255, 0.5));
}

.hero .lead {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 520px;
    margin: 0 0 32px;
    line-height: 1.75;
}

.hero .lead strong {
    color: var(--laser-soft);
    font-weight: 600;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-badges span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
    color: var(--laser-soft);
    background: rgba(0, 0, 0, 0.4);
}

.hero-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    backdrop-filter: blur(12px);
    box-shadow:
        0 0 0 1px rgba(0, 240, 255, 0.06) inset,
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(0, 240, 255, 0.06);
}

.hero-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--laser), transparent);
    opacity: 0.6;
}

.hero-card h3 {
    margin: 0 0 16px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--laser);
}

.hero-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 14px;
}

.hero-card li {
    position: relative;
    padding: 8px 0 8px 22px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.06);
}

.hero-card li:last-child { border-bottom: none; }

.hero-card li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--laser);
    font-size: 12px;
}

/* ── Sections ── */
section {
    padding: 72px 0;
    position: relative;
}

section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, var(--max));
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section-head {
    margin-bottom: 40px;
}

.section-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--laser-dim);
    margin-bottom: 10px;
    padding-left: 12px;
    border-left: 2px solid var(--laser);
}

section h2 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-lead {
    color: var(--muted);
    margin: 0;
    max-width: 560px;
    font-size: 1rem;
    line-height: 1.7;
}

/* ── Features ── */
#features {
    background: linear-gradient(180deg, transparent, rgba(0, 120, 200, 0.03) 50%, transparent);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.feature-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    backdrop-filter: blur(8px);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    overflow: hidden;
}

.feature-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.25s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 240, 255, 0.08);
}

.feature-card:hover::after { opacity: 1; }

.feature-card .icon {
    font-size: 1.75rem;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.3));
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

/* ── Pricing ── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.pricing-grid-2 {
    max-width: 780px;
    margin: 0 auto;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(8px);
    transition: box-shadow 0.25s;
}

.price-card.featured {
    border-color: var(--border-bright);
    box-shadow:
        0 0 0 1px rgba(0, 240, 255, 0.15) inset,
        0 0 50px rgba(0, 240, 255, 0.12),
        0 20px 50px rgba(0, 0, 0, 0.4);
    position: relative;
}

.price-card.featured::before {
    content: "PRO";
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.15em;
    padding: 4px 10px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--laser-dim), var(--laser));
    color: #000;
}

.price-card h3 {
    margin: 0 0 4px;
    font-size: 1.3rem;
    font-weight: 800;
}

.price-card .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--laser);
    margin: 10px 0 20px;
    text-shadow: 0 0 20px var(--glow);
}

.price-card ul {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    flex: 1;
    color: var(--muted);
    font-size: 14px;
}

.price-card li {
    padding: 7px 0 7px 18px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.price-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--laser-dim);
    font-size: 11px;
    font-weight: 700;
}

.price-card .btn { width: 100%; }

/* ── Leaderboard ── */
#leaderboard {
    background: linear-gradient(180deg, transparent, rgba(0, 80, 120, 0.04) 50%, transparent);
}

.leaderboard-panel {
    background: rgba(4, 8, 14, 0.85);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 26px;
    backdrop-filter: blur(12px);
    box-shadow:
        0 0 0 1px rgba(0, 240, 255, 0.05) inset,
        0 24px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 200, 255, 0.06);
}

.lb-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.lb-head-left { flex: 1; min-width: 200px; }

.lb-head-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.lb-sub {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--muted);
    font-family: ui-monospace, monospace;
}

.lb-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--laser);
    text-shadow: 0 0 12px var(--glow);
}

.lb-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--laser);
    margin: 0;
    letter-spacing: 0.02em;
}

.lb-meta {
    font-size: 11px;
    color: var(--muted);
}

.lb-toolbar { margin-bottom: 14px; }

.lb-search {
    width: 100%;
    max-width: 380px;
    padding: 12px 16px 12px 42px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2300f0ff' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") no-repeat 14px center;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lb-search::placeholder { color: #4a6070; }

.lb-search:focus {
    border-color: var(--border-bright);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12), 0 0 24px rgba(0, 240, 255, 0.1);
}

.lb-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 820px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-color: var(--laser-dim) transparent;
    scrollbar-width: thin;
}

.lb-list::-webkit-scrollbar { width: 5px; }
.lb-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--laser-dim), var(--laser));
    border-radius: 3px;
}

.lb-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: rgba(0, 6, 12, 0.6);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 240, 255, 0.06);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lb-item:hover {
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.06);
}

.lb-item.rank-1 {
    border-left: 3px solid var(--laser);
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.12), rgba(0, 6, 12, 0.7));
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.1);
}

.lb-item.rank-2 { border-left: 3px solid #7ec8ff; }
.lb-item.rank-3 { border-left: 3px solid #4a9ec4; }

.lb-rank {
    width: 36px;
    text-align: center;
    font-weight: 800;
    font-size: 14px;
    color: var(--muted);
    flex-shrink: 0;
}

.lb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #0a1018;
    flex-shrink: 0;
    border: 2px solid rgba(0, 240, 255, 0.25);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.lb-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-kills {
    background: linear-gradient(135deg, var(--laser-dim), var(--laser));
    color: #000a12;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.04em;
    padding: 5px 14px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
}

.lb-kills.zero {
    background: #2a3540;
    color: #888;
    box-shadow: none;
}

.lb-empty, .lb-wait, .lb-error, .lb-no-match {
    text-align: center;
    color: var(--muted);
    padding: 40px 16px;
    font-size: 14px;
    line-height: 1.7;
}

.lb-error { color: var(--laser-soft); }

/* ── Download ── */
.download-box {
    text-align: center;
    position: relative;
    background: rgba(0, 240, 255, 0.04);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius);
    padding: 52px 32px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 240, 255, 0.08);
}

.download-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 240, 255, 0.12), transparent 60%);
    pointer-events: none;
}

.download-box h2 {
    position: relative;
    margin: 0 0 14px;
    font-size: 1.75rem;
}

.download-box p {
    position: relative;
    color: var(--muted);
    margin: 0 0 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.download-box .btn { position: relative; }

/* ── Contact ── */
#contact .section-head { margin-bottom: 24px; }
#contact .btn-discord { margin-top: 4px; }

/* ── Footer ── */
.site-footer {
    padding: 40px 0 56px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4));
}

.site-footer p {
    margin: 8px 0;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ── Mobile ── */
@media (max-width: 720px) {
    .site-header .inner { padding: 14px 16px; }
    .wrap { padding: 0 16px; }
    .nav a:not(.btn) { padding: 5px 8px; font-size: 12px; }
    section { padding: 56px 0; }
    .hero { padding: 48px 0 40px; }
    .lb-head-right { align-items: flex-start; text-align: left; }
    .pricing-grid-2 { grid-template-columns: 1fr; }
}
