/* ==========================================================================
   products.css — Page-specific overrides for /products
   Depends on: design-system.css, style.css, backgrounds.css
   Scope: hero, filter pills, product grid tiles, CTA box
   ========================================================================== */

/* ---------- page hero ---------- */
.page-hero {
    position: relative;
    padding: 120px 0 72px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.page-hero .scene { z-index: 0; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero-inner { max-width: 720px; }
.page-hero-inner .eyebrow { margin-bottom: 20px; }
.page-hero-title {
    font-size: clamp(36px, 5.4vw, 64px);
    letter-spacing: -0.035em;
    font-weight: 500;
    line-height: 1.02;
    margin: 0 0 18px;
    background: linear-gradient(110deg, #E6F4FF 0%, #4DD4FF 50%, #7BE6FF 100%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 24px rgba(0, 191, 255, 0.25));
}
.page-hero-subtitle {
    font-size: clamp(16px, 1.6vw, 19px);
    color: var(--ink-2);
    line-height: 1.55;
    margin: 0;
    max-width: 580px;
}

/* ---------- filter bar ---------- */
.filter-section { padding: 40px 0 24px; }
.filter-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.filter-btn {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: rgba(120, 150, 220, 0.04);
    color: var(--ink-2);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: all 0.2s;
    cursor: pointer;
}
.filter-btn:hover {
    border-color: var(--blue-2);
    color: var(--ink);
    background: rgba(0, 191, 255, 0.06);
}
.filter-btn.active {
    background: linear-gradient(135deg, #00D4FF 0%, #0080C8 100%);
    color: #031021;
    border-color: rgba(125, 230, 255, 0.6);
    box-shadow: 0 0 12px -2px rgba(0, 212, 255, 0.55);
}

/* ---------- product grid ---------- */
.products-section { padding: 40px 0 80px; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-item {
    background: linear-gradient(180deg, #071A2E 0%, #030B18 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.product-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 191, 255, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.product-item:hover {
    transform: translateY(-5px);
    border-color: var(--line-2);
    box-shadow: 0 18px 40px -18px rgba(0, 191, 255, 0.45);
}
.product-item:hover::before { opacity: 1; }

.product-header {
    display: flex;
    gap: 16px;
    align-items: center;
}
.product-icon-large {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line-2);
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.12), rgba(0, 110, 184, 0.05));
    box-shadow: 0 0 24px -6px rgba(0, 191, 255, 0.4), inset 0 0 10px rgba(0, 191, 255, 0.1);
}
.product-icon-large img { width: 100%; height: 100%; object-fit: cover; }

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.product-category {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue-glow);
}
.product-title {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1.2;
}

.product-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}
.product-description {
    margin: 0;
    color: var(--ink-2);
    font-size: 13.5px;
    line-height: 1.55;
    flex: 1;
}

.product-stats {
    display: flex;
    gap: 18px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--ink-2);
}
.stat-item i { color: var(--blue-glow); font-size: 11px; }

.product-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 6px;
    border: 1px solid var(--line-2);
    color: var(--ink);
    font-size: 12px;
    font-weight: 500;
    background: rgba(120, 150, 220, 0.05);
    transition: all 0.2s;
}
.store-btn:hover {
    background: rgba(0, 191, 255, 0.1);
    border-color: var(--blue-2);
    color: var(--ink);
    transform: translateY(-1px);
}
.store-btn i { color: var(--blue-glow); font-size: 13px; }

/* ---------- no results ---------- */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--ink-2);
}
.no-results i { font-size: 36px; color: var(--blue-glow); margin-bottom: 16px; }
.no-results h3 { font-size: 20px; color: var(--ink); margin: 0 0 8px; }
.no-results p { margin: 0; font-size: 14px; }

/* ---------- bottom cta ---------- */
.products-cta { padding: 60px 0 100px; }
.products-cta-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: clamp(36px, 6vw, 64px);
    background: linear-gradient(135deg, #002D54 0%, #004A7E 50%, #030B18 100%);
    border: 1px solid rgba(0, 212, 255, 0.35);
    box-shadow: inset 0 0 80px rgba(0, 191, 255, 0.15), 0 30px 80px -20px rgba(0, 120, 200, 0.35);
}
.products-cta-box .scene { z-index: 0; opacity: 0.4; }
.products-cta-inner { position: relative; z-index: 1; max-width: 640px; }
.products-cta-inner .eyebrow { margin-bottom: 18px; }
.products-cta-inner h2 {
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.03em;
    font-weight: 500;
    margin: 0 0 16px;
    color: #fff;
    line-height: 1.05;
}
.products-cta-inner h2 .serif { color: #B5F1FF; text-shadow: 0 0 20px rgba(0, 212, 255, 0.45); }
.products-cta-inner p { color: #9CCEE8; font-size: 15px; line-height: 1.6; margin: 0 0 24px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .page-hero { padding: 80px 0 48px; }
    .products-grid { grid-template-columns: 1fr; }
    .product-header { flex-direction: row; align-items: center; }
    .filter-container { justify-content: flex-start; }
}
