:root {
    --srv-brand: #2563eb;
    --srv-brand-hover: #1d4ed8;
    --srv-brand-subtle: #eff6ff;
    --srv-border: rgba(226, 232, 240, 0.85);
    --srv-border-hover: rgba(203, 213, 225, 1);
    --srv-text-main: #0f172a;
    --srv-text-sub: #475569;
    --srv-text-muted: #64748b;
    --srv-emerald: #10b981;
    --srv-purple: #8b5cf6;
    --srv-cyan: #06b6d4;
    --srv-orange: #f97316;
}

.services-block-section {
    position: relative;
    padding: 100px 0;
    background: #ffffff;
    border-bottom: 1px solid var(--srv-border);
    overflow: hidden;
}

.srv-ambient-mesh {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 1100px;
    height: 500px;
    background: radial-gradient(circle, rgba(224, 231, 255, 0.6) 0%, rgba(254, 215, 170, 0.25) 45%, rgba(255, 255, 255, 0) 75%);
    filter: blur(65px);
    pointer-events: none;
    z-index: 1;
}

.srv-header-center {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 740px;
    margin: 0 auto 56px auto;
}

.srv-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--srv-border);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--srv-brand);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.06);
    backdrop-filter: blur(8px);
}

.srv-pulse-beacon {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--srv-emerald);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.srv-title {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    font-weight: 800;
    color: var(--srv-text-main);
    letter-spacing: -0.03em;
    line-height: 1.18;
    margin: 0 0 14px 0;
}

.srv-subtitle {
    font-size: 1rem;
    color: var(--srv-text-sub);
    line-height: 1.65;
    margin: 0;
}

