.spf-section {
    padding: 5rem 0 6rem;
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    background: transparent;
}

.spf-container {
    max-width: 84.375rem;
    margin-inline: auto;
    padding-inline: 1.5rem;
}


.spf-grid {
    display: grid;
    grid-template-columns: 55fr 45fr;
    column-gap: 3.5rem;
    align-items: start;
}


.spf-left-header {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateX(-2.5rem);
    filter: blur(0.5rem);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out, filter 0.9s ease-out;
}

.spf-left-header.is-visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}


.spf-left {
    grid-column: 1;
    grid-row: 2;
    opacity: 0;
    transform: translateX(-2.5rem);
    filter: blur(0.5rem);
    transition: opacity 0.9s ease-out 0.1s, transform 0.9s ease-out 0.1s, filter 0.9s ease-out 0.1s;
}

.spf-left.is-visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

.spf-headline {
    margin: 0 0 1rem;
    line-height: 1.15;
    font-size:clamp(2.7rem, 5.3vw, 4.35rem);
}

.spf-headline__line1 {
    display: block;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.spf-headline__line2 {
    display: block;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--soxy-accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 0 26px rgba(var(--soxy-global-accent-rgb), 0.18);
}

.spf-subtext {
    margin: 0;
    max-width: 30rem;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    font-family: "Mulish", sans-serif;
}


.spf-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.spf-cards__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.spf-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgb(147 67 213 / 10%) 0%, rgba(255, 255, 255, .02) 100%),
        rgba(17, 10, 46, .4);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 0.875rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    backdrop-filter: blur(18px) saturate(135%);
    box-shadow:
        0 1rem 2.125rem rgba(4, 1, 16, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.065);
    opacity: 0;
    transform: translateY(1rem);
    filter: blur(0.4rem);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out, filter 0.9s ease-out,
        border-color 0.3s ease, box-shadow 0.3s ease;
}

.spf-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.spf-card:hover {
    border-color: rgb(139 76 215 / 0.3);
    box-shadow:
        0 2rem 5rem rgba(2, 0, 14, 0.28),
        0 0 2rem rgb(152 76 215 / 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.spf-card--horizontal {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.spf-card--horizontal .spf-card__icon-wrap {
    margin-bottom: 0;
    flex-shrink: 0;
}

.spf-card__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.625rem;
    margin-bottom: 0.875rem;
}

.spf-card__icon-wrap svg {
    width: 1.5rem;
    height: 1.5rem;
}

.spf-card__icon-wrap i {
    font-size: 1.3rem;
    line-height: 1;
}

.spf-card__icon-wrap--lg i {
    font-size: 1.75rem;
}

.spf-card__icon-wrap--lg {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
}

.spf-card__icon-wrap--lg svg {
    width: 2rem;
    height: 2rem;
}

.spf-card__icon-wrap--teal {
    background: rgba(77, 217, 192, 0.1);
    border: 1px solid rgba(77, 217, 192, 0.3);
    color: #4dd9c0;
}

.spf-card__icon-wrap--teal.spf-card__icon-wrap--lg {
    box-shadow: 0 0 1rem rgba(77, 217, 192, 0.28), 0 0 2.5rem rgba(77, 217, 192, 0.1);
}

.spf-card__icon-wrap--sky {
    background: rgba(125, 216, 248, 0.1);
    border: 1px solid rgba(125, 216, 248, 0.2);
    color: #7dd8f8;
}

.spf-card__icon-wrap--violet {
    background: rgba(160, 100, 255, 0.1);
    border: 1px solid rgba(160, 100, 255, 0.2);
    color: #b07fff;
}

.spf-card__icon-wrap--blue {
    background: rgba(74, 130, 230, 0.1);
    border: 1px solid rgba(74, 130, 230, 0.2);
    color: #6aa3f0;
}

.spf-card__icon-wrap--magenta {
    background: rgba(204, 68, 255, 0.1);
    border: 1px solid rgba(204, 68, 255, 0.2);
    color: #cc44ff;
}

.spf-card__title {
    margin: 0 0 0.25rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: rgb(255, 255, 255);
    line-height: 1.5;
    font-family: "Inter", sans-serif;
}

.spf-card__desc {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
}

.spf-card__watermark {
    position: absolute;
    bottom: -1.25rem;
    right: -1.25rem;
    width: 7rem;
    height: 7rem;
    color: rgba(77, 217, 192, 0.13);
    pointer-events: none;
}

.spf-right {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: flex-start;
}

.spf-netmap {
    width: 100%;
    padding: 1.5rem;
    border-radius: 1.5rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .02) 100%),
        rgba(17, 10, 46, .4);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-left-color:  rgba(255, 255, 255, 0.105);
    border-right-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(135%);
    -webkit-backdrop-filter: blur(20px) saturate(135%);
    isolation: isolate;
    opacity: 0;
    transform: translateY(1.875rem);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.spf-netmap.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.spf-netmap__overlay-cards {
    position: absolute;
    bottom: 0;
    left: 0.625rem;
    right: 0.625rem;
    transform: translateY(20%);
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    z-index: 2;
}

.spf-netmap__info-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 42%, rgba(255, 255, 255, 0.015) 100%),
        linear-gradient(135deg, rgba(0, 180, 160, 0.075) 0%, rgba(16, 8, 42, 0.14) 100%),
        rgba(12, 6, 34, 0.14);
    backdrop-filter: blur(8px) saturate(131%);
    -webkit-backdrop-filter: blur(8px) saturate(131%);
    box-shadow:
        0 1.125rem 2.75rem rgba(4, 1, 16, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.spf-netmap__info-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.spf-netmap__card-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
}

