/* DrumSlicer Website Styles */
/* Color scheme matches the app's dark theme */

:root {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2a2a2a;
    --bg-card: #252525;

    --accent-purple: #9B5DE5;
    --accent-blue: #007AFF;
    --accent-green: #50C878;

    --text-primary: #FFFFFF;
    --text-secondary: #B4B4B4;
    --text-tertiary: #808080;

    --border-color: #3a3a3a;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 28px;
    color: var(--accent-purple);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 80px 0;
    min-height: 70vh;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.tagline {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 480px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--accent-purple);
    color: white;
}

.btn-primary:hover {
    background-color: #8a4ed0;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #353535;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* App Preview / Waveform Visualization */
.app-preview {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 32px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.waveform-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 200px;
}

.waveform-bar {
    width: 12px;
    background: linear-gradient(to top, var(--accent-blue), #4DA6FF);
    border-radius: 4px;
    animation: pulse 1.5s ease-in-out infinite;
}

.waveform-bar:nth-child(odd) {
    animation-delay: 0.2s;
}

.waveform-bar:nth-child(3n) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.slice-markers {
    position: absolute;
    top: 32px;
    left: 32px;
    right: 32px;
    bottom: 32px;
    display: flex;
    justify-content: space-around;
    pointer-events: none;
}

.marker {
    width: 2px;
    height: 100%;
    background: var(--accent-purple);
    opacity: 0.8;
}

/* Features Section */
.features {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.features h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
}

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

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

.feature-card:hover {
    border-color: var(--accent-purple);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

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

/* Download Section */
.download {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.download h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
}

.download-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 48px;
    border: 1px solid var(--border-color);
    max-width: 400px;
    margin: 0 auto;
}

.platform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.platform-icon {
    font-size: 32px;
}

.platform-name {
    font-size: 24px;
    font-weight: 600;
}

.version {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.requirements {
    color: var(--text-tertiary);
    font-size: 13px;
    margin-top: 16px;
}

/* Footer */
footer {
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-tertiary);
    font-size: 14px;
}

.dev-notice {
    margin-top: 8px;
    color: var(--accent-purple);
    font-weight: 500;
}

/* Login Gate */
.login-gate {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 48px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-card .logo {
    justify-content: center;
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--text-tertiary);
    font-size: 14px;
    margin-bottom: 32px;
}

#login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#login-form input {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font-family);
    transition: border-color 0.2s ease;
}

#login-form input:focus {
    outline: none;
    border-color: var(--accent-purple);
}

#login-form input::placeholder {
    color: var(--text-tertiary);
}

#login-form .btn {
    margin-top: 8px;
    width: 100%;
}

#login-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-error {
    color: #FF6B6B;
    font-size: 14px;
    min-height: 20px;
}

.login-notice {
    color: var(--text-tertiary);
    font-size: 12px;
    margin-top: 24px;
}

/* Logout Button */
.btn-logout {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
}

.btn-logout:hover {
    border-color: var(--text-tertiary);
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 48px 0;
    }

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

    .tagline {
        margin-left: auto;
        margin-right: auto;
    }

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

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

@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 16px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

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

    .btn {
        width: 100%;
        text-align: center;
    }
}
