/* ═══════════════════════════════════════════════════
   ENGINEERING & PLATFORMS — Service Page Styles
   Inherits: global.css (tokens, glass-panel, nav-link, eyebrow, text-muted)
═══════════════════════════════════════════════════ */

/* ─── VIDEO BACKGROUND ─── */
.video-bg {
    position: fixed;
    inset: 0;
    z-index: -3;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: rgba(5, 5, 8, 0.82);
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.4;
}

.vignette {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
}

/* ─── NAVIGATION ─── */
.sp-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 6vw;
    background: rgba(5, 5, 8, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sp-nav-back {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sp-nav-back:hover {
    color: #fff;
}

.sp-nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.sp-nav-cta {
    padding: 10px 24px;
    background: var(--accent-indigo);
    border-radius: 50px;
    color: #fff !important;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.3s;
}

.sp-nav-cta:hover {
    opacity: 0.85;
}

/* ─── SHARED LAYOUT ─── */
.sp-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 6vw;
}

@media (max-width: 767px) {
    .sp-container {
        padding: 0 20px;
    }
}

.sp-section {
    padding: 130px 0;
    position: relative;
}

.section-header {
    margin-bottom: 70px;
}

/* ─── BUTTONS ─── */
.btn-primary {
    display: inline-block;
    padding: 18px 48px;
    background: var(--accent-indigo);
    border-radius: 12px;
    color: #fff;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-weight: 500;
}

.btn-primary:hover {
    background: #6a7cf0;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(120, 140, 255, 0.3);
}

.btn-ghost {
    display: inline-block;
    padding: 18px 48px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

/* ─── 1. HERO ─── */
.sp-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.sp-hero-inner {
    padding: 0 6vw;
    max-width: 900px;
}

.sp-hero-h1 {
    font-size: clamp(2.8rem, 7vw, 6.5rem);
    margin: 20px 0 30px;
    line-height: 0.95;
    color: #fff;
}

.sp-hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.75);
    max-width: 640px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.sp-hero-support {
    font-size: 14px;
    margin-bottom: 48px;
}

.sp-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.sp-trust-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.sp-trust-badge {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

/* ─── 2. WHAT WE ENGINEER ─── */
.sp-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
    align-items: start;
}

.sp-col-text p {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.sp-list-intro {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.sp-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-feature-list li {
    font-size: 18px;
    color: #fff;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-left: 24px;
    position: relative;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.sp-feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-indigo);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sp-feature-list li:hover {
    color: var(--accent-indigo);
}

.sp-feature-list li:hover::before {
    opacity: 1;
}

/* ─── 3. PROBLEMS ─── */
.sp-problems-section {
    background: rgba(255, 255, 255, 0.014);
}

.sp-problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.sp-problem-card {
    padding: 32px 36px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.sp-problem-num {
    font-size: 10px;
    color: var(--accent-cyan);
    letter-spacing: 3px;
    font-family: var(--font-heading);
    flex-shrink: 0;
    margin-top: 2px;
}

.sp-problem-card p {
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* ─── 4. SERVICES ─── */
.sp-services-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sp-service-block {
    padding: 50px;
}

.sp-service-head {
    display: flex;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 16px;
}

.sp-service-head h3 {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    color: #fff;
    margin: 0;
}

.sp-service-num {
    font-size: 11px;
    color: var(--accent-indigo);
    letter-spacing: 4px;
    font-family: var(--font-heading);
    flex-shrink: 0;
}

.sp-service-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sp-service-includes h4,
.sp-service-outcome h4 {
    font-size: 10px;
    color: var(--accent-cyan);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 600;
}

.sp-service-includes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-service-includes li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-left: 16px;
    position: relative;
}

.sp-service-includes li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent-indigo);
    opacity: 0.5;
    font-size: 10px;
}

.sp-service-outcome p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* ─── 5. ARCHITECTURE PRINCIPLES ─── */
.sp-arch-section {
    background: linear-gradient(180deg, transparent, rgba(120, 140, 255, 0.03) 50%, transparent);
}

.sp-principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.sp-principle {
    padding: 40px 32px;
    text-align: left;
}

.sp-principle-icon {
    font-size: 24px;
    color: var(--accent-indigo);
    margin-bottom: 24px;
    opacity: 0.8;
    display: block;
}

.sp-principle h3 {
    font-size: 16px;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.sp-principle p {
    font-size: 14px;
    line-height: 1.6;
}

/* ─── 6. TECH STACK ─── */
.sp-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.sp-stack-group {
    padding: 32px;
}

.sp-stack-label {
    font-size: 10px;
    color: var(--accent-cyan);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 600;
}

.sp-stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sp-stack-tags span {
    padding: 6px 14px;
    background: rgba(120, 140, 255, 0.07);
    border: 1px solid rgba(120, 140, 255, 0.15);
    border-radius: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.5px;
}

/* ─── 7. PROCESS ─── */
.sp-process-track {
    position: relative;
    padding-left: 60px;
    margin-top: 20px;
}

.sp-process-track::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 12px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent-indigo), transparent);
    opacity: 0.3;
}

