

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    background-color: #000000; /* Pure Black */
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

/* Stabilize fixed nav to avoid flicker */
nav {
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform, opacity;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000000; 
}
 
::-webkit-scrollbar-thumb {
    background: #333; 
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

/* Selection */
::selection {
    background: #ffffff;
    color: #000000;
}

/* Utility */
.mix-blend-difference {
    mix-blend-mode: difference;
}

.tracking-tighter {
    letter-spacing: -0.05em;
}

.tracking-widest {
    letter-spacing: 0.2em;
}

/* Image Hover Effect */
.img-hover-zoom {
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.img-hover-zoom:hover {
    transform: scale(1.05);
}

/* Highlights Section (Apple-Style) */

/* Override inline transition for the track to ensure it matches the cards */
#slider-track {
    transition: none !important;
}

.video-card {
    transition: all 900ms cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center center;
    border-radius: 32px;
    overflow: hidden;
    /* Force clipping for rounded corners during transform */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    transform: translateZ(0); /* Hardware acceleration fix */
}

.motion-blur { filter: blur(0.6px); }
.motion-blur-soft { filter: blur(0.3px); }
.blur-transition { transition: filter 200ms cubic-bezier(0.22, 1, 0.36, 1); }

.video-card video {
    border-radius: 32px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-card.active {
    opacity: 1;
    transform: scale(1); /* No pop */
    z-index: 10;
    /* Reduced shadow for flatter look */
    box-shadow: 0 20px 40px rgba(0,0,0,0.5); 
    border: 1px solid rgba(255,255,255,0.15);
}

/* Inactive slides styling */
.video-card.opacity-60 {
    opacity: 0.3;
    transform: scale(1); /* No shrink */
    filter: blur(2px) grayscale(50%);
}

/* Control Bar Styling */
.control-glass {
    background: rgba(29, 29, 31, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transform-origin: center;
    will-change: transform, opacity;
}

.glass-card {
    background: rgba(29, 29, 31, 0.6);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    line-height: 1;
    width: auto;
}

#feature-list {
    align-items: flex-start;
}

.feature-pill .indicator {
    width: 12px;
    height: 12px;
    position: relative;
    display: inline-block;
    margin-right: 0.25rem;
    transform-origin: 50% 50%;
    transform: rotate(0deg) scale(1);
    transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-pill .indicator::before,
.feature-pill .indicator::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 2px;
    background: #e5e5e5;
    transform-origin: center;
    border-radius: 1px;
    transition: width 220ms ease, height 220ms ease, opacity 220ms ease;
}
.feature-pill .indicator::before {
    transform: translate(-50%, -50%) rotate(0deg);
}
.feature-pill .indicator::after {
    transform: translate(-50%, -50%) rotate(90deg);
}
.feature-pill.active .indicator::before,
.feature-pill.active .indicator::after {
    width: 10px;
    height: 2px;
    opacity: 1;
}
.feature-pill.active .indicator {
    width: 12px;
    height: 12px;
    border-radius: 0;
    background: transparent;
    transform: rotate(180deg) scale(1.04);
}

.feature-pill .indicator,
.feature-pill .indicator::before,
.feature-pill .indicator::after { will-change: transform; }

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background-color: #808080;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1); /* Slow, smooth elastic transition */
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dot.active {
    background-color: rgba(255, 255, 255, 0.25); /* Track for progress */
    width: 40px; /* Wider pill shape */
}

.dot:hover:not(.active) {
    background-color: #b3b3b3;
}

.dot .dot-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    background-color: #ffffff;
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 60ms linear; /* frequent small updates feel smooth */
}

/* Upgrade Bento Grid Video Styling */
.bg-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms ease;
    will-change: transform;
}

/* Hide default video controls */
video::-webkit-media-controls {
    display: none !important;
}

/* Ensure controls are clickable */
#main-controls {
    pointer-events: auto;
}

.cinematic-bg {
    width: 100%;
    height: 100%;
    background:
      radial-gradient(1200px circle at var(--x, 50%) var(--y, 40%), rgba(255,255,255,0.06), transparent 60%),
      linear-gradient(180deg, #000000 0%, #000000 60%, #000000 100%);
    filter: saturate(1.05) contrast(1.05);
    animation: glowMove 12s ease-in-out infinite alternate;
}

@keyframes glowMove {
    0% { --x: 40%; --y: 35%; }
    50% { --x: 60%; --y: 45%; }
    100% { --x: 50%; --y: 40%; }
}

.vignette {
    background: radial-gradient(1200px circle at 50% 40%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.35) 100%);
    pointer-events: none;
}

