/*==========================================
  Desiwood — "Ready To Distribute Your Music?" banner
  (resources/views/frontend/components/cta.blade.php). Scoped to .dw-cta.
==========================================*/

.dw-cta {
    --cta-bg: #170a2a;
    --cta-accent: #ff8a00;
    --cta-accent-2: #ff006e;
    --cta-text: #c9c0d8;
    padding: 0 0 72px;
}

.dw-cta__box {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 52px 48px;
    background:
        radial-gradient(120% 140% at 50% 0%, rgba(255, 255, 255, .05) 0%, transparent 55%),
        linear-gradient(180deg, #1b0c31 0%, var(--cta-bg) 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 22px;
    box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .8);
    text-align: center;
}

/* Soft brand light: orange low-left, magenta high-right, drifting slowly. */
.dw-cta__box::before {
    content: "";
    position: absolute;
    inset: -40%;
    z-index: -2;
    background:
        radial-gradient(30% 40% at 30% 68%, rgba(255, 110, 20, .2) 0%, transparent 70%),
        radial-gradient(30% 40% at 72% 30%, rgba(255, 0, 110, .22) 0%, transparent 70%);
    animation: dwCtaGlow 22s ease-in-out infinite alternate;
    will-change: transform;
}

/* Fine grain for depth (tiny tiled SVG noise). */
.dw-cta__box::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
    opacity: .06;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* Waveform: only at the sides, fading out behind the text. */
.dw-cta__wave {
    position: absolute;
    left: 0;
    top: 50%;
    z-index: -1;
    width: 100%;
    height: 62%;
    transform: translateY(-50%);
    opacity: .22;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 24%, transparent 40%, transparent 60%, #000 76%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 24%, transparent 40%, transparent 60%, #000 76%, #000 90%, transparent 100%);
    animation: dwCtaWave 7s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes dwCtaGlow {
    from {
        transform: translate3d(-3%, 2%, 0);
    }

    to {
        transform: translate3d(3%, -2%, 0);
    }
}

@keyframes dwCtaWave {
    from {
        opacity: .14;
    }

    to {
        opacity: .26;
    }
}

/*------------------------------------------
  Content
------------------------------------------*/

.dw-cta__content {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

.dw-cta__title {
    margin: 0;
    color: #fff;
    font-family: var(--default-font, "Poppins", sans-serif);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.dw-cta__text {
    max-width: 560px;
    margin: 12px auto 0;
    color: var(--cta-text);
    font-size: 16px;
    line-height: 1.6;
    text-wrap: balance;
}

.dw-cta__action {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.dw-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 28px;
    background: linear-gradient(90deg, var(--cta-accent) 0%, var(--cta-accent-2) 100%);
    border-radius: 12px;
    box-shadow: 0 14px 30px -14px rgba(255, 0, 110, .75), inset 0 1px rgba(255, 255, 255, .18);
    color: #fff;
    font-family: var(--default-font, "Poppins", sans-serif);
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: .01em;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.dw-cta__button i {
    font-size: 18px;
    line-height: 1;
    transition: transform .25s ease;
}

.dw-cta__button:hover,
.dw-cta__button:focus-visible {
    color: #fff;
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 20px 36px -16px rgba(255, 0, 110, .85), inset 0 1px rgba(255, 255, 255, .22);
}

.dw-cta__button:hover i,
.dw-cta__button:focus-visible i {
    transform: translateX(4px);
}

.dw-cta__button:active {
    filter: brightness(.97);
    transform: translateY(0);
    box-shadow: 0 8px 18px -12px rgba(255, 0, 110, .8);
}

.dw-cta__button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/*------------------------------------------
  Responsive
------------------------------------------*/

@media (max-width: 991.98px) {
    .dw-cta {
        padding-bottom: 56px;
    }

    .dw-cta__box {
        padding: 48px 32px;
        border-radius: 20px;
    }

    .dw-cta__title {
        font-size: 32px;
    }
}

@media (max-width: 575.98px) {
    .dw-cta {
        padding-bottom: 44px;
    }

    .dw-cta__box {
        padding: 40px 20px;
        border-radius: 18px;
    }

    .dw-cta__title {
        font-size: 26px;
    }

    .dw-cta__text {
        font-size: 15px;
    }

    .dw-cta__action {
        margin-top: 24px;
    }

    .dw-cta__button {
        width: 100%;
        max-width: 320px;
    }

    /* Waveform only along the bottom edge, under the button, on phones. */
    .dw-cta__wave {
        top: auto;
        bottom: 0;
        height: 34%;
        transform: none;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
        mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
        animation: none;
        opacity: .12;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dw-cta__box::before,
    .dw-cta__wave {
        animation: none;
    }

    .dw-cta__button,
    .dw-cta__button i {
        transition: none;
    }

    /* WOW.js keeps these hidden until it animates them; show them straight away. */
    .dw-cta .wow {
        visibility: visible !important;
        animation: none !important;
    }
}