.sp-process-step {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    gap: 0;
    align-items: flex-start;
}

.sp-process-dot {
    position: absolute;
    left: -53px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-indigo);
    box-shadow: 0 0 16px rgba(120, 140, 255, 0.5);
    flex-shrink: 0;
}

.sp-process-content {
    flex: 1;
}

.sp-step-num {
    font-size: 10px;
    color: var(--accent-cyan);
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.sp-process-content h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 14px;
}

.sp-process-content p {
    font-size: 15px;
    line-height: 1.7;
    max-width: 600px;
}

/* ─── 8. CASE STUDIES ─── */
.sp-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.sp-case-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.sp-case-card:hover {
    transform: translateY(-6px);
}

.sp-case-num {
    font-size: 10px;
    color: var(--accent-cyan);
    letter-spacing: 4px;
    font-family: var(--font-heading);
}

.sp-case-card h3 {
    font-size: 22px;
    color: #fff;
    margin: 0;
}

.sp-case-card p {
    font-size: 14px;
    line-height: 1.7;
    flex-grow: 1;
}

.sp-case-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sp-case-tags span {
    font-size: 10px;
    color: var(--accent-indigo);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 4px 10px;
    background: rgba(120, 140, 255, 0.06);
    border-radius: 4px;
}

/* ─── 9. ENGAGEMENT MODELS ─── */
.sp-engagement-section {
    background: rgba(255, 255, 255, 0.014);
}

.sp-engagement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.sp-engagement-card {
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.sp-engagement-card:hover {
    transform: translateY(-6px);
}

.sp-engagement-featured {
    border-color: rgba(120, 140, 255, 0.35) !important;
    background: rgba(120, 140, 255, 0.06) !important;
}

.sp-featured-tag {
    position: absolute;
    top: -1px;
    right: 28px;
    background: var(--accent-indigo);
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 0 0 8px 8px;
    color: #fff;
}

.sp-engagement-icon {
    font-size: 20px;
    color: var(--accent-indigo);
    opacity: 0.7;
}

.sp-engagement-card h3 {
    font-size: 18px;
    color: #fff;
    margin: 0;
}

.sp-engagement-card p {
    font-size: 14px;
    line-height: 1.6;
}

.sp-engagement-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.sp-engagement-card li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    padding: 7px 0;
    padding-left: 16px;
    position: relative;
}

.sp-engagement-card li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-size: 10px;
}

/* ─── 10. FAQ ─── */
.sp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 860px;
}

.sp-faq-item {
    padding: 0;
    overflow: hidden;
}

.sp-faq-trigger {
    width: 100%;
    padding: 28px 36px;
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-body);
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.sp-faq-trigger:hover {
    color: var(--accent-indigo);
}

.sp-faq-icon {
    font-size: 22px;
    color: var(--accent-indigo);
    flex-shrink: 0;
    transition: transform 0.3s ease;
    font-weight: 300;
}

.sp-faq-body {
    padding: 0 36px 28px;
}

.sp-faq-body p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
}

/* ─── 11. CTA ─── */
.sp-cta-section {
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(120, 140, 255, 0.04));
}

.sp-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sp-cta-h2 {
    font-size: clamp(3rem, 8vw, 7rem);
    color: #fff;
    margin: 20px 0 24px;
    line-height: 0.95;
}

.sp-cta-sub {
    font-size: 17px;
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 48px;
}

.sp-cta-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 32px;
}

.sp-contact-strip {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 12px;
    letter-spacing: 1.5px;
}

/* ─── FOOTER ─── */
.sp-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 0;
}

.sp-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.sp-footer-brand {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.sp-footer-links {
    display: flex;
    gap: 24px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .sp-nav-links {
        display: none;
    }

    .sp-hero-h1 {
        font-size: clamp(2.2rem, 10vw, 4rem);
        word-break: break-word;
    }

    .sp-two-col,
    .sp-service-body {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sp-process-track {
        padding-left: 40px;
    }

    .sp-process-dot {
        left: -33px;
    }

    .sp-footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {

    .sp-hero-actions,
    .sp-cta-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-ghost {
        text-align: center;
    }

    .sp-problems-grid,
    .sp-principles-grid,
    .sp-stack-grid,
    .sp-case-grid,
    .sp-engagement-grid {
        grid-template-columns: 1fr;
    }
}