/* ══════════════════════════════════════════
   ERP PAGE  —  /products/erp
══════════════════════════════════════════ */

/* ── ERP Hero ── */
.prod-hero {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 72px 0 90px;
}

.prod-hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(#e2e8f0 1px, transparent 1px),
        linear-gradient(90deg, #e2e8f0 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.65;
    mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, #000 40%, transparent 100%);
    z-index: 0;
}

.prod-hero .container { position: relative; z-index: 1; }

.prod-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.prod-hero-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: #0d1829;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin: 16px 0 20px;
}

.prod-hero-sub {
    font-size: 16px;
    line-height: 1.75;
    color: #475569;
    max-width: 520px;
    margin: 0 0 34px;
    font-weight: 400;
}

.prod-cta-row {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn-prod-start {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #185fa5;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 9px;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: background .22s cubic-bezier(.4,0,.2,1),
                color .22s cubic-bezier(.4,0,.2,1),
                border-color .22s cubic-bezier(.4,0,.2,1),
                box-shadow .22s cubic-bezier(.4,0,.2,1),
                transform .22s cubic-bezier(.4,0,.2,1);
}

@media (hover: hover) {
    .btn-prod-start:hover {
        background: #fff;
        color: #185fa5;
        border-color: #185fa5;
        box-shadow: 0 8px 28px rgba(24, 95, 165, .22);
        transform: translateY(-2px) scale(1.02);
    }
}

.btn-prod-compare {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #fff;
    border: 1.5px solid #cbd5e1;
    color: #0d1829;
    font-size: 14px;
    font-weight: 700;
    border-radius: 9px;
    text-decoration: none;
    transition: border-color .18s, color .18s, background .18s;
}

.btn-prod-compare:hover {
    border-color: #185fa5;
    color: #185fa5;
    background: #f0f7ff;
}

/* ── Hero Two-Column Layout ── */
.prod-hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: flex-start;
}

.prod-hero-visual { position: relative; }

.erp-hero .prod-hero-visual {
    position: relative;
    margin-top: 24px;
}

.prod-hero-video-frame {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #000;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 8px 32px rgba(0, 0, 0, 0.10),
        0 0 0 1px rgba(24, 95, 165, 0.08);
    animation: prodVideoIn 0.6s ease both;
}

.prod-hero-video {
    width: 100%;
    display: block;
    max-height: 380px;
    object-fit: cover;
}

/* ── Benefits ── */
.prod-trust-bar {
    background: #0b74d1;
    box-shadow: 0 2px 12px rgba(11, 37, 69, .35);
}

.prod-trust-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

.prod-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
    opacity: 0;
    transform: translateY(10px);
    animation: prodTrustIn .45s ease forwards;
    white-space: nowrap;
    transition: color .15s;
}

.prod-trust-item:nth-child(1) { animation-delay: .05s; }
.prod-trust-item:nth-child(3) { animation-delay: .15s; }
.prod-trust-item:nth-child(5) { animation-delay: .25s; }
.prod-trust-item:nth-child(7) { animation-delay: .35s; }
.prod-trust-item:hover { color: #fff; }

.prod-trust-sep {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, .2);
    flex-shrink: 0;
}

/* ── Features ── */
.prod-feat-section { background: #f8fafc; }

.prod-feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

/* ── Cards ── */
.prod-feat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 32px 28px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .55s ease, transform .55s ease,
                box-shadow .22s, border-color .22s;
}

.prod-feat-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Blue — ERP visual identity; change only this block to retheme */
.erp-feat-section {
    --feat-icon-bg:          #dbeafe;
    --feat-icon-fg:          #2563eb;
    --feat-icon-shadow-rgb:  37, 99, 235;
    --feat-card-border:      #93c5fd;
    --feat-dark-icon-bg:     rgba(37, 99, 235, .16);
    --feat-dark-icon-fg:     #60a5fa;
    --feat-dark-card-border: rgba(147, 197, 253, .35);
}

.erp-feat-section .prod-feat-card:hover {
    box-shadow: 0 12px 36px rgba(var(--feat-icon-shadow-rgb), .12);
    border-color: var(--feat-card-border);
}