.srv-cards-grid-2x2 {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.srv-card-unit {
    position: relative;
    border-radius: 24px;
    padding: 38px 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.srv-card-unit:hover {
    transform: translateY(-8px);
}

.srv-card-unit .srv-card-glow {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.35;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.srv-card-unit:hover .srv-card-glow {
    opacity: 0.65;
}

.srv-theme-blue {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 40%, rgba(238, 242, 255, 0.85) 100%);
    border: 1px solid #c7d2fe;
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.12);
}
.srv-theme-blue .srv-card-glow { background: #6366f1; }
.srv-theme-blue:hover {
    border-color: #6366f1;
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.25);
}
.srv-theme-blue .deliv-check-dot { background: #4f46e5; }
.srv-theme-blue .srv-discipline-tag { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }

.srv-theme-purple {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 40%, rgba(250, 245, 255, 0.85) 100%);
    border: 1px solid #e9d5ff;
    box-shadow: 0 10px 30px -10px rgba(168, 85, 247, 0.12);
}
.srv-theme-purple .srv-card-glow { background: #a855f7; }
.srv-theme-purple:hover {
    border-color: #a855f7;
    box-shadow: 0 25px 50px -12px rgba(168, 85, 247, 0.25);
}
.srv-theme-purple .deliv-check-dot { background: #9333ea; }
.srv-theme-purple .srv-discipline-tag { background: #faf5ff; color: #7e22ce; border-color: #e9d5ff; }

.srv-theme-cyan {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 40%, rgba(236, 254, 255, 0.85) 100%);
    border: 1px solid #a5f3fc;
    box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.12);
}
.srv-theme-cyan .srv-card-glow { background: #06b6d4; }
.srv-theme-cyan:hover {
    border-color: #06b6d4;
    box-shadow: 0 25px 50px -12px rgba(6, 182, 212, 0.25);
}
.srv-theme-cyan .deliv-check-dot { background: #0891b2; }
.srv-theme-cyan .srv-discipline-tag { background: #ecfeff; color: #0e7490; border-color: #a5f3fc; }

.srv-theme-orange {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 40%, rgba(255, 247, 237, 0.85) 100%);
    border: 1px solid #fed7aa;
    box-shadow: 0 10px 30px -10px rgba(249, 115, 22, 0.12);
}
.srv-theme-orange .srv-card-glow { background: #f97316; }
.srv-theme-orange:hover {
    border-color: #f97316;
    box-shadow: 0 25px 50px -12px rgba(249, 115, 22, 0.25);
}
.srv-theme-orange .deliv-check-dot { background: #ea580c; }
.srv-theme-orange .srv-discipline-tag { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }

.srv-card-top-row {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.srv-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.srv-theme-blue .srv-icon-box { background: #4f46e5; box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35); }
.srv-theme-purple .srv-icon-box { background: #9333ea; box-shadow: 0 6px 16px rgba(147, 51, 234, 0.35); }
.srv-theme-cyan .srv-icon-box { background: #0891b2; box-shadow: 0 6px 16px rgba(8, 145, 178, 0.35); }
.srv-theme-orange .srv-icon-box { background: #ea580c; box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35); }

.srv-discipline-tag {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 9999px;
    border: 1px solid transparent;
}

.srv-card-heading {
    position: relative;
    z-index: 2;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--srv-text-main);
    line-height: 1.3;
    margin: 0 0 10px 0;
}

.srv-card-description {
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
    color: var(--srv-text-sub);
    line-height: 1.6;
    margin: 0 0 22px 0;
}

.srv-deliverables-list {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    padding-top: 20px;
}

.srv-deliv-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--srv-text-main);
}

.deliv-check-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.srv-card-footer-flex {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    padding-top: 20px;
}

.srv-tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sc-chip {
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--srv-border);
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--srv-text-sub);
}

.btn-srv-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-srv-action:hover {
    color: var(--srv-brand);
    transform: translateX(4px);
}

.circuit-pipeline-wrapper {
    position: relative;
    z-index: 2;
    padding-top: 24px;
}

.pipeline-flow-line {
    position: absolute;
    top: 52px;
    left: 4%;
    right: 4%;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
    overflow: hidden;
}

.pipeline-pulse-beam {
    position: absolute;
    top: 0;
    left: -30%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #2563eb, #06b6d4, transparent);
    animation: flowPulse 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes flowPulse {
    0% { left: -40%; }
    100% { left: 100%; }
}

.circuit-stages-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.circuit-node-stage {
    display: flex;
    flex-direction: column;
}

.node-connector-head {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 24px;
}

.circuit-hex-badge {
    position: relative;
    z-index: 3;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px solid var(--srv-border);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    transition: all 0.3s ease;
}

.ch-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--srv-text-main);
}

.node-theme-blue .circuit-hex-badge { background: #4f46e5; border-color: #6366f1; }
.node-theme-blue .ch-code { color: #ffffff; }

.node-theme-purple .circuit-hex-badge { background: #9333ea; border-color: #a855f7; }
.node-theme-purple .ch-code { color: #ffffff; }

.node-theme-cyan .circuit-hex-badge { background: #0891b2; border-color: #06b6d4; }
.node-theme-cyan .ch-code { color: #ffffff; }

.node-theme-orange .circuit-hex-badge { background: #ea580c; border-color: #f97316; }
.node-theme-orange .ch-code { color: #ffffff; }

.circuit-terminal-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--srv-border);
    border-radius: 18px 6px 18px 18px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 290px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
}

.corner-cut-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: var(--srv-border);
    clip-path: polygon(0 0, 100% 100%, 100% 0);
    transition: background 0.3s ease;
}

.circuit-terminal-card:hover {
    transform: translateY(-6px);
}

.node-theme-blue .circuit-terminal-card:hover {
    border-color: #6366f1;
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.18);
}
.node-theme-blue:hover .corner-cut-accent { background: #6366f1; }

.node-theme-purple .circuit-terminal-card:hover {
    border-color: #a855f7;
    box-shadow: 0 20px 40px -10px rgba(168, 85, 247, 0.18);
}
.node-theme-purple:hover .corner-cut-accent { background: #a855f7; }

.node-theme-cyan .circuit-terminal-card:hover {
    border-color: #06b6d4;
    box-shadow: 0 20px 40px -10px rgba(6, 182, 212, 0.18);
}
.node-theme-cyan:hover .corner-cut-accent { background: #06b6d4; }

.node-theme-orange .circuit-terminal-card:hover {
    border-color: #f97316;
    box-shadow: 0 20px 40px -10px rgba(249, 115, 22, 0.18);
}
.node-theme-orange:hover .corner-cut-accent { background: #f97316; }

.ct-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.ct-phase-tag {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--srv-text-muted);
}

.ct-sys-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    color: var(--srv-text-sub);
}

.ct-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--srv-text-main);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.ct-desc {
    font-size: 0.85rem;
    color: var(--srv-text-sub);
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex: 1;
}

.ct-footer-metric {
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--srv-text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ct-live-ping {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--srv-emerald);
}

.srv-matrix-ledger-card {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border: 1px solid var(--srv-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.matrix-row-item {
    display: grid;
    grid-template-columns: 2.2fr 1.6fr 1fr;
    gap: 32px;
    padding: 32px 36px;
    border-bottom: 1px solid var(--srv-border);
    align-items: center;
    transition: background 0.2s ease;
}

.matrix-row-item:last-child {
    border-bottom: none;
}

.matrix-row-item:hover {
    background: #f8fafc;
}

.matrix-kicker-tag {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--srv-brand);
    display: inline-block;
    margin-bottom: 6px;
}

.matrix-heading {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--srv-text-main);
    margin: 0 0 6px 0;
}

.matrix-desc {
    font-size: 0.88rem;
    color: var(--srv-text-sub);
    line-height: 1.6;
    margin: 0;
}

.matrix-specs-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.matrix-spec-pill {
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--srv-text-main);
}

.matrix-spec-sub {
    font-size: 0.74rem;
    color: var(--srv-text-muted);
}

.matrix-action-col {
    display: flex;
    justify-content: flex-end;
}

.btn-matrix-inquire {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-matrix-inquire:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

@media (max-width: 1024px) {
    .srv-cards-grid-2x2 { grid-template-columns: 1fr; }
    .pipeline-flow-line { display: none; }
    .circuit-stages-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .matrix-row-item { grid-template-columns: 1fr; gap: 20px; }
    .matrix-action-col { justify-content: flex-start; }
}

@media (max-width: 768px) {
    .circuit-stages-grid { grid-template-columns: 1fr; }
    .matrix-row-item { padding: 24px; }
}