/* ═══════════════════════ DESIGN TOKENS ═══════════════════════ */
:root {
    --bg:       #07080f;
    --bg2:      #0a0b16;
    --card:     #0e1020;
    --card2:    #121528;
    --accent:   #7B5CF0;
    --accent-b: #3D6FE8;
    --accent2:  #9D82F5;
    --accent3:  #b8a6f8;
    --sky:      #4EAAFF;
    --sky-dim:  rgba(78,170,255,0.13);
    --gold:     #E8B94A;
    --gold-b:   #F0C96A;
    --gold-dim: rgba(232,185,74,0.13);
    --text:     #eef0ff;
    --muted:    #6b6f99;
    --muted2:   #9096c0;
    --border:   rgba(123,92,240,0.13);
    --border-h: rgba(123,92,240,0.42);
    --glow:     rgba(123,92,240,0.25);
    --r-xl: 28px;
    --r-lg: 20px;
    --r-md: 14px;
    --r-sm: 8px;
    --grad-brand: linear-gradient(135deg, var(--accent) 0%, var(--accent-b) 60%, var(--sky) 100%);
    --grad-gold:  linear-gradient(135deg, var(--gold) 0%, var(--gold-b) 100%);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --dur-fast: 200ms;
    --dur-med:  300ms;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--bg); color: var(--text); font-family: 'Rubik', sans-serif; overflow-x: hidden; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 20px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100%; left: 16px; background: var(--accent); color: #fff; padding: 8px 16px; border-radius: var(--r-sm); font-weight: 600; font-size: .9rem; text-decoration: none; z-index: 9999; transition: top var(--dur-fast); }
.skip-link:focus { top: 16px; }

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(123,92,240,0.055) 1px, transparent 1px);
    background-size: 32px 32px;
}
.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(123,92,240,0.22) 0%, transparent 60%),
                radial-gradient(ellipse 60% 40% at 100% 80%, rgba(78,170,255,0.09) 0%, transparent 60%),
                radial-gradient(ellipse 50% 40% at 0% 60%, rgba(61,111,232,0.07) 0%, transparent 60%);
}

.mythx {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow-breathe 3.5s ease-in-out infinite;
}
@keyframes glow-breathe {
    0%, 100% { filter: drop-shadow(0 0 12px rgba(123,92,240,0.45)); }
    50% { filter: drop-shadow(0 0 28px rgba(78,170,255,0.65)); }
}

/* ═══════════════════════ NAV ═══════════════════════ */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 6%;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(7,8,15,0.6);
    border-bottom: 1px solid var(--border);
    transition: background var(--dur-med);
}
@supports (backdrop-filter: blur(1px)) {
    header { backdrop-filter: blur(20px) saturate(1.4); }
}
header.scrolled { background: rgba(7,8,15,0.92); }

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-size: 1.25rem;
}
.logo-box {
    width: 34px; height: 34px;
    border-radius: 9px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.logo-box img {
    width: 100%; height: 100%; object-fit: contain;
    filter: drop-shadow(0 0 7px rgba(123,92,240,0.6));
    transition: filter var(--dur-med), transform var(--dur-med);
}
.logo:hover .logo-box img { filter: drop-shadow(0 0 14px rgba(78,170,255,0.9)); transform: scale(1.08); }

nav { display: flex; align-items: center; gap: 6px; }
nav a {
    padding: 7px 15px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--muted2);
    font-size: .88rem;
    font-weight: 500;
    transition: color var(--dur-fast), background var(--dur-fast);
}
nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
nav a.nav-active { color: var(--text); background: rgba(255,255,255,0.08); }

.nav-invite {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 20px;
    background: var(--text);
    color: var(--bg) !important;
    border-radius: 999px;
    font-size: .86rem !important;
    font-weight: 700 !important;
    text-decoration: none;
    margin-left: 8px;
    transition: opacity var(--dur-fast), transform var(--dur-fast) !important;
}
.nav-invite:hover { opacity: .88; transform: translateY(-1px) !important; background: var(--text) !important; }

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}
.burger span { display: block; width: 21px; height: 1.8px; background: var(--text); border-radius: 2px; transition: transform var(--dur-med), opacity var(--dur-med); }
.burger.open span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

.mob-menu {
    display: none;
    position: fixed;
    top: 68px; left: 0;
    width: 100%;
    background: rgba(7,8,15,0.97);
    border-bottom: 1px solid var(--border);
    z-index: 999;
    flex-direction: column;
    padding: 22px 7%;
    gap: 6px;
}
@supports (backdrop-filter: blur(1px)) { .mob-menu { backdrop-filter: blur(20px); } }
.mob-menu.open { display: flex; }
.mob-menu a {
    color: var(--muted2);
    text-decoration: none;
    font-weight: 500;
    font-size: .97rem;
    padding: 10px 14px;
    border-radius: var(--r-md);
    transition: color var(--dur-fast), background var(--dur-fast);
}
.mob-menu a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

/* ═══════════════════════ HERO ═══════════════════════ */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 24px 100px;
    gap: 0;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--muted2);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 500;
    margin-bottom: 36px;
}
.hero-pill i { color: var(--accent2); font-size: .72rem; }

.hero h1 {
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 1.02;
    font-weight: 900;
    max-width: 1000px;
    margin-bottom: 24px;
    letter-spacing: -2px;
}
.hero h1 span { display: block; }

.hero-desc {
    max-width: 520px;
    color: var(--muted2);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 44px;
}

.btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 80px;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .93rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med), opacity var(--dur-fast);
}
.btn-primary {
    background: var(--text);
    color: var(--bg);
}
.btn-primary:hover { transform: translateY(-2px); opacity: .88; }
.btn-outline {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(14px) saturate(1.5);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
    color: var(--text);
}
.btn-outline::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.32) 45%, transparent 60%);
    transform: translateX(-120%);
    transition: transform .7s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.btn-outline:hover { transform: translateY(-2px); background: rgba(255,255,255,0.1); }
.btn-outline:hover::after { transform: translateX(120%); }
.btn-outline:active { transform: scale(0.96); }

.hero-preview {
    position: relative;
    max-width: 420px;
    margin: 0 auto 80px;
}
.preview-card {
    background: rgba(30,32,45,0.5);
    backdrop-filter: blur(18px) saturate(1.5);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
    border-radius: var(--r-xl);
    padding: 28px;
    position: relative;
    overflow: hidden;
}
.preview-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.18) 48%, transparent 62%);
    transform: translateX(-140%);
    transition: transform .9s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.hero-preview:hover .preview-card::after { transform: translateX(140%); }
.preview-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% -20%, rgba(123,92,240,0.15), transparent 65%);
    pointer-events: none;
}
.preview-logo {
    width: 80px; height: 80px;
    border-radius: 20px;
    background: var(--grad-brand);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin: 0 auto 16px;
    box-shadow: 0 12px 40px rgba(123,92,240,0.4);
}
.preview-logo img { width: 60px; height: 60px; object-fit: contain; filter: brightness(10); }
.preview-name { font-size: 1.3rem; font-weight: 800; text-align: center; margin-bottom: 4px; }
.preview-status { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted2); font-size: .82rem; }
.preview-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.6); }

.float-badge {
    position: absolute;
    background: rgba(30,32,40,0.55);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 14px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 8px 32px rgba(0,0,0,0.4);
    backdrop-filter: blur(16px) saturate(1.6);
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
}
.float-badge.latency {
    top: -16px; right: -24px;
    animation: float-y 3s ease-in-out infinite;
}
.float-badge.commands {
    bottom: -16px; left: -24px;
    animation: float-y 3s ease-in-out infinite 1.5s;
}
@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.float-badge i { color: var(--accent2); }
.float-val { font-size: 1rem; font-weight: 800; }

.stats-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 12px;
}
.stat-chip {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px 28px;
    text-align: center;
    min-width: 140px;
    flex: 1;
    max-width: 180px;
    transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med);
}
.stat-chip:hover { transform: translateY(-4px); border-color: var(--border-h); }
.stat-chip-num {
    font-size: 1.7rem;
    font-weight: 900;
    margin-bottom: 4px;
    min-height: 2rem;
    font-variant-numeric: tabular-nums;
}
.stat-chip-lbl { color: var(--muted); font-size: .78rem; font-weight: 500; }
.stat-chip.feat .stat-chip-num { background: var(--grad-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ═══════════════════════ SECTION SHARED ═══════════════════════ */
section { position: relative; z-index: 1; }
.section-wrap { padding: 100px 7%; }
.section-label {
    display: block;
    text-align: center;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}
.section-title {
    text-align: center;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    line-height: 1.1;
}
.section-sub {
    text-align: center;
    color: var(--muted2);
    font-size: .95rem;
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 64px;
}

/* ═══════════════════════ FEATURES ═══════════════════════ */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feat-card {
    background: var(--card);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--r-xl);
    padding: 36px 32px;
    transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med), box-shadow var(--dur-med);
    position: relative;
    overflow: hidden;
}
.feat-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--grad-brand);
    opacity: 0;
    transition: opacity var(--dur-med);
}
.feat-card:hover { transform: translateY(-6px); border-color: rgba(123,92,240,0.25); box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
.feat-card:hover::after { opacity: 1; }

.feat-icon-wrap {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px;
    font-size: 1.3rem;
    transition: background var(--dur-med), transform var(--dur-med);
}
.feat-card:hover .feat-icon-wrap { background: rgba(123,92,240,0.14); transform: scale(1.06); }
.feat-icon-wrap i { color: var(--muted2); transition: color var(--dur-med); }
.feat-card:hover .feat-icon-wrap i { color: var(--text); }

.feat-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 12px; }
.feat-card p { color: var(--muted2); font-size: .88rem; line-height: 1.75; }

.feat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 12px;
}
.feat-badge-premium { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(232,185,74,0.3); }
.feat-badge-new { background: rgba(78,170,255,0.1); color: var(--sky); border: 1px solid rgba(78,170,255,0.25); }

/* ═══════════════════════ HOW IT WORKS ═══════════════════════ */
.hiw-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.hiw-card {
    background: var(--card);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--r-xl);
    padding: 36px 28px;
    transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med);
}
.hiw-card:hover { transform: translateY(-6px); border-color: rgba(123,92,240,0.25); }
.hiw-num {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 20px;
}
.hiw-ico {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: var(--muted2);
    margin-bottom: 16px;
}
.hiw-card h4 { font-size: 1rem; font-weight: 800; margin-bottom: 10px; }
.hiw-card p { color: var(--muted2); font-size: .85rem; line-height: 1.7; }

/* ═══════════════════════ GIVEAWAY ═══════════════════════ */
.gw-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.gw-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
    line-height: 1.15;
}
.gw-text p { color: var(--muted2); line-height: 1.8; margin-bottom: 32px; font-size: .95rem; }
.gw-feats { display: flex; flex-direction: column; gap: 12px; }
.gw-feat { display: flex; align-items: center; gap: 12px; color: var(--muted2); font-size: .88rem; }
.gw-feat i { color: var(--text); font-size: .8rem; width: 16px; opacity: .7; }

