/* ========================================
   SnapBPM - CSS
   Dark theme, glow accents, modern & clean
   ======================================== */

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

:root {
    /* Core palette */
    --bg-primary: #07070d;
    --bg-secondary: #0d0d16;
    --bg-card: #111119;
    --bg-card-hover: #16161f;
    --bg-elevated: #1a1a25;
    
    /* Text */
    --text-primary: #f0f0f5;
    --text-secondary: #9494a8;
    --text-muted: #5e5e73;
    
    /* Accent colors */
    --purple: #a78bfa;
    --purple-dim: #7c5fd4;
    --cyan: #06b6d4;
    --cyan-dim: #0891b2;
    --pink: #f472b6;
    --green: #34d399;
    --orange: #fb923c;
    --blue: #60a5fa;
    
    /* Gradients */
    --gradient-main: linear-gradient(135deg, #a78bfa, #06b6d4);
    --gradient-purple: linear-gradient(135deg, #a78bfa, #7c3aed);
    --gradient-cyan: linear-gradient(135deg, #06b6d4, #0ea5e9);
    
    /* Glow */
    --glow-purple: 0 0 60px rgba(167, 139, 250, 0.15);
    --glow-cyan: 0 0 60px rgba(6, 182, 212, 0.15);
    --glow-purple-strong: 0 0 120px rgba(167, 139, 250, 0.25);
    
    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.1);
    
    /* Sizing */
    --container-max: 1120px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

img, svg {
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    color: inherit;
}

.hidden {
    display: none !important;
}

/* Gradient text utility */
.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section common styles */
.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    text-align: center;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
    line-height: 1.7;
}


/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(7, 7, 13, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border-subtle);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-icon {
    display: flex;
    align-items: center;
}

.logo-icon svg {
    display: block;
}

.logo-icon img {
    display: block;
    border-radius: 4px;
    mix-blend-mode: screen;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Ambient glow blobs */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.hero-glow--1 {
    width: 500px;
    height: 500px;
    background: rgba(167, 139, 250, 0.12);
    top: -100px;
    left: -100px;
    animation: floatGlow 8s ease-in-out infinite alternate;
}

.hero-glow--2 {
    width: 400px;
    height: 400px;
    background: rgba(6, 182, 212, 0.1);
    bottom: -80px;
    right: -80px;
    animation: floatGlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.1); }
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    background: var(--gradient-main);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease;
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.2), 0 0 60px rgba(6, 182, 212, 0.1);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(167, 139, 250, 0.35), 0 0 80px rgba(6, 182, 212, 0.2);
}

.hero-cta svg {
    display: inline-block;
}


/* ========================================
   ANALYZER SECTION
   ======================================== */
.analyzer-section {
    padding: 100px 0;
    position: relative;
}

/* Drop Zone */
.dropzone-wrapper {
    max-width: 640px;
    margin: 0 auto 24px;
}

.dropzone {
    position: relative;
    border: 2px dashed rgba(167, 139, 250, 0.25);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
    background: rgba(167, 139, 250, 0.02);
    overflow: hidden;
}

.dropzone:hover {
    border-color: rgba(167, 139, 250, 0.45);
    background: rgba(167, 139, 250, 0.04);
}

.dropzone.drag-over {
    border-color: var(--purple);
    background: rgba(167, 139, 250, 0.08);
}

.dropzone.drag-over .dropzone-glow {
    opacity: 1;
}

.dropzone-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(167, 139, 250, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.dropzone:hover .dropzone-glow {
    opacity: 0.6;
}

.dropzone-content {
    position: relative;
    z-index: 2;
}

.dropzone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.08);
    margin-bottom: 20px;
    color: var(--purple);
}

.dropzone-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.dropzone-subtext {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.dropzone-formats {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    font-weight: 500;
}

/* File Info Bar */
.file-info {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 640px;
    margin: 0 auto 24px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    animation: slideUp 0.4s var(--ease-out);
}

.file-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(167, 139, 250, 0.1);
    color: var(--purple);
    flex-shrink: 0;
}

