:root {
    color-scheme: light;
    --studio-ink: #190f2d;
    --studio-muted: #6d637b;
    --studio-paper: #fff;
    --studio-purple: #6e35d2;
    --studio-purple-deep: #29124f;
    --studio-violet: #a77cff;
    --studio-gold: #d8b765;
    --studio-line: rgba(69, 38, 111, 0.16);
    --studio-whatsapp: #25d366;
    --studio-shadow: 0 24px 70px rgba(41, 18, 79, 0.18);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body.studio-page {
    margin: 0;
    font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
    background: var(--studio-paper);
    color: var(--studio-ink);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* —— Glass header (OpenClaw style) —— */
.studio-header {
    position: fixed;
    z-index: 20;
    inset: 18px 24px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1180px;
    width: calc(100% - 48px);
    margin: 0 auto;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(25, 15, 45, 0.52);
    color: #fff;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.studio-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.studio-brand-logo {
    height: 46px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.studio-header nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.94rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.studio-header nav a:hover {
    color: #fff;
}

/* —— Hero —— */
.studio-hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: center;
    overflow: hidden;
    padding: 120px 7vw 96px;
    color: #fff;
    background: var(--studio-purple-deep);
}

.studio-hero-image,
.studio-hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.studio-hero-image {
    z-index: 0;
    object-fit: cover;
    object-position: center;
}

.studio-hero-shade {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(25, 15, 45, 0.38), rgba(25, 15, 45, 0.86) 58%, rgba(25, 15, 45, 0.96)),
        linear-gradient(0deg, rgba(25, 15, 45, 0.35), transparent 35%);
}

.studio-hero-content {
    position: relative;
    z-index: 2;
    width: min(680px, 100%);
}

.studio-eyebrow {
    margin: 0 0 14px;
    color: var(--studio-gold);
    font-size: 0.92rem;
    font-weight: 700;
}

.studio-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(4rem, 12vw, 9.5rem);
    line-height: 0.92;
    font-weight: 700;
}

.studio-hero-copy {
    margin: 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1.08rem, 2.4vw, 1.45rem);
    line-height: 1.8;
}

.studio-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.studio-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 700;
    font-family: inherit;
    font-size: 1rem;
    transition: transform 0.15s, background 0.2s, border-color 0.2s;
}

.studio-button:hover {
    transform: translateY(-1px);
}

.studio-button-primary {
    background: #fff;
    color: var(--studio-purple-deep);
    box-shadow: 0 14px 40px rgba(167, 124, 255, 0.3);
}

.studio-button-ghost {
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #fff;
    background: transparent;
}

.studio-button-ghost:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

.studio-button-whatsapp {
    background: var(--studio-whatsapp);
    color: #fff;
}

.studio-button-whatsapp:hover {
    background: #1fb855;
}

/* —— Footer —— */
.studio-footer {
    background: linear-gradient(180deg, #fff 0%, #f8f4fd 100%);
    border-top: 1px solid var(--studio-line);
    padding: 2.25rem 1.25rem calc(2.25rem + env(safe-area-inset-bottom, 0px));
    text-align: center;
    color: var(--studio-muted);
    font-size: 0.9rem;
}

.studio-footer-inner {
    max-width: 640px;
    margin: 0 auto;
}

.studio-footer-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.studio-footer-brand img {
    height: 44px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.studio-footer-brand-text {
    flex: 1;
    margin: 0;
    text-align: center;
    color: var(--studio-ink);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

.studio-footer-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--studio-whatsapp);
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.28);
    transition: background 0.2s, transform 0.15s;
}

.studio-footer-whatsapp:hover {
    background: #1fb855;
    transform: translateY(-1px);
}

.studio-footer-whatsapp svg {
    display: block;
}

.studio-footer-supervisor {
    margin: 0 0 0.5rem;
    color: var(--studio-ink);
    font-size: 0.88rem;
    line-height: 1.6;
}

.studio-footer-credit {
    margin: 0;
    font-size: 0.82rem;
}

.studio-footer-credit a {
    color: var(--studio-muted);
    transition: color 0.2s;
}

.studio-footer-credit a:hover {
    color: var(--studio-purple);
}

