/* GlobalToneCare - Frutiger Aero Horizontal Scroll Experience */
/* Colors: #6b2fa0 #9b1b30 #1a3a6c #e8eef6 #c48a1a #0a0f1a #f0f4f8 #0f7b4f */
/* Fonts: Fraunces (display), Inter (body), Space Grotesk (mono/technical) */

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

html {
    overflow: hidden;
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0f1a;
    color: #e8eef6;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* ===== FREQUENCY BAR (top HUD) ===== */
#frequency-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    background: linear-gradient(180deg, rgba(10,15,26,0.95) 0%, rgba(10,15,26,0.7) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    gap: 12px;
    border-bottom: 1px solid rgba(107,47,160,0.2);
}

#freq-label, #freq-label-end {
    font-family: 'Space Grotesk', monospace;
    font-size: 11px;
    color: #c48a1a;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

#freq-track {
    flex: 1;
    height: 4px;
    background: rgba(26,58,108,0.4);
    border-radius: 2px;
    position: relative;
    overflow: visible;
}

#freq-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    background: linear-gradient(90deg, #6b2fa0, #1a3a6c, #0f7b4f, #c48a1a, #9b1b30);
    transition: width 0.3s ease-out;
}

#freq-marker {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #c48a1a;
    box-shadow: 0 0 12px rgba(196,138,26,0.6), 0 0 4px rgba(196,138,26,0.9);
    transition: left 0.3s ease-out;
}

/* ===== ZONE NAV (right side dots) ===== */
#zone-nav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 100;
}

.zone-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(232,238,246,0.3);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.zone-dot:hover {
    border-color: #c48a1a;
    transform: scale(1.3);
}

.zone-dot.active {
    background: #c48a1a;
    border-color: #c48a1a;
    box-shadow: 0 0 10px rgba(196,138,26,0.5);
}

/* ===== SCROLL WRAPPER ===== */
#scroll-wrapper {
    display: flex;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#scroll-wrapper::-webkit-scrollbar {
    display: none;
}

/* ===== ZONES (individual panels) ===== */
.zone {
    min-width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 48px 32px;
}

/* Zone backgrounds with subtle color tinting */
.zone-welcome {
    background: radial-gradient(ellipse at 30% 50%, rgba(107,47,160,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 70%, rgba(26,58,108,0.1) 0%, transparent 50%),
                #0a0f1a;
}

.zone-bass {
    background: radial-gradient(ellipse at 40% 60%, rgba(107,47,160,0.2) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 30%, rgba(26,58,108,0.15) 0%, transparent 50%),
                #0a0f1a;
}

.zone-mid {
    background: radial-gradient(ellipse at 50% 40%, rgba(15,123,79,0.12) 0%, transparent 55%),
                radial-gradient(ellipse at 20% 70%, rgba(26,58,108,0.15) 0%, transparent 50%),
                #0a0f1a;
}

.zone-presence {
    background: radial-gradient(ellipse at 60% 50%, rgba(196,138,26,0.1) 0%, transparent 55%),
                radial-gradient(ellipse at 30% 30%, rgba(107,47,160,0.1) 0%, transparent 50%),
                #0a0f1a;
}

.zone-brilliance {
    background: radial-gradient(ellipse at 50% 50%, rgba(196,138,26,0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(155,27,48,0.08) 0%, transparent 40%),
                radial-gradient(ellipse at 20% 80%, rgba(107,47,160,0.08) 0%, transparent 40%),
                #0a0f1a;
}

/* ===== GLASS PANELS (Frutiger Aero) ===== */
.glass-panel {
    background: linear-gradient(135deg,
        rgba(232,238,246,0.08) 0%,
        rgba(232,238,246,0.04) 40%,
        rgba(26,58,108,0.06) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(232,238,246,0.12);
    border-radius: 20px;
    padding: 36px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.2);
}

/* Glass reflection highlight */
.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.06) 0%,
        transparent 100%);
    border-radius: 20px 20px 0 0;
    pointer-events: none;
}

/* ===== WELCOME ZONE ===== */
.welcome-panel {
    text-align: center;
    max-width: 600px;
    padding: 48px;
}

.vu-meter-container {
    margin-bottom: 32px;
}

.vu-meter {
    width: 280px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(107,47,160,0.3));
}

.hero-title {
    font-family: 'Fraunces', serif;
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: #e8eef6;
    text-shadow: 0 2px 20px rgba(107,47,160,0.3);
}

.accent-tone {
    background: linear-gradient(135deg, #c48a1a, #6b2fa0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: rgba(232,238,246,0.6);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: pulseRight 2s ease-in-out infinite;
}

.scroll-hint-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    color: rgba(196,138,26,0.7);
    letter-spacing: 0.1em;
}

.scroll-arrow {
    animation: bounceRight 1.5s ease-in-out infinite;
}

@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}

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

/* Background waveform */
.bg-waveform {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    pointer-events: none;
    z-index: 0;
}

.wave-path {
    animation: waveShift 8s ease-in-out infinite alternate;
}

.wave-2 {
    animation-duration: 12s;
    animation-direction: alternate-reverse;
}

@keyframes waveShift {
    0% { d: path('M0,200 Q150,100 300,200 T600,200 T900,200 T1200,200'); }
    100% { d: path('M0,200 Q150,260 300,200 T600,200 T900,200 T1200,200'); }
}

/* ===== ZONE CONTENT LAYOUT ===== */
.zone-content {
    display: flex;
    gap: 32px;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    height: calc(100% - 60px);
    z-index: 1;
}

