:root {
    --bg-color: #000000;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --accent: #2997ff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(0, 0, 0, 0.72);
    --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.4;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-inner {
    width: 100%;
    max-width: 980px;
    padding: 0 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 1;
}

.nav-link {
    font-size: 12px;
    color: var(--text-primary);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    letter-spacing: -0.01em;
}

.nav-link:hover {
    opacity: 1;
}

/* General Layout */
main {
    padding-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 22px 0px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(41, 151, 255, 0.15) 0%, rgba(0, 0, 0, 0) 65%);
    z-index: -1;
    pointer-events: none;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    max-width: 800px;
    background: linear-gradient(180deg, #fff 0%, #a0a0a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero p {
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 400;
    letter-spacing: 0.008em;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 16px auto 0px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.cta-group {
    display: flex;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.022em;
    padding: 14px 28px;
    border-radius: 980px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.btn-primary {
    background-color: var(--text-primary);
    color: #000;
}

.btn-primary:hover {
    transform: scale(1.03);
    background-color: #fff;
}

/* Products Grid */
.products-section {
    width: 100%;
    max-width: 980px;
    padding: 40px 22px 120px;
}

.filter-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.filters {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border-radius: 980px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 980px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: var(--text-primary);
}

.filter-btn.active {
    background: #fff;
    color: #000;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.product-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tags-wrapper {
    position: absolute;
    top: 40px;
    right: 40px;
    display: flex;
    gap: 8px;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 4px 10px;
    border-radius: 6px;
}

.product-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.product-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: auto;
    padding-bottom: 24px;
}

.learn-more {
    font-size: 15px;
    font-weight: 500;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

.learn-more svg {
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.product-card:hover .learn-more svg {
    transform: translateX(4px);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 17px;
    display: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@media (max-width: 768px) {
    .hero {
        padding-top: 60px;
    }

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

    .product-card {
        padding: 30px;
    }

    .tags-wrapper {
        top: 30px;
        right: 30px;
    }

    .app-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 24px;
    }
}