/* Nexnova Products */

.products {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-deep) 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.product-card {
    scroll-margin-top: calc(var(--nav-height) + 1rem);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #a78bfa);
    opacity: 0;
    transition: opacity var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card--featured {
    border-color: rgba(0, 212, 255, 0.25);
}

.product-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    color: var(--bg-deep);
}

.product-badge--new {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.product-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.product-icon--pos { background: rgba(0, 212, 255, 0.15); color: var(--accent); }
.product-icon--lite { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.product-icon--rental { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.product-icon--school { background: rgba(167, 139, 250, 0.15); color: #a78bfa; }

.product-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.product-tagline {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.product-card > p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    flex: 1;
}

.product-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.product-features li {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
}

.platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.platform {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.55rem;
    border-radius: 6px;
    background: var(--accent-muted);
    color: var(--accent);
}

.platform--win { background: rgba(0, 120, 215, 0.15); color: #60a5fa; }
.platform--android { background: rgba(61, 220, 132, 0.12); color: #4ade80; }
.platform--web { background: rgba(251, 146, 60, 0.12); color: #fb923c; }
.platform--ios { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }

.product-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: auto;
    transition: gap var(--transition);
}

.product-cta:hover {
    gap: 0.6rem;
}

.products-cta-row {
    text-align: center;
    margin-top: 2.5rem;
}

/* Products page hero */
.products-page-hero {
    padding: calc(var(--nav-height) + 4rem) 0 3rem;
    text-align: center;
    background: var(--bg-deep);
}

.products-page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
}

.products-page-hero p {
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.75;
}

.products-page-body {
    padding: 2rem 0 6rem;
    background: var(--bg-primary);
}

.products-page-body .products-grid {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .products-grid,
    .products-page-body .products-grid {
        grid-template-columns: 1fr;
    }
}
