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

:root {
    /* Color Palette - Premium Dark/Neon */
    --bg-main: #060608;
    --bg-surface: rgba(255, 255, 255, 0.03);
    --bg-surface-hover: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.08);

    --accent-cyan: #00f0ff;
    --accent-indigo: #6d28d9;
    --accent-purple: #c084fc;
    --accent-rose: #f43f5e;

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 999px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease, color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hidden {
    display: none !important;
}

/* Fancy Background - Animated Orbs */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #0a0a0f 0%, #060608 100%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    mix-blend-mode: screen;
    will-change: transform;
}

.orb-1 {
    width: 60vw;
    height: 60vw;
    background: var(--accent-indigo);
    top: -20%;
    right: -10%;
    animation: drift 25s infinite alternate ease-in-out;
}

.orb-2 {
    width: 50vw;
    height: 50vw;
    background: var(--accent-cyan);
    bottom: -10%;
    left: -20%;
    opacity: 0.25;
    animation: drift 30s infinite alternate-reverse ease-in-out;
}

.orb-3 {
    width: 40vw;
    height: 40vw;
    background: var(--accent-purple);
    top: 40%;
    left: 30%;
    opacity: 0.2;
    animation: pulseOrb 20s infinite alternate ease-in-out;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-10%, 15%) scale(1.1);
    }
}

@keyframes pulseOrb {
    0% {
        transform: scale(0.9) translate(10%, -10%);
        opacity: 0.15;
    }

    100% {
        transform: scale(1.2) translate(-5%, 5%);
        opacity: 0.3;
    }
}

/* Navbar */
.navbar {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(6, 6, 8, 0.6);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.btn-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: var(--radius-pill);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover:before {
    opacity: 1;
}

.btn-primary>* {
    z-index: 1;
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 180px 0 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: center;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.03em;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    max-width: 540px;
    font-weight: 300;
}

.cta-group {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Stunning Hero Visual */
.hero-visual {
    position: relative;
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.feature-image-container {
    width: 100%;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-hero-img {
    width: 115%;
    max-width: 750px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 240, 255, 0.15);
    object-fit: contain;
    transform: rotateY(-8deg) rotateX(4deg);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.6s ease;
    will-change: transform;
}

.feature-hero-img:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.7), 0 0 60px rgba(0, 240, 255, 0.3);
}

.app-showcase {
    display: none;
    /* Replaced by feature image */
}

/* Mockup UI Elements */
.mockup-header {
    padding: 40px 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mockup-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple));
}

.mockup-album-art {
    width: 240px;
    height: 240px;
    margin: 20px auto;
    border-radius: 20px;
    background: url('/favicon.png') center/cover;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    position: relative;
}

.mockup-player-info {
    text-align: center;
    margin-top: 20px;
}

.mockup-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.mockup-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.mockup-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.m-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-surface);
}

.m-btn.play {
    width: 70px;
    height: 70px;
    background: var(--text-primary);
}

/* Floating Elements around phone */
.floating-card {
    position: absolute;
    background: rgba(30, 30, 40, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transform: translateZ(50px);
}

.fc-1 {
    top: 20%;
    right: -60px;
    z-index: 1;
    animation: floatDelay 5s infinite alternate ease-in-out;
}

.fc-2 {
    bottom: 25%;
    left: -80px;
    z-index: 3;
    animation: floatDelay 7s infinite alternate ease-in-out reverse;
}

.fc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-indigo));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.fc-text h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.fc-text p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

@keyframes float {
    0% {
        transform: rotateY(-15deg) rotateX(5deg) translateY(0);
    }

    100% {
        transform: rotateY(-12deg) rotateX(7deg) translateY(-20px);
    }
}

@keyframes floatDelay {
    0% {
        transform: translateZ(50px) translateY(0);
    }

    100% {
        transform: translateZ(50px) translateY(-15px);
    }
}

/* Features Section */
.features {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: var(--spacing-md) var(--spacing-sm);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.05);
}

.feature-card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Footer */
footer {
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--border-light);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text p {
        margin: 0 auto var(--spacing-md);
    }

    .cta-group {
        justify-content: center;
    }

    .app-showcase {
        transform: rotateY(0) rotateX(0);
        animation: none;
        width: 100%;
        max-width: 500px;
        transform: none;
    }

    .feature-hero-img:hover {
        transform: scale(1.02);
    }

    .floating-card {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
    }
}

/* Animation Classes */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- PREMIUM PLAYER REDESIGN --- */

.player-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    /* Allows mesh background to show */
    padding: 20px;
}

.mesh-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at center, #0a0a0f 0%, #060608 100%);
}

.mesh-sphere {
    position: absolute;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    mix-blend-mode: screen;
}

.sphere-1 {
    background: var(--accent-cyan);
    top: -10%;
    left: -10%;
    animation: sway 25s infinite alternate ease-in-out;
}

.sphere-2 {
    background: var(--accent-indigo);
    bottom: -10%;
    right: -10%;
    animation: sway 30s infinite alternate-reverse ease-in-out;
}

@keyframes sway {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(10%, 10%) scale(1.1);
    }
}

.premium-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    background: rgba(30, 30, 35, 0.5);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 240, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.station-logo-wrapper {
    width: 160px;
    height: 160px;
    margin: 0 auto 30px;
    position: relative;
    border-radius: 36px;
    padding: 6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.02));
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.station-logo-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 38px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    z-index: -1;
    opacity: 0.5;
    filter: blur(8px);
}

.station-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    background: #000;
}

.premium-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.premium-status {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-cyan);
}

.status-dot.playing {
    background: #10b981;
    box-shadow: 0 0 12px #10b981;
    animation: beat 1.5s infinite;
}

@keyframes beat {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
        box-shadow: 0 0 20px #10b981;
    }
}

/* EQ Visualizer */
.visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 40px;
    margin-bottom: 30px;
}

.visualizer .bar {
    width: 6px;
    background: var(--accent-cyan);
    border-radius: 3px;
    height: 5px;
    transition: height 0.1s ease;
    box-shadow: 0 0 8px var(--accent-cyan);
}

.visualizer.active .bar {
    animation: eq 0.8s infinite alternate ease-in-out;
}

.visualizer.active .bar:nth-child(even) {
    background: var(--accent-purple);
    box-shadow: 0 0 8px var(--accent-purple);
    animation-delay: 0.2s;
}

.visualizer.active .bar:nth-child(3n) {
    background: var(--accent-indigo);
    box-shadow: 0 0 8px var(--accent-indigo);
    animation-delay: 0.4s;
}

@keyframes eq {
    0% {
        height: 5px;
    }

    100% {
        height: 40px;
    }
}

/* Custom Controls */
.custom-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
}

.play-btn {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.2);
}

.play-btn:active {
    transform: scale(0.95);
}

.play-btn svg {
    width: 32px;
    height: 32px;
    fill: var(--bg-main);
    margin-left: 4px;
    /* visual center for play icon */
}

#pause-icon {
    margin-left: 0;
}

.secondary-btn {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.secondary-btn svg {
    width: 22px;
    height: 22px;
    fill: var(--text-primary);
}

.back-link {
    display: inline-block;
    margin-top: 40px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s ease;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
}

.back-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}