.file-info-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.file-info-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-info-size {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.file-info-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.file-info-remove:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

/* Analyzing / Progress */
.analyzing {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 24px;
    padding: 40px 20px;
    animation: slideUp 0.4s var(--ease-out);
}

.analyzing-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(167, 139, 250, 0.15);
    border-top-color: var(--purple);
    margin: 0 auto 20px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.analyzing-text {
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.progress-bar {
    width: 100%;
    max-width: 320px;
    height: 4px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0 auto;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 100px;
    background: var(--gradient-main);
    width: 0%;
    transition: width 0.3s var(--ease-out);
}

/* Results */
.results {
    max-width: 800px;
    margin: 0 auto;
    animation: slideUp 0.5s var(--ease-out);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.result-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}

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

.result-card-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    opacity: 0.5;
}

.result-card--bpm .result-card-glow {
    background: rgba(167, 139, 250, 0.15);
}

.result-card--key .result-card-glow {
    background: rgba(6, 182, 212, 0.15);
}

.result-card--camelot .result-card-glow {
    background: rgba(244, 114, 182, 0.12);
}

.result-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.result-value {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
}

.result-card--bpm .result-value {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-card--key .result-value {
    background: var(--gradient-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-card--camelot .result-value {
    background: linear-gradient(135deg, #f472b6, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-unit {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.result-confidence {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.confidence-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
}

.confidence-dot--high {
    background: var(--green);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
}

.confidence-dot--medium {
    background: var(--orange);
    box-shadow: 0 0 8px rgba(251, 146, 60, 0.4);
}

.confidence-dot--low {
    background: #f87171;
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.4);
}

/* Result Copy Buttons */
.result-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 14px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.result-copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.result-copy-btn.copied {
    background: rgba(52, 211, 153, 0.12);
    border-color: rgba(52, 211, 153, 0.3);
    color: var(--green);
}

.result-copy-btn .copy-label {
    font-weight: 500;
}

/* Track Info */
.track-info-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.track-info-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

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

.track-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.track-info-key {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.track-info-val {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Rename Helper */
.rename-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.rename-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.rename-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.rename-filename {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--purple);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.rename-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: rgba(167, 139, 250, 0.1);
    color: var(--purple);
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.1s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.rename-copy-btn:hover {
    background: rgba(167, 139, 250, 0.18);
}

.rename-copy-btn:active {
    transform: scale(0.96);
}

.rename-copy-btn.copied {
    background: rgba(52, 211, 153, 0.12);
    color: var(--green);
}

.rename-copy-btn svg {
    display: block;
}

.rename-copy-text {
    line-height: 1;
}

/* Waveform */
.waveform-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
}

.waveform-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.waveform-canvas {
    width: 100%;
    height: 120px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
}

/* Analyze another button */
.analyze-another-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.analyze-another-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.analyze-another-btn svg {
    display: inline-block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========================================
   RECENT ANALYSES HISTORY
   ======================================== */
.history-section {
    max-width: 800px;
    margin: 48px auto 0;
    animation: slideUp 0.5s var(--ease-out);
}

.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.history-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.history-title-row svg {
    display: inline-block;
}

.history-title {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.history-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.history-clear-btn:hover {
    background: rgba(248, 113, 113, 0.08);
    border-color: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

.history-clear-btn svg {
    display: inline-block;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: border-color 0.3s ease, background 0.2s ease;
    animation: slideUp 0.4s var(--ease-out);
}

.history-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.history-item-index {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 20px;
    text-align: center;
}

.history-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(167, 139, 250, 0.08);
    color: var(--purple);
    flex-shrink: 0;
}

.history-item-icon svg {
    display: inline-block;
}

.history-item-info {
    flex: 1;
    min-width: 0;
}

.history-item-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.history-item-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.history-stat {
    text-align: center;
    min-width: 56px;
}

.history-stat-value {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.history-stat-value--bpm {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.history-stat-value--key {
    background: var(--gradient-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.history-stat-value--camelot {
    background: linear-gradient(135deg, #f472b6, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.history-stat-label {
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-top: 2px;
}

@media (max-width: 768px) {
    .history-item {
        flex-wrap: wrap;
        gap: 12px;
    }

    .history-item-index {
        display: none;
    }

    .history-item-stats {
        width: 100%;
        justify-content: space-around;
        padding-top: 12px;
        border-top: 1px solid var(--border-subtle);
    }
}


/* ========================================
   FEATURES
   ======================================== */
.features-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

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

.feature-card {
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: border-color 0.3s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--glow-purple);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.feature-icon--purple {
    background: rgba(167, 139, 250, 0.1);
    color: var(--purple);
}

.feature-icon--cyan {
    background: rgba(6, 182, 212, 0.1);
    color: var(--cyan);
}

.feature-icon--pink {
    background: rgba(244, 114, 182, 0.1);
    color: var(--pink);
}

.feature-icon--green {
    background: rgba(52, 211, 153, 0.1);
    color: var(--green);
}

.feature-icon--orange {
    background: rgba(251, 146, 60, 0.1);
    color: var(--orange);
}

.feature-icon--blue {
    background: rgba(96, 165, 250, 0.1);
    color: var(--blue);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
}


/* ========================================
   HOW IT WORKS
   ======================================== */
.how-section {
    padding: 100px 0;
}

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

.step-card {
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}

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

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-main);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #fff;
}

.step-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}


/* ========================================
   FAQ
   ======================================== */
.faq-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-item.active {
    border-color: rgba(167, 139, 250, 0.2);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    font-size: 0.98rem;
    font-weight: 500;
    text-align: left;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--purple);
}

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-out);
    color: var(--text-muted);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--purple);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}


/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(167, 139, 250, 0.1) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.cta-title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}

.cta-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}


/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 60px 0 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 40px;
}

.footer-left {
    max-width: 280px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 14px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-title {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.footer-col a {
    font-size: 0.92rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid var(--border-subtle);
}

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


/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(7, 7, 13, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links .nav-link {
        font-size: 1.2rem;
        padding: 14px 28px;
    }

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

    .hero {
        padding: 130px 0 80px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

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

    .step-connector {
        transform: rotate(90deg);
    }

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

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

    .footer-links {
        gap: 40px;
    }

    .dropzone {
        padding: 40px 24px;
    }

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

    .rename-box {
        flex-direction: column;
        align-items: stretch;
    }

    .rename-filename {
        text-align: center;
    }

    .rename-copy-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 6px 16px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .result-value {
        font-size: 2.5rem;
    }

    .result-card {
        padding: 24px 20px;
    }
}


/* ========================================
   LEGAL PAGES (Privacy Policy, Terms)
   ======================================== */
.legal-section {
    padding: 140px 0 80px;
    min-height: 100vh;
}

.legal-container {
    max-width: 780px;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent-purple);
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.2s, gap 0.2s;
}

.legal-back:hover {
    color: var(--accent-cyan);
    gap: 12px;
}

.legal-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.legal-updated {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 48px;
}

.legal-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-top: 36px;
    margin-bottom: 12px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.legal-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.legal-content ul li {
    position: relative;
    padding-left: 20px;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.legal-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-purple);
}

.legal-content strong {
    color: var(--accent-cyan);
    font-weight: 600;
}

@media (max-width: 768px) {
    .legal-title {
        font-size: 1.8rem;
    }
    .legal-section {
        padding: 120px 0 60px;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.14);
}


/* ========================================
   SELECTION
   ======================================== */
::selection {
    background: rgba(167, 139, 250, 0.3);
    color: #fff;
}
