@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
    --bg-dark: #07080B;
    --bg-card: rgba(13, 15, 23, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 242, 254, 0.25);
    
    --neon-cyan: #00F2FE;
    --neon-purple: #9E00FF;
    --neon-green: #39FF14;
    --neon-orange: #FF5E62;
    --neon-pink: #FF007F;
    
    --font-outfit: 'Outfit', sans-serif;
    --font-tech: 'Space Grotesk', sans-serif;
}

/* --- BASE & TYPOGRAPHY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: #F3F4F6;
    font-family: var(--font-outfit);
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-tech);
    letter-spacing: -0.02em;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #090A0F;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-purple), var(--neon-cyan));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* --- AMBIENT LIGHTS & GLOWS --- */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    transition: all 1s ease;
}

.ambient-cyan {
    background: var(--neon-cyan);
    width: 450px;
    height: 450px;
}

.ambient-purple {
    background: var(--neon-purple);
    width: 500px;
    height: 500px;
}

.ambient-orange {
    background: var(--neon-orange);
    width: 400px;
    height: 400px;
}

/* --- GLASSMORPHISM CLASS SYSTEM --- */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(190%);
    -webkit-backdrop-filter: blur(16px) saturate(190%);
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.glass-card {
    background: rgba(17, 20, 31, 0.45);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.1);
    transform: translateY(-4px);
}

.glass-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: #FFF;
    font-family: var(--font-outfit);
    transition: all 0.3s ease;
}

.glass-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

/* --- GLOW EFFECTS --- */
.text-glow-cyan {
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.text-glow-purple {
    text-shadow: 0 0 10px rgba(158, 0, 255, 0.5);
}

.btn-cyber {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    border: none;
    color: #FFF;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(158, 0, 255, 0.3);
    z-index: 1;
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: all 0.6s ease;
    z-index: 2;
}

.btn-cyber:hover::before {
    left: 100%;
}

.btn-cyber:hover {
    box-shadow: 0 6px 25px rgba(0, 242, 254, 0.5);
    transform: translateY(-2px);
}

.btn-cyber-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: #FFF;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cyber-outline:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
    color: var(--neon-cyan);
    background: rgba(0, 242, 254, 0.03);
}

/* --- KEYFRAMES & ANIMATIONS --- */
@keyframes breathing {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 25px rgba(0, 242, 254, 0.4), inset 0 0 15px rgba(0, 242, 254, 0.2);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 45px rgba(0, 242, 254, 0.7), inset 0 0 30px rgba(0, 242, 254, 0.4);
    }
}

.breath-circle {
    animation: breathing 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes spin-slow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.spin-slow-animation {
    animation: spin-slow 20s linear infinite;
}

/* --- METRICS & WIDGET DESIGN --- */
.pulse-badge {
    position: relative;
}
.pulse-badge::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--neon-green);
    border-radius: 50%;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    box-shadow: 0 0 8px var(--neon-green);
}

.pulse-badge-orange::after {
    background-color: var(--neon-orange);
    box-shadow: 0 0 8px var(--neon-orange);
}

/* Color customization active state */
.color-swatch {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.color-swatch:hover {
    transform: scale(1.2);
}
.color-swatch.active {
    box-shadow: 0 0 0 2px var(--bg-dark), 0 0 0 4px var(--neon-cyan);
}

/* Tech Spec Hotspots */
.hotspot {
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: var(--neon-cyan);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(0, 242, 254, 0.3);
    transition: all 0.3s ease;
}
.hotspot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--neon-cyan);
    animation: hotspot-ripple 2s infinite ease-out;
}
.hotspot:hover {
    background-color: #FFF;
    box-shadow: 0 0 12px var(--neon-cyan);
    transform: scale(1.3);
}

@keyframes hotspot-ripple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Custom range sliders */
input[type=range].glass-slider {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}
input[type=range].glass-slider:focus {
    outline: none;
}
input[type=range].glass-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
input[type=range].glass-slider::-webkit-slider-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--neon-cyan);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -6px;
    box-shadow: 0 0 10px var(--neon-cyan);
    transition: all 0.1s ease;
}
input[type=range].glass-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--neon-cyan);
}

/* B2B Calculator Glowing Outlines */
.calc-result-box {
    border-left: 4px solid var(--neon-cyan);
}
.calc-result-box-purple {
    border-left: 4px solid var(--neon-purple);
}

/* Breathing speed sliders */
.inhale-speed {
    color: var(--neon-cyan);
}
.hold-speed {
    color: var(--neon-purple);
}
.exhale-speed {
    color: var(--neon-orange);
}
