/*==========================================
  Desiwood — Music Distribution page
  (resources/views/frontend/pages/music-distribution.blade.php; behaviour in
  public/frontend/js/dw-dist.js).

  Every rule is scoped to .dw-dist and shares the visual language of the
  About, Partners, Contact and Login pages: Inter, dark glass cards,
  orange-to-pink accents, and the header's container edges.

  Blocks marked .dw-reveal are visible without JS; dw-dist.js adds .is-ready
  to the page and .is-in to each block as it scrolls into view.
==========================================*/

.dw-dist {
    --dd-card: rgba(255, 255, 255, .04);
    --dd-line: rgba(255, 255, 255, .1);
    --dd-line-strong: rgba(255, 255, 255, .2);
    --dd-text: #fff;
    --dd-muted: #a9a3b8;
    --dd-accent: #ff8a00;
    --dd-accent-2: #ff006e;
    --dd-gradient: linear-gradient(90deg, var(--dd-accent) 0%, var(--dd-accent-2) 100%);
    --dd-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --dd-fast: .25s;
    position: relative;
    isolation: isolate;
    font-family: "Inter", var(--default-font, "Poppins"), sans-serif;
    color: var(--dd-text);
}

/* ---------- Shared ---------- */

.dw-dist__eyebrow {
    margin: 0 0 16px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .2em;
    line-height: 1;
    text-transform: uppercase;
    color: #ff9d3d;
}

.dw-dist__h2 {
    margin: 0;
    font-family: inherit;
    font-size: clamp(30px, 3.6vw, 46px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.08;
    color: var(--dd-text);
}

.dw-dist__h2 span,
.dw-dist__title span {
    background: var(--dd-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dw-dist__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 138, 0, .3);
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(255, 138, 0, .16), rgba(255, 0, 110, .14));
    box-shadow: inset 0 0 14px rgba(255, 60, 110, .15);
    font-size: 19px;
    color: #ffc58f;
}

.dw-dist__icon--lg {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    font-size: 24px;
}

.dw-dist a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #0b0712, 0 0 0 4px rgba(255, 138, 0, .9);
}

/* ---------- Hero ---------- */

.dw-dist__hero {
    position: relative;
    /* Clears the fixed site header (88px). */
    padding: 140px 0 70px;
}

.dw-dist__hero::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 50%;
    z-index: -1;
    width: min(1300px, 130vw);
    height: 760px;
    transform: translateX(-50%);
    background:
        radial-gradient(34% 44% at 30% 40%, rgba(170, 40, 220, .26), transparent 70%),
        radial-gradient(30% 40% at 72% 45%, rgba(255, 0, 110, .2), transparent 70%),
        radial-gradient(30% 40% at 60% 75%, rgba(255, 120, 0, .14), transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}

.dw-dist__hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 56px;
    align-items: center;
}

.dw-dist__pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 24px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 138, 0, .28);
    border-radius: 99px;
    background: rgba(255, 138, 0, .08);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: #ffc58f;
}

.dw-dist__pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3ddc84;
    box-shadow: 0 0 0 4px rgba(61, 220, 132, .18);
}

.dw-dist__title {
    margin: 0;
    font-family: inherit;
    font-size: clamp(40px, 5.2vw, 68px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.02;
    color: var(--dd-text);
}

.dw-dist__lead {
    max-width: 540px;
    margin: 22px 0 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--dd-muted);
}

.dw-dist__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.dw-dist__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    padding: 0 26px;
    border-radius: 12px;
    font-size: 15.5px;
    font-weight: 600;
    text-decoration: none;
    transition: filter var(--dd-fast) var(--dd-ease), box-shadow var(--dd-fast) var(--dd-ease), border-color var(--dd-fast) var(--dd-ease), background-color var(--dd-fast) var(--dd-ease);
}

.dw-dist__btn--primary {
    background: var(--dd-gradient);
    box-shadow: 0 12px 30px -12px rgba(255, 40, 100, .6);
    color: #fff;
}

.dw-dist__btn--primary:hover {
    filter: brightness(1.08);
    box-shadow: 0 16px 36px -12px rgba(255, 40, 100, .75);
    color: #fff;
}

.dw-dist__btn--ghost {
    border: 1px solid var(--dd-line-strong);
    background: rgba(255, 255, 255, .03);
    color: #fff;
}

.dw-dist__btn--ghost:hover {
    border-color: rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.dw-dist__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin: 40px 0 0;
    padding: 28px 0 0;
    border-top: 1px solid var(--dd-line);
    list-style: none;
}

.dw-dist__highlights li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dw-dist__highlights strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.dw-dist__highlights strong + span {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--dd-muted);
}

/* ---------- Hero mock: a release going out to platforms ---------- */

.dw-dist__mock {
    position: relative;
    margin: 0;
}

/* Soft glow behind the card. */
.dw-dist__mock::before {
    content: "";
    position: absolute;
    inset: 10% 8%;
    z-index: -1;
    border-radius: 40px;
    background: var(--dd-gradient);
    filter: blur(70px);
    opacity: .35;
}

.dw-dist__mock-card {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)), rgba(18, 9, 30, .82);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 40px 90px -40px rgba(0, 0, 0, .9);
    animation: dw-dist-float 7s ease-in-out infinite;
}