/* —— Inner pages (tracks / deliveries) —— */
.studio-page--inner {
    background: #faf8fc;
}

.studio-page--inner .studio-header {
    position: sticky;
    top: 12px;
    margin-bottom: 8px;
    background: rgba(41, 18, 79, 0.88);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 40px rgba(41, 18, 79, 0.12);
}

.studio-inner {
    padding: 12px 20px 56px;
}

.studio-inner-shell {
    max-width: 760px;
    margin: 0 auto;
}

.studio-inner-head {
    text-align: center;
    padding: 12px 0 28px;
}

.studio-inner-eyebrow {
    margin: 0 0 10px;
    color: var(--studio-purple);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.studio-inner-head h1 {
    margin: 0 0 12px;
    color: var(--studio-purple-deep);
    font-size: clamp(1.45rem, 4.5vw, 2rem);
    line-height: 1.35;
    word-break: break-word;
}

.studio-inner-lead,
.studio-inner-meta {
    margin: 0 auto;
    max-width: 560px;
    color: var(--studio-muted);
    line-height: 1.7;
    font-size: 0.96rem;
}

.studio-inner-meta {
    margin-top: 8px;
    font-weight: 600;
    color: var(--studio-purple);
}

.studio-panel {
    background: #fff;
    border: 1px solid var(--studio-line);
    border-radius: 14px;
    padding: 1.35rem;
    box-shadow: var(--studio-shadow);
}

.studio-panel--single audio {
    margin-bottom: 0;
}

.studio-track-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.studio-track-item {
    border: 1px solid var(--studio-line);
    border-radius: 12px;
    padding: 1.1rem 1.15rem;
    background: linear-gradient(180deg, #fff 0%, #faf8fc 100%);
}

.studio-track-item-title {
    margin: 0 0 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--studio-ink);
}

.studio-track-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--studio-purple);
    color: #fff;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.studio-track-item audio,
.studio-panel audio {
    width: 100%;
    border-radius: 10px;
}

.studio-track-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.studio-track-size {
    color: var(--studio-muted);
    font-size: 0.88rem;
}

.studio-panel-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.35rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--studio-line);
}

.studio-button-sm {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.studio-panel-actions .studio-button-primary {
    background: var(--studio-purple);
    color: #fff;
    box-shadow: 0 10px 28px rgba(110, 53, 210, 0.22);
}

.studio-panel-actions .studio-button-primary:hover {
    background: #5f2eb8;
}

@media (max-width: 920px) {
    .studio-header {
        inset: 12px 12px auto;
        width: auto;
        max-width: none;
        margin: 0;
        align-items: flex-start;
    }

    .studio-page--inner .studio-header {
        width: calc(100% - 24px);
        margin-inline: auto;
    }

    .studio-header nav {
        gap: 10px 14px;
    }

    .studio-hero {
        min-height: 84vh;
        padding-top: 132px;
        align-items: start;
    }

    .studio-hero-shade {
        background: linear-gradient(90deg, rgba(25, 15, 45, 0.54), rgba(25, 15, 45, 0.92));
    }
}

@media (max-width: 560px) {
    .studio-header {
        position: absolute;
        flex-direction: column;
        align-items: stretch;
    }

    .studio-header nav {
        justify-content: flex-start;
        width: 100%;
        font-size: 0.86rem;
    }

    .studio-brand-logo {
        height: 38px;
    }

    .studio-footer-brand img,
    .studio-footer-whatsapp {
        height: 36px;
        width: 36px;
    }

    .studio-inner {
        padding-inline: 14px;
    }

    .studio-panel {
        padding: 1rem;
    }

    .studio-panel-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .studio-panel-actions .studio-button {
        width: 100%;
    }

    .studio-track-item-footer .studio-button {
        flex: 1;
        min-width: 120px;
    }

    .studio-hero {
        min-height: 90vh;
        padding: 176px 20px 96px;
    }

    .studio-hero h1 {
        font-size: clamp(3.35rem, 20vw, 5.4rem);
    }

    .studio-hero-actions .studio-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .studio-button:hover {
        transform: none;
    }
}
