/* BeatBestie Landing Page Styles */
/* Design System from Figma */

:root {
    /* Colors from Figma app design */
    --bg-dark: #0A0A0F;
    --bg-card: #12121A;
    --bg-elevated: #1A1A24;

    /* Primary accent - Lime green from Figma */
    --accent-lime: #CDFF64;
    --accent-lime-dark: #a8d94f;

    /* Purple-blue gradient colors from app */
    --purple-dark: #2D1B69;
    --purple-mid: #5B4B9E;
    --blue-accent: #4B6EE8;
    --blue-light: #7B9EFF;

    /* Service colors */
    --spotify-green: #1DB954;
    --apple-pink: #FC3C44;

    /* Neutral colors */
    --white: #FFFFFF;
    --gray-100: #F5F5F5;
    --gray-300: #B0B0B0;
    --gray-500: #6B6B6B;
    --gray-700: #3A3A3A;
    --gray-900: #1D1D1D;

    /* Typography - matching Figma */
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;

    /* Border Radius - from Figma */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Background Effects */
.bg-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(91, 75, 158, 0.3), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(45, 27, 105, 0.2), transparent),
        var(--bg-dark);
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(91, 75, 158, 0.4);
    top: -200px;
    right: -100px;
    animation: float 25s ease-in-out infinite;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: rgba(75, 110, 232, 0.3);
    bottom: 10%;
    left: -150px;
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -40px) scale(1.05); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-sm) var(--space-lg);
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--white);
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.nav-cta {
    padding: 10px 20px;
    background: var(--accent-lime);
    border-radius: var(--radius-full);
    color: var(--gray-900);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-cta:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(205, 255, 100, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    padding: calc(80px + var(--space-2xl)) var(--space-lg) var(--space-2xl);
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 580px;
}

.launch-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 8px 16px;
    background: rgba(205, 255, 100, 0.1);
    border: 1px solid rgba(205, 255, 100, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-lime);
    margin-bottom: var(--space-lg);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-lime);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
}

.title-line {
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-lime) 0%, var(--blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-300);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 16px 28px;
    border-radius: var(--radius-lg);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--accent-lime);
    color: var(--gray-900);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(205, 255, 100, 0.25);
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.music-services {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gray-500);
    font-size: 0.875rem;
}

.service-icons {
    display: flex;
    gap: var(--space-xs);
}

.service-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.service-icon:hover {
    transform: scale(1.15);
}

.service-icon svg {
    width: 18px;
    height: 18px;
}

.service-icon.spotify {
    background: var(--spotify-green);
    color: var(--white);
}