.gw-mock-wrap {
    position: relative;
    isolation: isolate;
}
.gw-mock-wrap::before {
    content: '';
    position: absolute;
    inset: -18%;
    z-index: -1;
    background: radial-gradient(ellipse 60% 55% at 50% 40%, rgba(123,92,240,0.28), transparent 70%);
    filter: blur(20px);
    opacity: .8;
    pointer-events: none;
}
.gw-mock {
    background: #1e1f22;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid rgba(123,92,240,0.18);
    box-shadow: 0 24px 70px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.02) inset;
    transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med), box-shadow var(--dur-med);
}
.gw-mock-wrap:hover .gw-mock {
    transform: translateY(-4px);
    border-color: rgba(123,92,240,0.35);
    box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 40px rgba(123,92,240,0.15);
}
.gw-mock-top {
    background: #2b2d31;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.gw-mock-top .dot { width: 10px; height: 10px; border-radius: 50%; }
.gw-mock-top .dot-r { background: #ff5f57; }
.gw-mock-top .dot-y { background: #febc2e; }
.gw-mock-top .dot-g { background: #28c840; }
.gw-mock-channel { color: var(--muted); font-size: .82rem; margin-left: 6px; font-family: monospace; }

.gw-mock-body { padding: 20px 20px 20px 16px; display: flex; gap: 12px; }
.gw-mock-av { width: 38px; height: 38px; border-radius: 50%; background: var(--grad-brand); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.gw-mock-content { flex: 1; }
.gw-mock-header-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.gw-mock-bot { font-weight: 700; font-size: .9rem; }
.gw-mock-botbadge { background: var(--accent); color: #fff; font-size: .6rem; padding: 1px 5px; border-radius: 3px; font-weight: 700; }
.gw-mock-ts { color: var(--muted); font-size: .72rem; }
.gw-embed {
    background: #2b2d31;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    overflow: hidden;
    margin-top: 4px;
}

/* Banner with gift icon */
.gw-embed-banner {
    position: relative;
    height: 76px;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(ellipse 70% 100% at 50% 0%, rgba(123,92,240,0.35), transparent 70%),
        linear-gradient(135deg, #22243a 0%, #1a1c2e 100%);
    overflow: hidden;
}
.gw-embed-banner i {
    font-size: 2rem;
    color: var(--accent2);
    filter: drop-shadow(0 0 16px rgba(157,130,245,0.7));
    animation: gift-bob 2.6s ease-in-out infinite;
    z-index: 1;
}
@keyframes gift-bob { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-5px) rotate(-4deg); } }
.gw-embed-banner-glow {
    position: absolute;
    width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(123,92,240,0.4), transparent 70%);
    filter: blur(10px);
    animation: pulse-glow 2.6s ease-in-out infinite;
}
@keyframes pulse-glow { 0%,100% { opacity: .5; transform: scale(1); } 50% { opacity: .9; transform: scale(1.15); } }

.gw-embed-inner { padding: 16px 16px 14px; }
.gw-embed-title { font-weight: 800; font-size: .96rem; margin-bottom: 6px; }
.gw-embed-title span { color: var(--muted2); font-weight: 600; }
.gw-embed-desc { color: #b5bac1; font-size: .82rem; line-height: 1.6; margin-bottom: 14px; }

.gw-embed-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; }
.gw-meta-item { display: flex; align-items: center; gap: 6px; color: #d8dae4; font-size: .78rem; font-weight: 600; }
.gw-meta-item i { color: var(--accent2); font-size: .74rem; }
.gw-meta-item span { color: var(--gold); }

.gw-entries-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.gw-entries-bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.gw-entries-fill { height: 100%; width: 0%; border-radius: 999px; background: var(--grad-brand); transition: width .5s var(--ease-out); box-shadow: 0 0 10px rgba(123,92,240,0.6); }
.gw-entries-count { font-size: .74rem; color: var(--muted2); white-space: nowrap; font-weight: 600; }
.gw-entries-count span { color: var(--text); font-weight: 800; }

.gw-avatars { display: flex; align-items: center; min-height: 26px; margin-bottom: 4px; }
.gw-avatar-bubble {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 2px solid #2b2d31;
    margin-left: -8px;
    background: var(--grad-brand);
    display: flex; align-items: center; justify-content: center;
    font-size: .62rem; font-weight: 800; color: #fff;
    animation: bubble-in .35s var(--ease-out) backwards;
}
.gw-avatar-bubble:first-child { margin-left: 0; }
.gw-avatar-bubble.more { background: rgba(255,255,255,0.1); color: var(--muted2); }
@keyframes bubble-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }

.gw-embed-footer { background: rgba(0,0,0,0.2); padding: 8px 16px; font-size: .75rem; color: var(--muted); display: flex; align-items: center; justify-content: space-between; }
.gw-enter-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    width: 100%;
    background: var(--grad-brand);
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 10px 18px;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
    position: relative;
    overflow: hidden;
    transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.gw-enter-btn::after {
    content: '';
    position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
    transform: skewX(-20deg);
    transition: left .6s var(--ease-out);
}
.gw-enter-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(123,92,240,0.4); }
.gw-enter-btn:hover::after { left: 130%; }

/* ═══════════════════════ PRICING ═══════════════════════ */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 780px;
    margin: 0 auto;
}
.price-card {
    background: var(--card);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--r-xl);
    padding: 36px;
    position: relative;
    overflow: hidden;
}
.price-card.premium {
    border-color: rgba(232,185,74,0.3);
    background: linear-gradient(140deg, var(--card), rgba(232,185,74,0.05));
}
.price-card.premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--grad-gold);
}
.price-tier { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.price-tier-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.tier-free { background: rgba(255,255,255,0.06); color: var(--muted2); }
.tier-prem { background: var(--gold-dim); color: var(--gold); }
.price-tier-name { font-weight: 800; font-size: 1.1rem; }
.name-free { color: var(--text); }
.name-prem { color: var(--gold); }
.price-rows { display: flex; flex-direction: column; gap: 10px; }
.price-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.price-row:last-child { border-bottom: none; }
.price-row-lbl { color: var(--muted2); font-size: .86rem; display: flex; align-items: center; gap: 8px; }
.price-row-lbl i { color: var(--muted); font-size: .75rem; width: 12px; }
.price-row-val { font-weight: 700; font-size: .88rem; }
.val-free { color: var(--text); }
.val-inf { color: var(--sky); }
.val-gold { color: var(--gold); }
.price-cta {
    margin-top: 24px;
    display: flex; align-items: center; gap: 8px;
    padding: 12px 22px;
    border-radius: var(--r-lg);
    font-weight: 700;
    font-size: .88rem;
    width: 100%; justify-content: center;
    cursor: pointer;
    text-decoration: none;
    background: var(--grad-gold);
    color: #0a0800;
    border: none;
    transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast);
    box-shadow: 0 4px 20px rgba(232,185,74,0.3);
}
.price-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(232,185,74,0.45); }

