/* ============================================
   JUPITER 9 - Dark Red Professional
   Home Page Styles
   ============================================ */

/* ── Hero Section ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--stripe-pattern);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(24, 26, 32, 0.95) 0%, rgba(31, 33, 40, 0.85) 50%, rgba(24, 26, 32, 0.98) 100%);
    z-index: 2;
}

.hero__bg-shape {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 3;
    max-width: 680px;
}

.hero__accent-bar {
    width: 60px;
    height: var(--accent-bar);
    background: var(--color-primary);
    margin-bottom: var(--space-xl);
}

.hero__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--space-lg);
}

.hero__label i {
    font-size: var(--fs-xs);
}

.hero__title {
    font-size: var(--fs-hero);
    font-weight: var(--fw-bold);
    color: var(--text-primary);
    line-height: 1.05;
    margin-bottom: var(--space-lg);
    letter-spacing: -1px;
}

.hero__title span {
    color: var(--color-primary);
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, var(--fs-xl));
    font-weight: var(--fw-light);
    color: var(--color-highlight);
    margin-bottom: var(--space-md);
    letter-spacing: 2px;
}

.hero__desc {
    font-size: var(--fs-md);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 520px;
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Products Section ── */
.products {
    background: var(--bg-primary);
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: var(--accent-bar) solid var(--color-primary);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition-base);
}

.product-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-6px);
}

.product-card__image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.product-card__image-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 50%, #2a2c34 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image-bg {
    transform: scale(1.05);
}

.product-card__image-icon {
    font-size: 3rem;
    color: var(--color-primary);
    opacity: 0.3;
}

.product-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: var(--color-primary);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-card__body {
    padding: var(--space-xl);
}

.product-card__category {
    font-size: var(--fs-xs);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-sm);
}

.product-card__title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.product-card__desc {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.product-card__price {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--text-primary);
}

.product-card__price small {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    font-weight: var(--fw-regular);
}

.product-card__btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    font-size: var(--fs-sm);
}

.product-card__btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* ── Stats Section ── */
.stats {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-3xl) 0;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50px;
    background: var(--border-color);
}

.stat-item__number {
    font-size: var(--fs-4xl);
    font-weight: var(--fw-bold);
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-item__label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: var(--fw-medium);
}

/* ── Features Section ── */
.features {
    background: var(--bg-primary);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0;
    transition: all var(--transition-base);
    overflow: hidden;
}

.feature-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.feature-card__icon-area {
    padding: var(--space-2xl) var(--space-xl) var(--space-lg);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, transparent 60%);
    border-bottom: 1px solid var(--border-color);
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--color-primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xl);
    color: var(--color-primary);
}

.feature-card__body {
    padding: var(--space-xl);
}

.feature-card__title {
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.feature-card__desc {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ── Testimonials Section ── */
.testimonials {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.testimonial-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: var(--space-2xl);
    position: relative;
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-card-hover);
}

.testimonial-card__quote {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card__stars {
    display: flex;
    gap: 3px;
    margin-bottom: var(--space-lg);
}

.testimonial-card__stars i {
    color: var(--color-primary);
    font-size: var(--fs-sm);
}

.testimonial-card__text {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    font-style: italic;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.testimonial-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: var(--fw-bold);
    font-size: var(--fs-sm);
    flex-shrink: 0;
}

.testimonial-card__name {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
    margin-bottom: 2px;
}

.testimonial-card__role {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

/* ── CTA Section ── */
.cta {
    position: relative;
    padding: var(--space-4xl) 0;
    background: var(--bg-primary);
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--stripe-pattern);
    z-index: 1;
}

.cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, transparent 50%, rgba(220, 38, 38, 0.03) 100%);
    z-index: 1;
}

.cta__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta__accent-bar {
    width: 60px;
    height: var(--accent-bar);
    background: var(--color-primary);
    margin: 0 auto var(--space-xl);
}

.cta__title {
    font-size: clamp(1.75rem, 3vw, var(--fs-3xl));
    font-weight: var(--fw-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.cta__desc {
    font-size: var(--fs-md);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.cta__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .products__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2xl);
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 140px 0 80px;
    }

    .hero__bg-shape {
        width: 300px;
        height: 300px;
        right: -150px;
    }

    .hero__scroll {
        display: none;
    }

    .products__grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }

    .stat-item::after {
        display: none !important;
    }

    .stat-item__number {
        font-size: var(--fs-2xl);
    }

    .features__grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .testimonials__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        text-align: center;
    }

    .cta__actions {
        flex-direction: column;
        align-items: center;
    }
}
