/* ==========================================================================
   Radhix Technologies - Software Products Verticals & Hub Styles
   Harmonized with Midnight Navy (#061329) & Sky Blue (#0878fe / #38bdf8)
   ========================================================================== */

:root {
    --prod-primary: #0878fe;
    --prod-primary-dark: #0459d6;
    --prod-dark: #061329;
    --prod-navy: #0a1f3c;
    --prod-accent: #38bdf8;
    --prod-surface: #ffffff;
    --prod-muted-bg: #f5f8ff;
    --prod-border: #dbe6f6;
    --prod-text: #0f172a;
    --prod-text-muted: #53698e;
}

/* ==========================================================================
   Product Hub & Detail Hero
   ========================================================================== */
.prod-hero,
.prod-hub-hero {
    background: radial-gradient(circle at 85% 15%, rgba(8, 120, 254, 0.25) 0%, transparent 45%),
                linear-gradient(135deg, #061329 0%, #092147 55%, #071936 100%);
    color: #ffffff;
    padding: 68px 0 78px;
    position: relative;
    overflow: hidden;
}

.prod-hub-hero {
    text-align: center;
    padding: 72px 0 82px;
}

.prod-hero::before,
.prod-hub-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 46px 46px;
    pointer-events: none;
    z-index: 0;
}

.prod-hero .container,
.prod-hub-hero .container {
    position: relative;
    z-index: 2;
}

.prod-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 18px;
    backdrop-filter: blur(8px);
}

.prod-hero-title {
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 800;
    line-height: 1.18;
    color: #ffffff !important;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.prod-hero-desc {
    font-size: 1.08rem;
    color: #cbd5e1;
    line-height: 1.68;
    margin-bottom: 28px;
    max-width: 630px;
}

.prod-hub-hero .prod-hero-desc {
    margin-left: auto;
    margin-right: auto;
    max-width: 760px;
}

.prod-hero-image-card {
    background: rgba(10, 31, 60, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.38);
    margin-bottom: 20px;
}

.prod-hero-image-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.prod-hero-image-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(6, 19, 41, 0.94);
    border-top: 1px solid rgba(56, 189, 248, 0.2);
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
}

.prod-hero-stats {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 18px;
    padding: 20px;
}

.prod-stat-item {
    text-align: center;
    padding: 10px 8px;
    background: rgba(6, 19, 41, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    height: 100%;
}

.prod-stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: #38bdf8;
    line-height: 1.1;
    margin-bottom: 4px;
}

.prod-stat-label {
    font-size: 0.76rem;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

/* ==========================================================================
   Pain Points Section ("Cost of Staying Manual")
   ========================================================================== */
.prod-section-muted {
    background: var(--prod-muted-bg);
    padding: 68px 0;
}

.prod-section-white {
    background: var(--prod-surface);
    padding: 68px 0;
}

.prod-pain-card {
    background: #ffffff;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: 14px;
    padding: 24px;
    height: 100%;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.prod-pain-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(239, 68, 68, 0.1);
}

.prod-pain-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #fef2f2;
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 14px;
}

/* ==========================================================================
   Business Benefits Section ("Measurable ROI & Gains")
   ========================================================================== */
.prod-benefit-card {
    background: #ffffff;
    border: 1px solid #bbf7d0;
    border-top: 4px solid #10b981;
    border-radius: 16px;
    padding: 26px 24px;
    height: 100%;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.prod-benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(16, 185, 129, 0.12);
}

.prod-benefit-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #ecfdf5;
    color: #059669;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

/* ==========================================================================
   3-Pillar Architecture Cards
   ========================================================================== */
.prod-pillar-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px 26px;
    border: 1px solid var(--prod-border);
    box-shadow: 0 6px 22px rgba(1, 25, 87, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.prod-pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(8, 120, 254, 0.13);
    border-color: #75b8ff;
}

