/* BAPARI TECH — Interactive Flagship Product Switcher + 3D Mockups & Live Tools */

.product-switcher-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.product-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: inset 0 1px 0 var(--rim-light);
}

.product-tab-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.product-tab-btn.active {
    background: var(--cta-bg);
    color: var(--cta-text);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.product-tab-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 100px;
    background: var(--primary-glow);
    color: var(--primary);
}

.product-tab-btn.active .product-tab-tag {
    background: rgba(56, 189, 248, 0.2);
}

.product-panel {
    display: none;
}

.product-panel.active {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 44px;
    position: relative;
    overflow: visible;
    box-shadow: inset 0 1px 0 var(--rim-light), var(--shadow-lg);
    animation: panelFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.product-content {
    position: relative;
    z-index: 2;
}

.product-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.product-icon-wrap {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.product-icon-wrap.hardware-grad {
    background: linear-gradient(135deg, var(--rose) 0%, var(--accent) 100%);
}

.product-icon-wrap.billing-grad {
    background: linear-gradient(135deg, #10b981 0%, var(--primary) 100%);
}

.product-icon-wrap.ai-grad {
    background: linear-gradient(135deg, var(--accent) 0%, #ec4899 100%);
}

.product-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.product-full-name {
    font-size: 0.94rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 14px;
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.68;
    margin-bottom: 22px;
}

/* Highlights Strip */
.product-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}

.product-pill {
    padding: 10px 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    text-align: center;
}

[data-theme="dark"] .product-pill {
    background: rgba(255, 255, 255, 0.03);
}

.product-pill strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.product-pill span {
    display: block;
    font-size: 0.68rem;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.product-features {
    display: grid;
    gap: 9px;
    margin-bottom: 26px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.89rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.product-features li svg {
    color: var(--success);
    flex-shrink: 0;
}

.product-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 3D Visual Column */
.product-visual {
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: center;
    perspective: 1400px;
}

.product-3d-stage {
    width: 100%;
    perspective: 1200px;
    padding: 10px 4px;
}

.product-mockup-3d {
    position: relative;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: -16px 24px 48px rgba(0, 0, 0, 0.32);
    transform-style: preserve-3d;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.product-3d-stage:hover .product-mockup-3d {
    transform: rotateY(-4deg) rotateX(2deg) translateY(-3px);
}

.mockup-layer-base {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(129, 140, 248, 0.08));
    transform: translateZ(-16px);
    border: 1px solid var(--border);
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.mockup-dots span:first-child { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #10b981; }

.mockup-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

.mockup-live-pill {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--success);
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.28);
    padding: 2px 8px;
    border-radius: 100px;
}

.mockup-body {
    display: flex;
    min-height: 250px;
    transform-style: preserve-3d;
}

.mockup-sidebar {
    width: 48px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    border-radius: 0 0 0 var(--radius-lg);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-nav-item {
    width: 100%;
    height: 28px;
    background: var(--bg-secondary);
    border-radius: 6px;
}

[data-theme="dark"] .mockup-nav-item {
    background: rgba(255, 255, 255, 0.05);
}

.mockup-nav-item.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.mockup-content {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform-style: preserve-3d;
}

.mockup-stat-row {
    display: flex;
    gap: 8px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-stat {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    color: #ffffff;
}

.mstat-label {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.88;
}

.mstat-val {
    display: block;
    font-family: var(--font-display);
    font-size: 0.96rem;
    font-weight: 700;
    margin-top: 2px;
}

.mockup-stat.gold { background: linear-gradient(135deg, #f59e0b, #d97706); }
.mockup-stat.blue { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.mockup-stat.green { background: linear-gradient(135deg, #10b981, #059669); }
.mockup-stat.rose { background: linear-gradient(135deg, var(--rose), #be123c); }

.mockup-chart {
    height: 88px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-sparkline {
    width: 100%;
    height: 100%;
    display: block;
}

.mockup-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-row {
    height: 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mockup-row span:first-child {
    width: 48%;
    height: 5px;
    border-radius: 4px;
    background: var(--border-strong);
}

.mockup-row span:last-child {
    width: 22%;
    height: 5px;
    border-radius: 4px;
    background: var(--primary-glow);
}

.mockup-float-badge {
    position: absolute;
    bottom: -12px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 100px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-primary);
    transform: translateZ(34px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Exploded 3D Layer State */
.product-mockup-3d.exploded {
    transform: rotateY(-20deg) rotateX(12deg) scale(0.94);
    box-shadow: -28px 36px 70px rgba(0, 0, 0, 0.45);
}

.product-mockup-3d.exploded .mockup-layer-base { transform: translateZ(-32px); }
.product-mockup-3d.exploded .mockup-header { transform: translateZ(26px); }
.product-mockup-3d.exploded .mockup-sidebar { transform: translateZ(36px); }
.product-mockup-3d.exploded .mockup-stat-row { transform: translateZ(58px); }
.product-mockup-3d.exploded .mockup-chart { transform: translateZ(44px); }
.product-mockup-3d.exploded .mockup-table { transform: translateZ(28px); }
.product-mockup-3d.exploded .mockup-float-badge { transform: translateZ(84px); }

/* Interactive Live Micro-Calculator Widget */
.live-calc-card {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

[data-theme="dark"] .live-calc-card {
    background: rgba(255, 255, 255, 0.03);
}

.live-calc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.live-calc-head span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    font-weight: 600;
}

.live-calc-result {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.live-calc-inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.live-calc-inputs.three {
    grid-template-columns: repeat(3, 1fr);
}

.calc-field label {
    display: block;
    font-size: 0.68rem;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.calc-field input,
.calc-field select {
    width: 100%;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.calc-field input:focus,
.calc-field select:focus {
    border-color: var(--primary);
}

.live-calc-sub {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-tertiary);
}

.live-calc-sub strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* 3-Pillar Breakdown */
.product-pillars {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
}

.product-pillar {
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

[data-theme="dark"] .product-pillar {
    background: rgba(255, 255, 255, 0.025);
}

.product-pillar:hover {
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-2px);
}

.product-pillar h4 {
    font-family: var(--font-display);
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.product-pillar ul {
    display: grid;
    gap: 7px;
}

.product-pillar li {
    position: relative;
    padding-left: 14px;
    font-size: 0.81rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.product-pillar li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
}
