:root {
    --font-heading: 'Outfit', sans-serif;
    --font-sans: 'Inter', sans-serif;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
}

:root {
    --bg-body: #F8FAFC; 
    --bg-surface: #FFFFFF;
    --bg-card: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --primary: #2563EB; 
    --primary-hover: #1D4ED8; 
    --secondary: #1E293B; 
    --accent: #F59E0B;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 12px -2px rgb(0 0 0 / 0.08); 
    --radius: .75rem;
    --font-sans: "Inter", system-ui, -apple-system, sans-serif;
}

[data-theme=dark] {
    --bg-body: #0f172a;
    --bg-surface: #1e293b;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #818cf8;
    --primary-hover: #6366f1;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / .5)
}

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

html {
    scroll-behavior: smooth
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    transition: background-color .3s ease, color .3s ease;
    animation: fadeIn .4s ease-out
}

@keyframes fadeIn {
    0% {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: color .2s ease
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px
}

ul {
    list-style: none
}

img {
    max-width: 100%;
    border-radius: var(--radius)
}

button {
    font-family: inherit;
    cursor: pointer
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: .9375rem;
    transition: all .2s cubic-bezier(.4, 0, .2, 1);
    border: 1px solid transparent;
    white-space: nowrap
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 6px -1px #6366f14d
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px #6366f166
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-main);
    border-color: var(--border-color)
}

.btn-secondary:hover {
    background-color: var(--bg-card);
    border-color: var(--primary)
}

.btn-ghost {
    background-color: transparent;
    color: var(--text-muted)
}

.btn-ghost:hover {
    background-color: var(--bg-surface);
    color: var(--text-main)
}

.btn-icon {
    padding: .5rem;
    border-radius: 50%
}

.card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all .3s ease
}

.card:hover {
    box-shadow: var(--shadow-md)
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem
}

.app-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary)
}

.app-card-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    background-color: var(--bg-surface);
    box-shadow: var(--shadow-sm)
}

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

.app-title {
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: .25rem;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-title a {
    text-decoration: none;
    color: inherit
}

.app-title a:hover {
    color: var(--primary)
}

.app-category {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: .25rem
}

.app-rating {
    display: flex;
    align-items: center;
    gap: .25rem;
    font-size: .85rem;
    color: #eab308;
    font-weight: 600
}

.app-description {
    font-size: .95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /*flex-grow: 1*/
}

.site-header {
    /*position: sticky;*/
    /*top: 0;*/
    /*z-index: 100;*/
    background-color: #ffffffe6;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: .75rem 0
}

[data-theme=dark] .site-header {
    background-color: #0f172ae6
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem flex-direction: row;
    flex-wrap: nowrap;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #55c8f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -.025em
}

.main-nav {
    display: flex;
    gap: .5rem
}

.search-container {
    flex: 1;
    max-width: 400px;
    position: relative
}

.search-input {
    width: 100%;
    padding: .625rem 1rem;
    border-radius: 99px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-main);
    transition: all .2s;
    font-size: .9rem
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px #6366f11a
}

.site-footer {
    background-color: var(--bg-surface);
    padding: 4rem 0 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color)
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main)
}

.footer-links li {
    margin-bottom: .75rem
}

.footer-links a {
    color: var(--text-muted);
    font-size: .9rem;
    transition: color .2s
}

.footer-links a:hover {
    color: var(--primary)
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    margin-top: 4rem
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -.02em
}

.section-link {
    color: var(--primary);
    font-weight: 500;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: .25rem
}

.section-link:hover {
    text-decoration: underline;
    gap: .5rem
}

.hero-featured {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
    margin-top: 2rem
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    margin-top: 3rem
}

.input {
    padding: .5rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-main)
}

.tag {
    display: inline-block;
    padding: .25rem .75rem;
    border-radius: 999px;
    font-size: .75rem;
    background-color: var(--bg-surface);
    color: var(--text-muted)
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 1.5rem;
    padding: .5rem
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 1rem
    }

    .search-container {
        order: 3;
        min-width: 100%;
        margin-top: .5rem
    }

    .menu-btn {
        display: flex;
        order: -1;
        margin-right: auto
    }

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 4;
        padding-top: 1rem;
        gap: .5rem
    }

    .main-nav.is-open {
        display: flex;
        animation: slideDown .3s ease-out
    }

    .main-nav .btn-ghost {
        justify-content: flex-start;
        padding: 1rem;
        background-color: var(--bg-surface);
        border: 1px solid var(--border-color)
    }

    .hero-featured {
        grid-template-columns: 1fr
    }
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.download-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem
}

@media (max-width: 768px) {
    .download-actions {
        flex-direction: column;
        width: 100%
    }

    .download-actions .btn {
        width: 100%
    }
}