/* ==========================================================================
   Apleixa Technologies — Product Catalog (listing + detail pages)
   ========================================================================== */

.prod-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 50px;
}

.prod-tab {
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    background: #fff;
    color: #334155;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.prod-tab:hover {
    border-color: rgba(124, 58, 237, 0.4);
    color: #7c3aed;
}

.prod-tab.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #2563eb, #7c3aed, #06b6d4);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
}

.prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.prod-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        opacity 0.3s ease,
        background 0.2s ease;
    display: flex;
    flex-direction: column;
}

html.theme-dark .prod-card {
    background: #12172a;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.prod-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.18);
}

.prod-card.is-hidden {
    display: none;
}

.prod-card-image {
    height: 190px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.12),
        rgba(124, 58, 237, 0.12)
    );
}

.prod-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.prod-card:hover .prod-card-image img {
    transform: scale(1.06);
}

.prod-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.65);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.prod-card-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.prod-card-body h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a !important;
}

html.theme-dark .prod-card-body h3 {
    color: #ffffff !important;
}

.prod-card-body h3 a {
    color: inherit !important;
}

.prod-card-body p {
    font-size: 14px;
    color: #64748b !important;
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
}

html.theme-dark .prod-card-body p {
    color: #94a3b8 !important;
}

.prod-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    width: fit-content;
    transition: gap 0.2s ease;
}

.prod-card-btn:hover {
    gap: 12px;
    color: #7c3aed;
}

.prod-empty {
    text-align: center;
    padding: 70px 20px;
    color: #64748b;
}

/* ── Product detail page ── */
.prod-hero {
    background: linear-gradient(135deg, #0b1023, #1e1b4b, #0b1023);
    color: #fff;
    padding: 140px 0 90px;
    position: relative;
    overflow: hidden;
}

.prod-hero > .container {
    position: relative;
    z-index: 1;
}

.prod-hero-decor {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 12% 20%,
            rgba(37, 99, 235, 0.4),
            transparent 42%
        ),
        radial-gradient(
            circle at 85% 15%,
            rgba(124, 58, 237, 0.35),
            transparent 45%
        ),
        radial-gradient(
            circle at 70% 85%,
            rgba(6, 182, 212, 0.3),
            transparent 42%
        );
    filter: blur(10px);
    animation: prodHeroDrift 14s ease-in-out infinite alternate;
}

@keyframes prodHeroDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(-2%, 2%, 0) scale(1.08);
    }
}

.prod-hero-inner {
    max-width: 740px;
    margin: 0 auto;
    text-align: center;
}

.prod-hero-logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: #fff;
    padding: 10px;
    object-fit: contain;
    margin: 0 auto 22px;
}

.prod-hero-tagline {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #60a5fa, #c084fc, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 14px;
}

.prod-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #fff !important;
}

.prod-hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75) !important;
    max-width: 620px;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.prod-hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.prod-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-weight: 600;
    border: none;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

.prod-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-weight: 600;
}

.prod-breadcrumb {
    margin-bottom: 24px;
    font-size: 13px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.prod-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
}

.prod-section {
    padding: 80px 0;
}

/* Panel backgrounds — theme-aware so the section reads correctly whether
   the site-wide dark/light toggle (html.theme-dark / html.theme-light) is
   on. Default (no override) matches the light theme. */
.prod-panel {
    background: #ffffff;
    transition: background 0.2s ease;
}

.prod-panel-tint {
    background: #f8fafc;
    transition: background 0.2s ease;
}

html.theme-dark .prod-panel {
    background: #0b0f1f;
}

html.theme-dark .prod-panel-tint {
    background: #11162e;
}

.prod-section-title {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 50px;
}

.prod-section-title span {
    color: #7c3aed;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.prod-section-title h2 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a !important;
    margin: 10px 0 0;
}

html.theme-dark .prod-section-title h2 {
    color: #ffffff !important;
}

.prod-subheading {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #0f172a !important;
}

html.theme-dark .prod-subheading {
    color: #ffffff !important;
}

.prod-body-text {
    color: #475569;
}

html.theme-dark .prod-body-text {
    color: #b6bfd6;
}

.prod-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px 26px;
}

