/* Beat Burst - Landing Page Styles */

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #06b6d4;
    --accent-light: #22d3ee;
    --pink: #ec4899;
    --purple: #a855f7;
    --green: #10b981;
    --yellow: #f59e0b;
    --red: #ef4444;

    --bg-dark: #09090b;
    --bg-card: rgba(24, 24, 27, 0.8);
    --bg-card-hover: rgba(39, 39, 42, 0.8);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 24px;
    background: linear-gradient(to bottom, rgba(9, 9, 11, 0.9), transparent);
}

.nav-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.nav-back:hover {
    color: var(--text);
    border-color: var(--border-hover);
    transform: translateX(-4px);
}

.nav-back svg {
    transition: transform 0.3s ease;
}

.nav-back:hover svg {
    transform: translateX(-2px);
}

/* Hero Section */

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

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    top: -20%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    bottom: -10%;
    left: -5%;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    top: 40%;
    left: 20%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(-30px, -20px) scale(1.02); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(48px, 12vw, 120px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
}

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

.word-burst {
    background: linear-gradient(135deg, var(--accent) 0%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 16px;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 100px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.5);
}

.btn-primary.large {
    padding: 20px 40px;
    font-size: 18px;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.hero-visual {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    z-index: 1;
}

#hero-canvas {
    width: 100%;
    height: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Section Styles */

section {
    padding: 100px 0;
}

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

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
}

/* Features */

.features {
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.03), transparent);
}

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

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

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

/* Beat Pad Section */

.beat-pad-section {
    background: linear-gradient(180deg, transparent, rgba(6, 182, 212, 0.03), transparent);
}

.beat-pad-wrapper {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#beat-visualizer {
    width: 100%;
    height: 140px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.beat-pads {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.beat-pad {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.beat-pad:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: scale(1.02);
}

.beat-pad:active,
.beat-pad.active {
    transform: scale(0.95);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3));
    border-color: var(--primary-light);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4), inset 0 0 20px rgba(99, 102, 241, 0.2);
}

.pad-key {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-light);
}

.pad-name {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* How to Play */

.steps-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.step-card {
    flex: 1;
    min-width: 240px;
    max-width: 300px;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s ease;
}

.step-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.step-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.step-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.step-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-visual {
    margin-top: 20px;
    color: var(--text-muted);
    opacity: 0.5;
}

.step-connector {
    color: var(--text-muted);
    opacity: 0.3;
}

@media (max-width: 900px) {
    .step-connector {
        display: none;
    }
}

/* Info Section (Controls & Scoring) */

.info-section {
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.03), transparent);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.info-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.info-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
    color: var(--text);
}

.keys-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.key-group {
    display: flex;
    gap: 8px;
}

.key-box {
    min-width: 48px;
    height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}

.key-box.wide {
    min-width: 80px;
}

.keys-label {
    font-size: 13px;
    color: var(--text-muted);
}

.score-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.score-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-left: 3px solid;
}

.score-item.perfect { border-color: var(--green); }
.score-item.great { border-color: var(--accent); }
.score-item.good { border-color: var(--yellow); }
.score-item.miss { border-color: var(--red); }

.score-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 600;
    flex: 1;
}

.score-item.perfect .score-name { color: var(--green); }
.score-item.great .score-name { color: var(--accent); }
.score-item.good .score-name { color: var(--yellow); }
.score-item.miss .score-name { color: var(--red); }

.score-points {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-right: 16px;
}

.score-window {
    font-size: 12px;
    color: var(--text-muted);
}

/* Final CTA */

.final-cta {
    padding: 120px 0;
}

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

.cta-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 16px;
}

/* ================================ */
/* Footer */
/* ================================ */

.footer {
    padding: 40px 0;
    display: flex;
    justify-content: center;
}

.footer-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
}

.footer-bars span {
    width: 4px;
    background: linear-gradient(to top, var(--primary), var(--accent));
    border-radius: 2px;
    animation: barPulse 1.5s infinite ease-in-out;
}

.footer-bars span:nth-child(1) { height: 15px; animation-delay: 0s; }
.footer-bars span:nth-child(2) { height: 25px; animation-delay: 0.1s; }
.footer-bars span:nth-child(3) { height: 35px; animation-delay: 0.2s; }
.footer-bars span:nth-child(4) { height: 20px; animation-delay: 0.3s; }
.footer-bars span:nth-child(5) { height: 30px; animation-delay: 0.4s; }
.footer-bars span:nth-child(6) { height: 40px; animation-delay: 0.5s; }
.footer-bars span:nth-child(7) { height: 30px; animation-delay: 0.6s; }
.footer-bars span:nth-child(8) { height: 20px; animation-delay: 0.7s; }
.footer-bars span:nth-child(9) { height: 35px; animation-delay: 0.8s; }
.footer-bars span:nth-child(10) { height: 25px; animation-delay: 0.9s; }
.footer-bars span:nth-child(11) { height: 15px; animation-delay: 1s; }
.footer-bars span:nth-child(12) { height: 30px; animation-delay: 1.1s; }
.footer-bars span:nth-child(13) { height: 40px; animation-delay: 1.2s; }
.footer-bars span:nth-child(14) { height: 25px; animation-delay: 1.3s; }
.footer-bars span:nth-child(15) { height: 20px; animation-delay: 1.4s; }

@keyframes barPulse {
    0%, 100% { transform: scaleY(0.5); opacity: 0.4; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* ================================ */
/* Responsive */
/* ================================ */

@media (max-width: 768px) {
    .hero {
        padding: 100px 16px 60px;
    }

    .word-burst {
        display: block;
        margin-left: 0;
        margin-top: 8px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    section {
        padding: 60px 0;
    }

    .beat-pads {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .pad-key {
        font-size: 18px;
    }

    .pad-name {
        font-size: 9px;
    }

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

    .step-card {
        max-width: 100%;
    }
}
