﻿/* =========
   ServiceProvision: premium starry / aurora + bento + glass
   Latest web UI: container queries + popover + dialog + scroll reveal (progressive)
   ========= */

/*:root {
    --sp-bg: #050812;
    --sp-ink: rgba(255,255,255,.92);
    --sp-muted: rgba(255,255,255,.72);
    --sp-gold: #ffd700;
    --sp-lime: #7cfc00;
    --sp-card: rgba(255,255,255,.08);
    --sp-card2: rgba(255,255,255,.12);
    --sp-stroke: rgba(255,255,255,.14);
    --sp-shadow: 0 20px 60px rgba(0,0,0,.55);
}*/

:root {
    --sp-bg: #050812;
    --sp-ink: rgba(255,255,255,.96);
    --sp-muted: rgba(255,255,255,.84);
    --sp-gold: #ffd700;
    --sp-lime: #7cfc00;
    /* Stronger card contrast */
    --sp-card: rgba(10,14,26,.52);
    --sp-card2: rgba(255,255,255,.16);
    /* Stronger border separation */
    --sp-stroke: rgba(255,255,255,.22);
    /* Softer shadow so cards feel clearer */
    --sp-shadow: 0 18px 60px rgba(0,0,0,.55);
    /* Readability helpers */
    --sp-textShadow: 0 2px 14px rgba(0,0,0,.55);
    --sp-readingOverlay: rgba(0,0,0,.28);
}

/* ✅ Ensure the page body does not paint white over the fixed background */
html, body {
    background: transparent !important;
}

/* Background layers */
.sp-bg {
    position: fixed;
    inset: 0;
    z-index: 0; /* ✅ no negative z-index */
    pointer-events: none; /* ✅ keeps clicks normal */
    background: radial-gradient(1200px 600px at 15% 10%, rgba(55,120,255,.18), transparent 60%), radial-gradient(1000px 500px at 80% 20%, rgba(130,60,255,.18), transparent 60%), radial-gradient(900px 500px at 60% 90%, rgba(0,255,170,.10), transparent 65%), var(--sp-bg);
}

.sp-aurora {
    position: absolute;
    inset: -30%;
    filter: blur(40px);
    opacity: .9;
    background: conic-gradient(from 140deg, rgba(0,255,170,.15), rgba(120,80,255,.16), rgba(255,120,60,.10), rgba(0,180,255,.14), rgba(0,255,170,.15));
    animation: aurora 16s ease-in-out infinite alternate;
}

@keyframes aurora {
    from {
        transform: rotate(0deg) scale(1);
    }

    to {
        transform: rotate(18deg) scale(1.08);
    }
}

.sp-stars {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.26) 0 1px, transparent 2px), radial-gradient(circle at 70% 20%, rgba(255,255,255,.20) 0 1px, transparent 2px), radial-gradient(circle at 40% 80%, rgba(255,255,255,.18) 0 1px, transparent 2px), radial-gradient(circle at 85% 75%, rgba(255,255,255,.15) 0 1px, transparent 2px), radial-gradient(circle at 10% 75%, rgba(255,255,255,.12) 0 1px, transparent 2px);
    background-size: 220px 220px;
    opacity: .65;
}

/* Layout */
.sp-wrap {
    position: relative; /* ✅ keep content above background */
    z-index: 1; /* ✅ content above .sp-bg */

    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px 80px;
    color: var(--sp-ink);
}

.sp-hero {
    display: grid;
    grid-template-columns: 1.2fr .9fr;
    gap: 28px;
    align-items: start;
}

@media (max-width: 980px) {
    .sp-hero {
        grid-template-columns: 1fr;
    }
}

.sp-kicker {
    color: rgba(255,215,0,.92);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .8rem;
}

.sp-title {
    font-size: clamp(2rem, 2.6vw + 1.2rem, 3.3rem);
    line-height: 1.06;
    margin: 10px 0 10px;
}

.sp-titleGlow {
    display: block;
    color: #fff;
    text-shadow: 0 0 30px rgba(120,80,255,.35), 0 0 18px rgba(0,255,170,.22);
}

.sp-subtitle {
    color: var(--sp-muted);
    max-width: 62ch;
    font-size: 1.05rem;
}

.sp-ctaRow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.sp-btnPrimary, .sp-btnGhost, .sp-miniBtn, .sp-infoBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--sp-stroke);
    cursor: pointer;
}

