@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap');

@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Vazirmatn', sans-serif;
}

:root {
    --bg: #070908;
    --bg-soft: #0c100d;
    --card: rgba(15, 21, 17, .82);
    --border: rgba(77, 255, 129, .12);

    --green: #39ff72;
    --green-dark: #16c853;
    --text: #f2f5f3;
    --muted: #8e9992;

    --radius: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Vazirmatn', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font-family: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}


/* Background */

.background-glow {
    position: fixed;
    width: 700px;
    height: 700px;
    top: -300px;
    right: -250px;

    background: rgba(57, 255, 114, .08);

    filter: blur(120px);

    border-radius: 50%;

    pointer-events: none;
}


/* Header */

.header {
    height: 78px;

    border-bottom:
        1px solid rgba(255,255,255,.05);

    background:
        rgba(7,9,8,.72);

    backdrop-filter:
        blur(20px);

    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 20px;
}

.logo-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background:
        rgba(57,255,114,.1);

    border:
        1px solid rgba(57,255,114,.2);

    font-size: 23px;
}

.logo strong {
    color: var(--green);
}

.logo small {
    color: white;
    font-weight: 500;
    margin-right: 3px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav a {
    color: var(--muted);
    padding: 9px 15px;
    border-radius: 10px;
    transition: .2s;
}

.nav a:hover,
.nav a.active {
    color: var(--green);
    background: rgba(57,255,114,.07);
}

.admin-link {
    border: 1px solid var(--border);
    padding: 9px 17px;
    border-radius: 10px;
    color: var(--muted);
}

.admin-link:hover {
    color: var(--green);
    border-color: rgba(57,255,114,.3);
}


/* Hero */

.hero {
    padding: 100px 0 70px;

    background:
        radial-gradient(
            circle at 20% 40%,
            rgba(57,255,114,.07),
            transparent 40%
        );
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
}

.hero-text {
    flex: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 7px 13px;

    border:
        1px solid rgba(57,255,114,.18);

    border-radius: 50px;

    color: var(--green);

    background:
        rgba(57,255,114,.06);

    font-size: 13px;
}

.badge span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 12px var(--green);
}

.hero h1 {
    font-size: clamp(38px, 5vw, 65px);
    line-height: 1.2;

    margin: 22px 0;

    letter-spacing: -2px;
}

.hero h1 strong {
    display: block;
    color: var(--green);
}

.hero p {
    color: var(--muted);

    font-size: 16px;

    line-height: 2;

    max-width: 600px;
}


/* Search */

.search-box {
    display: flex;
    align-items: center;

    margin-top: 30px;

    width: min(650px, 100%);

    height: 64px;

    padding: 6px;

    border:
        1px solid rgba(255,255,255,.08);

    border-radius: 17px;

    background:
        rgba(255,255,255,.035);

    transition: .25s;
}

.search-box:focus-within {
    border-color:
        rgba(57,255,114,.35);

    box-shadow:
        0 0 30px rgba(57,255,114,.06);
}

.search-icon {
    padding: 0 14px;
    opacity: .6;
}

.search-box input {
    flex: 1;

    height: 100%;

    background: transparent;

    border: 0;
    outline: 0;

    color: white;

    font-size: 14px;
}

.search-box input::placeholder {
    color: #67716b;
}

.search-box button {
    height: 52px;

    border: 0;

    padding: 0 25px;

    border-radius: 12px;

    background: var(--green);

    color: #031006;

    font-weight: 800;

    cursor: pointer;

    transition: .2s;
}

.search-box button:hover {
    background: #5cff8a;

    transform: translateY(-1px);
}


/* Snake */

.hero-snake {
    width: 310px;
    height: 310px;

    display: grid;
    place-items: center;
}

.snake-orb {
    width: 260px;
    height: 260px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(57,255,114,.16),
            rgba(57,255,114,.025) 55%,
            transparent 70%
        );

    border:
        1px solid rgba(57,255,114,.12);

    box-shadow:
        0 0 100px rgba(57,255,114,.08);

    animation:
        float 5s ease-in-out infinite;
}

.snake-face {
    font-size: 110px;

    filter:
        drop-shadow(
            0 0 30px rgba(57,255,114,.35)
        );
}

@keyframes float {

    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}


/* Sections */