.prod-pillar-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: #eff6ff;
    color: #0878fe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    margin-bottom: 18px;
}

.prod-pillar-features {
    list-style: none;
    padding-left: 0;
    margin: 16px 0 0;
}

.prod-pillar-features li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.5;
}

.prod-pillar-features li i {
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 0.92rem;
}

/* ==========================================================================
   Core Capabilities Modules Grid
   ========================================================================== */
.prod-module-card {
    background: #ffffff;
    border: 1px solid var(--prod-border);
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    box-shadow: 0 4px 16px rgba(1, 25, 87, 0.03);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.prod-module-card:hover {
    transform: translateY(-4px);
    border-color: #0878fe;
    box-shadow: 0 14px 28px rgba(8, 120, 254, 0.1);
}

.prod-module-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eaf3ff 0%, #dbeafe 100%);
    color: #0878fe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 14px;
}

/* ==========================================================================
   Interactive Workspace Preview Tabs & Mockup Cards
   ========================================================================== */
.prod-mockup-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.prod-mockup-tab-btn {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    padding: 11px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    color: #334155;
    cursor: pointer;
    transition: all 0.22s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.prod-mockup-tab-btn:hover {
    border-color: #0878fe;
    color: #0878fe;
}

.prod-mockup-tab-btn.active {
    background: #0878fe;
    border-color: #0878fe;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(8, 120, 254, 0.28);
}

.prod-mockup-card {
    background: #ffffff;
    border: 1px solid var(--prod-border);
    border-radius: 20px;
    padding: 34px;
    box-shadow: 0 12px 32px rgba(1, 25, 87, 0.06);
    display: none;
}

.prod-mockup-card.active {
    display: block;
    animation: prodFadeIn 0.3s ease;
}

@keyframes prodFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.prod-preview-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
}

.prod-preview-metric {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    height: 100%;
}

.prod-preview-row {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

/* ==========================================================================
   Dark Showcase ("Why Radhix") & CTA Banner
   ========================================================================== */
.prod-why-section {
    background: linear-gradient(135deg, #061329 0%, #0b2246 100%);
    color: #ffffff;
    padding: 70px 0;
}

.prod-why-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 16px;
    padding: 26px;
    height: 100%;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.prod-why-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(56, 189, 248, 0.45);
}

.prod-why-icon {
    font-size: 1.75rem;
    color: #38bdf8;
    margin-bottom: 14px;
}

.prod-cta-box {
    background: linear-gradient(135deg, #071936 0%, #0d3670 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 22px;
    padding: 44px 36px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(6, 19, 41, 0.18);
}

/* ==========================================================================
   Hub Search, Filters & Product Cards
   ========================================================================== */
.prod-search-wrapper {
    position: relative;
    max-width: 620px;
    margin: 0 auto 22px;
}

.prod-search-input {
    width: 100%;
    padding: 14px 24px 14px 48px;
    border-radius: 999px;
    border: 2px solid #cbd5e1;
    font-size: 0.98rem;
    background: #ffffff;
    color: #0f172a;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.prod-search-input:focus {
    border-color: #0878fe;
    box-shadow: 0 8px 24px rgba(8, 120, 254, 0.15);
    outline: none;
}

.prod-search-icon {
    position: absolute;
    left: 19px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.05rem;
    pointer-events: none;
}

.prod-filter-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}

.prod-filter-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
}

.prod-filter-btn:hover {
    border-color: #0878fe;
    color: #0878fe;
}

.prod-filter-btn.active {
    background: #0878fe;
    border-color: #0878fe;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(8, 120, 254, 0.28);
}

.prod-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
}

.prod-card-actions .btn {
    margin-top: 0 !important;
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
}

.prod-pain-badge-mini {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.8rem;
    line-height: 1.45;
    margin-bottom: 14px;
}

/* ==========================================================================
   Other Products Switcher Tiles & Industry Chips
   ========================================================================== */
