@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&family=Inter:wght@400;600;700;900&display=swap');

:root {
    --evil-bg: #0d0520;
    --evil-surface: #170e30;
    --evil-card: #1e1245;
    --evil-border: #2d1b69;
    --evil-300: #b08dff;
    --evil-400: #9055ff;
    --evil-500: #7c3aed;
    --evil-600: #6d28d9;
    --evil-700: #5b21b6;
    --evil-800: #4c1d95;
    --evil-text: #e2d9f3;
    --evil-muted: #9b8ec4;
    --evil-dim: #6b5b8a;
    --yellow: #fbbf24;
    --green: #34d399;
    --blue: #2563eb;
    --blue-hover: #1d4ed8;
    --tg-blue: #0088cc;
    --tg-blue-hover: #006da3;
}

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

body {
    background: var(--evil-bg);
    color: var(--evil-text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    line-height: 1.6;
}

.font-brand { font-family: 'Luckiest Guy', cursive; }

a { color: var(--evil-300); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

header {
    background: var(--evil-surface);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--evil-500);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.logo {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.6rem;
    color: var(--evil-300);
    letter-spacing: 1px;
    white-space: nowrap;
}
.logo span { color: var(--yellow); }

nav { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }

nav a {
    color: var(--evil-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s;
}
nav a:hover { color: #fff; background: rgba(124, 58, 237, 0.15); }
nav a.active { color: var(--evil-300); background: rgba(124, 58, 237, 0.2); }

.nav-cta {
    background: var(--tg-blue) !important;
    color: #fff !important;
    padding: 0.5rem 1rem !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    margin-left: 0.5rem;
}
.nav-cta:hover { background: var(--tg-blue-hover) !important; transform: scale(1.03); }

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--evil-300);
    font-size: 1.5rem;
    cursor: pointer;
}

.hero {
    text-align: center;
    padding: 5rem 2rem 3rem;
    background: radial-gradient(ellipse at center top, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
}

.hero h1 {
    font-family: 'Luckiest Guy', cursive;
    font-size: 3.5rem;
    color: var(--evil-300);
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(124, 58, 237, 0.4);
    animation: fadeInUp 0.6s ease-out;
}

.hero p {
    font-size: 1.2rem;
    color: var(--evil-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--tg-blue);
    color: white;
}
.btn-primary:hover { background: var(--tg-blue-hover); transform: scale(1.05); color: white; }

.btn-secondary {
    background: var(--evil-card);
    color: var(--evil-300);
    border: 1px solid var(--evil-border);
}
.btn-secondary:hover { background: var(--evil-700); color: white; }

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 1rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2.5rem;
    color: var(--evil-300);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--evil-dim);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section {
    max-width: 960px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.section-title {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.8rem;
    color: var(--evil-300);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card {
    background: var(--evil-surface);
    border: 1px solid var(--evil-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.15);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--evil-surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--evil-border);
}

th {
    background: var(--evil-500);
    color: white;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(45, 27, 105, 0.5);
    color: var(--evil-text);
    font-size: 0.95rem;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(124, 58, 237, 0.08); }

.rank-1 { color: #fbbf24; font-weight: 700; }
.rank-2 { color: #c0c0c0; font-weight: 700; }
.rank-3 { color: #cd7f32; font-weight: 700; }

.empty-state {
    text-align: center;
    color: var(--evil-dim);
    padding: 3rem 2rem;
    font-style: italic;
    background: var(--evil-surface);
    border-radius: 12px;
    border: 1px dashed var(--evil-border);
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.command-item {
    background: var(--evil-surface);
    border: 1px solid var(--evil-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.command-item code {
    background: var(--evil-card);
    color: var(--evil-300);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    font-weight: 600;
}

.command-item .desc {
    color: var(--evil-muted);
    font-size: 0.9rem;
}

.content { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem; }

.content h1 {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2.5rem;
    color: var(--evil-300);
    margin-bottom: 2rem;
}

.content h2 {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.5rem;
    color: var(--evil-400);
    margin: 2.5rem 0 1rem;
}

.content p, .content li {
    color: var(--evil-muted);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.content ol, .content ul { padding-left: 1.5rem; }

.content code {
    background: var(--evil-card);
    color: var(--evil-300);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.step-card {
    background: var(--evil-surface);
    border-left: 4px solid var(--evil-500);
    padding: 1.25rem 1.5rem;
    border-radius: 0 12px 12px 0;
    margin-bottom: 1rem;
}

.step-card p { margin-bottom: 0.5rem; }

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.store-card {
    background: var(--evil-surface);
    border: 1px solid var(--evil-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.store-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.15);
}
.store-card.featured {
    border-color: var(--yellow);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.1);
}

.store-card h3 {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.2rem;
    color: var(--evil-300);
    margin-bottom: 0.5rem;
}

.store-card .description {
    color: var(--evil-muted);
    font-size: 0.9rem;
    flex: 1;
    margin-bottom: 1rem;
}

.store-card .price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--green);
}
.store-card .price.free { color: var(--evil-muted); }

.featured-badge {
    display: inline-block;
    background: var(--yellow);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.premium-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.premium-feature {
    background: var(--evil-surface);
    border: 1px solid var(--evil-border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.2s;
}
.premium-feature:hover { transform: translateY(-3px); }

.premium-feature .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.premium-feature h3 {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.1rem;
    color: var(--evil-300);
    margin-bottom: 0.5rem;
}

.premium-feature p {
    color: var(--evil-muted);
    font-size: 0.9rem;
}

.view-all {
    display: inline-block;
    color: var(--evil-400);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.view-all:hover { border-color: var(--evil-400); color: var(--evil-300); }

footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--evil-dim);
    font-size: 0.85rem;
    border-top: 1px solid var(--evil-border);
    margin-top: 3rem;
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-link { text-decoration: none; display: flex; align-items: center; gap: 0.6rem; }

.nav-logo {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.4));
}

.hero-logo {
    width: 96px;
    height: 96px;
    display: block;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 4px 20px rgba(124, 58, 237, 0.5));
}

.logo-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-0 { margin-top: 0; }

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

.cta-section {
    background: var(--evil-surface);
    border-left: 4px solid var(--evil-500);
    padding: 2rem 1.5rem;
    border-radius: 0 12px 12px 0;
    margin-top: 3rem;
    text-align: center;
}

.cta-section h2 { margin-top: 0; }

@media (max-width: 768px) {
    header { padding: 0.75rem 1rem; }
    .logo { font-size: 1.2rem; }
    .nav-logo { width: 28px; height: 28px; }
    .hero-logo { width: 72px; height: 72px; }
    nav a { font-size: 0.8rem; padding: 0.3rem 0.5rem; }
    .nav-cta { margin-left: 0; }
    .hero { padding: 3rem 1rem 2rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .stats-bar { gap: 1.5rem; }
    .stat-number { font-size: 1.8rem; }
    .section-title { font-size: 1.4rem; }
    .commands-grid { grid-template-columns: 1fr; }
    .store-grid { grid-template-columns: 1fr; }
    .premium-features { grid-template-columns: 1fr; }
}
