/* =========================================
   MTUNE Premium Landing Page Styles
   ========================================= */

@font-face {
    font-family: 'SF Pro Rounded';
    src: url('/assets/fonts/SF-Pro-Rounded-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SF Pro Rounded';
    src: url('/assets/fonts/SF-Pro-Rounded-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

:root {
    --bg-base: #07080c;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --surface-bright: rgba(255, 255, 255, 0.12);
    --border: rgba(255, 255, 255, 0.1);
    --border-bright: rgba(255, 255, 255, 0.2);

    --accent-primary: #8b5cf6;
    --accent-secondary: #3b82f6;
    --accent-tertiary: #ec4899;
    --accent-glow: rgba(139, 92, 246, 0.4);

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --font-heading: 'SF Pro Rounded', sans-serif;
    --font-body: 'SF Pro Rounded', sans-serif;

    --transition-smooth: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    user-select: none;
    -webkit-user-select: none;
}

/* --- Animated Background --- */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #0f121d 0%, #07080c 100%);
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    animation: float-main 25s infinite ease-in-out alternate;
}

.orb-purple {
    top: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--accent-primary);
}

.orb-blue {
    bottom: -15%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--accent-secondary);
    animation-delay: -7s;
}

.orb-pink {
    top: 30%;
    left: 30%;
    width: 30vw;
    height: 30vw;
    background: var(--accent-tertiary);
    opacity: 0.1;
    animation-delay: -12s;
}

@keyframes float-main {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(5%, 5%) scale(1.1) rotate(5deg);
    }

    100% {
        transform: translate(-5%, 8%) scale(0.9) rotate(-5deg);
    }
}

/* --- Typography --- */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent-gradient {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(7, 8, 12, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none !important;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.nav-link:hover {
    color: var(--text-primary);
}

.btn-get-app {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-get-app:hover {
    background: var(--surface-hover);
    border-color: var(--border-bright);
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2.5rem 4rem;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: fade-in-up 1s ease backwards;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2rem;
    animation: fade-in-up 1s ease backwards 0.2s;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 3.5rem;
    line-height: 1.6;
    animation: fade-in-up 1s ease backwards 0.4s;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fade-in-up 1s ease backwards 0.6s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 18px 48px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 40px var(--accent-glow);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px var(--accent-glow);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: white;
    padding: 18px 48px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-bright);
}

/* --- Feature Sections --- */
.section {
    padding: 8rem 2.5rem;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-tag {
    color: var(--accent-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 3.5rem 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-bright);
    transform: translateY(-12px);
}

.feature-icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.feature-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* --- Showcase Split Layouts --- */
.showcase-row {
    display: flex;
    align-items: center;
    gap: 6rem;
    margin-top: 6rem;
}

.showcase-row.reverse {
    flex-direction: row-reverse;
}

.showcase-text {
    flex: 1;
}

.showcase-visual {
    flex: 1;
    position: relative;
}

.visual-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 40px;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

/* Specific Showcase Visuals */
.lyrics-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(139, 92, 246, 0.05);
}

.lyric-line {
    font-weight: 700;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.lyric-line.active {
    color: white;
    font-size: 2.2rem;
    text-shadow: 0 0 30px var(--accent-glow);
}

.vault-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.vault-lock {
    font-size: 6rem;
    color: var(--accent-primary);
    text-shadow: 0 0 50px var(--accent-glow);
    animation: pulse-vault 3s infinite ease-in-out;
}

@keyframes pulse-vault {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 6rem 2.5rem 3rem;
    background: rgba(7, 8, 12, 0.5);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-info p {
    color: var(--text-secondary);
    margin-top: 1.5rem;
    max-width: 350px;
    line-height: 1.6;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    max-width: 1300px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {

    .showcase-row,
    .showcase-row.reverse {
        flex-direction: column;
        gap: 4rem;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .brand {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}