.spf-netmap__card-icon-wrap svg {
    width: 1rem;
    height: 1rem;
}

.spf-netmap__card-icon-wrap--teal {
    background: rgba(77, 217, 192, 0.12);
    border: 1px solid rgba(77, 217, 192, 0.28);
    color: #4dd9c0;
}

.spf-netmap__card-icon-wrap--sky {
    background: rgba(125, 216, 248, 0.12);
    border: 1px solid rgba(125, 216, 248, 0.24);
    color: #7dd8f8;
}

.spf-netmap__card-body {
    min-width: 0;
}

.spf-netmap__card-title {
    margin: 0 0 0.1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    white-space: nowrap;
    font-family: 'DM Sans', 'Inter', sans-serif;
}

.spf-netmap__card-sub {
    margin: 0;
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.3;
    white-space: nowrap;
    font-family: 'DM Sans', 'Inter', sans-serif;
}

.spf-netmap__map-wrap {
    position: relative;
    margin-bottom: 0.5rem;
}

.spf-netmap__map-inner {
    border-radius: 0.75rem;
    overflow: hidden;
    background: #060a14;
    line-height: 0;
    box-shadow:
        0 0 1.25rem rgb(124 77 217 / 0.22),
        0 0 3rem rgb(145 77 217 / 0.09);
}

#spf-netmap-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 820 / 420;
}

.spf-netmap__live {
    position: absolute;
    bottom: 16.2rem;
    right: 1rem;
    transform: translateY(50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.4375rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(6, 8, 20, 0.88);
    border: 1px solid rgba(0, 229, 192, 0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.spf-netmap__live.is-visible {
    opacity: 1;
}

.spf-netmap__live-dot {
    display: block;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: #00ff88;
    flex-shrink: 0;
    animation: spf-nm-pulse 1.5s ease-in-out infinite;
}

.spf-netmap__live-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #4dd9c0;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-family: 'DM Sans', 'Inter', sans-serif;
    white-space: nowrap;
}

/* ── Bottom bar ───────────────────────────────────────────── */

.spf-netmap__bottombar {
    display: flex;
    flex-direction: column;
    gap: 0.4375rem;
    padding-top: 0.75rem;
}

.spf-netmap__latency-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #4dd9c0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'DM Sans', 'Inter', sans-serif;
}

.spf-netmap__progress-track {
    width: 38%;
    max-width: 11rem;
    height: 0.1875rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0.125rem;
    overflow: hidden;
}

.spf-netmap__progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4dd9c0 0%, #7dd8f8 100%);
    border-radius: 0.125rem;
    transition: width 8s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes spf-nm-pulse {
    0%, 100% { transform: scale(1);   opacity: 1;   }
    50%       { transform: scale(1.4); opacity: 0.4; }
}

@media (max-width: 62rem) {
    .spf-grid {
        grid-template-columns: 1fr;
    }

    .spf-left-header {
        grid-column: 1;
        grid-row: 1;
    }

    .spf-left {
        grid-column: 1;
        grid-row: 2;
    }

    .spf-right {
        display: none;
    }
}

@media (max-width: 36rem) {
    .spf-cards__row {
        grid-template-columns: 1fr;
    }

    .spf-headline__line1,
    .spf-headline__line2 {
        font-size: 1.875rem;
    }
}
