/* Service page layout — hero, tabs, FAQ, inquiry form */
.sp-page { --sp-accent: #14a4d3; --sp-accent-2: #16a5d2; --sp-dark: #060c18; --sp-muted: #64748b; }

.sp-hero {
    position: relative;
    overflow: hidden;
    padding: 60px 0 70px;
    background: linear-gradient(135deg, #f8fbfd 0%, #eef7f9 100%);
}
.sp-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(5,218,195,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.sp-hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(5,218,195,0.18), rgba(22,165,210,0.12));
    color: var(--sp-accent-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
}
.sp-hero-pre {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--sp-accent-2);
    margin-bottom: 12px;
}
.sp-hero-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--sp-dark);
    line-height: 1.2;
    margin-bottom: 16px;
}
.sp-hero-title span { color: var(--sp-accent-2); }
.sp-hero-lead {
    font-size: 17px;
    line-height: 1.75;
    color: var(--sp-muted);
    max-width: 640px;
    margin-bottom: 28px;
}
.sp-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 28px;
}
.sp-stat {
    background: #fff;
    border-radius: 12px;
    padding: 16px 22px;
    border: 1px solid #e8f0f4;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    min-width: 120px;
}
.sp-stat-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--sp-accent-2);
    line-height: 1;
}
.sp-stat-lbl {
    font-size: 12px;
    color: var(--sp-muted);
    margin-top: 4px;
    font-weight: 600;
}
.sp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sp-accent);
    color: var(--sp-dark) !important;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid var(--sp-accent);
    transition: transform .2s, box-shadow .2s;
}
.sp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(5,218,195,0.35); color: var(--sp-dark) !important; }
.sp-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--sp-accent-2) !important;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid var(--sp-accent-2);
    transition: all .2s;
}
.sp-btn-outline:hover { background: var(--sp-accent-2); color: #fff !important; }

.sp-hero-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(5,218,195,0.1);
    border: 1px solid rgba(5,218,195,0.15);
}
.sp-hero-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--sp-dark); }
.sp-check-list { list-style: none; padding: 0; margin: 0; }
.sp-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #475569;
    border-bottom: 1px solid #d7d9db;
}
.sp-check-list li:last-child { border-bottom: none; }
.sp-check-list li i { color: var(--sp-accent); margin-top: 3px; flex-shrink: 0; }

/* Feature cards */
.sp-features { padding: 70px 0; background: linear-gradient(135deg, #060c18 0%, #0d2137 100%); }
.sp-section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.sp-section-head h3 { color: #fff; font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 12px; }
.sp-section-head p { color: rgba(255,255,255,0.65); font-size: 16px; line-height: 1.7; margin: 0; }
.sp-feat-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 28px 24px;
    height: 100%;
    transition: all .35s;
}
.sp-feat-card:hover {
    background: rgba(5,218,195,0.08);
    border-color: rgba(5,218,195,0.3);
    transform: translateY(-6px);
}
.sp-feat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(5,218,195,0.15), rgba(22,165,210,0.08));
    color: var(--sp-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
    transition: all .35s;
}
.sp-feat-card:hover .sp-feat-icon {
    background: linear-gradient(135deg, var(--sp-accent), var(--sp-accent-2));
    color: var(--sp-dark);
}
.sp-feat-card h4 { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.sp-feat-card p { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.7; margin-bottom: 14px; }
.sp-feat-card ul { list-style: none; padding: 0; margin: 0; }
.sp-feat-card ul li {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sp-feat-card ul li::before { content: '✓'; color: var(--sp-accent); font-weight: 700; font-size: 11px; }

/* Tabs */
.sp-content-section { padding: 70px 0 20px; background: #fff; }
.sp-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 2px solid #eef2f6;
    padding-bottom: 0;
}
.sp-tab-btn {
    background: none;
    border: none;
    padding: 14px 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sp-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all .2s;
    font-family: inherit;
}
.sp-tab-btn:hover { color: var(--sp-accent-2); }
.sp-tab-btn.active {
    color: var(--sp-accent-2);
    border-bottom-color: var(--sp-accent);
}
.sp-tab-panel { display: none; animation: spFadeIn .35s ease; }
.sp-tab-panel.active { display: block; }
@keyframes spFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.sp-rich-content {
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
    text-align: justify;
}
.sp-rich-content strong { color: var(--sp-dark); }
.sp-rich-content ul, .sp-rich-content ol { padding-left: 1.4rem; margin: 1rem 0; }
.sp-rich-content li { margin-bottom: 8px; }
.sp-rich-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 14px; }
.sp-rich-content th, .sp-rich-content td { padding: 10px 12px; border: 1px solid #e2e8f0; text-align: left; }
.sp-rich-content th { background: #f8fafc; font-weight: 700; }
.sp-rich-content a { color: var(--sp-accent-2); }

/* FAQ accordion */
.sp-faq-list { max-width: 860px; }
.sp-faq-item {
    border: 1px solid #e8f0f4;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.sp-faq-item.open {
    border-color: rgba(5,218,195,0.4);
    box-shadow: 0 8px 24px rgba(5,218,195,0.08);
}
.sp-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: none;
    border: none;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    color: var(--sp-dark);
    cursor: pointer;
    font-family: inherit;
}
.sp-faq-q i { color: var(--sp-accent-2); transition: transform .25s; flex-shrink: 0; }
.sp-faq-item.open .sp-faq-q i { transform: rotate(180deg); }
.sp-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.sp-faq-a-inner {
    padding: 0 22px 18px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--sp-muted);
}

/* Inquiry form */
.sp-inquiry-section {
    padding: 20px 0 20px;
    background: linear-gradient(135deg, #f0f9fb 0%, #e8f4f8 100%);
}
.sp-form-wrap {
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.06);
    border: 1px solid #e8f0f4;
}
.sp-form-wrap h3 { font-size: 24px; font-weight: 800; color: var(--sp-dark); margin-bottom: 6px; }
.sp-form-wrap .sp-form-sub { color: var(--sp-muted); font-size: 14px; margin-bottom: 28px; }
.sp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sp-form-group { margin-bottom: 18px; }
.sp-form-group.full { grid-column: 1 / -1; }
.sp-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.sp-form-group label .req { color: #ef4444; }
.sp-form-group input,
.sp-form-group select,
.sp-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--sp-dark);
    background: #fafbfc;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.sp-form-group input:focus,
.sp-form-group select:focus,
.sp-form-group textarea:focus {
    outline: none;
    border-color: var(--sp-accent-2);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(22,165,210,0.12);
}
.sp-form-group input.is-invalid,
.sp-form-group select.is-invalid,
.sp-form-group textarea.is-invalid {
    border-color: #ef4444;
    background: #fef2f2;
}
.sp-field-error {
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    display: none;
}
.sp-field-error.show { display: block; }
.sp-form-group textarea { min-height: 110px; resize: vertical; }
.sp-form-hint { font-size: 12px; color: #94a3b8; margin-top: 4px; }
.sp-form-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--sp-accent), var(--sp-accent-2));
    color: var(--sp-dark);
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform .2s, box-shadow .2s;
    font-family: inherit;
}
.sp-form-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(5,218,195,0.35); }
.sp-form-submit:disabled { opacity: 0.65; cursor: not-allowed; }

