/*
 * Vocalify.app - Premium Landing Page CSS Stylesheet
 * Exact Desktop App Theme System (Charcoal, Sage Teal, Muted Rose)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
    /* Exact App Color Palette */
    --bg-dark: #121212;
    --panel-bg: #1e1e1e;
    --bg-card: rgba(30, 30, 30, 0.45);
    --bg-card-hover: rgba(38, 38, 38, 0.6);
    --border-color: #333333;
    --border-card: #333333;
    --border-card-hover: rgba(255, 255, 255, 0.12);
    
    /* Text Colors */
    --text-primary: #f5f5f5;
    --text-secondary: #888888;
    --text-muted: #666666;
    
    /* App Accent Colors */
    --accent-red: #d05c5c;
    --accent-red-hover: #b04b4b;
    --accent-teal: #4a9c8c;
    --accent-teal-hover: #3d8274;
    --accent-glow: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-red) 100%);
    --border-glow: rgba(74, 156, 140, 0.25);
    
    /* Status Colors */
    --color-success: #4a9c8c;
    --color-warning: #e67e22;
    --color-danger: #d05c5c;

    /* Styling Properties */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Space Mono', monospace;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

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

/* --- Glowing Ambient Blobs in Background --- */
.ambient-glows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(160px);
    opacity: 0.1;
}

.blob-1 {
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: var(--accent-teal);
}

.blob-2 {
    top: 400px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: var(--accent-red);
}

.blob-3 {
    bottom: 200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: var(--accent-teal);
}

/* --- Navigation --- */
header {
    width: 100%;
    padding: 16px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(18, 18, 18, 0.7);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.logo svg {
    height: 24px;
    width: 24px;
    filter: drop-shadow(0 0 6px rgba(74, 156, 140, 0.45));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover svg {
    transform: rotate(15deg) scale(1.15);
}

.logo-text {
    background: var(--accent-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(74, 156, 140, 0.5);
}

.nav-cta {
    display: inline-block;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-cta:hover {
    border-color: var(--accent-teal);
    box-shadow: 0 0 10px rgba(74, 156, 140, 0.25);
    color: var(--text-primary);
}

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

section {
    padding: 80px 0 48px 0;
    scroll-margin-top: 100px;
}

/* --- Hero Section --- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 180px;
    min-height: 90vh;
}

.announcement-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(74, 156, 140, 0.08);
    border: 1px solid rgba(74, 156, 140, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 500;
    color: var(--accent-teal);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

h1 {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    max-width: 900px;
    margin-bottom: 24px;
}

.gradient-title {
    background: linear-gradient(135deg, #fff 30%, var(--accent-teal) 75%, var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subheadline {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 40px;
    font-weight: 400;
}

/* --- Hardware Checker Widget --- */
.hardware-widget {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    padding: 32px;
    width: 100%;
    max-width: 640px;
    margin-bottom: 48px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.hardware-widget:hover {
    border-color: rgba(74, 156, 140, 0.25);
    box-shadow: 0 10px 30px rgba(74, 156, 140, 0.05);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-dot {
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background-color: var(--color-success);
    box-shadow: 0 0 6px var(--color-success);
}

.dot-warning {
    background-color: var(--color-warning);
    box-shadow: 0 0 6px var(--color-warning);
}

.badge-success {
    background: rgba(74, 156, 140, 0.08);
    border: 1px solid rgba(74, 156, 140, 0.25);
    color: var(--color-success);
}

.badge-warning {
    background: rgba(230, 126, 34, 0.08);
    border: 1px solid rgba(230, 126, 34, 0.25);
    color: var(--color-warning);
}

.badge-info {
    background: rgba(74, 156, 140, 0.08);
    border: 1px solid rgba(74, 156, 140, 0.25);
    color: var(--accent-teal);
}

.dot-info {
    background-color: var(--accent-teal);
    box-shadow: 0 0 6px var(--accent-teal);
}


.widget-body {
    text-align: left;
}

#scan-status {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

#scan-details {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.warning-alert {
    display: inline-block;
    margin-top: 12px;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: rgba(230, 126, 34, 0.04);
    border: 1px dashed rgba(230, 126, 34, 0.2);
    color: var(--color-warning);
    font-weight: 500;
}

/* --- Action Buttons --- */
.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.button-primary {
    background: var(--accent-glow);
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(74, 156, 140, 0.25);
}

.button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(74, 156, 140, 0.4);
}

.button-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: var(--border-color) !important;
    color: var(--text-muted) !important;
    box-shadow: none !important;
}

/* --- The Power of Local Section --- */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 32px auto;
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-teal);
    margin-bottom: 12px;
    display: inline-block;
}

h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 15px;
}

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

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