.service-icon.apple {
    background: linear-gradient(135deg, #FC3C44, #FF6B6B);
    color: var(--white);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-showcase {
    position: relative;
    width: 340px;
    height: 620px;
}

.phone {
    position: absolute;
    width: 280px;
    background: var(--gray-900);
    border-radius: 40px;
    overflow: hidden;
    border: 3px solid var(--gray-700);
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 80px rgba(91, 75, 158, 0.2);
}

.phone-back {
    left: 0;
    top: 40px;
    transform: rotate(-6deg);
    z-index: 1;
    opacity: 0.85;
}

.phone-front {
    right: 0;
    top: 0;
    transform: rotate(4deg);
    z-index: 2;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: var(--gray-900);
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: auto;
    display: block;
}

/* Features Section */
.features {
    padding: var(--space-3xl) var(--space-lg);
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.features-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 0.02em;
    color: var(--gray-300);
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    background: rgba(205, 255, 100, 0.03);
    border-color: rgba(205, 255, 100, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 52px;
    height: 52px;
    margin-bottom: var(--space-md);
    color: var(--accent-lime);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--gray-300);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* App Preview Section */
.app-preview {
    padding: var(--space-3xl) 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.preview-content {
    text-align: center;
    max-width: 1300px;
    margin: 0 auto var(--space-2xl);
    padding: 0 var(--space-lg);
}

.preview-subtitle {
    color: var(--gray-300);
    font-size: 1.1rem;
    margin-top: var(--space-sm);
}

.preview-carousel {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.preview-track {
    display: flex;
    gap: var(--space-lg);
    animation: scroll 40s linear infinite;
    width: max-content;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.preview-item {
    flex-shrink: 0;
    width: 220px;
    text-align: center;
}

.preview-item img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.preview-item:hover img {
    transform: scale(1.03);
}

.preview-label {
    display: block;
    margin-top: var(--space-sm);
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* How It Works */
.how-it-works {
    padding: var(--space-3xl) var(--space-lg);
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    z-index: 1;
}

.hiw-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hiw-content .section-title {
    margin-bottom: var(--space-2xl);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    text-align: left;
}

.step {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.step:hover {
    border-color: rgba(205, 255, 100, 0.15);
    background: rgba(205, 255, 100, 0.02);
}

.step-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-lime);
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.8;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.step-content p {
    color: var(--gray-300);
    font-size: 0.95rem;
    line-height: 1.7;
}

.step-visual {
    flex-shrink: 0;
}

.connect-icons {
    display: flex;
    gap: var(--space-sm);
}

.connect-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.connect-icon:hover {
    transform: scale(1.1);
}

.connect-icon svg {
    width: 24px;
    height: 24px;
}

.spotify-icon {
    background: var(--spotify-green);
    color: var(--white);
}

.apple-icon {
    background: linear-gradient(135deg, #FC3C44, #FF6B6B);
    color: var(--white);
}

/* Vibes Section */
.vibes {
    padding: var(--space-3xl) var(--space-lg);
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.vibes-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.vibes-text .section-title {
    margin-bottom: var(--space-lg);
}

.vibes-description {
    color: var(--gray-300);
    font-size: 1.05rem;
    line-height: 1.8;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.stat-card {
    padding: var(--space-lg);
    background: rgba(205, 255, 100, 0.05);
    border: 1px solid rgba(205, 255, 100, 0.15);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(205, 255, 100, 0.3);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-lime);
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-300);
    text-transform: lowercase;
}

/* Waitlist Section */
.waitlist {
    padding: var(--space-3xl) var(--space-lg);
    position: relative;
    z-index: 1;
}

.waitlist-content {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.waitlist-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(205, 255, 100, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.waitlist-content .section-title {
    margin-bottom: var(--space-md);
}

.waitlist-subtitle {
    color: var(--gray-300);
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.input-wrapper {
    display: flex;
    gap: var(--space-sm);
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: var(--accent-lime);
    box-shadow: 0 0 0 4px rgba(205, 255, 100, 0.1);
}

.input-wrapper input {
    flex: 1;
    padding: 14px 18px;
    background: transparent;
    border: none;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
}

.input-wrapper input::placeholder {
    color: var(--gray-500);
}

.input-wrapper .btn {
    flex-shrink: 0;
}

.privacy-note {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.success-message {
    display: none;
    text-align: center;
    padding: var(--space-xl);
    background: rgba(205, 255, 100, 0.08);
    border: 1px solid rgba(205, 255, 100, 0.2);
    border-radius: var(--radius-lg);
    animation: successPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-message.show {
    display: block;
}

@keyframes successPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-lime);
    color: var(--gray-900);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--space-md);
}

.success-message h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.success-message p {
    color: var(--gray-300);
}

/* Footer */
.footer {
    padding: var(--space-2xl) var(--space-lg) var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-brand p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

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

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--gray-300);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-lime);
    border-color: var(--accent-lime);
    color: var(--gray-900);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1300px;
    margin: var(--space-xl) auto 0;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta {
        align-items: center;
    }

    .vibes-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

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

@media (max-width: 768px) {
    .nav {
        padding: var(--space-sm);
    }

    .nav-cta {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .hero {
        padding-top: calc(60px + var(--space-xl));
        min-height: auto;
    }

    .phone-showcase {
        transform: scale(0.85);
    }

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

    .step-visual {
        align-self: center;
    }

    .input-wrapper {
        flex-direction: column;
    }

    .input-wrapper .btn {
        width: 100%;
    }

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

    .footer-brand {
        align-items: center;
    }

    .stat-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
        --space-3xl: 4rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .phone-showcase {
        transform: scale(0.7);
    }

    .preview-item {
        width: 180px;
    }
}

/* Scroll animations */
.feature-card,
.step,
.stat-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card.visible,
.step.visible,
.stat-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Selection color */
::selection {
    background: var(--accent-lime);
    color: var(--gray-900);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}