.section {
    padding: 45px 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;

    margin-bottom: 25px;
}

.eyebrow {
    color: var(--green);

    font-size: 11px;

    letter-spacing: 3px;

    font-weight: 800;
}

.section-heading h2 {
    font-size: 26px;
    margin-top: 5px;
}

.app-count {
    color: var(--muted);
    font-size: 13px;
}


/* Categories */

.categories {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(170px, 1fr));

    gap: 12px;
}

.category {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 16px;

    background:
        var(--card);

    border:
        1px solid var(--border);

    border-radius: 15px;

    transition: .25s;
}

.category:hover {
    border-color:
        rgba(57,255,114,.3);

    transform: translateY(-3px);
}

.category-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    background:
        rgba(57,255,114,.06);

    border-radius: 10px;
}

.category-name {
    flex: 1;

    font-size: 13px;

    font-weight: 600;
}

.category-count {
    color: var(--muted);

    font-size: 12px;
}


/* Apps */

.apps-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(300px, 1fr));

    gap: 18px;
}

.app-card {
    position: relative;

    display: flex;
    gap: 18px;

    padding: 21px;

    background:
        linear-gradient(
            145deg,
            rgba(18,25,20,.92),
            rgba(10,14,11,.92)
        );

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    transition: .25s;

    overflow: hidden;
}

.app-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(57,255,114,.25);

    box-shadow:
        0 20px 50px rgba(0,0,0,.25);
}

.app-icon {
    flex-shrink: 0;

    width: 70px;
    height: 70px;

    display: grid;
    place-items: center;

    border-radius: 17px;

    background:
        rgba(255,255,255,.04);

    border:
        1px solid rgba(255,255,255,.06);

    overflow: hidden;
}

.app-icon img {
    width: 54px;
    height: 54px;

    object-fit: contain;
}

.app-info {
    min-width: 0;
    flex: 1;
}

.app-category {
    color: var(--green);

    font-size: 10px;

    font-weight: 700;
}

.app-info h3 {
    font-size: 18px;

    margin: 4px 0 6px;
}

.app-info p {
    color: var(--muted);

    font-size: 12px;

    line-height: 1.8;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;
}

.app-meta {
    display: flex;
    gap: 12px;

    margin-top: 12px;

    color: #66716a;

    font-size: 10px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 15px;

    padding: 9px 12px;

    border-radius: 10px;

    background:
        rgba(57,255,114,.07);

    color: var(--green);

    font-size: 11px;

    font-weight: 700;

    transition: .2s;
}

.download-btn:hover {
    background:
        var(--green);

    color: #031006;
}

.featured {
    position: absolute;

    top: 13px;
    left: 13px;

    padding: 4px 8px;

    background:
        rgba(57,255,114,.1);

    color: var(--green);

    border-radius: 7px;

    font-size: 9px;

    font-weight: 700;
}


/* Empty */

.empty {
    text-align: center;

    padding: 70px 20px;

    background:
        var(--card);

    border:
        1px solid var(--border);

    border-radius: var(--radius);
}

.empty > div {
    font-size: 45px;
}

.empty h3 {
    margin-top: 15px;
}

.empty p {
    color: var(--muted);

    margin: 8px 0 20px;

    font-size: 13px;
}

.empty a {
    color: var(--green);

    font-size: 13px;
}


/* Footer */

.footer {
    margin-top: 70px;

    border-top:
        1px solid rgba(255,255,255,.05);

    padding: 30px 0;

    color: var(--muted);

    font-size: 12px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
}

.footer-logo {
    color: var(--green);

    font-weight: 700;
}


/* Mobile */

@media (max-width: 800px) {

    .nav {
        display: none;
    }

    .hero {
        padding-top: 65px;
    }

    .hero-content {
        display: block;
    }

    .hero-snake {
        display: none;
    }

    .hero h1 {
        font-size: 42px;
    }

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

}

@media (max-width: 500px) {

    .container {
        width:
            min(100% - 24px, 1180px);
    }

    .header {
        height: 68px;
    }

    .admin-link {
        display: none;
    }

    .hero h1 {
        font-size: 35px;
    }

    .search-box {
        height: 58px;
    }

    .search-box button {
        height: 46px;
        padding: 0 17px;
    }

    .app-card {
        padding: 16px;
    }

}