.prod-switcher-tile {
    display: block;
    padding: 18px 14px;
    border-radius: 14px;
    border: 1px solid var(--prod-border);
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
    text-align: center;
    height: 100%;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.prod-switcher-tile:hover {
    transform: translateY(-4px);
    border-color: #0878fe;
    color: #0878fe;
    box-shadow: 0 10px 22px rgba(8, 120, 254, 0.12);
}

.prod-industry-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #dbe6f6;
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.prod-industry-chip:hover {
    transform: translateY(-2px);
    border-color: #0878fe;
    color: #0878fe;
}

/* ==========================================================================
   Dark Mode Support ([data-theme="dark"])
   ========================================================================== */
[data-theme="dark"] .prod-section-muted {
    background: #040d1d !important;
}

[data-theme="dark"] .prod-section-white {
    background: #061329 !important;
}

[data-theme="dark"] .prod-pain-card {
    background: #0b1b36 !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    border-left: 4px solid #ef4444 !important;
}

[data-theme="dark"] .prod-pain-icon {
    background: rgba(239, 68, 68, 0.15) !important;
}

[data-theme="dark"] .prod-benefit-card {
    background: #071935 !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    border-top: 4px solid #10b981 !important;
}

[data-theme="dark"] .prod-benefit-icon {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
}

[data-theme="dark"] .prod-pillar-card,
[data-theme="dark"] .prod-module-card,
[data-theme="dark"] .prod-mockup-card,
[data-theme="dark"] .software-card,
[data-theme="dark"] .software-note {
    background: #07162d !important;
    border-color: rgba(56, 189, 248, 0.2) !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .software-card h3,
[data-theme="dark"] .software-card li,
[data-theme="dark"] .prod-pillar-features li {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .software-card > p,
[data-theme="dark"] .software-card small {
    color: #94a3b8 !important;
}

[data-theme="dark"] .prod-pain-badge-mini {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #fca5a5 !important;
}

[data-theme="dark"] .prod-preview-panel,
[data-theme="dark"] .prod-switcher-tile,
[data-theme="dark"] .prod-industry-chip,
[data-theme="dark"] .prod-search-input,
[data-theme="dark"] .prod-filter-btn,
[data-theme="dark"] .prod-mockup-tab-btn {
    background: #0a1f3c !important;
    border-color: rgba(56, 189, 248, 0.22) !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .prod-preview-metric,
[data-theme="dark"] .prod-preview-row {
    background: #061329 !important;
    border-color: rgba(56, 189, 248, 0.16) !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .prod-filter-btn.active,
[data-theme="dark"] .prod-mockup-tab-btn.active {
    background: #0878fe !important;
    border-color: #0878fe !important;
    color: #ffffff !important;
}

[data-theme="dark"] .ind-comparison-table-wrapper,
[data-theme="dark"] .ind-comp-table td,
[data-theme="dark"] .ind-comp-table th:not(.col-radhix) {
    background: #07162d !important;
    border-color: rgba(56, 189, 248, 0.18) !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .ind-comp-table td.col-radhix {
    background: rgba(8, 120, 254, 0.12) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .accordion-item,
[data-theme="dark"] .accordion-button {
    background: #07162d !important;
    color: #f1f5f9 !important;
    border-color: rgba(56, 189, 248, 0.16) !important;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 991.98px) {
    .prod-hero,
    .prod-hub-hero {
        padding: 48px 0 56px;
    }
    .prod-hero-image-card img {
        height: 200px;
    }
    .prod-mockup-card {
        padding: 22px 16px;
    }
    .prod-cta-box {
        padding: 32px 22px;
    }
}

@media (max-width: 575.98px) {
    .prod-hero-title {
        font-size: 1.75rem;
    }
    .prod-hero-image-caption {
        flex-direction: column;
        align-items: flex-start;
    }
    .prod-mockup-tab-btn {
        width: 100%;
        justify-content: center;
    }
}