/* ═══════════════════════ SERVERS MARQUEE ═══════════════════════ */
.servers-wrap { padding: 0 0 100px; }
.marquee-outer {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.marquee-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}
.marquee-outer:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.msrv-card {
    background: var(--card);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 12px 18px 12px 12px;
    display: flex; align-items: center; gap: 12px;
    flex-shrink: 0; min-width: 190px;
    transition: border-color var(--dur-med), transform var(--dur-med);
}
.msrv-card:hover { border-color: rgba(123,92,240,0.35); transform: translateY(-3px); }
.msrv-icon-wrap { position: relative; flex-shrink: 0; width: 44px; height: 44px; }
.msrv-icon { width: 44px; height: 44px; border-radius: 13px; object-fit: cover; border: 1.5px solid rgba(255,255,255,0.1); background: var(--card2); display: block; }
.msrv-icon-fallback { width: 44px; height: 44px; border-radius: 13px; background: var(--grad-brand); display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 900; color: #fff; }
.msrv-dot { position: absolute; bottom: 0; right: 0; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; border: 2px solid var(--card); box-shadow: 0 0 6px rgba(34,197,94,0.55); }
.msrv-name { font-weight: 700; font-size: .87rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; margin-bottom: 3px; display: block; }
.msrv-members { display: flex; align-items: center; gap: 5px; color: var(--muted2); font-size: .74rem; }
.msrv-members i { color: var(--accent2); font-size: .66rem; }
.msrv-skel { background: var(--card); border: 1px solid rgba(255,255,255,0.07); border-radius: 18px; padding: 12px 18px 12px 12px; display: flex; align-items: center; gap: 12px; flex-shrink: 0; min-width: 190px; }
.msrv-skel-icon { width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0; background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(123,92,240,0.1) 50%, rgba(255,255,255,0.04) 75%); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
.msrv-skel-text { display: flex; flex-direction: column; gap: 7px; }
.msrv-skel-name { width: 100px; height: 11px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(123,92,240,0.1) 50%, rgba(255,255,255,0.04) 75%); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
.msrv-skel-mem { width: 65px; height: 9px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(123,92,240,0.1) 50%, rgba(255,255,255,0.04) 75%); background-size: 200% 100%; animation: shimmer 1.6s infinite; }

/* ═══════════════════════ COMMANDS ═══════════════════════ */
.cmd-section { padding: 0 7% 100px; }
.search-box-wrap { display: flex; justify-content: center; margin-bottom: 28px; }
.search-inner {
    position: relative;
    width: 48px;
    height: 46px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
    backdrop-filter: blur(14px) saturate(1.5);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    transition: width .45s cubic-bezier(0.16, 1, 0.3, 1), border-color var(--dur-fast), background var(--dur-fast);
}
.search-inner:hover,
.search-inner:focus-within {
    width: min(340px, 100%);
    border-color: rgba(123,92,240,0.4);
    background: rgba(255,255,255,0.07);
}
.search-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.28) 45%, transparent 60%);
    transform: translateX(-120%);
    transition: transform .7s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.search-inner:hover::after { transform: translateX(120%); }
.search-inner i { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; pointer-events: none; z-index: 2; }
.cmd-search { width: 100%; height: 100%; padding: 0 16px 0 44px; background: transparent; border: none; border-radius: 999px; color: var(--text); font-family: 'Rubik', sans-serif; font-size: .9rem; outline: none; }
@media (hover: none) {
    /* On touch devices, keep it comfortably tappable rather than icon-only */
    .search-inner { width: min(340px, 100%); }
}
.cmd-search::placeholder { color: var(--muted); }

.cmd-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.cmd-tab { display: inline-flex; align-items: center; gap: 7px; padding: 7px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.08); background: transparent; color: var(--muted2); font-family: 'Rubik', sans-serif; font-size: .83rem; font-weight: 600; cursor: pointer; transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast); }