.feature-card:hover {
    border-color: rgba(74, 156, 140, 0.35);
    background: rgba(38, 38, 38, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.card-icon {
    font-size: 28px;
    margin-bottom: 20px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

/* --- How it Works --- */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.step-card {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
}

.step-card:hover {
    border-color: rgba(74, 156, 140, 0.35);
    background: rgba(38, 38, 38, 0.5);
    transform: translateY(-2px);
}

.step-num {
    position: absolute;
    top: 24px;
    right: 24px;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    color: rgba(74, 156, 140, 0.08);
}

/* --- Pricing Section --- */
.pricing-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.pricing-card {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.6) 0%, rgba(18, 18, 18, 0.8) 100%);
    border: 1.5px solid var(--accent-teal);
    border-radius: var(--radius-lg);
    padding: 48px;
    width: 100%;
    max-width: 520px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(74, 156, 140, 0.05);
    position: relative;
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-glow);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 10px;
    padding: 4px 16px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.price-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
}

.price-val {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.price-term {
    font-family: var(--font-heading);
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 32px;
}

.divider {
    height: 1px;
    background: var(--border-color);
    width: 100%;
    margin-bottom: 32px;
}

.pricing-features {
    text-align: left;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

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

.pricing-features li::before {
    content: "✓";
    font-weight: 900;
    color: var(--accent-teal);
    font-size: 14px;
}

/* --- FAQ Section --- */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 32px;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.05);
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border-color);
    padding: 64px 0;
    text-align: center;
    background: #0d0d0d;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-nav {
    display: flex;
    gap: 32px;
    list-style: none;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 12px;
    transition: var(--transition);
}

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

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

