/* BlockBeats - Main Stylesheet */

/* ===== CSS Variables ===== */
:root {
    --bg-dark: #0D0D1A;
    --bg-card: #1A1A2E;
    --bg-card-hover: #252542;
    --accent-primary: #6C5CE7;
    --accent-secondary: #FD79A8;
    --accent-gold: #FDCB6E;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0C0;
    --text-muted: #6B6B8D;
    --border-color: #2D2D4A;
    --gradient-primary: linear-gradient(135deg, #6C5CE7 0%, #FD79A8 100%);
    --gradient-hero: linear-gradient(135deg, #0D0D1A 0%, #1A1A2E 50%, #2D1A3D 100%);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(108, 92, 231, 0.3);
    --transition: all 0.3s ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-secondary);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Utility Classes ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Header ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(13, 13, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.logo img {
    width: 32px;
    height: 32px;
}

.logo span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

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

.btn-nav {
    background: var(--gradient-primary);
    color: var(--text-primary) !important;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.btn-nav:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.3) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(253, 121, 168, 0.2) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite 4s;
}

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

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 560px;
}

/* Hero Phone Mockups */
.hero-phones {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 500px;
}

.phone {
    position: absolute;
    width: 240px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(108, 92, 231, 0.2);
    border: 4px solid #2D2D4A;
    background: #000;
}

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

.phone-front {
    z-index: 2;
    transform: translateX(40px) rotate(3deg);
    animation: float 6s ease-in-out infinite;
}

.phone-back {
    z-index: 1;
    transform: translateX(-40px) rotate(-6deg) scale(0.9);
    opacity: 0.85;
    animation: float 6s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% { transform: translateX(40px) rotate(3deg) translateY(0); }
    50% { transform: translateX(40px) rotate(3deg) translateY(-15px); }
}

.phone-back {
    animation-name: float-back;
}

@keyframes float-back {
    0%, 100% { transform: translateX(-40px) rotate(-6deg) scale(0.9) translateY(0); }
    50% { transform: translateX(-40px) rotate(-6deg) scale(0.9) translateY(-10px); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 92, 231, 0.2);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto 16px;
}

.hero-form input {
    flex: 1;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: var(--transition);
}

.hero-form input::placeholder {
    color: var(--text-muted);
}

.hero-form input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.hero-form button {
    padding: 16px 28px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.hero-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.hero-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.hero-form button.success {
    background: #00C853;
}

.hero-form button.error {
    background: #FF5252;
}

.hero-note {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 48px;
}

.app-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.badge:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.badge svg {
    width: 28px;
    height: 28px;
    color: var(--text-primary);
}

.badge-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-store {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

/* Available download badge */
.badge.available {
    background: var(--gradient-primary);
    border-color: transparent;
    cursor: pointer;
}

.badge.available:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.badge.available .badge-label {
    color: rgba(255, 255, 255, 0.9);
}

.badge.available .badge-store {
    color: var(--text-primary);
}

/* Coming soon badge (dimmed) */
.badge.coming-soon {
    opacity: 0.6;
    cursor: default;
}

.badge.coming-soon:hover {
    transform: none;
    border-color: var(--border-color);
}

/* ===== Features Section ===== */
.features {
    padding: 120px 0;
    background: var(--bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(108, 92, 231, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
}

.feature-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== How It Works Section ===== */
.how-it-works {
    padding: 120px 0;
    background: var(--bg-card);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 24px;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 24px;
}

.step-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.step-content p {
    font-size: 15px;
    color: var(--text-secondary);
}

.step-connector {
    width: 80px;
    height: 2px;
    background: var(--border-color);
    margin-top: 32px;
    flex-shrink: 0;
}

/* ===== Audius Section ===== */
.audius-section {
    padding: 120px 0;
    background: var(--bg-dark);
}

.audius-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.audius-badge {
    display: inline-flex;
    background: rgba(253, 203, 110, 0.15);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.audius-text h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    margin-bottom: 20px;
}

.audius-text > p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.audius-features {
    list-style: none;
    margin-bottom: 32px;
}

.audius-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.audius-features svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: var(--text-primary);
}

.btn-secondary svg {
    width: 18px;
    height: 18px;
}

.audius-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.audius-visual img {
    max-width: 400px;
    background: #ffffff;
    padding: 30px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 120px 0;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(108, 92, 231, 0.2) 0%, transparent 70%);
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content > p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 40px;
}

.cta-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto 16px;
}

.cta-form input {
    flex: 1;
    padding: 18px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: var(--transition);
}

.cta-form input::placeholder {
    color: var(--text-muted);
}

.cta-form input:focus {
    border-color: var(--accent-primary);
}

.cta-form button {
    padding: 18px 32px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.cta-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.cta-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.cta-form button.success {
    background: #00C853;
}

.cta-form button.error {
    background: #FF5252;
}

.cta-note {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== Footer ===== */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 600px;
    }

    .hero-phones {
        min-height: 400px;
        margin-top: 20px;
    }

    .phone {
        width: 200px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .audius-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .audius-visual {
        order: -1;
    }

    .audius-visual img {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        padding: 80px 30px;
        gap: 24px;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-color);
    }

    .nav.active {
        right: 0;
    }

    .nav a {
        font-size: 18px;
    }

    .mobile-menu {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-phones {
        min-height: 350px;
    }

    .phone {
        width: 180px;
        border-radius: 28px;
    }

    .phone-front {
        transform: translateX(30px) rotate(3deg);
    }

    .phone-back {
        transform: translateX(-30px) rotate(-6deg) scale(0.9);
    }

    @keyframes float {
        0%, 100% { transform: translateX(30px) rotate(3deg) translateY(0); }
        50% { transform: translateX(30px) rotate(3deg) translateY(-12px); }
    }

    @keyframes float-back {
        0%, 100% { transform: translateX(-30px) rotate(-6deg) scale(0.9) translateY(0); }
        50% { transform: translateX(-30px) rotate(-6deg) scale(0.9) translateY(-8px); }
    }

    .hero-form {
        flex-direction: column;
    }

    .hero-form button {
        width: 100%;
    }

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

    .steps {
        flex-direction: column;
        gap: 40px;
    }

    .step-connector {
        width: 2px;
        height: 40px;
        margin: 0 auto;
    }

    .cta-form {
        flex-direction: column;
    }

    .cta-form button {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-badges {
        flex-direction: column;
        align-items: center;
    }

    .badge {
        width: 100%;
        max-width: 220px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 16px 20px;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-phones {
        min-height: 300px;
    }

    .phone {
        width: 150px;
        border-radius: 24px;
        border-width: 3px;
    }

    .phone-front {
        transform: translateX(25px) rotate(3deg);
    }

    .phone-back {
        transform: translateX(-25px) rotate(-6deg) scale(0.9);
    }

    @keyframes float {
        0%, 100% { transform: translateX(25px) rotate(3deg) translateY(0); }
        50% { transform: translateX(25px) rotate(3deg) translateY(-10px); }
    }

    @keyframes float-back {
        0%, 100% { transform: translateX(-25px) rotate(-6deg) scale(0.9) translateY(0); }
        50% { transform: translateX(-25px) rotate(-6deg) scale(0.9) translateY(-6px); }
    }

    .section-header {
        margin-bottom: 40px;
    }

    .features,
    .how-it-works,
    .audius-section,
    .cta-section {
        padding: 80px 0;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