/* Commands loading skeleton (shimmer sweep, matches team/servers skeletons) */
.cmd-tab-skel {
    display: inline-block;
    width: 90px; height: 32px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(123,92,240,0.1) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite;
}
.cmd-tab-skel.w70 { width: 70px; } .cmd-tab-skel.w60 { width: 60px; }
.cmd-tab-skel.w80 { width: 80px; } .cmd-tab-skel.w65 { width: 65px; } .cmd-tab-skel.w55 { width: 55px; }
.cmd-card-skel {
    background: var(--card);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--r-xl);
    padding: 22px 24px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.cmd-skel-icon {
    width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(123,92,240,0.1) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite;
}
.cmd-skel-lines { flex: 1; display: flex; flex-direction: column; gap: 9px; padding-top: 4px; }
.cmd-skel-line {
    height: 10px; border-radius: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(123,92,240,0.1) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite;
}
.cmd-skel-line.w50 { width: 50%; } .cmd-skel-line.w55 { width: 55%; } .cmd-skel-line.w60 { width: 60%; }
.cmd-skel-line.w65 { width: 65%; } .cmd-skel-line.w70 { width: 70%; } .cmd-skel-line.w75 { width: 75%; }
.cmd-skel-line.w80 { width: 80%; } .cmd-skel-line.w85 { width: 85%; } .cmd-skel-line.w90 { width: 90%; } .cmd-skel-line.w95 { width: 95%; }
.cmd-tab:hover { color: var(--text); border-color: rgba(255,255,255,0.16); background: rgba(255,255,255,0.04); }
.cmd-tab.active { background: var(--text); border-color: transparent; color: var(--bg); }

.cmd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cmd-card { background: var(--card); border: 1px solid rgba(255,255,255,0.07); border-radius: var(--r-xl); padding: 22px 24px; display: flex; align-items: flex-start; gap: 15px; opacity: 0; transform: translateY(14px); animation: card-in .38s var(--ease-out) forwards; transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med); }
@keyframes card-in { to { opacity: 1; transform: translateY(0); } }
.cmd-card:hover { transform: translateY(-4px); border-color: rgba(123,92,240,0.25); }
.cmd-ico { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; }
.cmd-ico i { color: var(--muted2); font-size: 16px; }
.cmd-card:hover .cmd-ico { background: rgba(123,92,240,0.12); }
.cmd-card:hover .cmd-ico i { color: var(--text); }
.cmd-body { flex: 1; }
.cmd-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; margin-bottom: 7px; }
.badge-admin { background: rgba(239,68,68,0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.badge-manage { background: rgba(232,185,74,0.1); color: var(--gold); border: 1px solid rgba(232,185,74,0.25); }
.badge-premium { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(232,185,74,0.25); }
.cmd-name { font-size: .92rem; font-weight: 700; margin-bottom: 5px; }
.cmd-desc { color: var(--muted2); font-size: .85rem; line-height: 1.65; }
.cmd-subs { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.cmd-sub { display: inline-block; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 5px; padding: 2px 8px; font-size: .72rem; color: var(--muted2); font-weight: 600; font-family: monospace; }
.cmd-state { text-align: center; color: var(--muted); padding: 80px 0; font-size: .92rem; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cmd-state.loading i { color: var(--accent); font-size: 1.5rem; animation: spin .8s linear infinite; }
.cmd-state.error i { color: #f87171; font-size: 1.8rem; }
.cmd-retry { display: inline-flex; align-items: center; gap: 7px; padding: 8px 18px; border-radius: 999px; background: rgba(123,92,240,0.12); border: 1px solid var(--border-h); color: var(--accent2); font-family: 'Rubik', sans-serif; font-size: .85rem; font-weight: 600; cursor: pointer; transition: background var(--dur-fast), transform var(--dur-fast); }
.cmd-retry:hover { background: rgba(123,92,240,0.22); transform: translateY(-2px); }
.cmd-count-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--muted2); padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; margin-bottom: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════ TEAM ═══════════════════════ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}
.team-grid.count-1 { grid-template-columns: minmax(260px, 380px); justify-content: center; }
.team-grid.count-2 { grid-template-columns: repeat(2, minmax(260px, 420px)); justify-content: center; }

.team-card {
    --card-primary:     #7B5CF0;
    --card-accent:      #4EAAFF;
    --card-primary-rgb: 123, 92, 240;
    --card-accent-rgb:  78, 170, 255;

    position: relative;
    background: linear-gradient(
        160deg,
        rgba(var(--card-primary-rgb), 0.18) 0%,
        rgba(var(--card-primary-rgb), 0.08) 35%,
        rgba(var(--card-accent-rgb),  0.06) 100%
    );
    border: 1px solid rgba(var(--card-primary-rgb), 0.35);
    border-radius: var(--r-xl);
    overflow: hidden;
    transition: transform var(--dur-med) var(--ease-out),
                border-color var(--dur-med),
                box-shadow var(--dur-med);
}
.team-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--card-primary-rgb), 0.65);
    box-shadow: 0 24px 60px rgba(var(--card-primary-rgb), 0.22),
                0  4px 20px rgba(var(--card-accent-rgb),  0.12);
}
.team-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(var(--card-primary-rgb), 0.0) 0%,
        rgba(var(--card-primary-rgb), 0.8) 40%,
        rgba(var(--card-accent-rgb),  0.8) 60%,
        rgba(var(--card-accent-rgb),  0.0) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* ─── Developer Banner ─── */
.dev-banner {
    position: relative;
    width: 100%;
    height: 110px;
    overflow: hidden;
    flex-shrink: 0;
}
.dev-banner-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dev-banner-gradient {
    width: 100%;
    height: 100%;
}
.dev-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.45) 100%);
    pointer-events: none;
}

