:root {
    --primary-blue: #7c3aed;
    --primary-blue-light: #8b5cf6;
    --primary-blue-dark: #5b21b6;
    --bg-base: #030305;
    --bg-elevated: #0a0814;
    --bg-card: rgba(12, 10, 24, 0.7);
    --bg-card-solid: #0c0a18;
    --accent-glow: rgba(139, 92, 246, 0.15);
    --accent-cyan: #22d3ee;
    --accent-cyan-bright: #67e8f9;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --border-subtle: rgba(148, 163, 184, 0.08);
    --border-medium: rgba(148, 163, 184, 0.14);
}

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

html {
    background: #030305;
    min-height: 100%;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    font-family: 'Inter', sans-serif;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to bottom, #030305 0%, #07050f 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 15% 5%, rgba(124, 58, 237, 0.06) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 95%, rgba(34, 211, 238, 0.04) 0%, transparent 45%);
    z-index: -1;
    pointer-events: none;
}

a { text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; vertical-align: middle; }
button { cursor: pointer; font-family: inherit; }

.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }

/* ===== Topbar ===== */
.topbar {
    background: #050308;
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
    padding: 0.5rem 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    position: relative;
    z-index: 99;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.topbar-item i {
    color: #94a3b8;
    font-size: 0.9rem;
}
.topbar-item strong {
    color: #f1f5f9;
    font-weight: 600;
}
.topbar-sep {
    color: rgba(148, 163, 184, 0.3);
}
.topbar-cta {
    color: #c4b5fd;
}
@media (max-width: 600px) {
    .topbar { font-size: 0.7rem; padding: 0.4rem 0; }
    .topbar-inner { gap: 0.6rem; }
}

/* ===== Header ===== */
.header {
    background: rgba(5, 4, 10, 0.75);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.header.scrolled {
    background: rgba(5, 4, 10, 0.92);
    border-bottom-color: rgba(148, 163, 184, 0.1);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.logo {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #f1f5f9;
    transition: color 0.2s ease;
}
.logo:hover { color: #c4b5fd; }
.nav-pill {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.3rem;
    background: rgba(20, 18, 30, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.06);
}
.nav-link.active {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.08);
}
.social-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.social-icon {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}
.social-icon:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.04);
}
.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
    display: none;
}
.mobile-menu-btn:hover { color: var(--primary-blue); }

/* Mobile nav */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: rgba(15, 13, 31, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-left: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 2rem 1.5rem;
}
.mobile-nav.active { right: 0; }
.mobile-nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
}
.mobile-nav-links {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.mobile-nav-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.mobile-nav-link:hover {
    background: rgba(124, 58, 237, 0.15);
    color: var(--primary-blue-light);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}
.mobile-overlay.active { opacity: 1; visibility: visible; }

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .nav-pill, .social-row { display: none !important; }
    html, body {
        background: linear-gradient(135deg, #030305 0%, #0a0816 50%, #050309 100%) !important;
        background-attachment: scroll;
        min-height: 100vh;
    }
    body::before {
        animation: none;
        background: radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.06) 0%, transparent 55%),
                    radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.04) 0%, transparent 55%);
    }
}

/* ===== Hero ===== */
.hero {
    padding: 2rem 0 1rem;
    position: relative;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 1.25rem;
}
.hero-title-accent {
    background: linear-gradient(135deg, #a78bfa 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hero-subtitle {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 480px;
}
.hero-card {
    position: relative;
    display: block;
    background: rgba(12, 10, 22, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 18px;
    padding: 1.25rem 1.4rem;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform 0.25s ease, border-color 0.25s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.hero-card:hover {
    transform: translateY(-2px);
    border-color: rgba(148, 163, 184, 0.2);
}
.hero-card-glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.1), transparent 55%);
    pointer-events: none;
}
.hero-card-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: #e2e8f0;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 0.65rem;
}
.hero-card-title {
    position: relative;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}