.prod-feature-card {
    position: relative;
    background: linear-gradient(160deg, #ffffff, #f4f7ff);
    border: 1px solid rgba(37, 99, 235, 0.09);
    border-radius: 20px;
    padding: 32px 26px 28px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.prod-feature-grid.is-visible .prod-feature-card {
    opacity: 1;
    transform: translateY(0);
}

.prod-feature-card::after {
    content: attr(data-num);
    position: absolute;
    top: -10px;
    right: 16px;
    font-size: 58px;
    font-weight: 800;
    color: rgba(37, 99, 235, 0.07);
    line-height: 1;
    pointer-events: none;
}

html.theme-dark .prod-feature-card {
    background: linear-gradient(160deg, #141a30, #0e1424);
    border-color: rgba(255, 255, 255, 0.07);
}

html.theme-dark .prod-feature-card::after {
    color: rgba(255, 255, 255, 0.05);
}

.prod-feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.16);
}

html.theme-dark .prod-feature-card:hover {
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 20px 45px rgba(124, 58, 237, 0.25);
}

.prod-feature-icon {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    margin-bottom: 20px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
    transition: transform 0.3s ease;
}

.prod-feature-card:hover .prod-feature-icon {
    transform: scale(1.08) rotate(-4deg);
}

.prod-feature-card h3 {
    position: relative;
    z-index: 1;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a !important;
    margin-bottom: 10px;
}

html.theme-dark .prod-feature-card h3 {
    color: #ffffff !important;
}

.prod-feature-card p {
    position: relative;
    z-index: 1;
    font-size: 14px;
    color: #64748b !important;
    line-height: 1.65;
}

html.theme-dark .prod-feature-card p {
    color: #94a3b8 !important;
}

.prod-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.prod-gallery-grid a {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.prod-gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.prod-gallery-grid a:hover img {
    transform: scale(1.08);
}

.prod-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.prod-tech-badge {
    padding: 8px 18px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
    font-size: 13px;
}

/* Business benefits — animated step sequence rather than a plain box grid */
.prod-benefit-sequence {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px 18px;
    padding-top: 10px;
}

.prod-benefit-track {
    position: absolute;
    top: 46px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(
        90deg,
        #2563eb,
        #7c3aed,
        #06b6d4,
        #2563eb,
        #7c3aed,
        #06b6d4
    );
    background-size: 200% 100%;
    opacity: 0.35;
    animation: prodTrackFlow 6s linear infinite;
}

@media (max-width: 767px) {
    .prod-benefit-track {
        display: none;
    }
}

@keyframes prodTrackFlow {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.prod-benefit-step {
    position: relative;
    z-index: 1;
    flex: 1 1 150px;
    max-width: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.prod-benefit-sequence.is-visible .prod-benefit-step {
    opacity: 1;
    transform: translateY(0);
}

.prod-benefit-num {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 8px;
}

html.theme-dark .prod-benefit-num {
    color: #64748b;
}

.prod-benefit-icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 24px;
    color: #fff;
    margin-bottom: 14px;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.32);
}

.prod-benefit-step:nth-child(6n + 2) .prod-benefit-icon-badge {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
}

.prod-benefit-step:nth-child(6n + 3) .prod-benefit-icon-badge {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.prod-benefit-step:nth-child(6n + 4) .prod-benefit-icon-badge {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.prod-benefit-step:nth-child(6n + 5) .prod-benefit-icon-badge {
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
}

.prod-benefit-step:nth-child(6n + 6) .prod-benefit-icon-badge {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
}

.prod-benefit-step:nth-child(6n + 1) .prod-benefit-icon-badge {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.prod-benefit-step:hover .prod-benefit-icon-badge {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 18px 34px rgba(124, 58, 237, 0.4);
}

.prod-benefit-icon-badge {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.prod-benefit-label {
    font-weight: 600;
    font-size: 14.5px;
    color: #0f172a !important;
    line-height: 1.4;
}

html.theme-dark .prod-benefit-label {
    color: #ffffff !important;
}

.prod-faq-item {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
}

.prod-faq-question {
    padding: 18px 22px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
}

.prod-faq-question i {
    transition: transform 0.25s ease;
    color: #7c3aed;
}

.prod-faq-item.is-open .prod-faq-question i {
    transform: rotate(180deg);
}

.prod-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
    padding: 0 22px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.prod-faq-item.is-open .prod-faq-answer {
    padding-bottom: 20px;
}

.prod-cta-band {
    background: linear-gradient(135deg, #2563eb, #7c3aed, #06b6d4);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    color: #fff;
}

.prod-cta-band h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 14px;
    color: #fff !important;
}

.prod-cta-band p {
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: 26px;
}

.prod-cta-band-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.prod-cta-band-btns a {
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
}

.prod-cta-band-btns .primary {
    background: #fff;
    color: #2563eb;
}

.prod-cta-band-btns .secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

@media (max-width: 767px) {
    .prod-hero {
        padding: 120px 0 60px;
    }

    .prod-hero h1 {
        font-size: 30px;
    }
}