.team-card-body {
    padding: 0 28px 28px;
    text-align: center;
    background: radial-gradient(
        ellipse 70% 50% at 50% 0%,
        rgba(var(--card-accent-rgb), 0.07) 0%,
        transparent 70%
    );
}

.team-avatar {
    width: 76px; height: 76px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem;
    font-weight: 800;
    margin: -38px auto 14px;
    position: relative;
    z-index: 2;
    border: 3px solid var(--card);
    background: linear-gradient(135deg,
        var(--card-primary, #7B5CF0) 0%,
        var(--card-accent,  #4EAAFF) 100%
    );
    overflow: hidden;
    flex-shrink: 0;
    box-shadow:
        0 0 0 2px rgba(var(--card-primary-rgb, 123,92,240), 0.45),
        0 8px 24px rgba(var(--card-primary-rgb, 123,92,240), 0.30);
}
.team-avatar img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.team-name  { font-weight: 800; font-size: 1.08rem; margin-bottom: 5px; }
.team-role  { color: rgba(var(--card-accent-rgb), 1); font-size: .82rem; margin-bottom: 12px; font-weight: 600; }
.team-bio   { color: var(--muted2); font-size: .83rem; line-height: 1.65; margin-bottom: 20px; }
.team-links { display: flex; justify-content: center; gap: 10px; }
.team-link  {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(var(--card-primary-rgb), 0.3);
    background: rgba(var(--card-primary-rgb), 0.08);
    display: flex; align-items: center; justify-content: center;
    color: rgba(var(--card-accent-rgb), 0.9);
    text-decoration: none;
    font-size: .85rem;
    transition: color var(--dur-fast), border-color var(--dur-fast),
                background var(--dur-fast), transform var(--dur-fast);
}
.team-link:hover {
    color: #fff;
    border-color: rgba(var(--card-primary-rgb), 0.7);
    background: rgba(var(--card-primary-rgb), 0.22);
    transform: translateY(-2px);
}

.team-skel-card {
    background: var(--card);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--r-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.team-skel-banner {
    width: 100%; height: 110px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(123,92,240,0.1) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite;
}
.team-skel-body {
    padding: 0 28px 28px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.team-skel-av {
    width: 76px; height: 76px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(123,92,240,0.1) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite;
    margin-top: -38px;
    border: 3px solid var(--card);
    flex-shrink: 0;
}
.team-skel-line {
    height: 10px; border-radius: 6px; width: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(123,92,240,0.1) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite;
}
.team-skel-line.w80 { width: 80%; }
.team-skel-line.w55 { width: 55%; }
.team-skel-line.w95 { width: 95%; }
.team-skel-line.w70 { width: 70%; }

/* ═══════════════════════ FAQ ═══════════════════════ */
.faq-list { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid rgba(255,255,255,0.07); border-radius: var(--r-lg); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; background: none; border: none; color: var(--text); font-family: 'Rubik', sans-serif; font-size: .93rem; font-weight: 700; text-align: left; cursor: pointer; transition: background var(--dur-fast); }
.faq-q:hover { background: rgba(255,255,255,0.03); }
.faq-q i { color: var(--muted2); font-size: .8rem; transition: transform var(--dur-med); flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease-out); }
.faq-a-inner { padding: 0 24px 20px; color: var(--muted2); font-size: .88rem; line-height: 1.75; }

/* ═══════════════════════ FOOTER ═══════════════════════ */
footer {
    background: var(--card);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--r-xl);
    margin: 0 7% 40px;
    padding: 52px 60px;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 60px;
    align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.15rem; }
.footer-logo-box { width: 30px; height: 30px; border-radius: 8px; overflow: hidden; }
.footer-logo-box img { width: 100%; height: 100%; object-fit: contain; }
.footer-desc { color: var(--muted2); font-size: .85rem; line-height: 1.7; max-width: 280px; }
.footer-social { display: flex; gap: 8px; margin-top: 4px; }
.footer-social-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); display: flex; align-items: center; justify-content: center; color: var(--muted2); text-decoration: none; font-size: .85rem; transition: color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast); }
.footer-social-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }
.footer-col h5 { font-size: .78rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--muted2); text-decoration: none; font-size: .86rem; font-weight: 500; transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
    grid-column: 1 / -1;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-copy { color: var(--muted); font-size: .78rem; text-align: center; }
.footer-copy a { color: var(--accent2); text-decoration: none; font-weight: 600; }

/* ═══════════════════════ TOAST ═══════════════════════ */
#toast { position: fixed; bottom: 28px; right: 28px; z-index: 9999; background: var(--card2); border: 1px solid var(--border-h); border-radius: var(--r-md); padding: 14px 18px; display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 500; box-shadow: 0 16px 40px rgba(0,0,0,0.4); transform: translateY(80px); opacity: 0; transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .35s; pointer-events: none; }
#toast.show { transform: translateY(0); opacity: 1; }
#toast i { color: var(--sky); font-size: 1rem; }

.skel { display: inline-block; width: 70px; height: 1.6rem; vertical-align: middle; background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(123,92,240,0.1) 50%, rgba(255,255,255,0.04) 75%); background-size: 200% 100%; animation: shimmer 1.6s infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ═══════════════════════ RESPONSIVE ═══════════════════════ */

/* Large desktop (1280+) */
@media (min-width: 1280px) {
    .feat-grid { grid-template-columns: repeat(3, 1fr); }
    .hiw-steps { grid-template-columns: repeat(4, 1fr); }
}