.hero-video {
    opacity: 0;
    transition: opacity 1.2s ease;
    filter: brightness(0.6) saturate(0.8) contrast(1.1);
    will-change: opacity;
}

.hero-video.ready {
    opacity: 1;
}

/* Blur Fade image transitions (Closer Look) */
.feature-image {
    will-change: opacity, filter;
    border-radius: 18px;
    display: block;
    object-fit: contain;
    object-position: center center;
}
.feature-image-in {
    animation: imgIn 1100ms ease forwards;
}
.feature-image-out {
    animation: imgOut 1100ms ease forwards;
}
@keyframes imgIn {
    0%   { opacity: 0; filter: blur(14px); }
    100% { opacity: 1; filter: blur(0); }
}
@keyframes imgOut {
    0%   { opacity: 1; filter: blur(0); }
    100% { opacity: 0; filter: blur(14px); }
}

.feature-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.5), inset 0 0 48px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.feature-frame {
    isolation: isolate;
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), opacity 600ms cubic-bezier(0.22, 1, 0.36, 1), width 600ms cubic-bezier(0.22, 1, 0.36, 1), height 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-frame.frameless {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}
.feature-frame.frameless::after {
    box-shadow: none !important;
}

.feature-frame.is-swapping {
    transform: scale(0.985);
    opacity: 0.92;
}

/* Smooth expand/collapse for sub-options */
.sub-options {
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px) scaleY(0.98);
    transform-origin: 0 0;
    overflow: hidden;
    transition: max-height 1000ms cubic-bezier(0.22, 1, 0.36, 1),
                opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 1000ms cubic-bezier(0.22, 1, 0.36, 1);
}
.sub-options.open {
    max-height: 520px;
    opacity: 1;
    transform: translateY(0) scaleY(1);
}

.work-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    transform: translateY(16px) scale(0.97);
    opacity: 0;
    filter: blur(8px);
    will-change: transform, opacity, filter;
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
                opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
                filter 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card img {
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), filter 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card:hover img {
    transform: scale(1.04);
    filter: saturate(1.1);
}

.work-card-title {
    position: absolute;
    left: 8px;
    bottom: 8px;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #eaeaea;
    backdrop-filter: blur(6px);
}

.sub-options.open .work-card {
    animation: workReveal 2000ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay, 0ms);
}