.sp-btnPrimary {
    background: linear-gradient(90deg, rgba(124,252,0,.9), rgba(0,180,255,.9));
    color: #001;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.sp-btnGhost {
    background: rgba(255,255,255,.06);
    color: var(--sp-ink);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sp-miniBtn {
    background: rgba(255,255,255,.08);
    color: var(--sp-ink);
    padding: 8px 12px;
}

.sp-infoBtn {
    background: rgba(255,255,255,.07);
    color: var(--sp-ink);
    padding: 8px 12px;
    font-size: .85rem;
}

    .sp-btnPrimary:hover, .sp-btnGhost:hover, .sp-miniBtn:hover, .sp-infoBtn:hover {
        transform: translateY(-1px);
    }

.sp-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.sp-badge {
    background: rgba(255,255,255,.06);
    border: 1px solid var(--sp-stroke);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .85rem;
    color: rgba(255,255,255,.84);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Glass cards */
.sp-heroCard, .sp-feature, .sp-card, .sp-final {
    background: linear-gradient(180deg, var(--sp-card2), var(--sp-card));
    border: 1px solid var(--sp-stroke);
    border-radius: 22px;
    box-shadow: var(--sp-shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.sp-heroCard {
    padding: 18px;
}

.sp-heroCardTop {
    display: flex;
    gap: 8px;
}

.sp-pill {
    background: rgba(255,215,0,.14);
    border: 1px solid rgba(255,215,0,.30);
    color: rgba(255,215,0,.95);
    padding: 5px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: .8rem;
}

.sp-pillAlt {
    background: rgba(0,255,170,.12);
    border-color: rgba(0,255,170,.26);
    color: rgba(190,255,240,.92);
}

.sp-cardTitle {
    margin: 12px 0 6px;
    font-size: 1.25rem;
}

.sp-cardText {
    margin: 0 0 14px;
    color: var(--sp-muted);
}

.sp-cardGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 520px) {
    .sp-cardGrid {
        grid-template-columns: 1fr;
    }
}

.sp-miniStat {
    border: 1px solid var(--sp-stroke);
    border-radius: 16px;
    padding: 10px;
    background: rgba(0,0,0,.18);
}

.sp-miniStatNum {
    font-weight: 900;
    font-size: 1rem;
    color: var(--sp-lime);
}

.sp-miniStatTxt {
    color: rgba(255,255,255,.82);
    font-size: .92rem;
}

.sp-cardActions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.sp-section {
    margin-top: 46px;
}

.sp-sectionHeader {
    margin-bottom: 14px;
}

.sp-sectionTitle {
    font-size: 1.6rem;
    margin: 0;
}

.sp-sectionSub {
    color: var(--sp-muted);
    margin: 8px 0 0;
}

/* Featured split block */
.sp-feature {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 18px;
    padding: 18px;
}

@media (max-width: 980px) {
    .sp-feature {
        grid-template-columns: 1fr;
    }
}

.sp-featureTitle {
    margin: 0 0 6px;
    font-size: 1.35rem;
}

.sp-featureText {
    color: var(--sp-muted);
    margin: 0 0 14px;
}

.sp-featureList {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sp-featureItem {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: rgba(255,255,255,.85);
}

.sp-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(124,252,0,.9);
    margin-top: 6px;
    box-shadow: 0 0 18px rgba(124,252,0,.35);
}

.sp-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sp-step {
    display: flex;
    gap: 10px;
    border: 1px solid var(--sp-stroke);
    border-radius: 18px;
    padding: 12px;
    background: rgba(0,0,0,.18);
}

.sp-stepNum {
    font-weight: 900;
    color: rgba(255,215,0,.95);
    width: 44px;
}

.sp-stepTitle {
    font-weight: 900;
}

.sp-stepText {
    color: var(--sp-muted);
    font-size: .95rem;
}

.sp-note {
    margin-top: 12px;
    color: rgba(255,255,255,.85);
    border: 1px dashed rgba(255,255,255,.18);
    border-radius: 18px;
    padding: 12px;
    background: rgba(0,0,0,.14);
}

/* Bento grid + container queries */
.sp-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
}

.sp-card {
    padding: 16px;
    grid-column: span 6;
}

.sp-cardWide {
    grid-column: span 12;
}

@media (max-width: 980px) {
    .sp-card {
        grid-column: span 12;
    }
}

.sp-cardTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sp-card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.sp-card p {
    color: var(--sp-muted);
    margin: 10px 0;
}

.sp-card ul {
    margin: 0;
    padding-left: 18px;
    color: rgba(255,255,255,.86);
}

.sp-card li {
    margin: 6px 0;
}

@container style(--container: yes) { /* harmless marker; left for future refinement */
}

/* Popover styling (native popover API) */
.sp-pop[popover] {
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;
    padding: 14px;
    background: rgba(10,14,26,.92);
    color: rgba(255,255,255,.92);
    max-width: min(520px, 92vw);
    box-shadow: 0 30px 80px rgba(0,0,0,.65);
}

.sp-pop h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.sp-pop ul {
    margin: 0;
    padding-left: 18px;
    color: rgba(255,255,255,.85);
}

.sp-popActions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    align-items: center;
    justify-content: flex-end;
}

.sp-link {
    color: var(--sp-lime);
    font-weight: 800;
    text-decoration: none;
}

/* Dialog */
.sp-dialog {
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;
    background: rgba(10,14,26,.95);
    color: rgba(255,255,255,.92);
    width: min(720px, 92vw);
    box-shadow: 0 40px 120px rgba(0,0,0,.75);
    padding: 0;
}

    .sp-dialog::backdrop {
        background: rgba(0,0,0,.55);
        backdrop-filter: blur(4px);
    }

.sp-dialogHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 10px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.sp-dialogBody {
    padding: 14px;
}

.sp-muted {
    color: var(--sp-muted);
}

/* Final CTA */
.sp-final {
    margin-top: 46px;
    padding: 18px;
    text-align: center;
}

    .sp-final h2 {
        margin: 0 0 8px;
    }

    .sp-final p {
        margin: 0 0 14px;
        color: var(--sp-muted);
    }

/* Scroll-driven reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
}

@supports (animation-timeline: view()) {
    .reveal {
        opacity: 0;
        transform: translateY(12px);
        animation: spFadeUp 1s ease forwards;
        animation-timeline: view();
        animation-range: entry 15% cover 28%;
    }

    @keyframes spFadeUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Small polish */
.sp-btnPrimary, .sp-btnGhost, .sp-miniBtn, .sp-infoBtn {
    transition: transform .15s ease, filter .15s ease;
}