/* Laptop / small desktop (1025–1279) */
@media (max-width: 1279px) and (min-width: 1025px) {
    .feat-grid { grid-template-columns: repeat(3, 1fr); }
    .hiw-steps { grid-template-columns: repeat(4, 1fr); }
    .pricing-grid { max-width: 680px; }
    footer { padding: 40px 48px; gap: 48px; }
}

/* iPad landscape / small laptop (769–1024) */
@media (max-width: 1024px) {
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
    .hiw-steps { grid-template-columns: repeat(2, 1fr); }
    .gw-grid   { grid-template-columns: 1fr; gap: 36px; }
    .pricing-grid { max-width: 580px; }
    footer { grid-template-columns: 1fr 1fr; gap: 36px; }
    .footer-brand  { grid-column: 1 / -1; }
    .footer-bottom { grid-column: 1 / -1; }
    .hero-preview { max-width: 320px; }
    .float-badge.latency  { right: 8px;  top: -10px; }
    .float-badge.commands { left: 8px; bottom: -10px; }
    .team-grid.count-2 { grid-template-columns: repeat(2, 1fr); }
    .dev-banner { height: 95px; }
}

/* iPad portrait (600–768) */
@media (max-width: 768px) {
    nav { display: none; }
    .burger { display: flex; }
    header { padding: 0 20px; }
    .mob-menu { padding: 20px; gap: 4px; }

    .hero { padding: 88px 20px 52px; min-height: auto; }
    .hero-pill { font-size: .73rem; padding: 5px 13px; margin-bottom: 24px; }
    .hero h1 { font-size: clamp(2.2rem, 10vw, 3rem); letter-spacing: -.5px; line-height: 1.08; margin-bottom: 16px; }
    .hero-desc { font-size: .9rem; line-height: 1.75; margin-bottom: 28px; max-width: 100%; }
    .btns { flex-direction: column; width: 100%; max-width: 280px; gap: 10px; margin-bottom: 40px; }
    .btn { width: 100%; justify-content: center; padding: 12px 20px; }

    .hero-preview { width: 100%; max-width: 260px; margin: 0 auto 40px; padding: 0 8px; }
    .float-badge { position: static; display: inline-flex; animation: none; margin: 0; font-size: .75rem; padding: 6px 10px; }
    .hero-preview-badges { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
    .float-badge.latency, .float-badge.commands { top: auto; right: auto; bottom: auto; left: auto; }

    .stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; width: 100%; padding: 0; }
    .stat-chip { min-width: 0; max-width: 100%; flex: none; padding: 16px 12px; }
    .stat-chip-num { font-size: 1.3rem; min-height: 1.6rem; }
    .stat-chip-lbl { font-size: .71rem; }

    .section-wrap { padding: 56px 20px; }
    .section-title { font-size: clamp(1.65rem, 7vw, 2.1rem); letter-spacing: -.5px; margin-bottom: 12px; }
    .section-sub { font-size: .87rem; margin-bottom: 36px; }

    .feat-grid { grid-template-columns: 1fr; gap: 12px; }
    .feat-card  { padding: 24px 20px; border-radius: var(--r-lg); }

    .hiw-steps { grid-template-columns: 1fr; gap: 12px; }
    .hiw-card  { padding: 24px 20px; border-radius: var(--r-lg); }

    .gw-grid { grid-template-columns: 1fr; gap: 28px; }
    .gw-mock { display: none; }
    .gw-text h2 { font-size: clamp(1.55rem, 6vw, 1.9rem); letter-spacing: -.5px; }
    .gw-feats { gap: 10px; }
    .gw-feat  { font-size: .85rem; }

    .pricing-grid { grid-template-columns: 1fr; max-width: 100%; }
    .price-card   { padding: 24px 20px; border-radius: var(--r-lg); }

    .servers-wrap { padding: 0 0 60px; }
    .servers-wrap > div { padding: 0 20px; }
    .msrv-card { min-width: 155px; }

    .cmd-section { padding: 0 20px 60px; }
    .cmd-tabs { gap: 6px; }
    .cmd-tab  { padding: 6px 11px; font-size: .77rem; }
    .cmd-grid { grid-template-columns: 1fr; gap: 10px; }
    .cmd-card { padding: 16px; border-radius: var(--r-lg); }

    /* Team — single column on phone */
    .team-grid,
    .team-grid.count-1,
    .team-grid.count-2 {
        grid-template-columns: 1fr !important;
        max-width: 400px;
        margin: 0 auto;
    }
    .team-card-body { padding: 0 20px 24px; }
    .dev-banner { height: 85px; }
    .team-avatar { width: 68px; height: 68px; margin-top: -34px; font-size: 1.6rem; }

    .faq-list { gap: 8px; }
    .faq-q    { padding: 15px 18px; font-size: .87rem; }
    .faq-a-inner { padding: 0 18px 15px; font-size: .84rem; }

    footer { margin: 0 16px 20px; padding: 28px 20px; grid-template-columns: 1fr; gap: 24px; border-radius: var(--r-lg); }
    .footer-brand  { grid-column: auto; }
    .footer-desc   { max-width: 100%; }
    .footer-bottom { grid-column: auto; }

    /* Disable hover lift on touch screens to prevent sticky hover */
    .feat-card:hover, .hiw-card:hover, .cmd-card:hover,
    .stat-chip:hover, .price-card:hover, .team-card:hover,
    .msrv-card:hover, .btn-primary:hover, .btn-outline:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

/* Small phone (≤390) */
@media (max-width: 390px) {
    .hero h1 { font-size: 2rem; }
    .hero-preview { max-width: 100%; padding: 0; }
    .hero-preview-badges { justify-content: center; }
    .stats-row { gap: 8px; }
    .stat-chip { padding: 13px 8px; }
    .stat-chip-num { font-size: 1.15rem; }
    .stat-chip-lbl { font-size: .67rem; }
    .section-title { font-size: 1.6rem; }
    .cmd-tab { padding: 5px 9px; font-size: .73rem; }
    footer { margin: 0 12px 16px; padding: 24px 16px; }
    #toast { bottom: 16px; right: 12px; left: 12px; font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
    .marquee-track { animation: none !important; }
    .mythx { animation: none; }
}

/* ═══════════════════════ ENHANCEMENTS: TEXTURE & SELECTION ═══════════════════════ */
::selection { background: rgba(123,92,240,0.35); color: #fff; }

.grain {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: .035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═══════════════════════ HERO AURORA ORBS ═══════════════════════ */
.aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.aurora span {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .5;
    will-change: transform;
}
.aurora span:nth-child(1) {
    width: 480px; height: 480px;
    top: -140px; left: 8%;
    background: radial-gradient(circle, rgba(123,92,240,0.55), transparent 70%);
    animation: drift-1 22s ease-in-out infinite;
}
.aurora span:nth-child(2) {
    width: 420px; height: 420px;
    top: 8%; right: 4%;
    background: radial-gradient(circle, rgba(78,170,255,0.4), transparent 70%);
    animation: drift-2 26s ease-in-out infinite;
}
.aurora span:nth-child(3) {
    width: 360px; height: 360px;
    bottom: -100px; left: 38%;
    background: radial-gradient(circle, rgba(157,130,245,0.35), transparent 70%);
    animation: drift-3 30s ease-in-out infinite;
}
@keyframes drift-1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,40px) scale(1.12); } }
@keyframes drift-2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px,60px) scale(1.08); } }
@keyframes drift-3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-50px) scale(1.1); } }
@media (max-width: 768px) { .aurora span { filter: blur(60px); opacity: .35; } }