.work-card.active {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

@keyframes workReveal {
    0% { opacity: 0; transform: translateY(18px) scale(0.97); filter: blur(10px); }
    70% { opacity: 0.85; transform: translateY(4px) scale(0.995); filter: blur(2px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.page-transition {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    filter: blur(14px);
    transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
                filter 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.page-transition.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.showcase-blur {
    background: radial-gradient(1000px circle at 50% 45%, rgba(255,255,255,0.08), transparent 60%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 120ms linear;
}

.showcase-progress {
    width: min(420px, 50vw);
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    overflow: hidden;
}

.showcase-progress #showcase-progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(255,255,255,0.75));
    box-shadow: 0 0 10px rgba(255,255,255,0.35), 0 0 24px rgba(255,255,255,0.18);
    transform-origin: 0% 50%;
    transform: scaleX(var(--sx, 0)) scaleY(var(--sy, 1));
    transition: transform 120ms linear;
    will-change: transform;
    position: relative;
}

@keyframes progressBounce {
    0%   { transform: scaleX(var(--sx, 0)) scaleY(0.6); }
    45%  { transform: scaleX(var(--sx, 0)) scaleY(1.6); }
    65%  { transform: scaleX(var(--sx, 0)) scaleY(0.85); }
    80%  { transform: scaleX(var(--sx, 0)) scaleY(1.25); }
    100% { transform: scaleX(var(--sx, 0)) scaleY(1.0); }
}

.showcase-progress #showcase-progress-bar.progress-bounce {
    animation: progressBounce 900ms cubic-bezier(0.2, 0.8, 0.2, 1.4) 1;
    box-shadow: 0 0 14px rgba(255,255,255,0.45), 0 0 32px rgba(255,255,255,0.22);
}

.nav-link-active {
    color: #ffffff !important;
}

.nav-link {
    display: inline-block;
    padding: 6px 12px;
    position: relative;
    z-index: 1;
}

.mobile-menu-panel {
    position: fixed;
    left: 50%;
    transform: translate(-50%, -6px) scaleY(0.98);
    width: min(90vw, 640px);
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(29, 29, 31, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
    z-index: 60;
    will-change: transform, opacity, max-height;
    transition: max-height 1000ms cubic-bezier(0.22, 1, 0.36, 1),
               opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
               transform 1000ms cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu-panel.open {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0) scaleY(1);
}
.mobile-menu-panel.menu-anim-in {
    animation: mobileMenuIn 1000ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mobile-menu-panel.menu-anim-out {
    animation: mobileMenuOut 320ms cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes mobileMenuIn {
    0% { transform: translate(-50%, -10px) scaleY(0.92); opacity: 0; }
    70% { transform: translate(-50%, 0) scaleY(1.04); opacity: 1; }
    100% { transform: translate(-50%, 0) scaleY(1); opacity: 1; }
}
@keyframes mobileMenuOut {
    0% { transform: translate(-50%, 0) scaleY(1); opacity: 1; }
    100% { transform: translate(-50%, -8px) scaleY(0.95); opacity: 0; }
}
.mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
}
.mobile-menu-list a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #eaeaea;
}
.mobile-menu-list a:active {
    background: rgba(255,255,255,0.08);
}

.menu-btn-expanded {
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    transition: background 240ms ease, border-color 240ms ease, padding 240ms ease;
}
.menu-btn {
    border-radius: 999px;
    padding: 6px 16px;
    transform-origin: 50% 50%;
    transition: background 240ms ease, border-color 240ms ease, padding 240ms ease;
    will-change: transform, opacity;
}
.menu-btn-anim-in {
    animation: menuBtnIn 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.menu-btn-anim-out { animation: menuBtnOut 320ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes menuBtnIn {
    0% { transform: scale(0.96); }
    40% { transform: scale(1.12); }
    70% { transform: scale(0.985); }
    100% { transform: scale(1); }
}
@keyframes menuBtnOut {
    0% { transform: scale(1); }
    30% { transform: scale(1.10); }
    60% { transform: scale(0.985); }
    100% { transform: scale(0.96); }
}

/* Upgrade Section */
.upgrade-card {
    background: rgba(17, 17, 17, 0.75); /* Higher opacity for translucent look */
    backdrop-filter: blur(10px); /* Significantly reduced blur */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
    will-change: transform, box-shadow;
    position: relative;
    overflow: hidden;
}

/* Removed reflection sheen for a cleaner translucent surface */

.upgrade-card:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    z-index: 10;
    border-color: rgba(20, 20, 20, 0.877);
    background: rgba(26, 26, 26, 0.85); /* Slightly lighter on hover */
}

.upgrade-card img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

.upgrade-card:hover img {
    transform: scale(1.05);
}

.upgrade-card .relative.z-10 {
    z-index: 2; /* Ensure content is above sheen */
}

.upgrade-card .text-white {
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Upgrade Dropdown Base State (Hidden) */
#upgrade-dropdown-menu {
    transform-origin: top center;
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-30px) scaleY(0);
    /* Closing Animation: Snappy fold up */
    transition: 
        opacity 0.3s cubic-bezier(0.4, 0, 1, 1),
        transform 0.35s cubic-bezier(0.4, 0, 1, 1),
        visibility 0.35s;
    background: rgba(20, 20, 20, 0.98); /* Slightly more opaque for mobile legibility */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 60px rgba(0,0,0,0.7);
    z-index: 100; /* Higher z-index for mobile overlap */
    pointer-events: none;
    width: calc(100vw - 40px); /* Responsive width for mobile */
    max-width: 280px; /* Limit width on larger screens */
}

/* Upgrade Dropdown Active State (Visible) */
#upgrade-dropdown-menu.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scaleY(1);
    /* Opening Animation: Smooth elastic unfold */
    transition: 
        opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dropdown-item {
    transition: background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent; /* Remove mobile tap blue highlight */
    user-select: none;
}

.dropdown-item:active {
    background: rgba(41, 151, 255, 0.7); /* Immediate feedback on mobile touch */
}

.dropdown-item:hover {
    background: rgba(41, 151, 255, 0.9);
    color: #ffffff;
}

.now-playing-bg {
    background: #000000;
    overflow: hidden;
    pointer-events: none;
}

.now-playing-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px circle at 50% 16%, rgba(255, 90, 140, 0.34), transparent 60%),
        radial-gradient(1000px circle at 30% 52%, rgba(70, 140, 255, 0.30), transparent 62%),
        radial-gradient(900px circle at 74% 72%, rgba(255, 120, 65, 0.22), transparent 64%),
        radial-gradient(1200px circle at 50% 44%, rgba(255, 255, 255, 0.08), transparent 66%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.96) 100%);
    opacity: 0.96;
    mix-blend-mode: overlay;
    filter: blur(6px);
}

.now-playing-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px circle at 50% 34%, rgba(0,0,0,0) 48%, rgba(0,0,0,0.72) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.70) 100%);
    pointer-events: none;
}