.sp-form-aside {
    padding: 28px 0;
}
.sp-form-aside-card {
    background: linear-gradient(135deg, #0d2137, #0a4a6e);
    border-radius: 18px;
    padding: 32px 28px;
    color: #fff;
    height: 100%;
}
.sp-form-aside-card h4 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.sp-form-aside-card p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 24px; }
.sp-aside-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sp-aside-item:last-child { border-bottom: none; }
.sp-aside-item i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(5,218,195,0.15);
    color: var(--sp-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sp-aside-item strong { display: block; font-size: 14px; margin-bottom: 2px; }
.sp-aside-item span { font-size: 13px; color: rgba(255,255,255,0.6); }

/* Toast */
.sp-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    padding: 16px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    transform: translateY(120%);
    opacity: 0;
    transition: all .35s cubic-bezier(.4,0,.2,1);
    max-width: 380px;
}
.sp-toast.show { transform: translateY(0); opacity: 1; }
.sp-toast.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.sp-toast.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* CTA */
.sp-cta {
    padding: 60px 0;
    background: #fff;
}
.sp-cta-box {
    background: linear-gradient(135deg, #0d2137 0%, #0a4a6e 100%);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    border: 1px solid rgba(5,218,195,0.2);
    position: relative;
    overflow: hidden;
}
.sp-cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(5,218,195,0.12) 0%, transparent 70%);
}
.sp-cta-box h3 { color: #fff; font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 10px; position: relative; }
.sp-cta-box p { color: rgba(255,255,255,0.7); margin-bottom: 24px; position: relative; text-align: center !important;}
.sp-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; position: relative; }

@media (max-width: 991px) {
    .sp-form-grid { grid-template-columns: 1fr; }
    .sp-hero { padding: 40px 0 50px; }
    .sp-form-aside { margin-top: 24px; }
}
@media (max-width: 575px) {
    .sp-form-wrap { padding: 24px 18px; }
    .sp-tab-btn { padding: 10px 14px; font-size: 13px; }
}

/* Methodology Timeline */
.sp-methodology {
    margin: 1.5rem 0;
}
.sp-method-step {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-left: 2px solid #e8f0f4;
    padding-left: 24px;
    position: relative;
}
.sp-method-step:last-child {
    border-left-color: transparent;
}
.sp-method-step::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 16px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--sp-accent);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--sp-accent);
}
.sp-method-number {
    font-size: 12px;
    font-weight: 700;
    color: var(--sp-accent-2);
    background: rgba(5,218,195,0.1);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}