@keyframes dw-dist-float {
    50% {
        transform: translateY(-8px);
    }
}

.dw-dist__mock-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dw-dist__mock-art {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .8);
}

.dw-dist__mock-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.dw-dist__mock-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #ff9d3d;
}

.dw-dist__mock-title {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.dw-dist__mock-sub {
    font-size: 13px;
    color: var(--dd-muted);
}

.dw-dist__mock-progress {
    height: 6px;
    margin: 22px 0 18px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, .08);
}

.dw-dist__mock-progress span {
    display: block;
    width: 72%;
    height: 100%;
    border-radius: inherit;
    background: var(--dd-gradient);
    transform-origin: left;
    animation: dw-dist-progress 2.4s var(--dd-ease) both;
}

@keyframes dw-dist-progress {
    from {
        transform: scaleX(0);
    }
}

.dw-dist__mock-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dw-dist__mock-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
}

.dw-dist__mock-list img {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    object-fit: contain;
}

.dw-dist__mock-name {
    font-size: 14px;
    font-weight: 500;
}

.dw-dist__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
}

.dw-dist__status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.dw-dist__status--live {
    background: rgba(61, 220, 132, .12);
    color: #5ee69b;
}

.dw-dist__status--delivering {
    background: rgba(255, 176, 32, .12);
    color: #ffc04d;
}

.dw-dist__status--delivering::before {
    animation: dw-dist-pulse 1.4s ease-in-out infinite;
}

@keyframes dw-dist-pulse {
    50% {
        opacity: .25;
    }
}

.dw-dist__mock-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    font-size: 13px;
    color: var(--dd-muted);
}

/* ---------- How it works ---------- */

.dw-dist__section {
    position: relative;
    padding: 80px 0 100px;
    /* The "How it works" link lands below the fixed header. */
    scroll-margin-top: 70px;
}

.dw-dist__section-head {
    max-width: 640px;
    margin: 0 auto 48px;
    text-align: center;
}

.dw-dist__section-lead {
    margin: 16px 0 0;
    font-size: 17px;
    line-height: 1.6;
    color: var(--dd-muted);
}

.dw-dist__steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

/* The line that joins the steps. */
.dw-dist__steps::before {
    content: "";
    position: absolute;
    top: 54px;
    left: 10%;
    right: 10%;
    z-index: -1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 138, 0, .5), rgba(255, 0, 110, .5), transparent);
}

.dw-dist__step {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--dd-line);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .05) 0%, transparent 45%), #130b1e;
    transition: border-color var(--dd-fast) var(--dd-ease), transform var(--dd-fast) var(--dd-ease);
}

.dw-dist__step:hover {
    border-color: rgba(255, 138, 0, .35);
}

.dw-dist__step-num {
    position: absolute;
    top: 26px;
    right: 26px;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #5f5870;
}

.dw-dist__step h3 {
    margin: 22px 0 8px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.3;
    color: var(--dd-text);
}

.dw-dist__step p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--dd-muted);
}

.dw-dist__step-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 16px;
    border-radius: 6px;
    font-size: 14.5px;
    font-weight: 600;
    color: #ffaa5c;
    text-decoration: none;
}

.dw-dist__step-link:hover {
    color: #fff;
}

/* ---------- Scroll reveal ---------- */

.dw-dist.is-ready .dw-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity .7s var(--dd-ease) calc(var(--i, 0) * 80ms),
        transform .7s var(--dd-ease) calc(var(--i, 0) * 80ms),
        border-color var(--dd-fast) var(--dd-ease);
}

.dw-dist.is-ready .dw-reveal.is-in {
    opacity: 1;
    transform: none;
}

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

@media (max-width: 1199.98px) {
    .dw-dist__hero-grid {
        gap: 40px;
    }

    .dw-dist__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dw-dist__steps::before {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .dw-dist__hero {
        padding: 124px 0 56px;
    }

    .dw-dist__hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dw-dist__hero-text {
        text-align: center;
    }

    .dw-dist__lead {
        margin-left: auto;
        margin-right: auto;
    }

    .dw-dist__actions,
    .dw-dist__highlights {
        justify-content: center;
    }

    .dw-dist__highlights li {
        text-align: left;
    }

    .dw-dist__mock {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }

    .dw-dist__section {
        padding: 60px 0 80px;
    }
}

@media (max-width: 575.98px) {
    .dw-dist__hero {
        padding: 112px 0 44px;
    }

    .dw-dist__lead {
        font-size: 16px;
    }

    .dw-dist__actions .dw-dist__btn {
        flex: 1 1 100%;
    }

    .dw-dist__highlights {
        justify-content: space-between;
        gap: 16px;
    }

    .dw-dist__highlights li {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }

    .dw-dist__mock-card {
        padding: 18px;
    }

    .dw-dist__steps {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    .dw-dist *,
    .dw-dist *::before,
    .dw-dist *::after {
        transition-duration: 0s !important;
        transition-delay: 0s !important;
        animation: none !important;
    }

    .dw-dist.is-ready .dw-reveal {
        opacity: 1;
        transform: none;
    }
}