/* ═══════════════════════ SCROLL REVEAL ═══════════════════════ */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
    transition-delay: calc(var(--d, 0) * 70ms);
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
@media (max-width: 768px) {
    [data-reveal] {
        transition-delay: 0s !important;
        transition-duration: .5s;
        transform: translateY(14px);
    }
    .grain { display: none; }
    header, .mob-menu { backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3); }
}

/* ═══════════════════════ NAV UNDERLINE ═══════════════════════ */
nav a { position: relative; }
nav a::after {
    content: '';
    position: absolute;
    left: 15px; right: 15px; bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-brand);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--dur-med) var(--ease-out);
}
nav a:hover::after, nav a.nav-active::after { transform: scaleX(1); }
nav a.nav-invite::after { display: none; }

/* ═══════════════════════ SPOTLIGHT CARD GLOW ═══════════════════════ */
.feat-card, .hiw-card, .cmd-card, .price-card, .team-card, .msrv-card, .preview-card {
    isolation: isolate;
}
.feat-card::before, .hiw-card::before, .cmd-card::before, .price-card::before,
.team-card .spot, .msrv-card::before, .preview-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(123,92,240,0.16), transparent 65%);
    transition: opacity var(--dur-med);
}
.feat-card:hover::before, .hiw-card:hover::before, .cmd-card:hover::before,
.price-card:hover::before, .msrv-card:hover::before { opacity: 1; }
.feat-card > *, .hiw-card > *, .cmd-card > *, .price-card > * { position: relative; z-index: 1; }

/* ═══════════════════════ BUTTON SHINE SWEEP ═══════════════════════ */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
    transform: skewX(-20deg);
    transition: left .65s var(--ease-out);
}
.btn-primary:hover::after { left: 130%; }

/* ═══════════════════════ HERO PREVIEW TILT ═══════════════════════ */
.hero-preview { perspective: 1000px; }
.preview-card {
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .35s var(--ease-out), border-color var(--dur-med);
}
.hero-preview:hover .preview-card { border-color: rgba(123,92,240,0.3); }

/* ═══════════════════════ CONFETTI BURST (kinetics.colorion.co pattern) ═══════════════════════ */
.confetti-particle {
    position: absolute;
    width: 6px; height: 6px;
    pointer-events: none;
    z-index: 5;
    animation: confetti-fly .9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes confetti-fly {
    to { transform: translate(var(--tx), var(--ty)) rotate(var(--rot)); opacity: 0; }
}
.hero h1 span {
    display: block;
    opacity: 0;
    transform: translateY(28px);
    animation: line-in .8s var(--ease-out) forwards;
}
.hero h1 span:nth-child(1) { animation-delay: .05s; }
.hero h1 span:nth-child(2) { animation-delay: .18s; }
.hero h1 span:nth-child(3) { animation-delay: .31s; }
@keyframes line-in { to { opacity: 1; transform: translateY(0); } }
.hero-pill, .hero-desc, .btns, .hero-preview, .stats-row {
    opacity: 0;
    animation: fade-up .8s var(--ease-out) forwards;
}
.hero-pill { animation-delay: 0s; }
.hero-desc { animation-delay: .42s; }
.btns { animation-delay: .52s; }
.hero-preview { animation-delay: .62s; }
.stats-row { animation-delay: .72s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    .hero h1 span, .hero-pill, .hero-desc, .btns, .hero-preview, .stats-row { animation: none; opacity: 1; transform: none; }
}
