/* ============== Electronics & SMT Solution Page (NEXSPC 4.0) ============== */
:root {
    --smt-green: #00e676;
    --smt-green2: #00c853;
    --smt-deep: #04205F;
    --smt-bg: #f8f9fa;
}

.smt-hero {
    position: relative;
    color: #fff;
    padding: 120px 0 90px;
    background-image: url('/static/images/Gemini_Generated_Image_v7hgz4v7hgz4v7hg.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.smt-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

/* Matrix green data flow overlay */
.smt-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 420px at 22% 18%, rgba(0, 230, 118, 0.22), rgba(0, 0, 0, 0)),
        radial-gradient(820px 380px at 72% 32%, rgba(0, 200, 83, 0.18), rgba(0, 0, 0, 0)),
        repeating-linear-gradient(90deg,
            rgba(0, 230, 118, 0.00) 0px,
            rgba(0, 230, 118, 0.00) 10px,
            rgba(0, 230, 118, 0.06) 10px,
            rgba(0, 230, 118, 0.06) 12px),
        repeating-linear-gradient(0deg,
            rgba(0, 230, 118, 0.00) 0px,
            rgba(0, 230, 118, 0.00) 14px,
            rgba(0, 230, 118, 0.05) 14px,
            rgba(0, 230, 118, 0.05) 16px);
    opacity: 0.95;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: smtMatrixMove 10s linear infinite;
}

@keyframes smtMatrixMove {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-40px, 30px, 0);
    }
}

.smt-hero .container {
    position: relative;
    z-index: 2;
}

.smt-hero h1 {
    font-size: 3.05rem;
    font-weight: 950;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 18px;
    letter-spacing: 0.2px;
}

.smt-hero .subtitle {
    font-size: 1.25rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 300;
    margin-bottom: 22px;
    max-width: 700px;
}

.smt-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 28px;
}

.smt-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
}

.smt-badge i.material-symbols-outlined {
    font-size: 18px;
    color: var(--smt-green);
}

.smt-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.smt-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--smt-green2);
    color: #062014 !important;
    font-weight: 950;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
    border: 0;
}

.smt-cta-primary:hover {
    background: var(--smt-green);
    transform: translateY(-2px);
    color: #062014 !important;
}

.smt-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease;
}

.smt-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
    color: #fff !important;
}

.smt-hero-note {
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.smt-hero-ui {
    position: relative;
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.40);
    overflow: hidden;
    cursor: zoom-in;
}

.smt-hero-ui img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.smt-hero-ui .smt-ui-label {
    position: absolute;
    left: 18px;
    top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.92);
}

.smt-hero-ui .smt-ui-label .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #81c784;
    box-shadow: 0 0 0 6px rgba(129, 199, 132, 0.20);
}

/* animated "data pulse" overlay */
.smt-pulse {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.9;
}

.smt-pulse svg {
    width: 100%;
    height: 100%;
}

.smt-pulse path {
    stroke: rgba(0, 230, 118, 0.95);
    stroke-width: 4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 10px 26px rgba(0, 230, 118, 0.25));
    stroke-dasharray: 520;
    stroke-dashoffset: 520;
    transition: stroke-dashoffset 1.2s ease;
}

.smt-pulse.grow path {
    stroke-dashoffset: 0;
}

/* Section heading */
.smt-section-title {
    margin-bottom: 18px;
}

.smt-section-title h2 {
    color: var(--smt-deep);
    font-weight: 950;
    margin-bottom: 10px;
}

.smt-section-title p {
    margin: 0;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Pain points */
.smt-pain {
    background: var(--smt-bg);
    padding: 60px 0;
}

.smt-pain-question {
    font-size: 1.15rem;
    font-weight: 950;
    color: #2d3a4b;
    margin: 0 0 22px 0;
    padding: 14px 16px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eef1f4;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.smt-pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.smt-pain-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef1f4;
    padding: 22px 22px 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.smt-pain-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 230, 118, 0.9), rgba(4, 32, 95, 0.9));
    opacity: 0.65;
}

.smt-pain-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(4, 32, 95, 0.25);
}

.smt-pain-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.smt-pain-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 230, 118, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(0, 230, 118, 0.20);
}

.smt-pain-icon i.material-symbols-outlined {
    font-size: 24px;
    color: #00a84a;
}

.smt-pain-card h3 {
    font-size: 1.22rem;
    font-weight: 950;
    color: var(--smt-deep);
    margin: 0;
    line-height: 1.3;
}

.smt-pain-card p {
    color: #444;
    line-height: 1.85;
    margin: 0;
    font-size: 1rem;
}

/* Scenarios */
.smt-solution {
    padding: 60px 0 20px;
}

.smt-scenario {
    padding-top: 36px;
    padding-bottom: 36px;
}

.smt-scenario h3 {
    font-size: 1.9rem;
    font-weight: 950;
    color: var(--smt-deep);
    margin-bottom: 10px;
}

.smt-scenario .en-title {
    margin-top: 0;
    color: #6a7b90;
    letter-spacing: 0.4px;
    font-weight: 800;
}

.smt-scenario .intro-text {
    font-size: 1.08rem;
    line-height: 2;
    color: #555;
    text-align: left;
}

.smt-checklist {
    list-style: none;
    padding-left: 0;
    margin: 16px 0 0;
}

.smt-checklist li {
    position: relative;
    padding-left: 28px;
    margin: 10px 0;
    color: #444;
    line-height: 1.8;
}

.smt-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--smt-green2);
    font-weight: 900;
}