.sp-method-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--sp-dark);
    margin: 0 0 4px;
}
.sp-method-content p {
    font-size: 14px;
    color: var(--sp-muted);
    margin: 0;
    line-height: 1.6;
}

/* Tech Categories */
.sp-tech-categories {
    margin: 1.5rem 0;
}
.sp-tech-category {
    margin-bottom: 2rem;
}
.sp-tech-category h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--sp-dark);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--sp-accent);
}
.sp-tech-category h4 i {
    color: var(--sp-accent);
    font-size: 18px;
}
.sp-tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.sp-tech-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e8f0f4;
    border-radius: 10px;
    transition: all .2s;
}
.sp-tech-list li:hover {
    background: #fff;
    border-color: var(--sp-accent);
    box-shadow: 0 4px 12px rgba(5,218,195,0.08);
    transform: translateY(-2px);
}
.sp-tech-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--sp-dark);
}
.sp-tech-desc {
    font-size: 12px;
    color: var(--sp-muted);
}
.sp-tech-level {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    width: fit-content;
    align-self: flex-start;
    background: rgba(5,218,195,0.15);
    color: var(--sp-accent-2);
}

/* Engagement Cards */
.sp-engagement-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 1.5rem 0;
}
.sp-engage-card {
    background: #fff;
    border: 1px solid #e8f0f4;
    border-radius: 16px;
    padding: 24px;
    transition: all .35s;
}
.sp-engage-card:hover {
    border-color: rgba(5,218,195,0.3);
    box-shadow: 0 12px 32px rgba(5,218,195,0.08);
    transform: translateY(-4px);
}
.sp-engage-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(5,218,195,0.15), rgba(22,165,210,0.08));
    color: var(--sp-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}
.sp-engage-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--sp-dark);
    margin-bottom: 6px;
}
.sp-engage-tagline {
    font-size: 13px;
    color: var(--sp-accent-2);
    font-weight: 600;
    margin-bottom: 14px;
}
.sp-engage-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}
.sp-engage-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    padding: 6px 0;
}
.sp-engage-features li i {
    color: var(--sp-accent);
    font-size: 11px;
}
.sp-engage-best {
    padding-top: 14px;
    border-top: 1px solid #e8f0f4;
    font-size: 12px;
    color: var(--sp-muted);
}
.sp-engage-best strong {
    color: var(--sp-accent-2);
}

/* Why List */
.sp-why-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.sp-why-list li {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #e8f0f4;
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
}
.sp-why-list li:last-child {
    border-bottom: none;
}
.sp-why-list li::before {
    content: '✓';
    color: var(--sp-accent);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}
.sp-why-list li strong {
    color: var(--sp-dark);
}

/* Case Studies */
.sp-case-studies {
    margin: 2rem 0 1rem;
}
.sp-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 1.5rem;
}
.sp-case-card {
    background: #fff;
    border: 1px solid #e8f0f4;
    border-radius: 16px;
    padding: 24px;
    transition: all .35s;
}
.sp-case-card:hover {
    border-color: rgba(5,218,195,0.3);
    box-shadow: 0 12px 32px rgba(5,218,195,0.08);
    transform: translateY(-4px);
}
.sp-case-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.sp-case-industry,
.sp-case-type {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sp-case-industry {
    background: rgba(5,218,195,0.15);
    color: var(--sp-accent-2);
}
.sp-case-type {
    background: rgba(22,165,210,0.15);
    color: var(--sp-accent-2);
}
.sp-case-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--sp-dark);
    margin: 0 0 8px;
}
.sp-case-card p {
    font-size: 14px;
    color: var(--sp-muted);
    line-height: 1.6;
    margin: 0 0 12px;
}
.sp-case-tech {
    font-size: 12px;
    font-family: monospace;
    color: var(--sp-accent-2);
    font-weight: 600;
}

/* Rich content enhancements */
.sp-rich-content strong {
    color: var(--sp-dark);
    font-weight: 700;
}
.sp-rich-content h4 {
    font-size: 17px;
    font-weight: 800;
    color: var(--sp-dark);
    margin: -0.5rem 0 0.75rem;
}
.sp-rich-content h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--sp-dark);
    margin: 2rem 0 1rem;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .sp-method-step {
        flex-direction: column;
        gap: 8px;
        padding-left: 36px;
    }
    .sp-method-step::before {
        left: 4px;
        top: 0;
    }
    .sp-method-number {
        align-self: flex-start;
    }
    .sp-tech-list {
        grid-template-columns: 1fr;
    }
    .sp-engagement-cards {
        grid-template-columns: 1fr;
    }
    .sp-case-grid {
        grid-template-columns: 1fr;
    }
}