.np-ambient-layer {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(86px) saturate(1.55) contrast(1.08) brightness(0.82);
    transform: scale(1.18);
    opacity: 0.68;
    will-change: opacity, filter, transform;
}

.highlights-ambient {
    background: #000000;
    pointer-events: none;
    overflow: hidden;
}

.highlights-ambient-video {
    position: absolute;
    inset: -12%;
    width: 124%;
    height: 124%;
    object-fit: cover;
    filter: blur(92px) saturate(1.85) contrast(1.18) brightness(0.92);
    transform: scale(1.26);
    opacity: 0.8;
    will-change: opacity, filter, transform;
    z-index: 1;
    -webkit-mask-image: radial-gradient(820px circle at 50% 52%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.92) 42%, rgba(0,0,0,0) 78%);
    mask-image: radial-gradient(820px circle at 50% 52%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.92) 42%, rgba(0,0,0,0) 78%);
}

.highlights-ambient::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(1100px circle at 50% 40%, rgba(255,255,255,0.14), transparent 64%),
        radial-gradient(980px circle at 32% 56%, rgba(255, 90, 140, 0.42), transparent 64%),
        radial-gradient(980px circle at 72% 58%, rgba(70, 140, 255, 0.40), transparent 64%),
        radial-gradient(900px circle at 56% 72%, rgba(255, 150, 70, 0.24), transparent 66%),
        linear-gradient(180deg, rgba(0,0,0,0.14) 0%, rgba(0,0,0,0.92) 100%);
    opacity: 1;
    mix-blend-mode: overlay;
    filter: blur(8px);
}

.highlights-ambient::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        radial-gradient(1200px circle at 50% 44%, rgba(0,0,0,0) 42%, rgba(0,0,0,0.86) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.86) 100%);
}

.highlights-ambient-layer {
    position: absolute;
    inset: -12%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(92px) saturate(1.85) contrast(1.18) brightness(0.92);
    transform: scale(1.26);
    opacity: 0.8;
    will-change: opacity, filter, transform;
    z-index: 1;
    -webkit-mask-image: radial-gradient(820px circle at 50% 52%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.92) 42%, rgba(0,0,0,0) 78%);
    mask-image: radial-gradient(820px circle at 50% 52%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.92) 42%, rgba(0,0,0,0) 78%);
}

.now-playing-stack {
    width: min(420px, 92vw);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.np-glass {
    background: rgba(20, 20, 24, 0.46);
    backdrop-filter: blur(26px) saturate(175%);
    -webkit-backdrop-filter: blur(26px) saturate(175%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255,255,255,0.10);
}

.np-cover {
    aspect-ratio: 10 / 11;
    border-radius: 34px;
    overflow: hidden;
    position: relative;
}

.np-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: translateZ(0);
    will-change: opacity, transform;
}

.np-cover-gloss {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(140deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.04) 24%, transparent 56%),
        radial-gradient(900px circle at 50% 30%, rgba(255,255,255,0.08), transparent 60%);
    opacity: 0.9;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.np-player {
    aspect-ratio: 2.8 / 1;
    border-radius: 28px;
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    will-change: opacity, transform;
}

.np-text {
    text-align: center;
}

.np-title-row {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    margin-top: 2px;
}