.prod-feat-card.visible:hover { transform: translateY(-4px); }

.erp-feat-section .prod-feat-icon-wrap {
    background: var(--feat-icon-bg);
    color: var(--feat-icon-fg);
}

.erp-feat-section .prod-feat-card:hover .prod-feat-icon-wrap {
    background: var(--feat-icon-fg);
    color: #fff;
    box-shadow: 0 4px 16px rgba(var(--feat-icon-shadow-rgb), .30);
}

.prod-feat-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0d1829;
    margin: 0 0 8px;
}

.prod-feat-card p {
    font-size: 14px;
    color: #475569;
    line-height: 1.65;
    margin: 0;
}

/* ── System Preview ── */
.prod-modules-section { background: #fff; }

.mod-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 40px 0 28px;
}

.mod-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all .2s ease;
}

.mod-tab-btn:hover {
    border-color: #185fa5;
    color: #185fa5;
    transform: translateY(-2px);
}

.mod-tab-btn.active {
    background: #185fa5;
    border-color: #185fa5;
    color: #fff;
    box-shadow: 0 6px 20px rgba(24, 95, 165, .22);
    transform: none;
}

.mod-panel {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f2fd 100%);
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    padding: 40px;
    animation: modIn .28s ease;
}

.mod-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid #bfdbfe;
}

.mod-panel-ico {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: #185fa5;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.mod-panel-text h3 {
    font-size: 22px;
    font-weight: 800;
    color: #0d1829;
    margin: 0 0 8px;
}

.mod-panel-text p {
    font-size: 15px;
    color: #475569;
    line-height: 1.65;
    margin: 0;
}

.mod-feat-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mod-feat-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

.mod-feat-check {
    color: #185fa5;
    font-size: 12px;
    flex-shrink: 0;
}

/* ── Animations ── */
@keyframes prodTrustIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes prodVideoIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes modIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Dark Mode: ERP blue icon theme ── */
[data-theme="dark"] .erp-feat-section .prod-feat-icon-wrap {
    background: var(--feat-dark-icon-bg);
    color: var(--feat-dark-icon-fg);
}

[data-theme="dark"] .erp-feat-section .prod-feat-card:hover .prod-feat-icon-wrap {
    background: var(--feat-icon-fg);
    color: #fff;
    box-shadow: 0 4px 16px rgba(var(--feat-icon-shadow-rgb), .38);
}

[data-theme="dark"] .erp-feat-section .prod-feat-card:hover {
    border-color: var(--feat-dark-card-border);
    box-shadow: 0 12px 36px rgba(var(--feat-icon-shadow-rgb), .18);
}

/* ── Responsive Design ── */
@media (max-width: 1024px) {
    .prod-feat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .prod-hero-layout  { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .prod-hero-sub     { margin: 0 auto 34px; }
    .prod-cta-row      { justify-content: center; }
    .prod-hero-video   { max-height: 260px; }
}

@media (max-width: 768px) {
    .prod-hero { padding: 56px 0 44px; }
    .prod-hero-title { font-size: 28px; letter-spacing: -.5px; }
    .prod-feat-grid { grid-template-columns: 1fr; }
    .mod-panel { padding: 24px 18px; }
    .mod-feat-list { grid-template-columns: 1fr; }
    .mod-panel-head { flex-direction: column; gap: 14px; }
    .prod-trust-sep { display: none; }
    .prod-trust-item { padding: 10px 14px; font-size: 12px; }
    .prod-trust-inner {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }
    .prod-trust-inner::-webkit-scrollbar { display: none; }
}

@media (max-width: 480px) {
    .prod-hero-title { font-size: 24px; }
    .prod-cta-row { flex-direction: column; align-items: center; }
    .btn-prod-start, .btn-prod-compare { width: 100%; max-width: 280px; justify-content: center; }
    .mod-tabs { gap: 8px; }
    .mod-tab-btn { padding: 8px 16px; font-size: 13px; }
    .prod-hero-visual { display: none; }
}