.smt-value {
    font-size: 1rem;
    margin-top: 14px;
    padding: 14px 14px;
    border-radius: 14px;
    background: rgba(0, 230, 118, 0.10);
    border: 1px solid rgba(0, 230, 118, 0.20);
    color: #0b3b1f;
    font-weight: 850;
    line-height: 1.8;
}

.smt-shot {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
    background: #fff;
    cursor: zoom-in;
}

.smt-shot img {
    width: 100%;
    height: auto;
    display: block;
}

.smt-shot-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 950;
    background: rgba(0, 0, 0, 0.52);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    user-select: none;
}

/* Before & After */
.smt-compare {
    background: var(--smt-bg);
    padding: 60px 0;
}

.smt-compare-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef1f4;
}

.smt-compare-table thead th {
    background: linear-gradient(135deg, rgba(4, 32, 95, 1) 0%, rgba(0, 200, 83, 1) 120%);
    color: #fff;
    padding: 18px 18px;
    text-align: left;
    font-weight: 950;
    font-size: 1.05rem;
}

.smt-compare-table tbody td {
    padding: 18px 18px;
    border-bottom: 1px solid #eef1f4;
    color: #444;
    line-height: 1.9;
    vertical-align: top;
}

.smt-compare-table tbody tr:last-child td {
    border-bottom: none;
}

.smt-compare-table .old {
    color: #6c757d;
}

.smt-compare-table .new {
    background: rgba(0, 230, 118, 0.08);
    border-left: 4px solid rgba(0, 200, 83, 0.75);
    font-weight: 800;
    color: #0b3b1f;
}

/* CTA */
.smt-cta {
    padding: 70px 0 90px;
    background: linear-gradient(180deg, rgba(0, 230, 118, 0.06), rgba(4, 32, 95, 0.00));
}

.smt-cta-box {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #eef1f4;
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.10);
    padding: 28px;
    overflow: hidden;
}

/* Right floating TOC */
.smt-toc {
    position: fixed;
    right: 18px;
    top: 140px;
    z-index: 50;
    width: 210px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(4, 32, 95, 0.10);
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
    padding: 12px;
    backdrop-filter: blur(10px);
}

.smt-toc .title {
    font-weight: 950;
    color: var(--smt-deep);
    font-size: 13px;
    letter-spacing: 0.2px;
    margin-bottom: 6px;
}

.smt-toc a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: #2d3a4b;
    font-weight: 800;
    font-size: 13px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.smt-toc a:hover {
    background: rgba(0, 230, 118, 0.10);
    transform: translateY(-1px);
    color: var(--smt-deep);
}

.smt-toc a.active {
    background: rgba(0, 230, 118, 0.14);
    color: var(--smt-deep);
    border: 1px solid rgba(0, 230, 118, 0.24);
}

.smt-toc .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(4, 32, 95, 0.25);
    flex: 0 0 auto;
}

.smt-toc a.active .dot {
    background: var(--smt-green2);
    box-shadow: 0 0 0 6px rgba(0, 230, 118, 0.18);
}

/* Lightbox */
.smt-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.smt-lightbox.open {
    display: flex;
}

.smt-lightbox-inner {
    max-width: 1100px;
    width: 100%;
    max-height: 86vh;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.40);
    position: relative;
    display: flex;
    flex-direction: column;
}

.smt-lightbox-bar {
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(4, 32, 95, 0.92), rgba(0, 200, 83, 0.92));
    color: #fff;
}

.smt-lightbox-bar .cap {
    font-weight: 950;
    font-size: 13px;
    letter-spacing: 0.2px;
    opacity: 0.95;
}

.smt-lightbox-close {
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    font-weight: 950;
    cursor: pointer;
}

.smt-lightbox-body {
    padding: 14px;
    overflow: auto;
    background: #f6f7f9;
}

.smt-lightbox-body img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
}

/* Mobile sticky CTA */
.smt-mobile-cta {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 200;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(4, 32, 95, 0.10);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 16px 52px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(10px);
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.smt-mobile-cta .text {
    font-size: 12px;
    color: #2d3a4b;
    font-weight: 950;
    line-height: 1.3;
}

.smt-mobile-cta .btn {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 10px 14px;
    background: var(--smt-green2);
    color: #062014 !important;
    font-weight: 950;
    text-decoration: none;
    border: 0;
}

@media (max-width: 992px) {
    .smt-hero h1 {
        font-size: 2.25rem;
    }

    .smt-hero {
        padding: 105px 0 70px;
    }

    .smt-pain-grid {
        grid-template-columns: 1fr;
    }

    .smt-toc {
        display: none;
    }
}

@media (max-width: 768px) {
    .smt-hero {
        padding: 96px 0 56px;
    }

    .smt-hero .subtitle {
        font-size: 1.05rem;
    }

    .smt-mobile-cta {
        display: flex;
    }

    body {
        padding-bottom: 86px;
    }

    .smt-compare-table,
    .smt-compare-table thead,
    .smt-compare-table tbody,
    .smt-compare-table th,
    .smt-compare-table td,
    .smt-compare-table tr {
        display: block;
        width: 100%;
    }

    .smt-compare-table thead {
        display: none;
    }

    .smt-compare-table tbody tr {
        border-bottom: 1px solid #eef1f4;
    }

    .smt-compare-table tbody td {
        border-bottom: none;
        padding: 14px 16px;
    }

    .smt-compare-table tbody td:first-child {
        font-weight: 950;
        color: var(--smt-deep);
        padding-top: 16px;
    }

    .smt-compare-table .new {
        border-left: 0;
        border-top: 3px solid rgba(0, 200, 83, 0.80);
    }
}