.hero-card-desc {
    position: relative;
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.45;
    margin-bottom: 0.85rem;
}
.hero-card-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    transition: all 0.25s ease;
}
.hero-card:hover .hero-card-cta {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.32);
}
.hero-rotator {
    position: relative;
    display: grid;
}
.hero-rotator-slide {
    grid-column: 1;
    grid-row: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
.hero-rotator-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.hero-rotator-dots {
    position: absolute;
    bottom: -1.4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 2;
}
.hero-rotator-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.3);
    border: none;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
}
.hero-rotator-dot:hover { background: rgba(148, 163, 184, 0.55); }
.hero-rotator-dot.is-active {
    background: #c4b5fd;
    width: 18px;
    border-radius: 999px;
}
@media (max-width: 900px) {
    .hero { padding: 1.5rem 0 0.5rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-card { padding: 1.4rem; }
}

/* ===== Controls Section ===== */
.controls-section {
    background: transparent;
    border: none;
    padding: 1rem 0 0.5rem;
    margin: 1.5rem 0 0;
    box-shadow: none;
}
.search-wrap {
    max-width: 720px;
    margin: 0 auto;
}
.search-pill {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(12, 10, 24, 0.6);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 999px;
    padding: 0 0.5rem 0 1.25rem;
    transition: all 0.25s ease;
}
.search-pill:focus-within {
    border-color: rgba(148, 163, 184, 0.25);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04), 0 8px 28px rgba(0, 0, 0, 0.4);
    background: rgba(12, 10, 24, 0.85);
}
.search-pill-icon {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-right: 0.6rem;
}
.search-pill:focus-within .search-pill-icon { color: #f1f5f9; }
.search-bar {
    flex: 1;
    padding: 0.95rem 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 0.95rem;
    text-align: left;
    outline: none;
}
.search-bar::placeholder { color: var(--text-muted); }

/* ===== Category Row ===== */
.category-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
.category-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 0.25rem;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: safe center;
}
.category-strip::-webkit-scrollbar { display: none; }
.cat-item {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    min-width: 64px;
    flex-shrink: 0;
}
.cat-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(15, 13, 31, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 1.2rem;
    transition: all 0.25s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.cat-item:hover .cat-circle {
    border-color: rgba(148, 163, 184, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
}
.cat-item.active .cat-circle {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.cat-label {
    font-size: 0.72rem;
    color: #94a3b8;
    text-align: center;
    white-space: nowrap;
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cat-item.active .cat-label,
.cat-item:hover .cat-label { color: #e2e8f0; }
.cat-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 13, 31, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}
.cat-arrow:hover {
    background: rgba(76, 29, 149, 0.5);
    border-color: rgba(139, 92, 246, 0.5);
    color: #ffffff;
}
@media (max-width: 768px) {
    .cat-arrow { display: none; }
    .cat-circle { width: 48px; height: 48px; font-size: 1.05rem; }
    .cat-label { font-size: 0.65rem; max-width: 64px; }
    .cat-item { min-width: 56px; }
    .category-strip { gap: 0.75rem; }
}

/* ===== Section Header ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 1.5rem 0 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.section-title {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.015em;
    line-height: 1.1;
    margin: 0;
}
.section-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0.35rem 0 0;
}
.section-pill {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* ===== Product Grid ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}
.product-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}
.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.product-card:hover::before { opacity: 1; }
.product-image-container {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: transparent;
}
@media (min-width: 768px) { .product-image-container { height: 240px; } }
@media (min-width: 1024px) { .product-image-container { height: 280px; } }
.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
    mix-blend-mode: normal;
    padding: 0.5rem;
    filter: brightness(0.98) contrast(1.03);
    transform: scale(1.1);
    will-change: transform, filter;
    content-visibility: auto;
}
.product-card:hover .product-image {
    transform: scale(1.15);
    filter: brightness(1.02) contrast(1.05);
}
.product-info {
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 2;
    background: transparent;
}
@media (min-width: 768px) { .product-info { padding: 1.2rem; } }
@media (min-width: 1024px) { .product-info { padding: 1.4rem; } }
.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.3rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5rem;
}
.product-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: #67e8f9;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 14px rgba(34, 211, 238, 0.25);
}
.product-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.product-stats .mr-1 { margin-right: 0.25rem; }
.capitalize { text-transform: capitalize; }

.copy-link-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    background: rgba(15, 13, 31, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
    font-size: 0.9rem;
}
.copy-link-btn:hover {
    background: rgba(124, 58, 237, 0.9);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    transform: scale(1.05);
}
.copy-link-btn.copied {
    background: rgba(34, 197, 94, 0.9);
    border-color: rgba(34, 197, 94, 0.5);
}

/* ===== Footer ===== */
.footer {
    background: rgba(10, 15, 30, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
    color: var(--text-muted);
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive (mobile grid) ===== */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .product-name { font-size: 0.9rem; }
    .product-price { font-size: 1rem; }
    .product-stats { font-size: 0.65rem; gap: 0.25rem; }
    .product-stats span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 48%;
    }
}
