/* ==========================================================================
   Project call to action — the close of each case study, just above the
   footer. Plain CSS, scoped to .pc-*. Set in the site's night palette so it
   reads as Nebulight speaking, whichever client the page is about; the
   button is the brand's violet-to-blue light with a slow halo behind it.
   ========================================================================== */

.pc {
    --pc-gutter: clamp(1.25rem, 4.2vw, 3.5rem);
    --pc-ease: cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(5.5rem, 12vw, 9.5rem) var(--pc-gutter);
    color: #fff;
    text-align: center;
    background:
        radial-gradient(42rem 22rem at 50% 108%, rgba(124, 58, 237, 0.48), transparent 70%),
        radial-gradient(30rem 18rem at 82% 0%, rgba(14, 165, 233, 0.12), transparent 70%),
        radial-gradient(30rem 18rem at 12% 20%, rgba(244, 114, 182, 0.03), transparent 70%),
        linear-gradient(180deg, #07061a 0%, #0f0a28 100%);
    font-family: "Manrope", sans-serif;
}

/* A faint scatter of stars. */
.pc::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(1px 1px at 12% 30%, rgba(255, 255, 255, 0.5), transparent 60%),
        radial-gradient(1px 1px at 28% 72%, rgba(255, 255, 255, 0.35), transparent 60%),
        radial-gradient(1px 1px at 46% 18%, rgba(255, 255, 255, 0.4), transparent 60%),
        radial-gradient(1px 1px at 64% 64%, rgba(255, 255, 255, 0.3), transparent 60%),
        radial-gradient(1px 1px at 78% 26%, rgba(255, 255, 255, 0.45), transparent 60%),
        radial-gradient(1px 1px at 90% 80%, rgba(255, 255, 255, 0.35), transparent 60%),
        radial-gradient(1.5px 1.5px at 36% 44%, rgba(125, 211, 252, 0.6), transparent 60%),
        radial-gradient(1.5px 1.5px at 70% 12%, rgba(196, 181, 253, 0.6), transparent 60%);
}

.pc-inner {
    display: grid;
    justify-items: center;
    gap: 1.4rem;
    max-width: 52rem;
    margin: 0 auto;
}

.pc-k {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    margin: 0;
    font: 700 0.74rem/1 "Space Grotesk", sans-serif;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #7dd3fc;
}
.pc-k::before,
.pc-k::after {
    content: "";
    width: 2.4rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, currentColor);
}
.pc-k::after { transform: scaleX(-1); }

.pc-title {
    margin: 0;
    font: 800 clamp(2.4rem, 7vw, 5.2rem)/0.98 "Manrope", sans-serif;
    letter-spacing: -0.045em;
    text-wrap: balance;
}
.pc-title em {
    font-style: normal;
    background: linear-gradient(100deg, #c4b5fd, #b69cff 55%, #a5b4fc 80%, #7dd3fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pc-sub {
    max-width: 34rem;
    margin: 0;
    font-size: clamp(1rem, 2.4vw, 1.15rem);
    line-height: 1.6;
    color: rgba(226, 228, 240, 0.74);
    text-wrap: pretty;
}

/* --- The button --- */
.pc-btn-wrap {
    position: relative;
    margin-top: 1.4rem;
}

/* A slow halo of brand light behind the button. */
.pc-btn-wrap::before {
    content: "";
    position: absolute;
    inset: -0.9rem -1.4rem;
    z-index: -1;
    border-radius: 1rem;
    background: linear-gradient(100deg, #7c3aed, #8b5cf6 45%, #4f46e5 75%, #0ea5e9);
    filter: blur(1.6rem);
    opacity: 0.5;
    animation: pc-breathe 4.2s ease-in-out infinite;
}

.pc-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.95rem;
    min-height: 4.25rem;
    padding: 0 2.3rem;
    overflow: hidden;
    border-radius: 6px;
    background: linear-gradient(100deg, #7c3aed, #4f46e5 50%, #0ea5e9);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 0 0 1px rgba(255, 255, 255, 0.14),
        0 20px 44px -16px rgba(79, 70, 229, 0.85);
    color: #fff;
    font: 700 0.88rem/1 "Space Grotesk", sans-serif;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    text-decoration: none;
    transition: scale 0.5s var(--pc-ease), box-shadow 0.5s var(--pc-ease);
}

/* The light that sweeps across on hover. */
.pc-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.38) 50%, transparent 70%);
    transform: translateX(-110%);
}

.pc-btn-dot {
    position: relative;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}
.pc-btn-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid #fff;
    animation: pc-ping 2.2s var(--pc-ease) infinite;
}

.pc-btn svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (hover: hover) {
    .pc-btn:hover {
        scale: 1.035;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 0 0 1px rgba(255, 255, 255, 0.2),
            0 26px 60px -16px rgba(79, 70, 229, 1);
    }
    .pc-btn:hover::after {
        transform: translateX(110%);
        transition: transform 0.9s var(--pc-ease);
    }
}

.pc-btn:focus-visible {
    outline: 2px solid #7dd3fc;
    outline-offset: 4px;
}

.pc-note {
    margin: 0.6rem 0 0;
    font: 500 0.72rem/1.4 "Space Grotesk", sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(226, 228, 240, 0.48);
}

@keyframes pc-breathe {
    0%, 100% { opacity: 0.4; transform: scale(0.96); }
    50% { opacity: 0.68; transform: scale(1.04); }
}

@keyframes pc-ping {
    0% { transform: scale(1); opacity: 0.9; }
    70%, 100% { transform: scale(3); opacity: 0; }
}

@media (max-width: 599px) {
    .pc-btn { width: 100%; justify-content: center; padding: 0 1.4rem; }
    .pc-btn-wrap { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .pc-btn-wrap::before,
    .pc-btn-dot::after { animation: none; }
    .pc-btn { transition: none; }
}