/* --- Video Showcase Section (Interactive Simulator) --- */
.demo-showcase {
    padding: 64px 0 32px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-container-wrapper {
    width: 100%;
    max-width: 960px;
    margin-top: 16px;
    padding: 10px;
    background: rgba(30, 30, 30, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.video-player-card {
    width: 100%;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #0d0d0d;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.video-overlay:hover {
    background: rgba(18, 18, 18, 0.65);
    backdrop-filter: blur(4px);
}

.play-trigger-btn {
    height: 72px;
    width: 72px;
    border-radius: 50%;
    background: var(--accent-glow);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(74, 156, 140, 0.4);
    margin-bottom: 16px;
    transition: var(--transition);
}

.video-overlay:hover .play-trigger-btn {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(74, 156, 140, 0.6);
}

.play-svg {
    height: 32px;
    width: 32px;
    margin-left: 4px; /* Align play triangle perfectly center */
}

.play-label {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* App Mockup Frame Styling */
.mock-app-frame {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #121212;
    font-family: var(--font-body);
}

.mock-window-header {
    height: 38px;
    background: #1a1a1a;
    border-bottom: 1px solid #282828;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.mock-dots {
    display: flex;
    gap: 6px;
}

.dot {
    height: 10px;
    width: 10px;
    border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.mock-window-title {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.mock-window-gpu {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-teal);
}

.mock-window-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Sidebar Mock */
.mock-sidebar {
    width: 180px;
    background: #181818;
    border-right: 1px solid #282828;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 8px;
}

.mock-nav-item {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 10px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.mock-nav-item:hover, .mock-nav-item.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.mock-nav-item.active {
    border-left: 3px solid var(--accent-teal);
    background: rgba(74, 156, 140, 0.08);
}

/* Work Area Mock */
.mock-workarea {
    flex: 1;
    background: #141414;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mock-stage {
    display: none;
    width: 100%;
    max-width: 520px;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.4s ease-in-out forwards;
}

.mock-stage.active {
    display: flex;
}

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

/* Stage 1 Elements */
.mock-dropzone {
    border: 2px dashed #333333;
    background: rgba(255, 255, 255, 0.01);
    border-radius: var(--radius-md);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.mock-dropzone.active {
    border-color: var(--accent-teal);
    background: rgba(74, 156, 140, 0.02);
}

.dropzone-icon {
    font-size: 32px;
    transition: transform 0.3s ease;
}

.mock-dropzone.active .dropzone-icon {
    transform: scale(1.15) translateY(-4px);
}

.dropzone-text {
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--text-secondary);
}

/* Progress Bars Mock */
.mock-progress-container {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #2c2c2c;
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.mock-progress-label {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
}

.mock-progress-bar {
    width: 100%;
    height: 6px;
    background: #262626;
    border-radius: 10px;
    overflow: hidden;
}

.mock-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--accent-glow);
    border-radius: 10px;
    transition: width 0.1s linear;
}

.mock-progress-pct {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    align-self: flex-end;
}

.mock-stems {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.stem-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1c1c1c;
    border: 1px solid #282828;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
}

.stem-name {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Mini waveforms */
.mock-wave {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.mock-wave .w-bar {
    width: 2px;
    height: 3px;
    background-color: var(--accent-teal);
    border-radius: 20px;
}

.mock-wave.active .w-bar {
    animation: bounce-wave 0.8s ease-in-out infinite alternate;
}

.mock-wave.active .w-bar:nth-child(1) { animation-delay: 0.1s; }
.mock-wave.active .w-bar:nth-child(2) { animation-delay: 0.3s; }
.mock-wave.active .w-bar:nth-child(3) { animation-delay: 0.2s; }
.mock-wave.active .w-bar:nth-child(4) { animation-delay: 0.5s; }
.mock-wave.active .w-bar:nth-child(5) { animation-delay: 0.15s; }
.mock-wave.active .w-bar:nth-child(6) { animation-delay: 0.4s; }

@keyframes bounce-wave {
    0% { height: 3px; }
    100% { height: 14px; }
}

/* Stage 2 Elements */
.mock-trainer-setup {
    background: #1c1c1c;
    border: 1px solid #282828;
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trainer-header-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 11px;
    color: var(--text-secondary);
}

.trainer-header-row strong {
    color: var(--text-primary);
}

.mock-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333333;
    padding: 10px 24px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.mock-btn:hover {
    border-color: var(--accent-teal);
    background: rgba(74, 156, 140, 0.08);
}

.mock-btn-primary {
    background: var(--accent-glow);
    border: none;
    box-shadow: 0 4px 12px rgba(74, 156, 140, 0.2);
}

.mock-btn-primary:hover {
    background: var(--accent-glow);
    opacity: 0.95;
    box-shadow: 0 4px 16px rgba(74, 156, 140, 0.35);
}

.mock-train-status {
    font-family: var(--font-heading);
    font-size: 9px;
    font-weight: 700;
    color: var(--accent-teal);
    letter-spacing: 0.5px;
}

.mock-success-badge {
    background: rgba(74, 156, 140, 0.08);
    border: 1px dashed rgba(74, 156, 140, 0.35);
    color: var(--color-success);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
    from { box-shadow: 0 0 10px rgba(74, 156, 140, 0.05); }
    to { box-shadow: 0 0 20px rgba(74, 156, 140, 0.2); }
}

/* Stage 3 Elements */
.mock-mixer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    background: #1c1c1c;
    border: 1px solid #282828;
    border-radius: var(--radius-md);
    padding: 24px;
}

.mixer-fader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.mixer-fader label {
    font-family: var(--font-heading);
    font-size: 9px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.mixer-fader.highlight label {
    color: var(--accent-teal);
}

.fader-track {
    height: 120px;
    width: 4px;
    background: #282828;
    border-radius: 10px;
    position: relative;
}

.fader-thumb {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 16px;
    width: 16px;
    background: #f5f5f5;
    border: 2px solid #333333;
    border-radius: 4px;
    cursor: pointer;
    transition: bottom 0.2s ease;
}

.mixer-fader.highlight .fader-thumb {
    background: var(--accent-teal);
    border-color: var(--accent-teal-hover);
    box-shadow: 0 0 8px var(--accent-teal);
}

/* --- Floating Ambient Audio Widget (Bottom Right Alignment) --- */
.audio-player-widget {
    position: fixed;
    bottom: 32px;
    right: max(24px, calc(50vw - 600px + 24px)); /* Perfect right-alignment with 1200px main content boundary! */
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(30, 30, 30, 0.45);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: 50px;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.audio-player-widget:hover {
    border-color: rgba(74, 156, 140, 0.3);
    box-shadow: 0 8px 32px rgba(74, 156, 140, 0.08);
}

.audio-toggle {
    background: var(--accent-glow);
    border: none;
    outline: none;
    height: 34px;
    width: 34px;
    border-radius: 50%;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(74, 156, 140, 0.35);
    transition: var(--transition);
}

.audio-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 0 14px rgba(74, 156, 140, 0.5);
}

.audio-toggle svg {
    height: 16px;
    width: 16px;
}

.audio-next {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.audio-next:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.audio-next svg {
    height: 16px;
    width: 16px;
}

.audio-info {
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 1px solid var(--border-color);
    padding-left: 10px;
}

.audio-label {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    min-width: 90px;
    text-align: left;
}

/* Soundwave animation */
.soundwave {
    display: flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 14px;
    width: 22px;
}

.soundwave .bar {
    width: 3px;
    height: 3px;
    background-color: var(--accent-teal);
    border-radius: 20px;
    transition: var(--transition);
}

/* Add active class triggers when playing */
.soundwave.playing .bar {
    animation: bounce 1s ease-in-out infinite alternate;
}

.soundwave.playing .bar:nth-child(1) { animation-delay: 0.1s; }
.soundwave.playing .bar:nth-child(2) { animation-delay: 0.4s; }
.soundwave.playing .bar:nth-child(3) { animation-delay: 0.2s; }
.soundwave.playing .bar:nth-child(4) { animation-delay: 0.5s; }

@keyframes bounce {
    0% { height: 3px; }
    100% { height: 14px; }
}

/* Volume Slider */
.volume-container {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 24px;
    overflow: hidden;
    transition: width 0.3s ease;
}

.audio-player-widget:hover .volume-container {
    width: 100px;
}

.volume-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.volume-btn:hover {
    color: var(--text-primary);
}

.volume-btn svg {
    height: 16px;
    width: 16px;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 60px;
    height: 3px;
    background: var(--border-color);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-teal);
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-teal);
    cursor: pointer;
}

/* Pulse animation helper for the player */
.audio-pulse {
    animation: soft-pulse 2s infinite alternate;
}

@keyframes soft-pulse {
    0% { box-shadow: 0 0 10px rgba(74, 156, 140, 0.2); }
    100% { box-shadow: 0 0 20px rgba(74, 156, 140, 0.5); }
}






/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .grid-3, .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        padding: 16px 24px;
    }
    nav, .nav-cta, .audio-player-widget {
        display: none !important;
    }
    h1 {
        font-size: 40px;
        letter-spacing: -1px;
    }
    .grid-3, .works-grid {
        grid-template-columns: 1fr;
    }
    .button {
        width: 100%;
    }
    .hero-ctas {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }
}