.np-title {
    font-size: 26px;
    line-height: 1.05;
    font-weight: 600;
    color: rgba(255,255,255,0.94);
    letter-spacing: -0.02em;
    will-change: opacity, transform;
}

.np-title-spacer {
    width: 44px;
    height: 44px;
}

.np-artist {
    margin-top: 6px;
    font-size: 16px;
    will-change: opacity, transform;
    line-height: 1.15;
    color: rgba(255,255,255,0.62);
    font-weight: 400;
}

.np-progress-track,
.np-volume-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    overflow: hidden;
    cursor: pointer;
    touch-action: none;
}

.np-progress-track:focus-visible,
.np-volume-track:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.12);
}

.np-progress-fill,
.np-volume-fill {
    height: 100%;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 0 10px rgba(255,255,255,0.18);
    pointer-events: none;
}

.np-progress-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.56);
}

.np-controls {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
}

.np-controls-center {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 34px;
}

.np-controls-side {
    width: 44px;
    height: 44px;
}

.np-icon-btn {
    appearance: none;
    border: none;
    background: transparent;
    padding: 6px;
    color: rgba(255,255,255,0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.np-icon-btn:active {
    transform: scale(0.98);
}

.np-wave {
    justify-self: end;
    color: rgba(255,255,255,0.62);
    width: 44px;
    height: 44px;
}

.np-play {
    width: 54px;
    height: 44px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}

.np-airplay {
    justify-self: end;
    color: rgba(255,255,255,0.62);
    width: 44px;
    height: 44px;
}

.np-volume {
    display: grid;
    grid-template-columns: 22px 1fr 22px;
    gap: 10px;
    align-items: center;
    margin-top: 2px;
    color: rgba(255,255,255,0.62);
}

.np-speaker {
    color: rgba(255,255,255,0.62);
}

@media (max-width: 768px) {
    nav {
        top: max(12px, env(safe-area-inset-top)) !important;
        padding: 6px 14px !important;
        width: calc(100vw - 24px) !important;
    }

    .mobile-menu-panel {
        width: calc(100vw - 24px);
    }

    .showcase-progress {
        width: min(420px, 72vw);
    }
}

@media (max-width: 640px) {
    header h1 {
        font-size: clamp(44px, 11vw, 64px);
        line-height: 0.95;
    }

    header p {
        font-size: clamp(16px, 4.6vw, 22px);
    }

    #highlights > div.relative.z-10 {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    #main-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        width: 100%;
        padding: 0 18px;
    }

    #main-controls .control-glass {
        padding: 10px 16px;
        height: 44px;
        gap: 12px;
    }

    #main-controls #main-play-btn {
        height: 44px;
        width: 44px;
    }

    .dot.active {
        width: 34px;
    }

    #reviews {
        padding-top: 72px !important;
        padding-bottom: 72px !important;
    }

    #upgrade {
        padding-top: 72px !important;
        padding-bottom: 72px !important;
    }

    #now-playing {
        padding-top: 72px !important;
        padding-bottom: 72px !important;
    }

    .now-playing-stack {
        gap: 14px;
        width: min(400px, 92vw);
    }

    .np-cover {
        border-radius: 30px;
    }

    .np-player {
        aspect-ratio: auto;
        padding: 12px 12px 10px;
        border-radius: 24px;
        gap: 8px;
    }

    .np-title-row {
        grid-template-columns: 36px 1fr 36px;
    }

    .np-title-spacer,
    .np-wave,
    .np-airplay,
    .np-controls-side {
        width: 36px;
        height: 36px;
    }

    .np-title {
        font-size: 22px;
    }

    .np-artist {
        font-size: 14px;
    }

    .np-controls-center {
        gap: 14px;
    }

    .np-controls {
        grid-template-columns: 36px 1fr 36px;
    }

    .np-icon-btn {
        padding: 3px;
    }

    .np-play {
        width: 48px;
        height: 40px;
    }

    .np-progress-meta {
        font-size: 11px;
    }

    .np-progress-meta {
        margin-top: 6px;
    }

    .np-volume {
        margin-top: 0;
        gap: 8px;
    }


    #showcase {
        height: 100dvh;
    }

    #contact h2 {
        font-size: clamp(46px, 12vw, 78px);
        line-height: 0.92;
    }

    #contact .w-48 {
        width: 9.5rem;
    }
}