.zone-label {
    margin-bottom: 20px;
}

.freq-range {
    font-family: 'Space Grotesk', monospace;
    font-size: 12px;
    color: #c48a1a;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.zone-title {
    font-family: 'Fraunces', serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #e8eef6;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.zone-description {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(232,238,246,0.7);
    margin-bottom: 24px;
    max-width: 480px;
}

/* ===== BASS ZONE ===== */
.bass-panel {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.waveform-display {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(10,15,26,0.5);
    border: 1px solid rgba(107,47,160,0.2);
}

.waveform-display svg {
    width: 100%;
    height: 100%;
}

.tube-panel {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vacuum-tube {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 24px rgba(196,138,26,0.2));
}

.tube-label {
    font-family: 'Space Grotesk', monospace;
    font-size: 11px;
    color: rgba(196,138,26,0.7);
    text-align: center;
    margin-top: 16px;
    letter-spacing: 0.05em;
}

.tube-glow-anim {
    animation: tubeFlicker 3s ease-in-out infinite;
}

.filament-anim {
    animation: filamentGlow 2s ease-in-out infinite alternate;
}

@keyframes tubeFlicker {
    0%, 100% { opacity: 0.6; }
    30% { opacity: 0.8; }
    50% { opacity: 0.5; }
    70% { opacity: 0.9; }
}

@keyframes filamentGlow {
    0% { stroke: #c48a1a; opacity: 0.8; }
    100% { stroke: #e8a030; opacity: 1; }
}

/* ===== MID ZONE ===== */
.mid-panel {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eq-display {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(10,15,26,0.5);
    border: 1px solid rgba(15,123,79,0.2);
}

.eq-display svg {
    width: 100%;
    height: 100%;
}

.eq-node {
    cursor: pointer;
    transition: r 0.2s ease;
}

.eq-node:hover {
    r: 10;
}

.spectrum-analyzer-panel {
    flex: 0.8;
    display: flex;
    flex-direction: column;
}

.panel-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(232,238,246,0.5);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
}

.spectrum-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 200px;
    gap: 12px;
    padding: 16px 8px;
}

.bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
}

.spec-bar {
    width: 100%;
    max-width: 40px;
    height: 0%;
    background: linear-gradient(0deg, #1a3a6c, #6b2fa0, #c48a1a);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease-out;
    position: relative;
    box-shadow: 0 0 12px rgba(107,47,160,0.3);
}

.spec-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #c48a1a;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 0 8px rgba(196,138,26,0.6);
}

.bar-label {
    font-family: 'Space Grotesk', monospace;
    font-size: 10px;
    color: rgba(232,238,246,0.4);
    letter-spacing: 0.05em;
}

/* ===== PRESENCE ZONE ===== */
.presence-panel {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.oscilloscope {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(10,15,26,0.6);
    border: 1px solid rgba(15,123,79,0.2);
    box-shadow: inset 0 0 30px rgba(15,123,79,0.05);
}

.oscilloscope svg {
    width: 100%;
    height: 100%;
}

.knobs-panel {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.knob-row {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.knob-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.knob {
    width: 80px;
    height: 80px;
    cursor: pointer;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    transition: transform 0.2s ease;
}

.knob:hover {
    transform: scale(1.08);
}

.knob-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    color: rgba(232,238,246,0.5);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ===== BRILLIANCE ZONE ===== */
.brilliance-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#particle-canvas {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    background: rgba(10,15,26,0.4);
    border: 1px solid rgba(196,138,26,0.15);
}

.cta-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.cta-heading {
    font-family: 'Fraunces', serif;
    font-size: 36px;
    font-weight: 700;
    color: #e8eef6;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(196,138,26,0.2);
}

.cta-text {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(232,238,246,0.6);
    max-width: 400px;
    margin-bottom: 32px;
}

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

.cta-btn {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-primary {
    background: linear-gradient(135deg, #6b2fa0, #1a3a6c);
    color: #e8eef6;
    border: 1px solid rgba(107,47,160,0.5);
    box-shadow: 0 4px 20px rgba(107,47,160,0.3);
}

.cta-primary:hover {
    box-shadow: 0 6px 28px rgba(107,47,160,0.5);
    transform: translateY(-2px);
}

.cta-secondary {
    background: transparent;
    color: #c48a1a;
    border: 1px solid rgba(196,138,26,0.4);
}

.cta-secondary:hover {
    background: rgba(196,138,26,0.1);
    border-color: #c48a1a;
    transform: translateY(-2px);
}

.final-vu {
    width: 200px;
}

.final-vu svg {
    width: 100%;
    height: auto;
}

/* ===== AMBIENT PARTICLES ===== */
#ambient-particles {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}

.ambient-dot {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(196,138,26,0.4);
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-20px) translateX(30px);
        opacity: 0;
    }
}

/* ===== ZONE ENTRANCE ANIMATIONS ===== */
.zone .glass-panel {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.zone.in-view .glass-panel {
    opacity: 1;
    transform: translateY(0);
}

.zone .glass-panel:nth-child(2) {
    transition-delay: 0.2s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .zone {
        padding: 60px 20px 20px;
    }

    .zone-content {
        flex-direction: column;
        gap: 20px;
    }

    .hero-title {
        font-size: 48px;
    }

    .zone-title {
        font-size: 28px;
    }

    .knob-row {
        gap: 16px;
    }

    .knob {
        width: 60px;
        height: 60px;
    }

    .cta-heading {
        font-size: 28px;
    }

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

    #zone-nav {
        right: 12px;
    }

    .glass-panel {
        padding: 24px;
    }
}
