:root {
    --bg-deep: #0f172a;
    --glass-panel: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-cyan: #22d3ee;
    --neon-glow: rgba(34, 211, 238, 0.4);
    --alert-amber: #fbbf24;
    --font-ui: system-ui, -apple-system, sans-serif;
    --font-tech: 'Courier New', Courier, monospace;
}

body {
    background-color: var(--bg-deep);
    color: white;
    font-family: var(--font-ui);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: var(--neon-cyan); }

/* --- Layout --- */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Header */
header {
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 90px;
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    z-index: 50;
    position: relative;
}

/* Oversized Logo */
.brand-logo { 
    height: 200px;
    position: absolute;
    top: 10px;
    left: 20px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    transition: transform 0.2s;
    z-index: 100;
}
.brand-logo:hover { transform: scale(1.05) rotate(-2deg); }

.nav-links { margin-left: auto; display: flex; gap: 20px; font-size: 0.9rem; color: #94a3b8; }
.nav-btn {
    padding: 8px 16px;
    border: 1px solid var(--neon-cyan);
    border-radius: 4px;
    color: var(--neon-cyan);
}
.nav-btn:hover { background: var(--neon-cyan); color: #000; }

/* --- Content Pages (ToS, Journey, etc) --- */
.content-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: var(--glass-panel);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    line-height: 1.8;
    color: #cbd5e1;
}
.content-container h1, .content-container h2, .content-container h3 {
    color: white;
    margin-top: 30px;
    margin-bottom: 15px;
}
.content-container p { margin-bottom: 20px; }
.content-container ul { margin-bottom: 20px; padding-left: 20px; }
.content-container li { margin-bottom: 10px; }

/* --- Floating Join Button --- */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--neon-cyan), #06b6d4);
    color: black;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 800;
    box-shadow: 0 10px 25px var(--neon-glow);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
    border: 2px solid white;
}
.floating-cta:hover { transform: scale(1.1); }
.floating-cta img { height: 24px; }

/* --- Footer --- */
footer {
    text-align: center; padding: 40px 20px; font-size: 0.8rem; color: #475569; 
    border-top: 1px solid #1e293b; margin-top: auto;
}
.footer-links { margin-bottom: 15px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #94a3b8; }
.footer-links a:hover { color: var(--neon-cyan); text-decoration: underline; }

/* --- Existing Styles (Bed, Sliders, Forms) --- */
.hero-section { text-align: center; padding: 80px 20px; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.hero-title { font-size: 3rem; font-weight: 800; background: linear-gradient(to right, white, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 20px; }
.hero-sub { color: #94a3b8; font-size: 1.2rem; max-width: 600px; margin-bottom: 40px; }

.glass-card { background: var(--glass-panel); border: 1px solid var(--glass-border); border-radius: 16px; padding: 40px; max-width: 400px; width: 100%; margin: 40px auto; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-label { display: block; color: #cbd5e1; margin-bottom: 8px; font-size: 0.9rem; }
.form-input { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid #334155; padding: 12px; border-radius: 8px; color: white; font-size: 1rem; box-sizing: border-box; }
.form-input:focus { outline: none; border-color: var(--neon-cyan); }

.visualizer-stage { flex-grow: 1; display: flex; justify-content: center; align-items: center; position: relative; min-height: 400px;}
.bed-frame { width: 90%; max-width: 600px; height: 350px; background: rgba(255,255,255,0.02); border: 2px solid var(--glass-border); border-radius: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; position: relative; }
.air-chamber { background: rgba(0,0,0,0.3); border-radius: 12px; position: relative; overflow: hidden; display: flex; align-items: flex-end; cursor: ns-resize; touch-action: none; }
.air-fill { width: 100%; background: linear-gradient(to top, var(--neon-cyan), #06b6d4); opacity: 0.6; transition: height 0.2s; }
.chamber-label { position: absolute; top: 20px; left: 0; right: 0; text-align: center; font-size: 3rem; font-weight: 800; text-shadow: 0 2px 10px black; pointer-events: none; }
.robot-overlay { position: absolute; bottom: -30px; right: -50px; width: 220px; filter: drop-shadow(0 0 15px rgba(0,0,0,0.5)); pointer-events: none; }

.control-deck { background: var(--glass-panel); border-top: 1px solid var(--glass-border); padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
@media (max-width: 768px) { .control-deck { grid-template-columns: 1fr; } .brand-logo { height: 120px; } }
.ai-terminal { font-family: var(--font-tech); font-size: 0.8rem; color: #94a3b8; height: 80px; overflow-y: auto; padding: 10px; background: rgba(0,0,0,0.4); border-left: 2px solid var(--neon-cyan); }
.btn-action { background: linear-gradient(135deg, var(--neon-cyan), #06b6d4); border: none; padding: 15px; border-radius: 8px; color: #000; font-weight: 800; cursor: pointer; width: 100%; box-shadow: 0 0 20px var(--neon-glow); }

.precision-slider-wrapper { position: relative; padding: 10px 0; width: 100%; }
.range-ticks { display: flex; justify-content: space-between; padding: 0 10px; margin-top: 5px; color: #64748b; font-family: var(--font-tech); font-size: 0.7rem; }
.tick { position: relative; display: flex; flex-direction: column; align-items: center; }
.tick::before { content: ''; width: 1px; height: 6px; background: #475569; margin-bottom: 4px; }
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-track { width: 100%; height: 6px; background: #334155; border-radius: 3px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 24px; width: 24px; border-radius: 50%; background: var(--neon-cyan); margin-top: -9px; cursor: pointer; box-shadow: 0 0 10px var(--neon-glow); }

/* --- Password Toggle Styles --- */
.password-container {
    position: relative;
    width: 100%;
}
.password-container input {
    padding-right: 45px; /* Make room for the eye */
}
.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 0;
    font-size: 1.2rem;
    transition: color 0.2s;
}
.password-toggle-btn:hover {
    color: var(--neon-cyan);
}

/* --- Password Toggle (Eyelid) --- */
.password-container {
    position: relative;
    width: 100%;
}
.password-container input {
    padding-right: 45px; /* Make room for the icon */
}
.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 0;
    font-size: 1.2rem;
    transition: color 0.2s;
    z-index: 10;
}
.password-toggle-btn:hover {
    color: var(--neon-cyan);
}
